Mathematical Physicsundergraduate

Divergence (Gauss) Theorem

Also known as: Gauss's theorem · Ostrogradsky's theorem · Gauss–Ostrogradsky theorem

The total outward flux through a closed surface equals the sum of all the sources and sinks enclosed — surface bookkeeping equals volume bookkeeping.

∮∂VF⋅dA=∫V(∇⋅F) dV\oint_{\partial V} \mathbf{F}\cdot d\mathbf{A} = \int_V (\nabla\cdot\mathbf{F})\, dV
Live simulation
warming up the physics…

A closed box holds a uniform source. Outward flux arrows pierce all four walls, their length set by the enclosed source density. A running tally shows surface flux ∮F·dA equaling the volume integral ∫∇·F dV as the slider changes — including the sign flip for a sink.

Equivalent forms

∮SF⋅n^ dA=∫V∇⋅F dV\oint_S \mathbf{F}\cdot\hat{\mathbf{n}}\, dA = \int_V \nabla\cdot\mathbf{F}\, dV
Φ=∫Vρsource dV\Phi = \int_V \rho_{\text{source}}\, dV
It converts a hard surface integral into an often-easier volume integral — and vice versa — and underlies the very definition of divergence.