Fiveable

Calculus IV Unit 25 Review

QR code for Calculus IV practice questions

25.2 Applications of the divergence theorem

25.2 Applications of the divergence theorem

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
Calculus IV
Unit & Topic Study Guides

Physical Applications

Electrostatic Fields

The divergence theorem gives us Gauss's law in electrostatics, which relates the electric flux through a closed surface to the total charge enclosed:

EdA=Qϵ0\oint \vec{E} \cdot d\vec{A} = \frac{Q}{\epsilon_0}

By the divergence theorem, the left side converts to a volume integral:

V(E)dV=1ϵ0VρdV\iiint_V (\nabla \cdot \vec{E}) \, dV = \frac{1}{\epsilon_0} \iiint_V \rho \, dV

Since this holds for any volume, the integrands must be equal, giving the differential form:

E=ρϵ0\nabla \cdot \vec{E} = \frac{\rho}{\epsilon_0}

This is one of Maxwell's equations. The practical payoff: when a charge distribution has symmetry (spherical, cylindrical, or planar), you can use Gauss's law to find E\vec{E} directly from the enclosed charge instead of integrating Coulomb's law over the entire distribution.

Fluid Dynamics and Heat Transfer

In fluid dynamics, the divergence theorem underpins the continuity equation, which expresses conservation of mass. The idea is that any net outflow of fluid through a closed surface must equal the rate at which mass decreases inside:

ρt+(ρv)=0\frac{\partial \rho}{\partial t} + \nabla \cdot (\rho \vec{v}) = 0

Here's how the derivation works:

  1. Start with the fact that the total mass inside a volume VV is VρdV\iiint_V \rho \, dV.
  2. The rate of mass leaving through the boundary surface SS is SρvdA\oiint_S \rho \vec{v} \cdot d\vec{A}.
  3. Apply the divergence theorem to convert that surface integral: SρvdA=V(ρv)dV\oiint_S \rho \vec{v} \cdot d\vec{A} = \iiint_V \nabla \cdot (\rho \vec{v}) \, dV.
  4. Set the rate of mass decrease equal to the outflow: VρtdV=V(ρv)dV\iiint_V \frac{\partial \rho}{\partial t} \, dV = -\iiint_V \nabla \cdot (\rho \vec{v}) \, dV.
  5. Since this holds for any volume, the integrands must match, yielding the continuity equation.

Heat transfer follows the same pattern. Fourier's law says heat flux is q=kT\vec{q} = -k \nabla T. The divergence theorem converts the total heat flow through a surface into a volume integral of q\nabla \cdot \vec{q}, which then relates to the rate of heat generation (or temperature change) inside.

Electrostatic Fields, Applying Gauss’s Law | CircuitBread

Gravitational Fields

Gauss's law for gravity mirrors the electrostatic version. The gravitational flux through a closed surface depends only on the enclosed mass MM:

gdA=4πGM\oint \vec{g} \cdot d\vec{A} = -4\pi G M

Applying the divergence theorem and using M=VρdVM = \iiint_V \rho \, dV gives the differential form:

g=4πGρ\nabla \cdot \vec{g} = -4\pi G \rho

The negative sign reflects that gravity is always attractive (mass acts as a "sink" for the gravitational field, never a source). Compare this to electrostatics, where charges can be positive or negative, so E\nabla \cdot \vec{E} can be positive or negative.

Mathematical Concepts

Electrostatic Fields, The Divergence Theorem · Calculus

Conservation Laws and the Continuity Equation

The divergence theorem is the mathematical backbone of conservation laws. A conservation law says that some physical quantity (mass, energy, momentum, charge) is neither created nor destroyed, only redistributed.

Every conservation law takes the same general form. If uu is the density of the conserved quantity and J\vec{J} is its flux, then:

ut+J=0\frac{\partial u}{\partial t} + \nabla \cdot \vec{J} = 0

This is the continuity equation in its general form. The divergence theorem is what lets you move between the integral version (which talks about total quantities flowing through surfaces) and the differential version (which holds at every point). The integral form is often easier for computing specific problems with symmetry, while the differential form is what you need for solving PDEs.

Flux Density and Source Density

These two ideas sit at the heart of every divergence theorem application:

  • Flux density is a vector field F\vec{F} representing the rate of flow of some quantity per unit area. Think of E\vec{E} for electric field or ρv\rho \vec{v} for mass flow.
  • Source density is a scalar field representing how much of that quantity is being generated (or absorbed) per unit volume at each point.

The divergence theorem says these are two views of the same thing:

SFdA=V(F)dV\oiint_S \vec{F} \cdot d\vec{A} = \iiint_V (\nabla \cdot \vec{F}) \, dV

The divergence F\nabla \cdot \vec{F} is the source density. Where F>0\nabla \cdot \vec{F} > 0, there's a net source (quantity is being produced). Where F<0\nabla \cdot \vec{F} < 0, there's a net sink (quantity is being absorbed).

For example, in electrostatics: E\vec{E} is the flux density, charge density ρ\rho is the source density, and they're linked by E=ρϵ0\nabla \cdot \vec{E} = \frac{\rho}{\epsilon_0}. Positive charges act as sources of electric field lines; negative charges act as sinks.