Gauss's Divergence Theorem
Gauss's Divergence Theorem
Introduction and Motivation
Gauss's divergence theorem is a fundamental result in vector calculus and a primary building block for deriving conservation laws in physics. The theorem connects the flux of a vector field through a closed surface to the divergence of that field within the enclosed volume. This relationship is essential for translating physical principles—such as conservation of mass, momentum, and energy—into partial differential equations (PDEs).
The physical intuition comes from considering a volume V with a closed surface S. At every point on the surface, there is a normal vector n pointing outward. If a vector field F (representing fluid flow, for instance) is present throughout space, then Gauss's theorem allows computation of how much of the material carried by F is fluxing through the surface—or equivalently, how the amount of that material inside the volume changes in time. This is essentially accounting: if a quantity like mass, momentum, or energy cannot be created or destroyed, then any change inside the volume must equal the net flow across its boundary.
Statement of Gauss's Divergence Theorem
Gauss's divergence theorem: The flux of a vector field F out of a closed surface S is equal to the integral of the divergence of F over the entire volume V enclosed by S.
Mathematically, the theorem is expressed as:
The left side is a surface integral measuring the flux: F⋅n gives the component of F pointing outward through each infinitesimal area element dS. Summing over the whole surface yields the net outward flow.
The right side is a volume integral of the divergence ∇⋅F, which measures the net "outflow per unit volume" at each point inside V.
This equivalence holds for any volume (sphere, rod, hockey‑puck shaped, etc.) provided F is a continuous vector field—no sharp discontinuities or shock waves.
Intuitive Proof: Cancellation of Internal Fluxes
To see why the two integrals are equal, imagine subdividing the volume V into many tiny boxes (like a fine grid). In each box, compute the divergence of F locally. Because F is continuous, the flow across any internal face shared by two neighboring boxes is equal in magnitude but opposite in direction. Hence, contributions from adjacent inner faces cancel out. The only faces that do not have a neighbor are those on the surface of V. The sum of the divergences in all boxes therefore reduces to the net flux across the outer surface—exactly the surface integral in Gauss's theorem.
This "cartoon" illustrates the fundamental idea: integrating the divergence over a volume is equivalent to measuring the net outward flux through its boundary.
Application: Volume of an Irregular Shape
A neat but less common application: to compute the volume of an irregular object, create a vector field F such that ∇⋅F=1 everywhere. Then, by Gauss's theorem,
The left side is the volume V, and the right side is a surface integral that might be easier to evaluate for complicated shapes.
Conservation Laws and Partial Differential Equations
Gauss's theorem is the key tool for deriving PDEs from integral conservation laws. The general pipeline is:
Physics provides a conservation law – e.g., mass, momentum, or energy is conserved.
Write an integral equation – The rate of change of the quantity inside a volume equals the net flux across its surface (since the quantity cannot be created or destroyed inside).
Apply Gauss's theorem – Convert the surface flux integral into a volume integral of the divergence.
Combine under a common integral – Move the time derivative inside the volume integral.
Use the "all volumes" argument – If the resulting integral vanishes for every possible volume V, then the integrand itself must be zero everywhere. This yields the PDE.
Example: Conservation of Mass (Mass Continuity Equation)
Let ρ(x,t) be the density (mass per unit volume) of a fluid, and let F(x,t) be the mass flux (often ρv, where v is the fluid velocity). The total mass in a fixed volume V is
Mass is conserved, so the rate of change of M must equal the net rate at which mass flows out through the surface S:
The minus sign appears because positive outward flux reduces the mass inside.
Now apply Gauss's theorem to the surface integral:
Bring the time derivative inside the volume integral (assuming V is fixed in space):
Combine under one integral:
Since this holds for any volume V, the integrand must be zero at each point (provided ρ and F are continuous). This gives the mass continuity equation:
where F=ρv is the mass flux. This PDE is fundamental in fluid mechanics and applies even to compressible flows, as long as the fields vary smoothly.
The General Pipeline: From Conservation Law to PDE
Conservation law: Some quantity Q (mass, momentum, energy) cannot be created or destroyed.
Integral form: dtd∭VqdV=−∬SJ⋅ndS, where q is the density of Q and J is the flux of Q.
Apply Gauss: dtd∭VqdV=−∭V(∇⋅J)dV.
Combine: ∭V(∂t∂q+∇⋅J)dV=0.
All‑volumes argument: ∂t∂q+∇⋅J=0.
This procedure generates many of the classical PDEs of physics—Navier‑Stokes, Maxwell's equations, heat equation, etc. The key requirement is continuity of q and J; if shock waves or other discontinuities exist, the PDE form may break down and only the integral (weak) form remains valid.
Summary
Gauss's divergence theorem equates the flux of a vector field through a closed surface to the volume integral of its divergence.
The theorem underlies all conservation laws by converting surface flux integrals into volume integrals, enabling derivation of PDEs.
The mass continuity equation ∂tρ+∇⋅(ρv)=0 is a direct consequence of applying Gauss's theorem to the conservation of mass.
The "all‑volumes argument" extracts the local PDE from an integral statement, relying on the continuity of the fields involved.

Ask anything
We've read this whole study set, so questions about it get the best answers.