Divergence
Divergence operator measuring net volumetric flux and source-sink density in vector fields.
What it is
Divergence is a differential operator acting on a differentiable vector field to produce a scalar field . In Cartesian coordinates it is defined as:
Physically, divergence quantifies the volumetric net outward flux density of a vector field at any point in space:
- If : Point is a net source (field lines emerge or expand outwards).
- If : Point is a net sink (field lines converge and vanish inwards).
- If : The field is solenoidal or incompressible at (inflow across any infinitesimal boundary equals outflow identically).
Why it appears in physics
Divergence is the foundational syntax for conservation laws and Maxwell's equations:
- Gauss's law for electrostatics: . Electric charges act as local sources and sinks of electric field lines.
- Gauss's law for magnetism: . Magnetic monopoles do not exist; magnetic field lines are unbroken closed loops.
- Fluid continuity equation: . Divergence of mass flux governs local temporal mass accumulation.
- Incompressible fluid flow: . Liquids conserve local fluid parcel volume during motion.
Visual or geometric intuition
Imagine water flow in a large pool:
- A submerged nozzle pumping in water creates diverging outward velocity vectors: positive divergence (+).
- A drain sucking water creates converging inward velocity vectors: negative divergence (-).
- Steady uniform laminar flow across a channel creates zero net divergence (0).
Minimal symbolic language
- Cartesian coordinates: .
- Cylindrical coordinates : .
- Spherical coordinates : .
- Divergence theorem (Gauss): .
- Solenoidal vector field: .
What the result means
The scalar output carries units of . It represents the local net production rate of field lines per unit volume without any spatial direction.
When not to use it
- Do not attempt to take the divergence of a scalar field . Divergence operates exclusively on vector fields.
- Do not omit curvilinear metric scale factors: in spherical coordinates, writing instead of causes fatal errors.
- Do not assume radial field lines imply non-zero divergence: the point-mass gravitational field has everywhere except at .
Operational summary
To compute : evaluate the partial derivative of each component along its coordinate, taking into account geometric metric prefactors in curvilinear coordinates, and sum the scalar terms.
Procedure
Before calculating
Ensure the input is a genuine vector field and select the most appropriate coordinate frame.
Step 1: Identify the mathematical object
Isolate the individual components of and verify their spatial functional dependencies.
Step 2: Choose the operation
Deploy the divergence expression adapted to the chosen system:
- Cartesian: .
- Cylindrical: .
- Spherical: .
Step 3: Conserve units and signs
Differentiate each term. In curvilinear coordinates, multiply by geometric scale factors prior to differentiation.
Step 4: Calculate
Sum all terms. When evaluating at a point , substitute coordinates to produce the final scalar value.
Step 5: Interpret the result
Assess the physical significance of the scalar sign: positive for source density, negative for sink density, zero for solenoidal behavior.
Self-check checklist
- Is the output a pure scalar without basis vectors?
- Are dimensions equal to ?
- Were radial metric weights placed inside the differential operator?
Guided example
Physical situation
An inhomogeneous electrostatic field in space is given by: where are in meters. Determine the free volume electric charge density at point via differential Gauss's law: with .
Mathematical translation
Compute Cartesian divergence , then calculate .
Step-by-step calculation
-
Differentiate components:
-
Sum to obtain divergence:
-
Evaluate at :
-
Calculate charge density:
Reading the result
Positive divergence indicates outward flux expansion, physically demanding a net positive charge density of at point .
Common error avoided
Retaining unit vectors in the divergence expression; divergence is purely scalar.
Inverse example
Given result
A 2D incompressible velocity field has horizontal component .
What physical question it can answer
What vertical velocity component preserves continuity? Incompressibility requires : Any function of this form preserves local fluid volume.
Common errors
Error 1: Retaining unit vectors in divergence outputs
Keeping basis vectors in divergence results. Divergence is fundamentally a scalar contraction.
Error 2: Missing the prefactor inside spherical radial derivatives
Calculating rather than . This erroneously suggests the Coulomb field has non-zero divergence in vacuum.
Error 3: Equating zero divergence with constant fields
Assuming requires to be uniform. Swirling vortex flows have zero divergence while varying intensely in space.
Error 4: Overlooking the origin Dirac delta singularity
For , stating divergence is zero everywhere without qualifying . At , .
Error 5: Applying divergence to scalar fields
Writing . Divergence operates strictly on vector fields; on scalars, one uses the gradient.
Quick detection rule
If a divergence expression outputs vectors or fails to carry units of , the calculation is flawed.
Physical applications
1. Electromagnetism and Maxwell's equations
Divergence anchors the two source equations:
- (Gauss's law for charge sources).
- (No magnetic monopoles).
2. Hydrodynamics and incompressibility
In Navier-Stokes modeling of liquids, the incompressibility constraint ensures volume conservation.
3. Compressible gas dynamics and shocks
In supersonic aerodynamics, measures dilatation and compression rates across shock fronts.
4. Heat conduction with internal generation
Thermal energy balances in solids with nuclear or chemical heating follow .
5. Stellar astrophysics and radiative equilibrium
Inside stellar interiors, radiative energy flux satisfies where represents thermonuclear energy production.
Practice
Problem 1: Divergence of a radial power-law force field
A central force field is given by .
- Compute for using spherical coordinates.
- For what exponent is the field strictly solenoidal?
Solution:
- In spherical coordinates:
- Setting divergence to zero: Inverse-square laws (, such as gravity and Coulomb forces) are the unique power laws with zero divergence in source-free space.
Problem 2: Compressibility of atmospheric wind patterns
An atmospheric flow field is given by:
- Compute .
- Determine if the wind field exhibits convergence or incompressibility.
Solution:
Non-zero divergence indicates compressibility; zones with represent mass convergence zones driving cloud formation.
Problem 3: Charge conservation and conduction current
Current density is . Find using the continuity equation.
Solution: