01 / 20

The Divergence
Theorem

Connect volume integrals of divergence to surface integrals of flux: the fundamental bridge between local and global behavior of vector fields.

Multivariable Calculus

What Is Flux?

Flux measures how much of a vector field passes through a surface. Imagine water flowing through a net: the flux tells you the total rate of flow through that net.

\( \mathbf{n} \)
Surface S
\( \mathbf{F} \) (vector field)

What Is Divergence?

The divergence of a vector field at a point measures the rate at which "stuff" expands out from (or compresses into) that point. Positive divergence means a source; negative means a sink.

Positive Divergence
Net outward flow: the point acts as a source (e.g., air expanding from a heat source).
Negative Divergence
Net inward flow: the point acts as a sink (e.g., water draining into a hole).
Zero Divergence
Incompressible flow: what enters any tiny region also exits (e.g., steady water flow).

Connecting Local to Global

Divergence is a local property: it describes what happens at each point. Flux is a global property: it describes what happens across an entire surface. The Divergence Theorem connects the two.

Local (point-wise) Divergence
\( \nabla \cdot \mathbf{F} \) at each point
Volume integral Global (surface) Flux
\( \mathbf{F} \cdot \mathbf{n} \) over boundary
Surface integral =

The Divergence Theorem: Formal Statement

E (volume) S (boundary)
\( \mathbf{n} \)

When Does It Apply?

1
Closed surface: \(S\) must fully enclose the volume \(E\) with no boundary curves or openings.
2
Outward orientation: the unit normal \(\mathbf{n}\) on \(S\) points away from the interior of \(E\).
3
Smooth field: \(\mathbf{F}\) must have continuous first partial derivatives throughout all of \(E\) (including the boundary).
4
Simple solid region: \(E\) is bounded by a piecewise-smooth surface (cubes, spheres, cylinders, or unions of them all work).

Divergence vs. Stokes' Theorem

Divergence Theorem Stokes' Theorem
Relates Volume integral ↔ Surface integral Surface integral ↔ Line integral
Operator \(\nabla \cdot \mathbf{F}\) (divergence) \(\nabla \times \mathbf{F}\) (curl)
Surface type Closed (encloses a volume) Open (has a boundary curve)
Orientation Outward normal Right-hand rule with boundary
Dimension 3D → 2D 2D → 1D

How to Apply the Theorem

1
Identify the setup: You need a closed surface \(S\) enclosing a solid region \(E\), and a vector field \(\mathbf{F}\).
2
Decide the easier side: Is the surface integral or the volume integral simpler to compute?
3
Compute divergence: \(\nabla \cdot \mathbf{F} = \frac{\partial P}{\partial x} + \frac{\partial Q}{\partial y} + \frac{\partial R}{\partial z}\).
4
Set up the volume integral: Choose coordinates (Cartesian, cylindrical, or spherical) suited to the shape of \(E\).
5
Evaluate: Integrate \(\iiint_E (\nabla \cdot \mathbf{F})\, dV\). The result equals the flux \(\iint_S \mathbf{F} \cdot d\mathbf{S}\).

Example 1: Cube

Find the flux of \(\mathbf{F} = \langle x, y, z \rangle\) outward through the surface of the unit cube \([0,1]^3\).

E 0 1
\( \mathbf{n} \)

Why the Theorem Helped

Without the Divergence Theorem, we would need to compute six separate surface integrals (one per face of the cube) and add them. With the theorem, we reduced it to a single, trivial volume integral.

Without Theorem
6 surface integrals, each requiring parametrization, normal computation, and evaluation.
With Theorem
1 divergence computation + 1 volume integral = answer in two lines.

Example 2: Sphere

Find the flux of \(\mathbf{F} = \langle x^2, y^2, z^2 \rangle\) outward through the sphere \(x^2 + y^2 + z^2 = 4\).

The Power of Symmetry

When the divergence is an odd function and the region is symmetric about the origin, the volume integral is automatically zero. This is a powerful shortcut.

+ − x z Origin

Example 3: Cylinder

Compute the outward flux of \(\mathbf{F} = \langle xz, yz, 3z^2 \rangle\) through the closed cylinder \(x^2 + y^2 \le 1\), \(0 \le z \le 2\).

Common Mistakes

✕ Open Surface
Applying the theorem to a surface that isn't closed. A hemisphere alone is not a closed surface: you must include the disk at the base.
✕ Wrong Normal
Using an inward normal instead of outward. This flips the sign of the entire flux. Always verify the normal points away from \(E\).
✕ Singularity Inside
Forgetting that \(\mathbf{F}\) must be smooth throughout \(E\). A field like \(\mathbf{r}/|\mathbf{r}|^3\) has a singularity at the origin.

Summary at a Glance

Concept Details
Theorem \(\displaystyle\iiint_E (\nabla \cdot \mathbf{F})\, dV = \iint_S \mathbf{F}\cdot d\mathbf{S}\)
Left Side Volume integral of divergence over solid \(E\)
Right Side Outward flux through closed boundary \(S\)
Requirements Closed \(S\), outward \(\mathbf{n}\), smooth \(\mathbf{F}\)
Best For Converting hard surface integrals to easy volume integrals (or vice-versa)
Coordinates Match to geometry: Cartesian, cylindrical, or spherical

Question 1 of 5

What is \(\nabla \cdot \mathbf{F}\) if \(\mathbf{F} = \langle 3x^2, -2y, 5z \rangle\)?

Question 2 of 5

The Divergence Theorem relates a volume integral to which other type of integral?

Question 3 of 5

Find the outward flux of \(\mathbf{F} = \langle x, y, z \rangle\) through the sphere \(x^2 + y^2 + z^2 = 9\).

Question 4 of 5

A student tries to apply the Divergence Theorem to the upper hemisphere \(z = \sqrt{4 - x^2 - y^2}\) alone. Why does this fail?

Question 5 of 5

If \(\nabla \cdot \mathbf{F} = 0\) everywhere inside a closed surface \(S\), what is the outward flux of \(\mathbf{F}\) through \(S\)?