Skip to content

The divergence theorem

State and use the divergence theorem, that the flux of a field out of a closed surface equals the integral of its divergence over the solid inside, read divergence as a source strength, and close an open surface to turn a hard flux into an easy triple integral.

It opens on

Water streams out from the origin with velocity ⟨x, y, z⟩. Counting what crosses a ball of radius 2 means a surface integral over a sphere. Could we get the same flux by adding up something at every point inside the ball instead?

Why it matters

The divergence theorem turns a flux through a surface with many faces or a curved wall into one triple integral, and it says that what flows out of a region is exactly what its sources make inside.

Good to know first

  • Stokes' theorem: a surface with a rim has circulation equal to the flux of the curl, and a closed surface has no rim, so the flux of a curl through it is 0
  • Spherical coordinates: a ball of radius a has volume (4/3)πa³, from ∭ ρ² sin φ dρ dφ dθ
  • Curl and divergence: div F = ∇ · F = Px + Qy + Rz is a number, the outflow of F per unit volume, positive at a source and negative at a sink

Step by step

  1. The theorem and the ball

    State the divergence theorem with the outward normal, and verify it for F = ⟨x, y, z⟩ on the ball of radius 2 by computing the flux and the triple integral separately.

    On S the outward unit normal at (x, y, z) is n = ⟨x, y, z⟩/2, since a sphere's normal is along its radius. So F · n = (x² + y² + z²)/2 = 4/2 = 2.

    A common mix-up

    Any normal direction will do, or the inward one.

    In fact: The theorem uses the outward normal, with the inward normal the flux of ⟨x, y, z⟩ would be −32π, opposite to the triple integral 32π.

  2. The cube, sources and sinks

    Compute the flux out of the unit cube for F = ⟨x², y², z²⟩ face by face and as a triple integral, and use the sign of the divergence to tell a source from a sink.

    On the face x = 1 the outward normal is n = i, so F · n = x² = 1, and the flux through it is 1 · 1 = 1.

    A common mix-up

    Divergence positive means the arrows point away from the point.

    In fact: It means net outflow per unit volume; arrows that fan out but weaken can have divergence 0, and the theorem counts the net.

  3. Closing an open surface

    Find the flux out of the dome of the upper half ball for F = ⟨x, y, z²⟩ by closing it with the flat floor and using the divergence theorem, and see that the closed-surface fact for curls is the divergence theorem applied to ∇ × F.

    ∇ · F = 1 + 1 + 2z = 2 + 2z, so the flux out of the closed surface is ∭_E (2 + 2z) dV = 2 · (16π/3) + 2 · ∭_E z dV.

    A common mix-up

    The divergence theorem works on the open dome directly.

    In fact: It needs a closed surface; add the floor, compute the flux through it, and subtract.

Try it

Find the flux of F = ⟨x, y, z⟩ out of the ball of radius 3 using the triple integral of the divergence.Answer

108π

Hint: 3 · (4/3)π · 27

For F = ⟨x, y, z⟩ and the unit cube 0 ≤ x, y, z ≤ 1 find the flux out of the cube.Answer

3

Hint: ∇ · F = 3 and the volume is 1

Find the flux of F = ⟨0, 0, z⟩ upward through the dome of radius 2, using the flat floor in z = 0 with n = −k.Answer

16π/3

Hint: ∇ · F = 1, volume 16π/3, and F · n = 0 on the floor

Do both sides again for a ball of radius 1. What do you get?Answer

4π (flux 1 · 4π, and 3 · (4/3)π)

For the swirl F = ⟨−y, x, 0⟩, what is ∇ · F and what is the flux out of any closed surface?Answer

0 and 0, since the swirl neither makes nor swallows water

The divergence theorem

30 minutes every month. No card.