Overview
In mathematics the divergence is a local operator that converts a vector field into a scalar field. Informally, divergence measures how much a small volume around a point acts as a net source (positive divergence) or sink (negative divergence) of the vector flow through it. The idea is used across many areas of applied mathematics and physics, including fluid dynamics and electromagnetism (Maxwell's equations).
Definition and notation
Given a vector field F = (F_x, F_y, F_z) defined on a region of space, the divergence is commonly written as div F or ∇·F. The symbol ∇ (nabla) denotes a differential operator related to the gradient, and the central dot indicates the dot product between that operator and the vector field. The divergence is therefore a specific composition of partial derivatives that produces a scalar value at each point.
Coordinate expressions
In Cartesian coordinates for a three-dimensional field F(x,y,z) = (F_x, F_y, F_z), the divergence has the simple form
- div F = ∂F_x/∂x + ∂F_y/∂y + ∂F_z/∂z.
In other coordinate systems (cylindrical, spherical, or more general curvilinear coordinates) the formula includes metric factors and derivatives adapted to those coordinates; the same local meaning holds but the explicit expression changes to reflect area and volume elements.
Physical interpretation and examples
Physically, divergence describes the rate at which density flows out of or into an infinitesimal volume. For an incompressible fluid the divergence of the velocity field is zero everywhere, indicating that fluid neither accumulates nor is lost locally. In electrostatics Gauss's law relates the divergence of the electric field to the local charge density: regions of positive charge act as sources of the electric field, and regions of negative charge act as sinks.
The divergence theorem and historical notes
A central result connecting divergence to integrals is the divergence theorem (also called Gauss's theorem or the Gauss–Ostrogradsky theorem). It states that the integral of div F over a volume equals the flux of F through the volume's boundary surface. This theorem converts volume integrals to surface integrals and underpins many conservation laws and methods in partial differential equations. The theorem and the operator itself emerged from developments in classical analysis and vector calculus in the 18th and 19th centuries.
Uses, computation and distinctions
Divergence appears in conservation laws such as the continuity equation, which expresses conservation of mass or charge by relating time change of density to the divergence of a current. It is also used computationally in finite-volume and finite-element methods to discretize fluxes. Distinct from curl, which measures local rotation of a field, divergence captures expansion or contraction. When analyzing a problem it is common to compute both div and curl to characterize different aspects of a vector field's local behavior. For definitions of basic terms see mathematics, differential operator, vector and scalar.
Practical remarks
When computing divergence numerically one must respect the coordinate system and the discretization of derivatives. Singularities and discontinuities (for example point charges or shock fronts) require interpreting divergence in a distributional sense or working with weak formulations. For additional technical background and worked examples consult standard texts or online references: gradient and dot product material provide useful preliminaries as does a discussion of Maxwell's equations.