Computing Divergence in Cartesian Coordinates
You'll learn how to calculate the divergence of a vector field using partial derivatives in Cartesian coordinates.
The Core Idea
Now that you understand what divergence means conceptually (a measure of how much a vector field is "spreading out" or "converging" at a point), it's time to actually compute it. In Cartesian coordinates, divergence has a beautifully straightforward formula.
For a three-dimensional vector field F = ⟨P, Q, R⟩, where P, Q, and R are the component functions depending on x, y, and z, the divergence is:
div F = ∂P/∂x + ∂Q/∂y + ∂R/∂z
Think of it this way: you're measuring how much each component function changes in its own direction. The x-component P changes in the x-direction, the y-component Q changes in the y-direction, and the z-component R changes in the z-direction. Sum these three rates of change, and you get the total "outflow" at that point.
Example
Let F(x, y, z) = ⟨x², xy, z³⟩.
Then:
- P = x², so ∂P/∂x = 2x
- Q = xy, so ∂Q/∂y = x
- R = z³, so ∂R/∂z = 3z²
Therefore: div F = 2x + x + 3z² = 3x + 3z²
For two-dimensional fields F = ⟨P, Q⟩, simply use:
div F = ∂P/∂x + ∂Q/∂y
Key Takeaway: To compute divergence in Cartesian coordinates, take the partial derivative of each component function with respect to its corresponding variable and add them up: div F = ∂P/∂x + ∂Q/∂y + ∂R/∂z.