Vector Calculus (Integral Theorems)
A practical guide to line, surface, and volume integrals, plus the divergence theorem (Gauss) and Stokes’ theorem with worked examples.
Continue where you stopped
The core idea
On this page
Vector calculus connects local derivatives (divergence, curl) to global integrals (flux, circulation). This is the math backbone of electromagnetism and fluid flow.
These theorems are the “math engine” behind the integral forms of Maxwell’s equations:
- Gauss-type flux ideas: UY1: Gauss’s Law (simple version), UY1: Usage of Gauss’s Law
- Stokes-type circulation ideas: UY1: Faraday’s law of induction (Lenz’s law), UY1: Ampere’s law
- Prerequisite operators: Vector Analysis, Partial derivatives
0) At a glance (what each theorem “converts”)
- Divergence theorem converts a closed-surface flux into a volume integral of divergence.
- Stokes’ theorem converts a closed-path circulation into a surface integral of curl.
- In physics language: they convert “sum over a boundary” into “sum over the inside”.
1) The three integrals you meet in physics
Line integral (circulation / work along a path)
For a vector field vector F along a curve C:
If the curve is parameterized as vector r(t), t∈[a,b], then d vector ℓ = d vector r = vector r '(t) dt and:
Physical meaning: if vector F is a force field, this integral is the work done along the path.
A line integral depends on the path in general. It becomes path-independent only for conservative fields (typically when vector F = ∇φ in a suitable region). A fast UY1 check is whether the curl is zero (and whether the region has no “holes”/singularities).
Surface integral (flux through a surface)
For a surface S with unit normal n hat:
You’ll also see the compact form ∬_S vector F · d vector A where d vector A = n hat dS is the oriented area element.
Volume integral (accumulated quantity over a region)
Over a volume V:
- ∫ vector F · d vector ℓ has units of [F] × [length] (work if vector F is a force).
- ∬ vector F · n hat dS has units of [F] × [area] (flux).
- ∭ g dV has units of [g] × [volume].
2) Divergence theorem (Gauss’ theorem)
If V is a volume with boundary surface ∂ V (outward normal), then:
Interpretation: the total “source strength” inside V equals the net flux leaving V.
Worked example (flux through a sphere)
Let vector F = (x,y,z). Find the outward flux through the sphere x² + y² + z² = a².
Compute the divergence:
So by Gauss’ theorem:
On the sphere, vector F = (x,y,z) = a r hat and n hat = r hat, so vector F · n hat = a is constant. The flux is then:
matching the divergence-theorem result.
The divergence theorem is for closed surfaces (boundaries of volumes). If your surface has an edge/boundary, you need either to close it (add a “cap” surface) or use a different method.
3) Stokes’ theorem (curl ↔ circulation)
If a surface S has boundary curve ∂ S, then:
The direction you traverse ∂ S must match the chosen normal n hat via the right-hand rule.
Worked example (circulation around a circle)
Let vector F = (-y,x,0) and let C be the circle x² + y² = a² in the xy-plane, traversed counterclockwise (viewed from + z).
Compute the curl:
Choose S as the disk x² + y² ≤ a² with n hat = z hat. Then:
Direct check (compute the line integral explicitly)
Parameterize the circle by:
Then
On the circle, the field is:
So the dot product is constant:
and:
matching the Stokes result.
Stokes’ theorem assumes the field is well-behaved on the surface. If vector F has a singularity (blows up) or the region has a hole, extra care is needed. This is why physics often phrases results in terms of “enclosed sources” (charge/current) rather than only local derivatives.
When should you use these theorems?
- Use Gauss’ theorem when a flux integral is hard directly but vector ∇ · vector F is simple (often with symmetry).
- Use Stokes’ theorem when a circulation integral is hard directly but vector ∇ × vector F is simple.
Physics connections (why you care)
- Gauss’ law (electrostatics): flux of vector E through a closed surface relates to enclosed charge
See: UY1: Gauss’s Law (simple version), UY1: Usage of Gauss’s Law - Faraday’s law (induction): circulation of vector E relates to changing magnetic flux
See: UY1: Faraday’s law of induction (Lenz’s law), UY1: Examples involving Faraday’s law - Ampère–Maxwell law: circulation of vector B relates to current and changing electric flux
See: UY1: Ampere’s law, UY1: Displacement current
These are exactly the divergence and curl theorems in action, applied to physical fields.
- Did you choose the correct boundary? (closed surface for Gauss, closed loop for Stokes)
- Are your orientations consistent? (right-hand rule)
- Is the field smooth in the region you’re applying the theorem? (watch for singularities)