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 with a piecewise smooth closed boundary, and a continuously differentiable field on a neighborhood of the solid,
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
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 on , divergence is and volume is , so total flux is . The far faces contribute respectively; the three faces at coordinate zero contribute zero. Negative flux through the face represents entry, not an error.
Try it yourself.
Choose an answer and explain your reasoning to yourself. Use a hint if you get stuck.
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 on the upper half of a unit ball, divergence is . Total outward flux is its volume . The flat bottom disk has outward normal , so its flux is . The curved hemisphere therefore has flux .
A singular source
The field 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
- Find outward flux of through a sphere of radius .
- Find total outward flux of a constant field through any closed smooth surface.
- Why can a divergence-free field still cross parts of the boundary?
Show worked solutions
- Divergence times volume gives .
- Divergence is zero, so total flux is zero.
- 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.
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.