Exercises — Divergence theorem (Gauss's theorem) — statement, flux-divergence connection
Before we begin, one reminder of the two objects in play. The divergence is a single number at each point measuring "how much is being pumped out here per unit volume." The flux counts total escape across the skin. The theorem says these are equal — so we always pick whichever side is easier.
Level 1 — Recognition
Recall Solution 1.1
WHAT: Add the three "matching" partial derivatives. WHY each term: only sees the first component (its slope in is ); the middle ; the last . The cross-terms (like of ) are zero because has no in it. Answer: , a constant — the field pumps out at the same rate everywhere.
Recall Solution 1.2
Answer: (a). WHY: The theorem needs a closed surface — a complete skin enclosing a solid . (b) is a line integral of flow along a curve — that's circulation, handled by Stokes' theorem, not this one. (c) is an open surface (a bowl with no lid): it doesn't bound a solid by itself, so the theorem doesn't apply until you add a closing disk.
Level 2 — Application
Recall Solution 2.1
WHAT: Use the easy (volume) side. . WHY the volume side: the divergence is a constant , so the triple integral is just (volume of the ball) — no surface parameterisation at all. Answer: . (Check gives , matching the parent's Example 1.)
Recall Solution 2.2
WHAT: . Integrate over the cube. By symmetry the three terms are equal, so compute one and triple it: WHY: ; the and integrals each give (integrating over ). One term ; three identical terms . Answer: .
Recall Solution 2.3
(constant). Answer: .
Level 3 — Analysis
Recall Solution 3.1
WHAT: . The volume of the cylinder is . WHY this beats the surface way: the cylinder has three pieces of skin — a curved wall, a bottom disk, a top disk — each needing its own normal and integral. The divergence theorem collapses all three into one multiplication. Answer: .
Recall Solution 3.2
Volume side: , so .
Surface side (look at the figure): Only faces with a nonzero -normal contribute, because points purely in .

- Face at (outward normal ): , area ⟹ flux .
- Face at (outward normal ): ⟹ flux .
- The four side faces have normals , and has no or part, so .
Surface total . Both sides equal . ✓ WHY it works: the field grows in the -direction; only the front face at actually feels flow leaving, and it leaves at rate over unit area.
Recall Solution 3.3
So for every closed surface (with no singularity — this field is smooth everywhere). WHY: each component depends on a different variable than the derivative that would catch it. This is a solenoidal (divergence-free) field: it shuffles stuff around without creating or destroying any. Answer: .
Level 4 — Synthesis
Recall Solution 4.1
WHAT: in spherical coordinates, where is distance from the origin.
WHY spherical: the divergence depends only on , so the natural volume element is a thin spherical shell of radius , thickness , and area :

Recall Solution 4.2
WHAT: WHY volume side: integrating over the solid hemisphere is a single triple integral; the surface has a curved dome and a flat disk lid — two pieces we'd rather avoid. Use spherical shells but weighted by height: for the hemisphere, . Write , with , , : Split the pieces:
- .
- (since ).
- .
Answer: .
Level 5 — Mastery
Recall Solution 5.1
Naive (wrong) path: for one can show , tempting us to say . Why that's wrong: the field is singular at the origin — there, so and its partials are undefined at that point. The theorem requires continuous partials throughout , and the origin lives inside the unit ball. The hypothesis is violated, so we cannot apply the theorem over the whole ball. Correct path — compute the surface directly. On the unit sphere , so and (outward radial). Thus Answer: , not . This is exactly the Gauss's law behaviour — a point charge at the origin produces flux regardless of sphere size.
Recall Solution 5.2
WHAT: Let = shell . Now is smooth everywhere in (no origin), so the theorem applies: WHY the boundary has two pieces: consists of the outer unit sphere (outward normal ) and the inner sphere of radius with normal pointing into the hole, i.e. (outward from the shell means toward the origin). On the inner sphere with the outward-from-origin normal , the flux is (same computation as 5.1 with radius : times area ). With the shell's outward normal it flips sign to . Everything is consistent. Answer: shell flux ; the "missing" is hiding on the inner sphere around the singularity. This is the standard trick from the continuity / Gauss's-law derivations.
Recall Solution 5.3
WHAT: We are handed the divergence directly, so go straight to the volume side. In spherical shells , : WHY shells: the divergence depends only on distance from the centre, so slicing into constant- shells makes the integrand constant on each shell — the cleanest possible decomposition. Answer: .
Connections
- Flux integrals — every surface side on this page.
- Divergence and curl — the scalar we computed repeatedly.
- Gauss's law (electromagnetism) — Exercises 5.1–5.2 are its mathematical heart.
- Continuity equation — the singularity-exclusion trick appears there too.
- Stokes' theorem / Green's theorem — the circulation cousins (flow along, not across).