Fields and vector calculus

1813–1826

The divergence theorem

Carl Friedrich Gauss; Mikhail Ostrogradsky

Can you count what is inside a box without opening it?

Gauss proved a special case in 1813 while studying gravity; Ostrogradsky stated it in general in 1826. It says you can count what is created inside a region just by watching what crosses its boundary. It is why the gravity outside a round planet is the same as if all its mass sat at the centre.

First, make a guess

In a flow where nothing is created or destroyed inside a loop, the net flow out of the loop is…

How they figured it out

Gauss proved a version in 1813 while working out the gravitational pull of slightly squashed spheres, the shape of the Earth. The Ukrainian-born mathematician Mikhail Ostrogradsky gave a general proof in 1826; Green had a version too.

Physicists often call it Gauss’s theorem; in Russia it is Ostrogradsky’s. The idea is simple: whatever is created inside a region has to leave through its boundary.

The equation

∮SF⋅n dS=∫V∇⋅F dV\oint_S \mathbf F\cdot\mathbf n\,dS = \int_V \nabla\cdot\mathbf F\,dV

What flows out through the skin of a region equals what is produced inside it.

Everyday echoCount cars leaving a town on its ring road, and you know how many set off from inside.

See it in real life

Counting a stadium from the gates

To know how many people are inside a stadium, you don’t need to count the seats: count everyone through the gates. The rain falling on a city equals the water leaving through its drains and rivers, plus what soaks in.

Where engineers use it

  • Gauss’s law

    Electric fields of charged spheres, cables and capacitors are found in one line with it.

  • Fluid flow and CFD

    Conservation of mass in pipes and around wings is the divergence theorem.

Worked example: Gravity outside a planet

  1. Flux through a sphere of radius rr: g⋅4πr2g \cdot 4\pi r^2.
  2. Equals 4πGM4\pi G M inside.
  3. So g=GM/r2g = GM/r^2, as if all mass sat at the centre.