Mathwords logoMathwords

Divergence Theorem — Definition, Formula & Examples

The Divergence Theorem states that the total outward flux of a vector field through a closed surface equals the integral of the divergence of that field over the volume enclosed by the surface. It connects what happens on the boundary of a region to what happens inside.

Let EE be a simple solid region in R3\mathbb{R}^3 bounded by a closed, piecewise-smooth surface SS with outward-pointing unit normal n^\hat{n}. If F\mathbf{F} is a vector field with continuous first partial derivatives on an open region containing EE, then SFdS=EFdV\iint_S \mathbf{F} \cdot d\mathbf{S} = \iiint_E \nabla \cdot \mathbf{F} \, dV.

Key Formula

SFdS=E(F)dV\iint_S \mathbf{F} \cdot d\mathbf{S} = \iiint_E (\nabla \cdot \mathbf{F}) \, dV
Where:
  • SS = Closed, outward-oriented surface bounding the solid region E
  • EE = Solid region enclosed by S
  • F\mathbf{F} = Vector field defined on and around E
  • F\nabla \cdot \mathbf{F} = Divergence of F
  • dSd\mathbf{S} = Outward-pointing vector surface element, equal to \hat{n}\,dS

How It Works

To apply the theorem, first compute F\nabla \cdot \mathbf{F}, the divergence of the vector field. Then set up and evaluate the triple integral of that divergence over the enclosed volume EE. The result equals the flux integral SFdS\iint_S \mathbf{F} \cdot d\mathbf{S} without ever parameterizing the surface. This is especially useful when the surface integral is difficult to compute directly but the volume integral is straightforward — for instance, when the divergence simplifies to a constant.

Worked Example

Problem: Compute the outward flux of F=x,y,z\mathbf{F} = \langle x, y, z \rangle through the sphere x2+y2+z2=4x^2 + y^2 + z^2 = 4.
Compute the divergence: Find F\nabla \cdot \mathbf{F} by taking partial derivatives.
F=xx+yy+zz=1+1+1=3\nabla \cdot \mathbf{F} = \frac{\partial x}{\partial x} + \frac{\partial y}{\partial y} + \frac{\partial z}{\partial z} = 1 + 1 + 1 = 3
Set up the volume integral: The region EE is the ball of radius 2. Since the divergence is constant, the integral equals 3 times the volume of EE.
E3dV=343π(2)3=332π3\iiint_E 3 \, dV = 3 \cdot \frac{4}{3}\pi (2)^3 = 3 \cdot \frac{32\pi}{3}
Evaluate: Simplify to get the flux.
=32π= 32\pi
Answer: The outward flux through the sphere is 32π32\pi.

Why It Matters

The Divergence Theorem is essential in physics and engineering: it underlies Gauss's law in electrostatics, the continuity equation in fluid dynamics, and heat flow analysis. In multivariable calculus courses, it is one of the capstone results alongside Stokes' and Green's theorems, unifying the relationship between integrals over regions and their boundaries.

Common Mistakes

Mistake: Applying the theorem to a surface that is not closed.
Correction: The Divergence Theorem requires a fully closed surface bounding a solid region. If the surface has a boundary curve (like a hemisphere without its base), you must either cap the surface to close it or use a different method such as Stokes' Theorem.