Two derivatives of a vector field F = (P, Q, R) carry its local behavior. The divergence ∇ · F = P_x + Q_y + R_z is a number at each point: the net outflow per unit volume, positive at a source and negative at a sink. The curl ∇ × F is a vector: its direction is the axis a tiny paddle wheel spins around fastest, and its length is twice the spin rate. Gradient fields have zero curl, and curls have zero divergence.
What you'll learn
Compute the curl and divergence of a vector field
Interpret divergence as outflow and curl as rotation
Use curl F = 0 to test whether a field is conservative
Apply the identities curl ∇f = 0 and div curl F = 0
A function of one variable has one derivative. A vector field
F=(P,Q,R) has nine partial derivatives, three components each
differentiated three ways. Two combinations of them carry most of the
meaning. Both are written with the operator
∇=(∂x∂,∂y∂,∂z∂)
treated as if it were a vector. Its dot product with F is the
divergence, a scalar:
divF=∇⋅F=∂x∂P+∂y∂Q+∂z∂R
Its cross product with
F is the curl, a vector field:
Put a tiny box with sides Δx, Δy, Δz in a fluid with
velocity F. Through the two faces perpendicular to the x-axis,
fluid leaves at rate about P(x+Δx)ΔyΔz and enters at
rate about P(x)ΔyΔz. The net outflow through that pair is
about PxΔxΔyΔz. Adding the other two pairs gives
(Px+Qy+Rz)ΔV. Divergence is the net outflow per unit
volume: positive where fluid is produced, a source, and negative where it is
absorbed, a sink.
For curl, look at the flat case F=(P,Q,0), where the curl is
(0,0,Qx−Py). Green’s theorem showed that Qx−Py is the
circulation per unit area around a tiny loop in the xy-plane. A tiny paddle
wheel with its axle along k is pushed by exactly that circulation,
and it spins at rate 21(Qx−Py). In space, the same holds for
an axle in any direction n: the circulation per unit area around a
loop perpendicular to n is (∇×F)⋅n.
The curl points along the axle that spins fastest, and its length is twice
that spin rate.
A shear flow, which spins without circling
The shear flow (y,0,0) has straight arrows, yet its curl is
(0,0,−1). A wheel in it feels a faster push on its upper side than on its
lower side, so it turns clockwise. Curl measures that local spin, not
whether the flow lines bend.
For any function f with continuous second partial derivatives,
∇×(∇f)=0
The first component of ∇×∇f is fzy−fyz=0, and the
others match the same way. This is the space version of the test from
the fundamental theorem for line integrals:
a gradient field has no spin. On all of space, or any region without holes,
the converse holds too, so a field with zero curl there is conservative.
For any vector field F with continuous second partial derivatives,
∇⋅(∇×F)=0
Expanding, the six terms cancel in pairs of equal mixed partials. A field
with nonzero divergence therefore cannot be the curl of anything.
Curl: (x−x,y−y,z−z). Divergence: 0+0+0. The field is ∇(xyz).
Find the curl of F=(x2y,yz,xz2).
Answer
(−y,−z2,−x2)
Full solution
Ry−Qz=0−y, Pz−Rx=0−z2, and Qx−Py=0−x2.
Find the divergence of the field in Exercise 2.
Answer
2xy+z+2xz
Full solution
∂x∂(x2y)+∂y∂(yz)+∂z∂(xz2).
Show that F=(exsiny,excosy,z) is conservative and find a potential.
Answer
∇×F=0; f=exsiny+2z2
Full solution
The curl is (0−0,0−0,excosy−excosy), and the field is defined everywhere. Integrating P in x gives exsiny+g(y,z); matching Q gives gy=0, and matching R gives g=2z2.
Find the divergence of the field in Exercise 4.
Answer
1
Full solution
exsiny−exsiny+1.
Find the curl of F=(0,0,x) and describe how a paddle wheel would turn.
Answer
(0,−1,0); it turns about the y-axis
Full solution
Ry−Qz=0, Pz−Rx=0−1, Qx−Py=0. The field points up where x>0 and down where x<0, so a wheel with its axle along the y-axis is pushed around, clockwise as seen from the positive y-axis.
Can G=(x,y,z) be the curl of a vector field?
Answer
No
Full solution
Its divergence is 3, but every curl has divergence 0.
Verify that ∇⋅(∇×F)=0 for the field of Example 1.
Answer
∂x∂(−2y−xy)+∂y∂(x)+∂z∂(yz)=−y+0+y=0
Full solution
The curl from Example 1 is (−2y−xy,x,yz). Its three terms differentiate to −y, 0 and y.
A student says the curl of (−y,x,0) is (0,0,0) because the field has no z-component. What went wrong?
Answer
The third component of the curl, Qx−Py=1−(−1)=2, uses P and Q, not R.
Full solution
A flat field spins about the axis perpendicular to its plane, so its curl points along k. The curl is (0,0,2).
Frequently asked questions
What is the divergence of a vector field?
For F = (P, Q, R), div F = ∇ · F = ∂P/∂x + ∂Q/∂y + ∂R/∂z. It measures the net rate at which the field flows out of a tiny box around the point, per unit volume.
What is the curl of a vector field?
curl F = ∇ × F = (R_y − Q_z, P_z − R_x, Q_x − P_y). Its direction is the axis around which the field circulates most strongly, and its length measures how strongly.
How do you remember the curl formula?
Write it as a 3 by 3 determinant with i, j, k in the first row, the operators ∂/∂x, ∂/∂y, ∂/∂z in the second, and P, Q, R in the third, then expand along the first row.
How does curl test whether a field is conservative?
A gradient field always has zero curl. Conversely, a field with continuous partial derivatives and zero curl on all of space is the gradient of some function.
What does zero divergence mean?
As much flows into every small region as flows out. A fluid with a divergence-free velocity field is incompressible.