Divergence — Definition, Formula & Examples
Divergence is a scalar quantity that measures how much a vector field expands or contracts at a given point. A positive divergence means the field is spreading outward (like a source), while a negative divergence means it is converging inward (like a sink).
Given a vector field defined on a subset of where each component has continuous first partial derivatives, the divergence of is the scalar field . It equals the trace of the Jacobian matrix of and represents the volume density of the outward flux of the field from an infinitesimal region around each point.
Key Formula
Where:
- = A vector field with component functions $F_1(x,y,z)$, $F_2(x,y,z)$, $F_3(x,y,z)$
- = The del operator, $\left(\frac{\partial}{\partial x}, \frac{\partial}{\partial y}, \frac{\partial}{\partial z}\right)$
- = The divergence of $\mathbf{F}$, a scalar-valued function
How It Works
To compute divergence, take the partial derivative of each component of the vector field with respect to its corresponding variable, then add them together. The result is a scalar function, not a vector. Physically, divergence captures whether fluid or flux is being created or destroyed at a point: if you imagine the vector field as the velocity of a fluid, positive divergence at a point means fluid is being produced there, zero divergence means the fluid is incompressible at that point, and negative divergence means fluid is disappearing. Divergence is the key ingredient in the Divergence Theorem (Gauss's Theorem), which relates the total flux through a closed surface to a volume integral of the divergence inside.
Worked Example
Problem: Find the divergence of the vector field .
Step 1: Identify the components: , , .
Step 2: Compute each partial derivative with respect to its matching variable.
Step 3: Add the three partial derivatives together.
Step 4: Evaluate at a specific point if needed. At :
Answer: , which equals at the point .
Another Example
Problem: Determine whether the vector field is incompressible (divergence-free).
Step 1: Identify the components: , , .
Step 2: Compute each partial derivative.
Step 3: Sum the results.
Answer: The divergence is everywhere, so is incompressible. This field represents pure rotation around the -axis with no expansion or contraction.
Why It Matters
Divergence appears throughout Calculus III (Multivariable Calculus) and is essential for understanding the Divergence Theorem, one of the central results that connects surface integrals to volume integrals. In physics and engineering, Maxwell's equations use divergence to describe electric and magnetic fields — Gauss's law states that the divergence of the electric field equals the charge density divided by the permittivity of free space. Fluid dynamics, heat transfer, and computational simulations all rely on divergence to model how quantities flow and accumulate.
Common Mistakes
Mistake: Differentiating each component with respect to all three variables instead of only its corresponding variable.
Correction: is differentiated only with respect to , only with respect to , and only with respect to . You are computing a dot product of with , not the full Jacobian.
Mistake: Expecting divergence to produce a vector.
Correction: Divergence always outputs a scalar. If your result is a vector, you may have confused divergence () with the gradient () or curl ().
