Vector Calculus (Integral Theorems)

A practical guide to line, surface, and volume integrals, plus the divergence theorem (Gauss) and Stokes’ theorem with worked examples.

  • University Physics Year 1
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.

Why this matters + quick links

These theorems are the “math engine” behind the integral forms of Maxwell’s equations:


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:

∫_C vector F · d vector ℓ.

If the curve is parameterized as vector r(t), t∈[a,b], then d vector ℓ = d vector r = vector r '(t) dt and:

∫_C vector F · d vector ℓ = ∫ₐ^b vector F(vector r(t)) · vector r '(t) dt.

Physical meaning: if vector F is a force field, this integral is the work done along the path.

Pitfall: path dependence

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:

∬_S vector F · n hat dS.

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:

∭_V g dV.
Quick checks (units)
  • ∫ 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:

∭_V (vector ∇ · vector F) dV = ∬_(∂ V) vector F · n hat dS.

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:

vector ∇ · vector F = (∂ x)/(∂ x) + (∂ y)/(∂ y) + (∂ z)/(∂ z) = 3.

So by Gauss’ theorem:

∬_(∂ V) vector F · n hat dS = ∭_V 3 dV = 3 · (4/3)π a³ = 4π a³.
Sanity check (do the surface integral by symmetry)

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:

∬ a dS = a (4π a²) = 4π a³,

matching the divergence-theorem result.

Pitfall: closed vs open surfaces

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:

∬_S (vector ∇ × vector F) · n hat dS = ∮_(∂ S) vector F · d vector ℓ.
Orientation matters

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:

vector ∇ × vector F = (0,0,(∂ x)/(∂ x)-(∂ (-y))/(∂ y)) = (0,0,2).

Choose S as the disk x² + y² ≤ a² with n hat = z hat. Then:

∮_C vector F · d vector ℓ = ∬_S 2 dA = 2 · π a² = 2π a².

Direct check (compute the line integral explicitly)

Parameterize the circle by:

x = a cos t, y = a sin t, t∈[0,2π].

Then

d vector ℓ = (dx,dy,0) = (-a sin t, a cos t, 0) dt.

On the circle, the field is:

vector F = (-y,x,0) = (-a sin t, a cos t, 0).

So the dot product is constant:

vector F · d vector ℓ = a² dt,

and:

∮_C vector F · d vector ℓ = ∫₀^2π a² dt = 2π a²,

matching the Stokes result.

Pitfall: singularities and “holes”

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)

These are exactly the divergence and curl theorems in action, applied to physical fields.

What to check before using a theorem
  • 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)

Back to Mathematics for Undergraduate Physics