The divergence theorem (Gauss's theorem) connects a volume integral of divergence to a surface integral of flux:
where is the closed surface bounding the volume , with outward-pointing normal.
Physical meaning — The total flux leaving a closed surface equals the total "source strength" inside the volume.
When to use it
| Situation | Direction |
|---|---|
| Surface integral is hard, divergence is simple | Surface volume |
| Volume integral is hard, flux is simple | Volume surface |
| everywhere | Flux through any closed surface is zero |
Example — Verify for over the unit sphere:
- Volume integral:
- Flux integral: (confirms the theorem)
Applications in physics
- Gauss's law:
- Continuity equation:
Key insight: The divergence theorem reduces a 2D surface integral to a 3D volume integral (or vice versa). Choose whichever side is easier to compute.
Common pitfall: The divergence theorem needs a closed surface enclosing a volume where the field is smooth. An open surface, or a singularity inside (like at the origin), voids the equality.