Key takeaways
- Divergence in 2D: ∇·F = ∂P/∂x + ∂Q/∂y, where F = (P, Q).
- Positive means a source (spreading out); negative means a sink (gathering in).
- Divergence is one number at each point, not a vector.
- Pair P with x and Q with y. The mixed pairs belong to curl.
In this guide
What is divergence?
A vector field puts an arrow at every point, such as the velocity of water on a pond. Now draw a tiny circle around one point and watch the flow crossing its edge.
- If more water leaves the circle than enters, the point acts like a source. Divergence is positive.
- If more enters than leaves, the point is a sink. Divergence is negative.
- If in and out balance, divergence is zero. The flow is just passing through.
Why does divergence matter?
Divergence is how physics writes down the idea 'nothing is created or lost'. Water can't be squashed, so a water flow with no taps or drains has divergence zero everywhere. If the maths gives a non-zero divergence, something is being added or removed there.
In electricity, divergence finds where electric charge sits: field lines spread out from positive charge and gather into negative charge. This is Gauss's law, one of the four Maxwell's equations.
Divergence answers one simple question at every point: is stuff coming out here, or going in?
The formula
| Symbol | What it means | Example |
|---|---|---|
| F = (P, Q) | The vector field. Here P = xⁿ and Q = yᵐ | (x², y²) |
| ∂P/∂x | How fast the x-part grows as you move in x | 2x = 2 |
| ∂Q/∂y | How fast the y-part grows as you move in y | 2y = 6 |
| (x₀, y₀) | The point where you measure | (1, 3) |