Divergence and curl read two different local features off the same vector field: divergence is about local outflow, and curl is about local spin. Divergence measures whether the field is spreading out or squeezing in near a point, while curl measures whether it tends to make a small object rotate.

Divergence vs curl at a glance

Feature Divergence Curl
Detects local outflow or inflow local rotation
Result type scalar vector in 3D (scalar shortcut in 2D)
Pure example F=(x,y)\mathbf{F}=(x,y) spreads out G=(y,x)\mathbf{G}=(-y,x) swirls around
Mental tool a tiny balloon expanding a tiny paddle wheel turning

If you remember one contrast, make it this: divergence notices spreading, and curl notices swirling.

Divergence: local outflow or inflow

For a 3D vector field

F=(P,Q,R),\mathbf{F} = (P, Q, R),

the divergence is

F=Px+Qy+Rz.\nabla \cdot \mathbf{F} = \frac{\partial P}{\partial x} + \frac{\partial Q}{\partial y} + \frac{\partial R}{\partial z}.

This adds the rate of change of each component in its own direction. If the result is positive at a point, the field is locally acting more like an outward flow there. If it is negative, the field is locally acting more like an inward flow there. That flow picture is most useful when the vector field is differentiable near the point and actually represents something like velocity.

Curl: local rotation

For the same 3D field, the curl is

×F=(RyQz,PzRx,QxPy).\nabla \times \mathbf{F} = \left( \frac{\partial R}{\partial y} - \frac{\partial Q}{\partial z}, \frac{\partial P}{\partial z} - \frac{\partial R}{\partial x}, \frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} \right).

A nonzero curl means the field has a tendency to make a tiny paddle wheel spin. In a 2D field F=(P,Q)\mathbf{F} = (P, Q), many courses use

QxPy\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}

as "the curl." Strictly speaking, this is the zz-component of the 3D curl when the field lies in the plane.

Worked comparison: a spreading field vs a rotating field

The clearest comparison is to put a pure spreading field next to a pure rotating field.

First, consider

F(x,y)=(x,y).\mathbf{F}(x,y) = (x,y).

This field points away from the origin, and the arrows get longer as you move farther out. Its divergence is

F=xx+yy=1+1=2.\nabla \cdot \mathbf{F} = \frac{\partial x}{\partial x} + \frac{\partial y}{\partial y} = 1 + 1 = 2.

Its 2D curl value is

QxPy=yxxy=00=0.\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} = \frac{\partial y}{\partial x} - \frac{\partial x}{\partial y} = 0 - 0 = 0.

So this field has positive divergence and no curl. It behaves like pure local spreading without spin.

Now compare that with

G(x,y)=(y,x).\mathbf{G}(x,y) = (-y,x).

This field circles around the origin. Its divergence is

G=(y)x+xy=0+0=0.\nabla \cdot \mathbf{G} = \frac{\partial (-y)}{\partial x} + \frac{\partial x}{\partial y} = 0 + 0 = 0.

Its 2D curl value is

QxPy=xx(y)y=1(1)=2.\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} = \frac{\partial x}{\partial x} - \frac{\partial (-y)}{\partial y} = 1 - (-1) = 2.

So this field has zero divergence but nonzero curl. It behaves like local rotation without net spreading. That is the main contrast: F(x,y)=(x,y)\mathbf{F}(x,y) = (x,y) spreads out, while G(x,y)=(y,x)\mathbf{G}(x,y) = (-y,x) swirls around. If a problem asks what each quantity detects, this example already gives the answer.

When to reach for which

Divergence and curl appear in vector calculus, fluid flow, and electromagnetism because they separate two useful local behaviors: expansion and rotation. In fluid models, divergence can describe local compression or expansion of the flow, while curl can describe local spinning. In electromagnetism, both appear in Maxwell's equations, where they connect field behavior to charge, current, and changing fields. More broadly, they help you read a vector field instead of only plotting arrows.

A quick mental picture usually helps. A tiny balloon tests whether the field tends to expand or compress around a point; that is the divergence idea. A tiny paddle wheel tests whether the field tends to twist; that is the curl idea. These are pictures, not definitions, but they are useful when the field is smooth and represents something flow-like.

Points students confuse

  1. Treating divergence and curl as the same kind of measurement. They answer different questions.
  2. Forgetting that curl in 2D is often presented as a scalar shortcut, not the full 3D vector.
  3. Assuming positive divergence means the vectors are large. Divergence depends on how the field changes, not just on arrow length.
  4. Assuming zero divergence means the field is zero. A field can be nonzero everywhere and still have zero divergence.
  5. Using the flow interpretation without checking the model. "Source," "sink," and "rotation" are physical intuitions, not automatic facts in every context.

Test your eye for the difference

Take the field

H(x,y)=(2x,2y).\mathbf{H}(x,y) = (2x,-2y).

Compute its divergence and its 2D curl value, then decide whether the field behaves more like local spreading, local rotation, both, or neither. For one more check, try K(x,y)=(x,x)\mathbf{K}(x,y) = (x,-x) and see whether the divergence, the curl, or both change.

Frequently Asked Questions

What is the difference between divergence and curl?
Divergence measures local outflow or inflow, while curl measures local tendency to rotate. They describe different features of the same vector field.
Can a vector field have zero divergence and still have curl?
Yes. A field can have no net local outflow but still have local rotation, such as a pure swirling field.
Is curl in two dimensions a vector?
In many 2D courses it is written as a scalar $\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}$. More precisely, that scalar is the $z$-component of the 3D curl for a field lying in the $xy$-plane.

Need help with a problem?

Upload your question and get a verified, step-by-step solution in seconds.

Open GPAI Solver →