Vector Calculus Calculator
๐ Practice worksheetsin(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
Enter a field and click Compute
Compute gradient, divergence, or curl with step-by-step solutions.
Compute a gradient or curl to see its 3D vector field.
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.