MULTIVARIABLE CALCULUS 09
Divergence and Curl
Divergence measures local spreading or compression in a vector field, while curl measures local rotational tendency.
The main idea
Suppose we have a two-dimensional vector field
\[ \mathbf{F}(x,y) = \begin{pmatrix} P(x,y)\\ Q(x,y) \end{pmatrix}. \]At every point, the field gives a direction and magnitude.
Two important questions are:
Divergence answers the first question. Curl answers the second.
1. Divergence
For
\[ \mathbf{F} = \begin{pmatrix} P\\ Q \end{pmatrix}, \]the divergence is
The result is a scalar.
2. Reading the notation
The expression
\[ \nabla\cdot\mathbf{F} \]is read as
“the divergence of \(\mathbf{F}\)”
or sometimes
“del dot \(\mathbf{F}\)”.
3. What does divergence measure?
Imagine a very small region surrounding a point in a flowing fluid.
If more fluid flows out of the region than flows into it, the point behaves locally like a source.
If more flows in than out, it behaves locally like a sink.
4. Example of positive divergence
Consider
\[ \mathbf{F}(x,y) = \begin{pmatrix} x\\ y \end{pmatrix}. \]Here,
\[ P=x, \qquad Q=y. \]Therefore,
\[ \frac{\partial P}{\partial x}=1 \]and
\[ \frac{\partial Q}{\partial y}=1. \]Hence,
The positive value agrees with the fact that the vectors point outward from the origin.
5. Outward-flow diagram
6. Example of negative divergence
Consider
\[ \mathbf{F}(x,y) = \begin{pmatrix} -x\\ -y \end{pmatrix}. \]Then
\[ \frac{\partial(-x)}{\partial x}=-1 \]and
\[ \frac{\partial(-y)}{\partial y}=-1. \]Therefore,
\[ \boxed{ \nabla\cdot\mathbf{F}=-2 } \]The vectors point inward, so the field has negative divergence.
7. Zero divergence does not mean zero field
Consider
\[ \mathbf{F}(x,y) = \begin{pmatrix} -y\\ x \end{pmatrix}. \]Then
\[ \frac{\partial(-y)}{\partial x}=0 \]and
\[ \frac{\partial x}{\partial y}=0. \]So
\[ \boxed{ \nabla\cdot\mathbf{F}=0 } \]The field is not zero. It simply has no net local expansion or contraction.
8. Curl
Curl measures local rotational tendency.
For a two-dimensional field
\[ \mathbf{F} = \begin{pmatrix} P\\ Q \end{pmatrix}, \]the scalar rotational component is
This is the component of the three-dimensional curl perpendicular to the \(xy\)-plane.
9. Example of rotation
Again consider
\[ \mathbf{F}(x,y) = \begin{pmatrix} -y\\ x \end{pmatrix}. \]Here,
\[ P=-y, \qquad Q=x. \]Therefore,
\[ \frac{\partial Q}{\partial x}=1 \]and
\[ \frac{\partial P}{\partial y}=-1. \]Hence,
The nonzero result agrees with the rotational behaviour of the field.
10. Rotational-field diagram
11. Curl in three dimensions
For a three-dimensional vector field
\[ \mathbf{F} = \begin{pmatrix} P\\ Q\\ R \end{pmatrix}, \]the curl is a vector:
12. Determinant notation for curl
The same expression is often remembered using
\[ \nabla\times\mathbf{F} = \begin{vmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k}\\ \partial/\partial x & \partial/\partial y & \partial/\partial z\\ P & Q & R \end{vmatrix}. \]This is a useful mnemonic for calculating the components of the curl.
13. Physical intuition for curl
Imagine placing a tiny paddle wheel in a flowing fluid.
If the local flow tends to make the wheel rotate, the curl is nonzero.
The direction of the curl vector gives the axis of local rotation, according to the right-hand rule.
14. Divergence and curl are different
A field can spread without rotating.
For example,
\[ \mathbf{F}=(x,y) \]has positive divergence but zero two-dimensional curl.
A field can also rotate without spreading.
For example,
\[ \mathbf{F}=(-y,x) \]has zero divergence but nonzero curl.
15. Comparison
16. The operator \(\nabla\)
In three dimensions,
\[ \nabla = \begin{pmatrix} \partial/\partial x\\ \partial/\partial y\\ \partial/\partial z \end{pmatrix}. \]Applying it to a scalar field gives the gradient:
\[ \boxed{ \nabla f = \text{gradient} } \]Taking its dot product with a vector field gives divergence:
\[ \boxed{ \nabla\cdot\mathbf{F} = \text{divergence} } \]Taking its cross product with a vector field gives curl:
\[ \boxed{ \nabla\times\mathbf{F} = \text{curl} } \]17. Notice the different outputs
If \(f\) is a scalar field,
\[ \nabla f \]is a vector.
If \(\mathbf{F}\) is a vector field,
\[ \nabla\cdot\mathbf{F} \]is a scalar.
In three dimensions,
\[ \nabla\times\mathbf{F} \]is a vector.
18. Divergence in conservation models
Suppose
\[ \rho(x,y,z,t) \]represents the density of some conserved quantity and
\[ \mathbf{J} \]represents its flux.
A basic conservation equation is
If material flows out of a small region, the amount remaining inside decreases.
19. Why this matters in mathematical modelling
Divergence and curl allow us to describe local properties of flows without following every individual particle.
They appear in fluid dynamics, electromagnetism, diffusion, conservation laws and partial differential equations.
20. A useful warning
A picture of arrows can suggest whether a field is spreading or rotating, but divergence and curl are local derivative quantities.
They are calculated from how the vector components change near each point.
So the mathematical definitions, rather than visual appearance alone, determine their values.
21. The central idea
Together, divergence and curl reveal two fundamental local behaviours hidden inside a vector field.