Fiveable

Calculus IV Unit 21 Review

QR code for Calculus IV practice questions

21.2 Definition and properties of divergence

21.2 Definition and properties of divergence

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

Divergence measures how much a vector field "spreads out" from a point. Positive divergence means net outward flow (a source), negative divergence means net inward flow (a sink), and zero divergence means the flow is balanced. This concept is central to fluid dynamics, electromagnetism, and the divergence theorem that connects surface integrals to volume integrals.

Vector Fields and Divergence

Vector Fields and the Nabla Operator

A vector field assigns a vector to each point in a subset of space. Velocity fields and force fields are classic examples: at every point, you get both a magnitude and a direction.

The nabla operator \nabla is the vector differential operator that drives most of the key operations in vector calculus. In Cartesian coordinates:

=(x,y,z)\nabla = \left(\frac{\partial}{\partial x}, \frac{\partial}{\partial y}, \frac{\partial}{\partial z}\right)

Depending on how you apply \nabla to a field, you get different operations: apply it to a scalar field and you get the gradient, take its dot product with a vector field and you get divergence, take its cross product with a vector field and you get curl.

Divergence and the Dot Product

Divergence measures the magnitude of a vector field's source or sink at a given point. It's a scalar quantity. For a vector field F(x,y,z)=(Fx,Fy,Fz)\mathbf{F}(x, y, z) = (F_x, F_y, F_z):

F=Fxx+Fyy+Fzz\nabla \cdot \mathbf{F} = \frac{\partial F_x}{\partial x} + \frac{\partial F_y}{\partial y} + \frac{\partial F_z}{\partial z}

This follows directly from treating \nabla as a vector and taking its dot product with F\mathbf{F}. Recall that the dot product of a=(a1,a2,a3)\mathbf{a} = (a_1, a_2, a_3) and b=(b1,b2,b3)\mathbf{b} = (b_1, b_2, b_3) is ab=a1b1+a2b2+a3b3\mathbf{a} \cdot \mathbf{b} = a_1b_1 + a_2b_2 + a_3b_3. With \nabla, each "component" is a partial derivative operator, so the dot product produces a sum of partial derivatives.

Concrete example: Let F(x,y,z)=(x2,3xy,2xz)\mathbf{F}(x,y,z) = (x^2, \, 3xy, \, -2xz). Then:

F=x(x2)+y(3xy)+z(2xz)=2x+3x+(2x)=3x\nabla \cdot \mathbf{F} = \frac{\partial}{\partial x}(x^2) + \frac{\partial}{\partial y}(3xy) + \frac{\partial}{\partial z}(-2xz) = 2x + 3x + (-2x) = 3x

The divergence here depends on position. Where x>0x > 0, the field acts as a source; where x<0x < 0, it acts as a sink.

Key Algebraic Properties

Divergence is linear, which makes computation much easier:

  • (F+G)=F+G\nabla \cdot (\mathbf{F} + \mathbf{G}) = \nabla \cdot \mathbf{F} + \nabla \cdot \mathbf{G}
  • (cF)=c(F)\nabla \cdot (c\,\mathbf{F}) = c\,(\nabla \cdot \mathbf{F}) for any constant cc

For a scalar function ff times a vector field F\mathbf{F}, there's a product rule:

(fF)=f(F)+F(f)\nabla \cdot (f\,\mathbf{F}) = f\,(\nabla \cdot \mathbf{F}) + \mathbf{F} \cdot (\nabla f)

This comes up frequently when simplifying expressions inside volume integrals.

One more identity worth knowing: the divergence of a curl is always zero.

(×F)=0\nabla \cdot (\nabla \times \mathbf{F}) = 0

This holds for any sufficiently smooth vector field F\mathbf{F}, and it's the reason every curl field is automatically divergence-free.

Vector Fields and the Nabla Operator, HartleyMath - Vector Fields

Properties of Divergence

Flux Density and Solenoidal Fields

Divergence can be interpreted as flux density: the net outward flux per unit volume at a point. More precisely, for a small closed surface around a point:

F=limV01VSFdS\nabla \cdot \mathbf{F} = \lim_{V \to 0} \frac{1}{|V|} \iint_S \mathbf{F} \cdot d\mathbf{S}

This limit definition is what gives divergence its physical meaning. It tells you how much "stuff" is being created or destroyed per unit volume at that location.

A vector field with zero divergence everywhere is called solenoidal (or divergence-free). Solenoidal fields have no net sources or sinks anywhere. The most important physical example: magnetic fields are always solenoidal. Maxwell's equations require B=0\nabla \cdot \mathbf{B} = 0, reflecting the fact that magnetic monopoles don't exist and magnetic field lines always form closed loops.

Incompressible Flow

In fluid dynamics, a flow is incompressible when the fluid density stays constant as it moves. The velocity field v\mathbf{v} of an incompressible flow satisfies:

v=0\nabla \cdot \mathbf{v} = 0

This is the continuity equation for incompressible flow. Physically, it says that whatever fluid enters a small region must also leave it; nothing accumulates or depletes. Water and most liquids under normal conditions behave as incompressible fluids, so this condition appears constantly in applications.

Vector Fields and the Nabla Operator, Vector Fields · Calculus

Divergence Theorem and Applications

The Divergence Theorem

Also known as Gauss's theorem, this result connects the total flux through a closed surface to the divergence integrated over the enclosed volume. For a vector field F\mathbf{F} and a closed surface SS bounding a volume VV:

SFdS=V(F)dV\iint_S \mathbf{F} \cdot d\mathbf{S} = \iiint_V (\nabla \cdot \mathbf{F}) \, dV

The left side is the total outward flux of F\mathbf{F} through SS. The right side sums up all the sources and sinks inside VV. The theorem says these must be equal.

Why this matters practically: sometimes a surface integral is hard to evaluate directly but the corresponding volume integral is straightforward, or vice versa. The divergence theorem lets you pick whichever side is easier. It also provides the theoretical foundation for conservation laws in physics.

The Laplacian Operator

The Laplacian is what you get when you take the divergence of the gradient of a scalar field. For f(x,y,z)f(x, y, z):

2f=(f)=2fx2+2fy2+2fz2\nabla^2 f = \nabla \cdot (\nabla f) = \frac{\partial^2 f}{\partial x^2} + \frac{\partial^2 f}{\partial y^2} + \frac{\partial^2 f}{\partial z^2}

The Laplacian measures how much the value of ff at a point deviates from the average of ff in a small neighborhood around that point. If 2f>0\nabla^2 f > 0, the function value at that point is below the local average; if 2f<0\nabla^2 f < 0, it's above the local average.

This operator shows up in many of the most important PDEs in physics:

  • Heat equation: ut=k2u\frac{\partial u}{\partial t} = k\,\nabla^2 u (heat diffuses from hot to cold regions)
  • Laplace's equation: 2f=0\nabla^2 f = 0 (steady-state solutions with no sources)
  • Poisson's equation: 2ϕ=ρϵ0\nabla^2 \phi = -\frac{\rho}{\epsilon_0} (electrostatic potential ϕ\phi related to charge density ρ\rho)
  • Wave equation: 2ut2=c22u\frac{\partial^2 u}{\partial t^2} = c^2\,\nabla^2 u

Notice that Laplace's equation is just the special case of Poisson's equation with zero charge density. A scalar field satisfying 2f=0\nabla^2 f = 0 is called harmonic.