vector calculus
Divergence and Curl
You should know: vector fields
Overview
Divergence and curl are two scalar/vector operators that describe the local behavior of a vector field. Divergence div F = ∇·F is a scalar measuring how much a field 'spreads out' (sources) or 'converges' (sinks) at a point — how much flux flows out of an infinitesimal volume. Curl curl F = ∇×F is a vector measuring the field's local rotation or 'spin' at a point — the axis and strength of infinitesimal circulation. Together they are the local, differential versions of the flux and circulation integrals that Green's, Stokes', and the divergence theorems relate to global (integral) behavior.
Intuition
Imagine a vector field as the velocity of a flowing fluid. Divergence at a point measures whether fluid is being 'created' there (positive divergence — a source, like a faucet) or 'destroyed' (negative divergence — a sink, like a drain); zero divergence means fluid flows through without accumulating. Curl at a point measures whether a tiny paddle wheel dropped into the flow would spin — the direction of the curl vector is the wheel's spin axis (via the right-hand rule), and its magnitude is how fast it would spin.
Formal Definition
For a vector field F = ⟨P, Q, R⟩ in three dimensions:
A scalar function
A vector function, computed as the formal 'determinant' of ∇ crossed with F
Mnemonic device for computing curl
Notation
| Notation | Meaning |
|---|---|
| Divergence of F — a scalar field | |
| Curl of F — a vector field | |
| Divergence of the gradient — the Laplacian operator |
Derivation
Divergence arises as a limit of outward flux per unit volume: consider a small box of volume ΔV around a point, and let Φ be the net outward flux of F through the box's surface. Divergence is defined as:
The 'flux density' at a point — this limit definition is equivalent to ∇·F and is exactly what the divergence theorem later formalizes
Proofs
- (Definition of gradient)
- (First component of the curl determinant applied to P=fx, Q=fy, R=fz)
- (Mixed partial derivatives commute for smooth functions)
- (Symmetric structure of the curl determinant applied to each pair of mixed partials)
- (All three components are zero)
Properties
Linearity of divergence
Linearity of curl
Product rule (scalar times vector field)
3D conservative field test
Condition: The converse holds on simply connected domains (curl-free ⟺ conservative)
Incompressible flow
Theorems
Applications
3D Visualization
Animation
Animates a small paddle wheel and a small expanding/contracting bubble dropped at different points into an animated vector field — the paddle wheel's spin rate visualizes curl, and the bubble's growth or shrinkage visualizes divergence.
Worked Examples
Divergence: sum ∂P/∂x + ∂Q/∂y + ∂R/∂z.
Curl: apply the determinant formula with P=xy, Q=yz, R=xz.
Evaluate each component.
Answer: div F = x+y+z; curl F = (−y, −z, −x)
Practice Problems
Compute div F for F(x,y,z) = ⟨x², y³, z⟩.
Compute curl F for F(x,y,z) = ⟨y, -x, 0⟩ (a pure rotation field around the z-axis).
A fluid has velocity field v=⟨x,-y,0⟩. Is the flow incompressible? Does it have any rotation?
Common Mistakes
Confusing divergence (a scalar) with curl (a vector) — treating them as interchangeable measures of 'how much the field changes'.
Divergence measures outward flux/spreading (a single number at each point); curl measures rotation (a vector — axis and strength of spin). A field can have zero divergence but nonzero curl (pure rotation) or vice versa (pure expansion).
Assuming a field with curl F=0 must be conservative on ANY domain.
curl F=0 (irrotational) implies conservative only on a SIMPLY CONNECTED domain (no holes). The classic counterexample is F=⟨-y,x⟩/(x²+y²) on ℝ²∖{origin}, which has curl 0 everywhere it's defined but is not conservative because the domain has a hole at the origin.
Making sign errors in the curl determinant, especially in the j-component.
The j-component of the curl determinant carries an implicit minus sign from cofactor expansion: curl F's j-component is (∂P/∂z − ∂R/∂x), NOT (∂R/∂x − ∂P/∂z). Double-check this term specifically.
Quiz
Flashcards
Historical Background
Divergence and curl emerged from 19th-century fluid dynamics and electromagnetism. William Thomson (Lord Kelvin) and James Clerk Maxwell developed and named these operators in the 1850s-70s while formalizing field equations for electricity, magnetism, and fluid flow — Maxwell's equations are most compactly stated using div and curl. The term 'divergence' (for outward flux density) and 'curl' (for rotational tendency) were coined during this period, with Maxwell popularizing 'curl' specifically in his 1873 Treatise.
- 1830s-1840s
Fluid dynamicists (Stokes, others) study rotational flow, laying groundwork for curl
George Gabriel Stokes
- 1870s
Maxwell names and popularizes 'curl' in his Treatise on Electricity and Magnetism, using it to write Maxwell's equations compactly
James Clerk Maxwell
- 1880s-1890s
Gibbs and Heaviside formalize modern vector calculus notation ∇· and ∇×
Josiah Willard Gibbs, Oliver Heaviside
Summary
- Divergence ∇·F is a scalar measuring outward flux density (sources/sinks); curl ∇×F is a vector measuring local rotation.
- Divergence formula: ∂P/∂x+∂Q/∂y+∂R/∂z; curl formula: the symbolic determinant of ∇×F with i,j,k, ∂/∂x,∂/∂y,∂/∂z, and P,Q,R.
- curl(∇f)=0 always (gradients are irrotational); div(curl F)=0 always (curl fields are source-free).
- curl F=0 implies F is conservative only on simply connected domains — not in general.
- Both operators are the local/differential counterparts of the global flux (divergence theorem) and circulation (Stokes'/Green's theorem) integrals.
References
- BookMaxwell, J.C. (1873). A Treatise on Electricity and Magnetism.
- WebsiteWikipedia — Divergence
Mathematics