In vector calculus, the divergence theorem (sometimes named after Gauss or Ostrogradsky) states that the net flux of a vector field through a closed surface is equal to the divergence of the field integrated over the volume enclosed by the surface .

where is oriented outwards, and for a closed surface we can use the closed integral symbol. The bounding surface of is sometimes denoted . The 2D case is given by Green’s theorem.

Thinking geometrically, what we are saying is that gives us the total vector field generated inside (if we evaluate at a point, how much of the field is generated at the point), and that gives how much leaves the boundary. So the total field generated within the region is equal to the field that is leaving the boundary.

This lets us skip some steps in computations. Normally when computing flux we’d have to parameterise, compute , but by divergence theorem we have an alternate way to tackle the problem.

For regions with multiple bounding surfaces, it’s easier to take the triple integral.

The right-hand size dot product result is , a scalar density. The left-hand side surface is commonly called the Gaussian surface.

Notes and tips

  • When computing the left side, remember to take the flux through every surface! Not just the main one.

See also