The Divergence Theorem

Relate outward flux through a closed boundary to sources inside a volume.

Builds on Oriented Surface Flux

The bigger question: How do local changes inside a field relate to its boundary?

On this page

From local sources to boundary flow

For a bounded solid VV with a piecewise smooth closed boundary, and a continuously differentiable field on a neighborhood of the solid,

∬∂VF⋅n dS=∭V∇⋅F dV.\iint_{\partial V}\mathbf F\cdot\mathbf n\,dS=\iiint_V\nabla\cdot\mathbf F\,dV.

The boundary normal points outward. Flux through interior faces of adjacent small boxes cancels; only the exterior remains. That cancellation explains why integrating local divergence gives total outward flow.

Visual guide

VISUAL GUIDEOpposite internal fluxes cancel
Two adjacent boxes share an internal face. Flux leaving one enters the other, so those contributions cancel in the total. The divergence theorem sums only the remaining exterior flux over a closed boundary.
Two adjacent boxes share an internal face. Flux leaving one enters the other, so those contributions cancel in the total. The divergence theorem sums only the remaining exterior flux over a closed boundary.

Check the surface first

The theorem applies to a closed surface. If a problem gives only a roof or curved wall, add the missing caps, apply the theorem to the resulting solid, then subtract their fluxes with the outward orientations of that solid. Also inspect the field for singularities inside the volume.

Worked example: a box

For F=(2x,−y,3z)\mathbf F=(2x,-y,3z) on [0,1]3[0,1]^3, divergence is 44 and volume is 11, so total flux is 44. The far faces contribute 2,−1,32,-1,3 respectively; the three faces at coordinate zero contribute zero. Negative flux through the y=1y=1 face represents entry, not an error.

PAUSE & THINKA quick check, not a grade

Try it yourself.

Choose an answer and explain your reasoning to yourself. Use a hint if you get stuck.

The divergence theorem applies directly to which boundary?

Hint 1 · Find a starting point

The theorem relates sources inside a volume to total outward flow.

Hint 2 · Take the next step

The boundary must enclose that volume.

Show the reasoning

Answer: A closed surface with outward orientation

A closed outward-oriented surface supplies the full boundary; an open surface needs the missing pieces accounted for.

Before moving on: what would make one of the other answers wrong? Saying why is part of understanding.

Worked example: a hemisphere and its cap

For F=(0,0,z+1)\mathbf F=(0,0,z+1) on the upper half of a unit ball, divergence is 11. Total outward flux is its volume 2π/32\pi/3. The flat bottom disk has outward normal (0,0,−1)(0,0,-1), so its flux is −π-\pi. The curved hemisphere therefore has flux 2π/3−(−π)=5π/32\pi/3-(-\pi)=5\pi/3.

A singular source

The field r/∥r∥3\mathbf r/\|\mathbf r\|^3 is not defined at the origin. Its divergence away from the origin is zero, but that does not justify zero flux through a sphere enclosing the origin. Exclude a small inner sphere and include both boundaries to use the theorem correctly.

Practice

  1. Find outward flux of (x,y,z)(x,y,z) through a sphere of radius 22.
  2. Find total outward flux of a constant field through any closed smooth surface.
  3. Why can a divergence-free field still cross parts of the boundary?
Show worked solutions
  1. Divergence 33 times volume 32π/332\pi/3 gives 32π32\pi.
  2. Divergence is zero, so total flux is zero.
  3. Entry and exit can cancel. The theorem constrains the net flux, not each patch separately.

Further study

MIT OpenCourseWare: Multivariable Calculus provides a full university course with additional lectures and exercises.

MAKE IT YOURS

Pause before the next idea.

Can you explain how the visualization connects to this lesson’s goal? If a step still feels uncertain, put this lesson on your review list and try the check again another day.

Optional marks, not a grade. Saved in this browser only. Open notebook →