4.4.33 · D2Multivariable Calculus

Visual walkthrough — Divergence theorem (Gauss's theorem) — statement, flux-divergence connection

3,288 words15 min readBack to topic
Recall The three hypotheses (in plain words now, symbols later)

The finished result will hold whenever:

  • The region is finite and closed off — a solid lump you could dip in paint, with a definite skin all the way around (mathematicians call this compact: closed and bounded).
  • The skin is made of finitely many smooth patches — like a soccer ball or a cube: smooth panels meeting along edges and corners. This is called piecewise-smooth. Step 4 explains why the edges and corners cause no trouble.
  • The field never blows up inside — its rate-of-change (the derivatives we meet in Step 2) stays finite everywhere in ; this is the continuous first partial derivatives condition. Step 7 shows exactly what goes wrong if it fails.

We phrase these in words here on purpose. The moment a symbol like , "flux," or "divergence" is needed, its own definition box below earns it on a picture first.


Step 0 — What is a vector field, and what is "flow across a wall"?

Now the key idea we need over and over: how much fluid crosses a flat wall per second?

Figure — Divergence theorem (Gauss's theorem) — statement, flux-divergence connection

Look at the wall in the figure. It has area and a chosen arrow (length 1) pointing straight out of it — the outward normal (this is the very symbol the finished theorem will need; we are defining it now, on the picture, before using it). The fluid arrow hits the wall at an angle.

Why the dot product and not something else? We need a single number "how aligned are two arrows," where perfectly aligned gives full value, perpendicular gives zero, opposite gives negative (flow coming in). The dot product is exactly that machine. This one quantity — flow-across — is the atom of everything below.


Step 1 — Flux out of the two -faces of a tiny box

Start with the two walls facing the -direction (the left and right walls in the figure).

Figure — Divergence theorem (Gauss's theorem) — statement, flux-divergence connection
  • Right wall sits at . Its outward normal is . The flow crossing it is the -push evaluated there, times the wall area :
  • Left wall sits at . Its outward normal points the other way, , so its flow is :

WHY the subtraction: a positive pushes out on the right but in on the left. Net escape is right-outflow minus left-inflow. That difference is the star of the next step.


Step 2 — Turn the difference into a slope (the derivative appears)

We have : how much changed as we stepped to the right. That is exactly what a derivative measures.

For a tiny step, "change = slope × step":

Here each term earns its place:

  • — the straight-line prediction: slope times step.
  • — the leftover error, the amount the true curve bends away from that straight line over the step. The number shrinks to as — that is precisely the definition of the derivative (the slope is the value the ratio approaches).
Figure — Divergence theorem (Gauss's theorem) — statement, flux-divergence connection

So, keeping only the surviving term,

WHAT we just did: replaced two face-flows by one clean expression — a slope times the box's volume , plus an error we just proved is negligible. This is where surfaces quietly become volumes.


Step 3 — Repeat for and : the divergence is born

The -argument used nothing special about . Rerun it for the two -faces (using ) and the two -faces (using ) — each with its own leftover error that vanishes for the same reason:

Figure — Divergence theorem (Gauss's theorem) — statement, flux-divergence connection

Add all three pairs — the total flow out of the whole tiny box:

WHY this matters: we have proved the theorem for one infinitesimal box. The rest is bookkeeping to grow it to a big region.


Step 4 — Stack the boxes: interior walls cancel (and edges/corners are harmless)

Fill the whole solid region with a grid of these tiny boxes.

Figure — Divergence theorem (Gauss's theorem) — statement, flux-divergence connection

Look at any wall shared by two neighbouring boxes (highlighted in amber). For the left box that wall's outward normal points right; for the right box the same wall's outward normal points left. So:

WHAT survives: only walls with no neighbour on the other side — the outer walls. Together those outer walls form a staircase-shaped approximation to the boundary surface .


Step 5 — Sum everything and shrink the boxes (why the sums become integrals)

Add the box law of Step 3 over all boxes. On the left we sum divergence×volume; on the right we sum face-flows, but by Step 4 only exterior faces survive:

Here deserves a name of its own.

Figure — Divergence theorem (Gauss's theorem) — statement, flux-divergence connection

Now let — boxes shrink to points, and the jagged outer surface hugs the true smooth surface (the figure shows the staircase closing in on the sphere).


Step 6 — Edge case: the outward normal is not optional

Everything above used outward normals so that outflow counts as positive.

Figure — Divergence theorem (Gauss's theorem) — statement, flux-divergence connection

If you accidentally use the inward normal , every dot product flips sign:


Step 7 — Degenerate case: a hidden source inside (singularity)

The box argument assumed is smooth (finite slopes — the "continuous first partials" hypothesis) at every interior point. What if there is a spot where blows up?

Figure — Divergence theorem (Gauss's theorem) — statement, flux-divergence connection

Take the point-source field Away from the origin , so the naive inside-sum would give . But the field is undefined at the origin — no tiny box can sit there, so Step 3 fails at that one point (the "continuous first partials on " hypothesis is violated).


The one-picture summary

Figure — Divergence theorem (Gauss's theorem) — statement, flux-divergence connection

One picture, the whole story: tiny boxes tile the region; inside each box divergence measures how much fluid appears; shared walls cancel; only the outer skin's flux survives; shrinking the grid turns the sums into the two integrals of the boxed theorem.

Recall Feynman retelling of the walkthrough

We started with a single question — how much fluid crosses a wall? — and answered it with times the wall's area: only the part pointing straight through escapes. That number is the flux. Then we built the smallest possible room, a tiny box, and added up its six walls two at a time. Each pair gave a difference of the field across the box, and a difference across a tiny step is just a slope — a derivative — plus a tiny bend-error that shrinks faster than the box does, so it never matters. Add the three slopes and you get one number, the divergence, times the box's volume: that's how much the box leaks. Next we tiled the whole region with these boxes and noticed something beautiful: wherever two boxes touch, what leaks out of one leaks into the other, so those inner walls cancel completely. Even the boxes sitting on the ball's edges and corners carry vanishingly little area, so they don't spoil anything. Only the outer skin is left. Add up "leak per box" over all boxes and it equals "flow across the skin." Those two adding-ups are Riemann sums, and Riemann sums of continuous things become integrals as the pieces vanish — so we get the volume integral of divergence and the flux integral over the surface. That equality — inside production equals outside escape — is the divergence theorem. Two warnings: point the normals outward or every sign flips, and never run a box over a spot where the field explodes — cut it out first.

Recall Quick self-check

Why do interior faces cancel? ::: Neighbouring boxes share a wall with opposite outward normals, so their flux contributions are equal and opposite. What does one tiny box give? ::: Net flux out , with an error that shrinks faster than . Why do the box sums become integrals? ::: They are Riemann sums of continuous functions; by definition such sums converge to the integral as the pieces shrink to zero. Why don't edges and corners of spoil the proof? ::: The boxes touching a finite set of edges/corners have total area shrinking like or , so their flux vanishes in the limit. What is built from? ::: The little flat face areas (, etc.) of the tiling boxes, shrunk to an infinitesimal tile of . What breaks the derivation, and the fix? ::: A singularity inside ; excise it with a small sphere and handle its flux separately.


Connections

  • Flux integrals — the skin side we summed from box faces.
  • Divergence and curl — divergence is the flux-per-box number of Step 3.
  • Stokes' theorem — same tile-and-cancel idea for circulation along a boundary curve.
  • Green's theorem — the flat 2D version of this walkthrough.
  • Gauss's law (electromagnetism) — the point-source case of Step 7.
  • Continuity equation — the local box law in motion over time.