What Is a Divergence-Free Vector Field?
At a glance
- 1. Compute the divergence
Add the matching partial derivatives of the vector field’s components.
- 2. Set it equal to zero
The field is divergence-free wherever this sum vanishes.
- 3. Interpret the result
Zero divergence means no net local source or sink of the field.
- 4. Check flux when needed
Use the divergence theorem to relate divergence to flux through closed surfaces.
A divergence-free vector field is a vector field whose divergence is zero throughout the region being considered. The condition describes the field locally: around every sufficiently small volume, the amount flowing in balances the amount flowing out.
For a vector field in three-dimensional Cartesian coordinates,
its divergence is
Therefore, is divergence-free on a region precisely when
at every point of .
Physical meaning of zero divergence
Think of a vector field as the velocity field of a fluid. Positive divergence at a point indicates local expansion: more fluid leaves a tiny region than enters it. Negative divergence indicates local compression or a sink. Zero divergence means there is no net creation, destruction, expansion, or compression of fluid at that point.
This is why divergence-free fields are often called solenoidal fields. In fluid mechanics, the velocity field of an incompressible fluid is commonly modeled as divergence-free. In electromagnetism, the magnetic field satisfies
which expresses the absence of magnetic monopoles in the standard theory.
Zero divergence does not mean that the vector field itself is zero. A field can have large, rapidly varying vectors and still have zero divergence if the component derivatives cancel.
How to test a vector field
Use this procedure:
- Identify the three components , , and .
- Differentiate with respect to , with respect to , and with respect to .
- Add the three results.
- Check whether the sum is zero throughout the specified domain.
Worked example
Consider
The relevant derivatives are
Thus,
This is not zero everywhere, so the field is not divergence-free on . It happens to have zero divergence on the plane , but that does not make it divergence-free on a three-dimensional region.
Now consider
Then
Therefore, is divergence-free everywhere in .
Divergence-free fields and flux
The divergence theorem states that, for a sufficiently smooth vector field and a solid region with outward-oriented boundary surface ,
If throughout , then
So the total outward flux through any closed surface surrounding a region is zero. This does not imply that the flux through each part of the surface is zero. One part may have positive outward flux while another has an equal negative flux.
For example, the constant field
is divergence-free. Through a closed box, the flux entering through the face with outward normal exactly cancels the flux leaving through the opposite face. The other four faces contribute zero.
Constructing divergence-free vector fields
A useful way to produce divergence-free fields is to take the curl of a sufficiently smooth vector potential :
The identity
guarantees that is divergence-free wherever the required derivatives are continuous.
For instance, let
Then
Checking directly,
In two dimensions, a similar construction uses a stream function. If is twice continuously differentiable, then
is divergence-free because
The equality of the mixed partial derivatives is the reason for the cancellation.
Common mistakes
Differentiating with respect to the wrong variable
For , divergence uses . It does not use all nine first partial derivatives; that collection belongs to the Jacobian matrix.
Confusing divergence with curl
Divergence is a scalar:
Curl is a vector:
A divergence-free field need not have zero curl, and a curl-free field need not be divergence-free. For example, has zero divergence but nonzero curl.
Checking only one point
A field is divergence-free on a region only if its divergence vanishes at every point in that region. Finding one point where the divergence is zero is not enough.
Applying the flux conclusion to an open surface
Zero total flux is guaranteed for closed surfaces under the divergence theorem. An open surface can have nonzero flux even when the field is divergence-free.
References
- OpenStax, Calculus Volume 3
- Vector Calculus, Linear Algebra, and Differential Forms: A Unified Approach, John Hubbard and Barbara Hubbard
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.