For in Cartesian coordinates,
For a continuously differentiable vector field, the divergence is the limiting outward flux per unit volume through a small closed surface. Opposite faces of a small rectangular box almost cancel; the remaining differences in the three components give the sum of partial derivatives above. The divergence theorem extends this local balance to a whole region.
For , the divergence is . In a planar unit square, the right edge contributes outward flux and the top contributes , while the left and bottom contribute zero. The total equals the integral of the planar divergence over area .
If is a velocity field, positive divergence means local volume expansion, not automatically creation of mass. The continuity equation gives , where is the material derivative. For this field, a uniform initial density evolves as while material volumes grow as . Their product stays constant.
Horizontal flow convergence is the negative horizontal divergence of a velocity field. Positive convergence reduces the horizontal area of a material patch; for constant-depth linear shallow water equations, the surface equation is , so convergence raises the free surface and divergence lowers it. This is a fluid-flow notion, distinct from convergence of a numerical sequence.
The divergence defined through weak derivatives: pair a locally integrable vector field with a smooth compactly supported test function using the displayed integration-by-parts identity. A piecewise smooth field can have a surface contribution where its normal component jumps. Thus zero classical divergence on each side does not imply zero weak divergence across the interface.
The divergence with respect to velocity coordinates, with position held fixed. In dimensions, has . A kinetic conservation law must retain this term for velocity-dependent forces.
For the Levi-Civita connection of a Riemannian metric, the divergence of is . In coordinates it equals . On an oriented manifold it satisfies . The codifferential on a one-form satisfies , where is the musical isomorphism; this follows by integration by parts or the Hodge star formula.
For a vector field directed radially from a fixed axis and depending only on distance from that axis, cylindrical coordinates give . Zero divergence gives on any positive radial interval. Unless , this field is singular on the axis, so applications of the divergence theorem must use a domain avoiding it or account separately for that singularity.
For a locally integrable vector field, this formula defines its divergence as a distribution. For a piecewise smooth field, a jump of its normal component across an interface adds a surface measure to the smooth divergences. A continuous normal component eliminates that measure, as follows by integration by parts on the two sides.
The inverse-square radial vector field has zero ordinary divergence at every nonzero radius but flux through every centred sphere. It is locally integrable in three dimensions. For a smooth compactly supported test function , integrate by parts outside a ball of radius . The inward-oriented inner boundary gives , which tends to . This proves the displayed distributional divergence, with the three-dimensional Dirac delta function representing the point source.
For ,
For a scalar field and vector field ,
A total divergence has the form . The divergence theorem converts its volume integral into a boundary flux, which vanishes when the field has suitable decay or boundary conditions.
Adding to a mechanical Lagrangian changes its action by . Fixed endpoint variations therefore leave its bulk Euler-Lagrange equations unchanged. For fields, adding changes the action by a boundary flux. The same conclusion holds for compactly supported variations or appropriate fixed boundary data. If depends on field derivatives, those boundary data must also control their variations. Such terms can still change canonical momenta, boundary observables, and representatives of Noether currents; equivalence of bulk equations does not mean that every boundary-value problem is identical.
For a twice continuously differentiable vector field, commuting partial derivatives and antisymmetry of the Levi-Civita symbol give

Ancestors (8)

  1. Vector calculus
  2. Multivariable calculus
  3. Calculus
  4. Real analysis
  5. Analysis
  6. Area of mathematics
  7. Mathematics
  8. Home

Discussion (0) New discussion

There are no discussions about this article yet.

Articles by others on the same topic (1)

Divergence by Ciro Santilli 40 Updated 2025-07-16
Takes a vector field as input and produces a scalar field.
Mnemonic: it gives out the amount of fluid that is going in or out of a given volume per unit of time.
Therefore, if you take a cubic volume:
  • the input has to be the 6 flows across each face, therefore 3 derivatives
  • the output is the variation of the quantity of fluid, and therefore a scalar