Vector Calculus Calculator
sin(x) cos(y) tan(z)
e^x e^(x*y) exp(z)
log(x) = ln(x) sqrt(x)
x*y x*y*z 3*x^2
Multiplication: Use * explicitly:
x*y not xyPowers:
x^2 or x^(2/3)Constants: pi, e
Result
Enter a field and click Compute
Compute gradient, divergence, or curl with step-by-step solutions.
3D Vector Field
Compute a gradient or curl to see its 3D vector field.
Python Compiler
What is Vector Calculus?
Vector calculus extends single-variable calculus to fields in two and three dimensions. The three fundamental operations are the gradient, divergence, and curl, all defined using the del operator ∇.
These operations are essential in physics (electromagnetism, fluid dynamics, thermodynamics) and engineering (signal processing, computer graphics, robotics).
The Three Operations
| Operation | Input | Output | Formula |
|---|---|---|---|
| Gradient ∇f | Scalar field | Vector field | (∂f/∂x, ∂f/∂y, ∂f/∂z) |
| Divergence ∇·F | Vector field | Scalar | ∂Fx/∂x + ∂Fy/∂y + ∂Fz/∂z |
| Curl ∇×F | Vector field | Vector field | det[i,j,k; ∂x,∂y,∂z; Fx,Fy,Fz] |
Key Vector Calculus Identities
Curl of Gradient = 0
∇ × (∇f) = 0 for any smooth scalar field f. Gradient fields are always irrotational.
Divergence of Curl = 0
∇ · (∇ × F) = 0 for any smooth vector field F. Curl fields are always solenoidal.
Laplacian
∇²f = ∇ · (∇f) = ∂²f/∂x² + ∂²f/∂y² + ∂²f/∂z². The divergence of the gradient.
Divergence Theorem
&oiint; F · dS = &oiiint; (∇ · F) dV. Relates surface integral to volume integral.
Applications
Electromagnetism
Maxwell's equations use gradient, divergence, and curl to describe electric and magnetic fields.
Fluid Dynamics
Divergence measures fluid expansion/compression. Curl measures fluid rotation (vorticity).
Heat Transfer
The gradient of temperature gives the direction of heat flow. Fourier's law: q = -k∇T.
Optimization
The gradient points in the direction of steepest ascent. Gradient descent finds minima of cost functions.