Divergence Theorem

Let σ\sigma be a closed, piecewise smooth, orientable surface that encloses a solid region VV in R3\mathbb{R}^3. Suppose F\boldsymbol{F} is a vector field whose component functions have continuous first-order partial derivatives on an open set containing VV and its boundary σ\sigma. If n^\hat{n} is the outward unit normal field for σ\sigma,

∬σF⋅n^ dS=∭Vdiv F dV\iint_\sigma \boldsymbol{F} \cdot \hat{n}\,\text{d}S = \iiint_V \text{div}\,\boldsymbol{F}\,\text{d}V
Flux of F out through the closed surface σ (orange arrows, along n̂) equals the divergence summed over the solid R (green arrows spreading from a source).

The left side is the total outward flux through the boundary. The right side is the total divergence inside the solid. The theorem replaces a surface integral over σ\sigma with a triple integral over VV.

div⁡ F=∇⋅F=∂P∂x+∂Q∂y+∂R∂z\operatorname{div}\,\boldsymbol{F} = \nabla \cdot \boldsymbol{F} = \frac{\partial P}{\partial x} + \frac{\partial Q}{\partial y} + \frac{\partial R}{\partial z}
Here:
F\boldsymbol{F}

Pi+Qj+RkP\boldsymbol{i} + Q\boldsymbol{j} + R\boldsymbol{k}

VV
Solid enclosed by σ\sigma
n^\hat{n}
Outward unit normal

Interpreting Divergence

Divergence measures the local excess of outward flow over inward flow.

  • Positive divergence means that the field behaves like a source near the point.
  • Negative divergence means that the field behaves like a sink near the point.
  • Zero divergence means that the local outward and inward flow balance.

For a small solid GG centered at P0P_0,

div⁡ F(P0)=lim⁡G→P01Vol⁡(G)∬∂GF⋅n^ dS\operatorname{div}\,\boldsymbol{F}(P_0) = \lim_{G \to P_0} \frac{1}{\operatorname{Vol}(G)}\iint_{\partial G} \boldsymbol{F} \cdot \hat{n}\,\text{d}S

The divergence theorem is the corresponding whole-region statement. It adds the local flux densities throughout VV.

Applying the Theorem

Use the following procedure when the surface is closed.

  • Identify the solid VV enclosed by the surface.
  • Check that the normal is outward.
  • Compute div⁡ F\operatorname{div}\,\boldsymbol{F}.
  • Set up ∭Vdiv⁡ F dV\iiint_V \operatorname{div}\,\boldsymbol{F}\,\text{d}V using convenient coordinates.
  • Evaluate the triple integral.

Examples

Sphere

Find the outward flux of F=xi+yj+zk\boldsymbol{F} = x\boldsymbol{i} + y\boldsymbol{j} + z\boldsymbol{k} through the sphere x2+y2+z2=a2x^2 + y^2 + z^2 = a^2.

Solution Reveal Hide
div⁡ F=1+1+1=3\operatorname{div}\,\boldsymbol{F} = 1 + 1 + 1 = 3

Let VV be the solid ball of radius aa, with volume 43πa3\dfrac{4}{3}\pi a^3.

Φ=∭V3 dV=3⋅43πa3=4πa3\Phi = \iiint_V 3\,\text{d}V = 3 \cdot \frac{4}{3}\pi a^3 = 4\pi a^3

Cube

Find the outward flux of F=x2i+y2j+z2k\boldsymbol{F} = x^2\boldsymbol{i} + y^2\boldsymbol{j} + z^2\boldsymbol{k} through the surface of the cube 0≤x,y,z≤10 \le x, y, z \le 1.

Solution Reveal Hide
div⁡ F=2x+2y+2z\operatorname{div}\,\boldsymbol{F} = 2x + 2y + 2zΦ=∫01∫01∫012(x+y+z) dx dy dz\Phi = \int_0^1 \int_0^1 \int_0^1 2(x + y + z)\,\text{d}x\,\text{d}y\,\text{d}z

Each term integrates to 12\dfrac{1}{2} over the unit cube, so the 3 terms add to 2⋅3⋅122 \cdot 3 \cdot \dfrac{1}{2}.

Φ=3\Phi = 3

Hemisphere

Find the upward flux of F=zk\boldsymbol{F} = z\boldsymbol{k} through the hemisphere x2+y2+z2=1x^2 + y^2 + z^2 = 1, z≥0z \ge 0.

Solution Reveal Hide

The hemisphere is not closed. Close it with the disk D={x2+y2≤1, z=0}D = \{x^2 + y^2 \le 1,\ z = 0\}. The closed surface encloses the solid half-ball VV.

div⁡ F=1\operatorname{div}\,\boldsymbol{F} = 1∭V1 dV=12⋅43π=2π3\iiint_V 1\,\text{d}V = \frac{1}{2} \cdot \frac{4}{3}\pi = \frac{2\pi}{3}

The outward normal on DD is −k-\boldsymbol{k}. On DD, z=0z = 0, so

∬DF⋅(−k) dS=∬D(−z) dS=0\iint_D \boldsymbol{F} \cdot (-\boldsymbol{k})\,\text{d}S = \iint_D (-z)\,\text{d}S = 0

The flux across the closed surface is the sum of the flux across the hemisphere and across DD.

Φ=2π3−0=2π3\Phi = \frac{2\pi}{3} - 0 = \frac{2\pi}{3}
Written by November 12, 2026 2 min read
Was this helpful?