|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
This interactive simulation visualizes the fundamental differential operators of vector calculus in 3D. These operators — Gradient (∇f), Divergence (∇·F), Curl (∇×F), and Laplacian (∇²f) — are essential tools in physics, engineering, and applied mathematics, appearing in Maxwell's equations, fluid dynamics, heat transfer, and quantum mechanics. Mathematical FoundationThe Del Operator (∇): The nabla or "del" operator is the fundamental building block of all these operators: ∇ = (∂/∂x, ∂/∂y, ∂/∂z) It's a vector of partial derivative operators that can be applied to scalar fields (producing vectors) or combined with vector fields (producing scalars or vectors). Operators on Scalar Fields f(x, y, z)
Operators on Vector Fields F(x, y, z) = (Fx, Fy, Fz)
Numerical Differentiation: Central Difference MethodThis simulation computes all derivatives numerically using the central difference approximation, which is more accurate than forward/backward differences:
First Derivative: f'(x) ≈ [f(x+h) - f(x-h)] / (2h) The step size h = 0.05 provides a good balance between accuracy (smaller h) and numerical stability (avoiding floating-point errors with very small h). Key IdentitiesSome fundamental relationships between these operators:
Physical Applications
Deep Dive: The Physical Meaning of the Laplacian (∇²f)Core Insight: The Laplacian measures how much a point's value differs from the average of its neighbors. If you average the values in a small sphere around point P, the Laplacian tells you whether P is above or below that average.
∇²f > 0: Point is LOWER than neighbors → "Valley" (concave up)
∇²f < 0: Point is HIGHER than neighbors → "Peak" (concave down) ∇²f = 0: Point equals average of neighbors → Harmonic function (equilibrium) 1. Heat Equation: ∂T/∂t = α∇²T
Intuition: Heat naturally diffuses from hot to cold. The Laplacian tells you the "pressure" driving this diffusion. 2. Navier-Stokes (Viscosity Term): ∂v/∂t + (v·∇)v = -∇p/ρ + ν∇²v The ν∇²v term is the viscous diffusion of momentum:
3. Wave Equation: ∂²u/∂t² = c²∇²u The Laplacian acts as a restoring force:
4. Electrostatics (Poisson's Equation): ∇²V = -ρ/ε₀
Summary: The Laplacian is nature's smoothing operator. It appears whenever a quantity (heat, momentum, concentration) naturally flows from regions of excess to regions of deficit. ∇²f is the "pressure" driving systems toward equilibrium.
Mode & Equation
Tangents (∂f/∂x, ∂f/∂y)
Gradient (∇f)
Laplacian (∇²f)
Current Function
f(x,y) = x² - y²
Scalar Field Mode
∂f/∂x tangent / X-axis
∂f/∂y tangent / Y-axis
Gradient ∇f
Laplacian (−/0/+)
Mouse: Drag to rotate, Scroll to zoom, Right-drag to pan.
Scalar Mode: Hover over surface to see tangent lines and gradient.
Vector Mode: Enable Curl to see paddle wheel rotation.
Operator Visualization Guide
▸ Partial Derivatives (∂f/∂x, ∂f/∂y)
Red line = tangent in x-direction (slope = ∂f/∂x).
Green line = tangent in y-direction (slope = ∂f/∂y). These show the rate of change along each axis at the hover point. ▸ Gradient (∇f)
Orange arrow points in direction of steepest ascent.
Length = magnitude of gradient = max rate of increase. Gradient is always perpendicular to contour lines. ▸ Laplacian (∇²f)
Surface colored by concavity: Red = concave down (∇²f < 0),
Blue = concave up (∇²f > 0).
Shows where function curves up (local min) vs down (local max). ▸ Divergence (∇·F)
Arrows colored: Red = source (∇·F > 0),
Blue = sink (∇·F < 0).
Shows where fluid is created/destroyed in the flow field. ▸ Curl (∇×F)
Paddle wheel rotates based on local curl.
Rotation speed = curl magnitude at paddle position. Drag the view to see the paddle spin in rotating fields! Usage Instructions
Scalar Field Presets
Vector Field Presets
Understanding the VisualizationsScalar Field Mode:
Vector Field Mode:
Mathematical InsightsWhy is the Saddle Point Laplacian Zero? For f(x,y) = x² - y², we have ∂²f/∂x² = 2 and ∂²f/∂y² = -2, so ∇²f = 2 + (-2) = 0. This makes it a harmonic function — solutions to Laplace's equation ∇²f = 0. These are critical in electrostatics (potential between conductors) and fluid flow. Why does the Rotation Field have Zero Divergence? For F = (-y, x, 0), we compute ∂(-y)/∂x = 0 and ∂x/∂y = 0, so ∇·F = 0 + 0 = 0. This means fluid neither accumulates nor depletes anywhere — it's an incompressible flow. Meanwhile, ∇×F = (0, 0, ∂x/∂x - ∂(-y)/∂y) = (0, 0, 2), showing constant rotation. The Gradient-Curl-Divergence Triad: These three operators form the foundation of vector calculus. In physics, they separate vector fields into:
Tips for Exploration
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||