Divergence theorem (Gauss's theorem)

Database › Mathematics › Pure mathematics › Analysis

ANA-0003TheoremUndergraduate

The integral of the divergence of a vector field over a volume equals the outward flux of the field through the boundary surface.

$$\int_V\nabla\cdot\mathbf F\,dV=\oint_S\mathbf F\cdot d\mathbf S,\qquad\int_V(\phi\nabla^2\psi-\psi\nabla^2\phi)\,dV=\oint_S(\phi\nabla\psi-\psi\nabla\phi)\cdot d\mathbf S$$

Explanation

$d\mathbf S$ points outward. The theorem converts conservation laws between integral and differential form (continuity equation, Gauss's law). Applying it to $\phi\nabla\psi$ gives Green's first identity $\int(\phi\nabla^2\psi+\nabla\phi\cdot\nabla\psi)\,dV=\oint\phi\nabla\psi\cdot d\mathbf S$, and antisymmetrising gives the second identity above, the basis of Green's-function methods and uniqueness proofs.

Related forms: $\int_V\nabla\phi\,dV=\oint\phi\,d\mathbf S$ and $\int_V\nabla\times\mathbf F\,dV=\oint d\mathbf S\times\mathbf F$. Singularities inside $V$ (e.g. point charges) must be excluded by small spheres or handled with delta functions.

Example 1

Compute the flux of $\mathbf F=(x^3,y^3,z^3)$ out of the sphere $r=a$.

Solution

$\nabla\cdot\mathbf F=3(x^2+y^2+z^2)=3r^2$, so the flux is $\int_0^a3r^2\,4\pi r^2dr=\frac{12\pi a^5}{5}$.

Example 2

Show that the flux of $\hat{\mathbf r}/r^2$ through any closed surface enclosing the origin is $4\pi$, and through one not enclosing it is $0$.

Solution

For $r\neq0$, $\nabla\cdot(\hat{\mathbf r}/r^2)=\frac1{r^2}\partial_r(r^2\cdot r^{-2})=0$. If the origin is outside $V$, the theorem gives zero flux. If inside, cut out a small sphere: the flux through the outer surface equals that through the small sphere, $\frac{1}{\epsilon^2}4\pi\epsilon^2=4\pi$. Equivalently $\nabla\cdot(\hat{\mathbf r}/r^2)=4\pi\delta^3(\mathbf r)$.

Related entries