Total outflow, without ever touching the boundary
You want to know the net flow of a field out through a sealed box. The direct way is brutal: six face integrals, one per side, each with its own orientation. But there is a shortcut that feels like cheating — the total outflow equals the sum of the sources inside, read off in a single line. The boundary's books are balanced entirely by what is happening in the interior.
That is the divergence theorem, and underneath it is conservation: what leaves a region through its surface is exactly what its interior produces or loses — nothing appears from nowhere, nothing vanishes. It is the precise step every fluid, smoke, and weather simulation runs millions of times a second (the "finite-volume method"): track each cell's sources, and the flux across its walls takes care of itself.
This is the last theorem of the course, and it completes a pattern. As with Green's and Stokes', we never picture the whole flux at once — we trade the surface for the solid it encloses and compute whichever side is easier. By the end of this chapter you will have the whole Unit-2 toolbox and the one idea that ties it — and Unit 1 — together.
The divergence theorem
The divergence of a field measures its local source strength — how much it spreads out from a point:
Here is a closed surface — the complete boundary of the solid — oriented outward. That is the new structure: Chapter 14's surfaces were open sheets; here the surface seals a volume, and "flux out = total sources within." One last time, the Unit-2 process rule: compute whichever side is easier, and when both are doable they agree.
Flux of out of the sphere of radius . Here .
On the sphere , so ; flux
Both give — the theorem, confirmed.
Flux of out of the unit cube . The divergence is , so
Check it the hard way: of the six faces, only , , carry outward flux (the faces have there), each contributing , total . The theorem turned six face integrals into one easy volume integral.
Playground 1 — Flux Box
A sealed box holds four point sources. Set each source's strength, then — before you reveal — predict the net outward flux. The divergence theorem makes it just the sum: .
Make the strengths cancel (say +2, −2, +1, −1) and the net flux is 0 — sealed box, live sources, nothing net crosses. Only the total matters, not the arrangement — the same lesson as Stokes' surface-independence.
End of sitting 1 — you have the divergence theorem and the flux-out-equals-sources-inside picture. After the break: the exam move it is built for (a nasty surface integral made easy), and then the close — what all of Unit 2, and Unit 1, were really about.
A nasty surface integral, made easy
The divergence theorem earns its exam place when a closed-surface flux is painful to integrate directly but has a simple divergence. You flip to the volume side and the slog disappears.
Flux of out of the sphere of radius . The direct surface integral is genuinely ugly. But , so go to the volume side in spherical coordinates:
One spherical integral instead of a page of surface algebra. (And if a surface is open, you can often close it with a flat cap, apply the theorem to the closed solid, then subtract the cap's flux — that is the other exam classic; see PR3.)
The boundary remembers the inside
You have now met three great theorems of vector calculus. Set them side by side and a single shape appears:
| theorem | boundary integral | = interior integral of a derivative |
|---|---|---|
| Green (Ch 13) | ||
| Stokes (Ch 14) | ||
| Gauss (Ch 15) |
One template, three dimensions: an integral over a boundary equals an integral of a derivative over the region the boundary encloses. The edge of a region carries enough information to recover what the whole interior is doing. The boundary remembers the inside.
Now look back at the theorem that opened complex integration — Cauchy's integral formula:
Read it again with today's eyes. The value of at a point inside the contour is determined entirely by the values of on the contour — boundary data fixing the interior, exactly the trilogy's idea. Chapter 13 already showed that a contour integral is two real line integrals and that Cauchy's theorem is Green's theorem plus the Cauchy–Riemann equations. This is the same kinship, stated at its sharpest: Unit 1's complex integration and Unit 2's vector integration were one idea all along — the boundary determines the inside, whether the field is a complex function or a flow in space. That is the course, in one sentence.
End of sitting 2 — the close is delivered; let it sit. The final sitting is the capstone skill: across the whole of Units 1 and 2, choosing the right tool — which is what an exam actually tests.
Choosing the right tool
By now you can execute every method in Unit 2. The exam's real differentiator is not execution — it is reading a problem and knowing which tool it wants. So train exactly that. Each card below is a problem signature: the region, the integrand, what is asked. Predict the best tool, then reveal the verdict and a one-line why.
The trap to watch: a closed surface wants the divergence theorem, but an open surface does not — there is no solid to fill, so you integrate the flux directly. Closed vs open is the whole game.
Test yourself before the finish
Commit before reading the feedback. The first three are computation; the last two are the structural insight the course has been building toward.
The flux of out of the sphere of radius is:
The flux of out of the unit cube is:
Green's, Stokes', and the divergence theorem all share which structure?
You need the flux of out of a closed surface (a sphere) where is simple but the direct surface integral is messy. The best route is:
The flux of out of the closed cylinder , (caps included) is:
Exam translator — what a divergence question asks
- "Find the flux of out of ⟨closed surface⟩" → divergence theorem: , in whatever coordinates fit the solid (WE1, WE3).
- "Verify the divergence theorem for …" → compute both sides and show they match (WE1, WE2).
- "Flux through an open surface" → either integrate directly, or close it with a cap and subtract (PR3). An open surface is not a divergence-theorem problem on its own.
Worked solutions are complete; do them as listed — interleaved on purpose. Three are decision-only (PR5, PR7, PR8); PR3 opens with a faded bridge.
PR1 · flux out of a sphere
PR1. Find the flux of out of the unit sphere.
, so the flux is .
PR2 · non-constant divergence
PR2. Find the flux of out of the unit cube .
, and .
PR3 · faded bridge · close an open surface with a cap
PR3. Find the flux of upward through the open paraboloid , .
Bridge: the paraboloid alone is open. Close it with the disk () to seal a solid, apply the divergence theorem to that solid, then subtract the disk's flux. Predict: what is , and what does the disk contribute?
. The sealed solid is , whose volume is , so the closed flux is . The bottom disk is oriented downward, , and there (since ). So the disk adds nothing, and the paraboloid's upward flux is .
That is the same you found by direct surface integral in Chapter 14 (WE3) — two methods, one answer.
PR4 · flux out of a cylinder
PR4. Find the flux of out of the cylinder , .
, and the cylinder's volume is , so the flux is .
PR5 · decision-only · which theorem?
PR5. A closed surface, with simple but the direct surface integral messy. Which theorem, and why?
The divergence theorem. A closed surface seals a solid, and a simple divergence makes far easier than the direct .
PR6 · a callback · which tool, and the value
PR6. For around the unit circle, name the efficient tool and give the value.
Green's theorem (a closed planar loop): , so . (This is the Chapter 13 area form — the same .)
PR7 · decision-only · choose the coordinate system
PR7. For each solid, name the coordinate system: (a) a ball; (b) a cylinder-bounded solid.
(a) Spherical — a ball is origin-centred and round, so runs to a constant; . (b) Cylindrical — a circular cross-section with an axis; .
PR8 · synthesis · the one idea
PR8. In a sentence or two: what do Green's, Stokes', and the divergence theorem share, and how does Cauchy's integral formula fit?
All three say a boundary integral equals an interior integral of a derivative — the values on the edge determine what happens inside. Cauchy's integral formula is the same idea in Unit 1: on a contour fixes everywhere inside it. Boundary data determines the interior — in the plane, in space, and in the complex plane alike.
Three things to carry out of this chapter
- The divergence theorem trades a closed surface for the solid inside: , outward normal — flux out equals total sources within.
- Reach for it when the surface is closed and the divergence is simple; an open surface is integrated directly, or closed off with a cap.
- Green, Stokes, Gauss — and Cauchy's integral formula — are one idea: a boundary integral equals an interior integral of a derivative. The boundary remembers the inside.
Fifteen chapters — from where complex numbers live, through analytic functions, contour integration and residues, into double and triple integrals, the Jacobian, and the three great theorems of vector calculus — and underneath all of it, one idea: what happens on the boundary of a region determines what happens inside it. Conservation made that physical here in Chapter 15: nothing leaves a sealed region that its interior did not give up. You have the whole toolbox now, and — harder and more valuable — a feel for which tool a problem is asking for. That judgement is the thing exams really test, and the thing that lasts. Go well.
Same material, another voice
If a different explanation would help, this maps onto the chapter — free, from MIT OpenCourseWare:
- Read / watch: MIT 18.02SC — Part B: Flux and the Divergence Theorem — frames the theorem as flux through a closed surface equal to the triple integral over the solid it encloses.
✓ Chapter complete — and with it, the course. Your progress and every quiz answer are saved on this computer; revisit any chapter any time.