01 / 21

Divergence Theorem
& Flux

Master the connection between volume integrals and surface integrals using the powerful Divergence Theorem to compute flux through closed surfaces.

Calculus 3

What is Flux?

Flux measures the total amount of a vector field that "flows through" a surface. Imagine water flowing through a net: flux tells you the net rate of flow across that surface.

\(\hat{\mathbf{n}}\)
Surface \(S\)
\(\mathbf{F}\) (vector field)
Flux = total flow through \(S\)

The Surface Integral for Flux

The flux of a vector field \(\mathbf{F}\) through a surface \(S\) with outward unit normal \(\hat{\mathbf{n}}\) is:

\(\mathbf{F}\)
The vector field whose flow we measure (e.g., velocity, electric field)
\(\hat{\mathbf{n}}\)
The outward unit normal to the surface at each point
\(dS\)
An infinitesimal surface area element

What is Divergence?

Divergence measures the tendency of a vector field to "spread out" or "converge" at a point. It is a scalar quantity computed from a vector field.

\(\nabla \cdot \mathbf{F} > 0\)
Source: field spreads outward (like air expanding)
\(\nabla \cdot \mathbf{F} < 0\)
Sink: field converges inward (like a drain)
\(\nabla \cdot \mathbf{F} = 0\)
Incompressible: no net expansion or compression

The Divergence Theorem

The Divergence Theorem (also called Gauss's Theorem) provides a powerful bridge: it equates a surface integral over a closed surface to a volume integral over the enclosed region.

Visualizing the Theorem

S
\(\oiint_S \mathbf{F} \cdot d\mathbf{S}\)
=
E
\(\iiint_E (\nabla \cdot \mathbf{F}) \, dV\)

When Can You Use It?

The Divergence Theorem has specific requirements. All three must be met:

1
Closed surface: \(S\) must fully enclose a 3D region \(E\) with no holes or gaps.
2
Smooth or piecewise-smooth: The surface \(S\) and the vector field \(\mathbf{F}\) must be smooth enough (continuous partial derivatives) on and inside \(E\).
3
Outward orientation: The surface normal \(\hat{\mathbf{n}}\) must point outward from the enclosed volume.

Divergence vs. Stokes' Theorem

Divergence Theorem Stokes' Theorem
Converts Surface integral → Volume integral Line integral → Surface integral
Operator \(\nabla \cdot \mathbf{F}\) (divergence) \(\nabla \times \mathbf{F}\) (curl)
Boundary Closed surface \(S\) bounds volume \(E\) Closed curve \(C\) bounds surface \(S\)
Dimension 2D Boundary → 3D Region 1D Boundary → 2D Region
Result type Scalar (total flux) Scalar (total circulation)

How to Apply the Theorem

1
Verify closure: Confirm \(S\) is a closed surface bounding a solid region \(E\).
2
Compute divergence: Find \(\nabla \cdot \mathbf{F} = \frac{\partial P}{\partial x} + \frac{\partial Q}{\partial y} + \frac{\partial R}{\partial z}\).
3
Set up the volume integral: Choose appropriate coordinates (Cartesian, cylindrical, or spherical) for region \(E\).
4
Evaluate: Compute \(\displaystyle \iiint_E (\nabla \cdot \mathbf{F}) \, dV\). This equals the flux through \(S\).

Example 1: Flux Through a Cube

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

\(E\)
0 1
\(y\)
\(x\)
\(z\)

Example 1: Completing the Integral

Since \(\nabla \cdot \mathbf{F} = 3\) is constant, the volume integral becomes:

1
Divergence: \(\nabla \cdot \mathbf{F} = 3\) (constant)
2
Volume of unit cube: \(1 \times 1 \times 1 = 1\)
3
Result: The total outward flux through all six faces is \(\boxed{3}\)

Example 2: Flux Through a Sphere

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

\(r=2\)
\(E\)

Example 2: Spherical Integration

In spherical coordinates: \(x = \rho \sin\phi \cos\theta\), \(y = \rho \sin\phi \sin\theta\), \(z = \rho \cos\phi\), and \(dV = \rho^2 \sin\phi \, d\rho \, d\phi \, d\theta\).

The integral becomes:

Example 3: Cylindrical Region

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

Using cylindrical coordinates \((r, \theta, z)\) with \(dV = r \, dr \, d\theta \, dz\):

Common Mistakes to Avoid

Open Surface
Applying the theorem to a surface that is not closed (e.g., just a hemisphere without a base). You must close the surface first or use a different method.
Wrong Orientation
Forgetting that \(\hat{\mathbf{n}}\) must point outward. If you use inward normals, the sign of the flux flips.
Wrong \(dV\)
Forgetting the Jacobian: use \(r \, dr \, d\theta \, dz\) for cylindrical and \(\rho^2 \sin\phi \, d\rho \, d\phi \, d\theta\) for spherical.

Summary: Key Formulas

Concept Formula Output
Flux (direct) \(\displaystyle\oiint_S \mathbf{F} \cdot d\mathbf{S}\) Scalar
Divergence \(\nabla \cdot \mathbf{F} = P_x + Q_y + R_z\) Scalar field
Divergence Theorem \(\displaystyle\oiint_S \mathbf{F} \cdot d\mathbf{S} = \iiint_E \nabla \cdot \mathbf{F} \, dV\) Scalar
Cartesian \(dV\) \(dx \, dy \, dz\) Volume
Cylindrical \(dV\) \(r \, dr \, d\theta \, dz\) Volume
Spherical \(dV\) \(\rho^2 \sin\phi \, d\rho \, d\phi \, d\theta\) Volume

Question 1 of 5

What is the divergence of \(\mathbf{F} = \langle 3x^2, \, 5y, \, -2z \rangle\)?

Question 2 of 5

The Divergence Theorem converts a surface integral into what kind of integral?

Question 3 of 5

If \(\nabla \cdot \mathbf{F} = 5\) everywhere and the region \(E\) is a sphere of radius 2, what is the outward flux through the surface of \(E\)?

Question 4 of 5

Which of the following is required to apply the Divergence Theorem?

Question 5 of 5

The flux of \(\mathbf{F} = \langle y, -x, z \rangle\) through any closed surface is always: