For a 3D vector field , the divergence is the scalar field

In 2D: .

Where Curl is formally a cross product , divergence is the dot product .

What divergence measures

A local property: the net outflow rate per unit volume at a point.

  • Positive divergence: the point acts as a source — more goes out than comes in.
  • Negative divergence: sink — more comes in than goes out.
  • Zero divergence: locally balanced — whatever enters a tiny region also leaves.

Divergence as flux density

The precise meaning comes from the Divergence theorem applied to a tiny ball of volume around a point:

So is the flux per unit volume out of an infinitesimal ball — the precise meaning of “source density.”

Examples

Radial field : . Uniform source everywhere. Every point acts as a source.

Rotational field : . Pure rotation, no source or sink. The field circulates without flowing into or out of any region.

Constant field: . Whatever enters a region also leaves.

Inverse-square field : everywhere except at the origin. At the origin the divergence has a delta-function singularity — a point source. This is the field of a point charge in electrostatics; the singularity is the charge. See Inverse-square field.

Properties

  • Linearity: .
  • Product rule: .

Divergence of a curl is zero

for any with continuous second partials. Every term in the expansion cancels with another by equality of mixed partials.

Geometric content: rotation moves stuff in circles, not in or out — a pure curl has no net source.

Companion identity: . Together:

  • Gradients have zero curl.
  • Curls have zero divergence.

On suitable domains the converses hold (Helmholtz / Poincaré-style results).

Source-free / solenoidal fields

A field with is called source-free or solenoidal. Equivalent conditions on suitable domains:

  • (local).
  • Every closed-surface flux is zero (global).
  • for some vector potential (3D structure result).

In 2D, the analogue: iff has a stream function such that . Level curves of are streamlines of the flow. The “flux story” parallels the “circulation story” of conservative fields — see Cauchy-Riemann equations for the case when both conditions hold simultaneously, which turns out to be the same as analyticity.

Connection to Green’s flux form and divergence theorem

In 2D, Green’s flux form:

In 3D, the Divergence theorem:

Both say: total flux out of the boundary = integrated divergence over the interior — what flows out equals what is being created inside.

In physics

  • Gauss’s law (electrostatics): . Electric-field divergence equals charge density (up to constants).
  • Magnetism: . No magnetic monopoles.
  • Continuity equation (fluid dynamics): . Conservation of mass: anything entering a region (positive divergence of flux) must equal mass increase.

Laplacian

The composition is the Laplacian, :

Solutions of are harmonic functions — steady-state electrostatic potentials, irrotational incompressible flows, equilibrium heat distributions. Harmonic functions are also the real and imaginary parts of analytic functions — the link between complex analysis and steady-state physics.