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.
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
It converts a hard surface integral into an often-easier volume integral — and vice versa — and underlies the very definition of divergence.
Unit systems
Where it holds
Dimensional analysis
Lagrange and Gauss used special cases for gravitation and electrostatics; Ostrogradsky gave the first general proof in 1826. The theorem became the bridge that turns Maxwell's integral laws into local differential equations.
Count every faucet and drain inside a room, and you've counted exactly how much water crosses its walls. You never have to look at the walls at all.
Add sources inside a closed box and watch the total wall-flux update to match the volume's net divergence, term for term.
- Gauss's law in electrostatics and gravitation
- Deriving continuity / conservation equations from integral form
- Finite-volume methods in computational fluid dynamics
- Flux budgets in climate and reservoir modeling
- The surface shape matters — only the enclosed sources matter for the total flux.
- Flux requires the field to point outward everywhere — it's the net of outflow minus inflow.
- It only works for spheres — any closed, piecewise-smooth surface qualifies.
Limiting cases
What if…
— the theorem reduces to the very definition of divergence.
The volume integral picks up a delta function; that's how a point charge yields .
Flux of F = r out of a sphere
- F:
- (x, y, z)
- R:
- 2
- Volume
Direct surface check
- F:
- (x, y, z)
- R:
- 2
- On |, ̂
- Surface area
- matches the volume integral