At any single point in a moving fluid, the flow can do two basic things: spread out or spin.
1
2D Divergence and Curl: The Box and the Paddlewheel
In a 2D vector field F=[P,Q],divergence measures how fast a tiny square box of fluid expands, and curl measures how fast the fluid spins a tiny paddlewheel counterclockwise.
2D Divergence and Curl: The Box and the Paddlewheel
Expansion comes from the flow stretching the box horizontally and vertically, while spin comes from the flow pushing one side of the paddlewheel harder than the other:
div F=horizontal stretch∂x∂P+vertical stretch∂y∂Q,curl F=upward push onright vs. left blade∂x∂Q−rightward push ontop vs. bottom blade∂y∂P
Straight flow lines can still spin a paddlewheel if neighboring layers move at different speeds, and a solid rotation pushes both pairs of blades at once.
Because both pairs of blades add to the curl, the curl is always twice the paddlewheel's actual spin rate:
angular speed=2∣curl F∣
2
Extending Divergence and Curl to 3D Space
In 3D space, a vector field F=[P,Q,R] has a third flow component R in the z-direction, and a spinning fluid no longer has to lie flat in the xy-plane. Divergence in 3D is still a single number measuring how fast the volume of a tiny cube expands, while curl in 3D is a vector pointing along the fluid's axle of rotation with a length equal to twice the paddlewheel's spin speed.
Extending Divergence and Curl to 3D Space
Adding the stretch across all three pairs of opposite cube faces gives the 3D divergence:
div F=∂x∂P+∂y∂Q+∂z∂R⎩⎨⎧>0<0=0expanding outwardcompressing inwardkeeping constant volume
To find the 3D curl vector, we pin three 2D paddlewheels along the x-, y-, and z-axes. Each wheel gives one component of the rotation axle, pointing in the direction of your right thumb when your fingers curl with the spin:
curl F=spin around x-axle∂y∂R−∂z∂Q,spin around y-axle∂z∂P−∂x∂R,spin around z-axle∂x∂Q−∂y∂P
Those three spins combine into the 3D curl vector. A paddlewheel spins fastest (at half the curl vector's length) when its axle lines up with the curl vector, and stops spinning when tilted perpendicular to it.
In a steady 3D swirl, a paddlewheel spins fastest when its axle lines up with the curl vector built from the three coordinate paddlewheels, and stops completely when tilted perpendicular to it.
3
The Del Operator: Dot and Cross Products
Cycling the letters x→y→z→x by hand to write out all six partial derivatives of the 3D curl is easy to mix up, especially in the middle slot. To keep the slots and signs straight automatically, we write the three partial derivatives ∂x∂,∂y∂, and ∂z∂ as a vector called the del operator:
∇=[∂x∂,∂y∂,∂z∂]
With ∇, divergence is the dot product ∇⋅F and curl is the cross product ∇×F.
The Del Operator: Dot and Cross Products
∇=[∂x∂,∂y∂,∂z∂]
F=[P,Q,R]
∇⋅F=?∇×F=?
Taking the dot product of ∇ with F=[P,Q,R] pairs each flow component with its own coordinate direction, while taking the cross product of ∇ with F pairs perpendicular directions using a 3×3 determinant:
In the middle −j^ slot, write the minus sign out in front of (∂x∂R−∂z∂P) before simplifying; that built-in determinant sign is what flips the subtraction into ∂z∂P−∂x∂R.
4
Worked Example: 3D Divergence and Curl at a Point
In most 3D vector fields, the partial derivatives still depend on x,y, and z, so expansion and rotation change from point to point. Let's find the divergence ∇⋅F and curl ∇×F of
F(x,y,z)=[xz,xyz,−y2]
and find out how a tiny cube and paddlewheel behave at the point (1,2,3).
Worked Example: 3D Divergence and Curl at a Point
Text solution
Differentiate each component with respect to its matching variable and addTake ∂x∂P,∂y∂Q, and ∂z∂R and add them to get the scalar divergence formula:
∇⋅F=∂x∂(xz)+∂y∂(xyz)+∂z∂(−y2)=z+xz+0=z+xz
Plug (1,2,3) into ∇⋅F to check the cube's volumePlug x=1,y=2, and z=3 into ∇⋅F to see whether the fluid cube at that point is expanding or compressing:
(∇⋅F)(1,2,3)=3+(1)(3)=6>0(expanding)
Expand the 3×3 determinant across the top row for ∇×FCross out each column in turn using the +,−,+ sign rule to find the three components of the curl vector field:
Plug (1,2,3) into ∇×F and divide its length by 2 for the angular speedPlug (1,2,3) into the curl vector to find the paddlewheel's rotation axle, then divide its length by 2 to find the actual spin speed:
(∇×F)(1,2,3)=[−2(2)−(1)(2),1,(2)(3)]=[−6,1,6]
angular speed=2∣[−6,1,6]∣=2(−6)2+12+62=273 radians per second
As a bit of fluid moves through F=[xz,xyz,−y2], the expansion ∇⋅F=z+xz and rotation ∇×F=[−2y−xy,x,yz] change from place to place. Anywhere on the xy-plane (z=0), the cube keeps constant volume (∇⋅F=0) even while the fluid still spins the paddlewheel.
Expansion and rotation change from point to point here, and on the flat plane the fluid stops expanding or shrinking while still spinning the wheel.
5
Why Curl of a Gradient and Divergence of a Curl Are Zero
Applying ∇ twice in a row gives two identities that equal zero everywhere: for any smooth potential function f, the curl of its gradient is the zero vector (∇×(∇f)=[0,0,0]), and for any smooth vector field F, the divergence of its curl is zero (∇⋅(∇×F)=0).
Remember, we can test whether F=[P,Q,R] is a conservative gradient field (F=∇f) by checking three pairs of partial derivatives: ∂y∂R=∂z∂Q,∂z∂P=∂x∂R, and ∂x∂Q=∂y∂P. Those three equations just say that all three components of ∇×F equal zero.
Why Curl of a Gradient and Divergence of a Curl Are Zero
∇×(∇f)=?
∇⋅(∇×F)=?
Because a walk around a closed loop ends at the same height it started, the climbing and descending along any tiny loop add up to zero, so a gradient field ∇f has zero circulation around every tiny loop and cannot spin a paddlewheel anywhere (∇×(∇f)=[0,0,0]).
Everywhere on a potential hill, the uphill gradient pushes on opposite sides of a tiny loop cancel each other out, so the paddlewheel never turns.
In algebra, plugging ∇f=[fx,fy,fz] into the curl pairs each mixed second derivative with the same derivative taken in the reverse order, which are equal by Clairaut's theorem (fzy=fyz):
∇×(∇f)=[fzy−fyz,fxz−fzx,fyx−fxy]=[0,0,0]
In the same way, taking the divergence of ∇×F gives six mixed second derivatives that cancel in pairs:
On a tiny cube with an outward-facing counterclockwise paddlewheel on each of its six faces, every edge is shared by two neighboring faces whose loops run along that edge in opposite directions, so all the spins cancel out of the closed box.
Key concepts
Whenever a question asks about local expansion, compression, or constant volume, use the divergence∇⋅F=∂x∂P+∂y∂Q+∂z∂R (or ∂x∂P+∂y∂Q in 2D). Because it is a dot product, divergence is always a single number (a scalar), never a vector: for F=[x2,yz,−z2],∇⋅F=2x+z−2z=2x−z, which tells you where a tiny fluid cube expands (∇⋅F>0), compresses (∇⋅F<0), or keeps constant volume (∇⋅F=0, on the plane z=2x).
Whenever a question asks about local spin, a rotation axle, or angular speed, use the curl. In 2D, curl F=∂x∂Q−∂y∂P is a scalar (>0 counterclockwise, <0 clockwise); in 3D, ∇×F is the 3×3 cross-product determinant, which gives the rotation-axle vector. Don't assume straight flow arrows mean zero curl: a straight shear flow like F=[y,0] still spins a paddlewheel (curl F=−1) because neighboring layers move at different speeds. Once you have the curl, watch out for two common mistakes: include the minus sign on the middle −j^ determinant slot, and divide the curl's magnitude by 2 to get the paddlewheel's actual angular speed (angular speed=21∣∇×F∣).
When checking whether a vector field comes from a potential function f or another vector field F, use the matching zero test:
Gradient field test (F=∇f)
Check ∇×F=[0,0,0]. Don't take ∇⋅F to test for a conservative gradient field: an uphill gradient flow can still spread out or bunch up.
Curl field test (G=∇×F)
Check ∇⋅G=0. For G=[2xy,y2+z,3xz], finding ∇⋅G=2y+2y+3x=3x+4y=0 right away rules out G=∇×F without having to work backward through a determinant.
6
Practice
1
For the 2D vector field F(x,y)=[3x+4y,−2x+y], find the 2D divergence and 2D curl. At any point in the flow, is a tiny square box of fluid expanding or compressing, and in what direction and at what angular speed does a tiny paddlewheel spin?
Pair each component with its matching variable (∂x∂P+∂y∂Q) for the box, and with the opposite variable (∂x∂Q−∂y∂P) for the paddlewheel. Then remember how curl relates to actual angular speed.
For P=3x+4y and Q=−2x+y, add the matching partial derivatives for divergence:
div F=∂x∂(3x+4y)+∂y∂(−2x+y)=3+1=4
For the 2D curl, take ∂x∂Q−∂y∂P (be careful not to subtract in the reverse order ∂y∂P−∂x∂Q=4−(−2)=6, which flips the spin direction to counterclockwise):
curl F=∂x∂(−2x+y)−∂y∂(3x+4y)=−2−4=−6
Since div F=4>0, the tiny box is expanding. Since curl F=−6<0, the paddlewheel spins clockwise, and dividing ∣curl F∣ by 2 (forgetting to divide by 2 gives the common wrong speed of 6) gives an angular speed of 2∣−6∣=3 radians per second.
2
Find the divergence ∇⋅F of the 3D vector field F(x,y,z)=[x2,yz,−z2]. Is a tiny cube of fluid at (1,4,5) expanding, compressing, or keeping constant volume, and on what plane in 3D space does the fluid keep constant volume?
Add the three partial derivatives ∂x∂P+∂y∂Q+∂z∂R into a single scalar expression, plug in (1,4,5), and set ∇⋅F=0 for the constant-volume plane.
Differentiate each slot with respect to its matching coordinate variable and add them together (watch the middle slot yz: differentiating with respect to z instead of y gives the wrong divergence 2x+y−2z, and leaving the derivatives as a vector [2x,z,−2z] misses that divergence is a scalar sum):
∇⋅F=∂x∂(x2)+∂y∂(yz)+∂z∂(−z2)=2x+z−2z=2x−z
At (1,4,5), we have (∇⋅F)(1,4,5)=2(1)−5=−3<0, so the tiny cube of fluid is compressing inward. Setting ∇⋅F=2x−z=0 shows that the fluid keeps constant volume on the plane z=2x.
3
Compute the curl ∇×F of the vector field F(x,y,z)=[y2z,xz,2xy]. Then find the rotation axle vector and the angular speed of a tiny paddlewheel placed at the point (2,1,3).
Expand the 3×3 determinant with top-row signs +i^,−j^,+k^, plug (2,1,3) into the resulting vector, and take half of its magnitude for the angular speed.
Set up and expand the cross-product determinant (be careful to include the minus sign on the middle −j^ slot; leaving it off gives 2y−y2 in the middle slot and leads to the wrong axle [2,1,−3]):
Plugging in (2,1,3) gives the rotation axle vector:
(∇×F)(2,1,3)=[2,12−2(1),3−2(1)(3)]=[2,−1,−3]
Dividing the length of the curl vector by 2 (reporting the full length 14 forgets that curl is twice the spin rate) gives an angular speed of 2∣[2,−1,−3]∣=222+(−1)2+(−3)2=214 radians per second.
4
Find the constants a and b such that the vector field F(x,y,z)=[2xy+z3,ax2+bz,3xz2+4y] has zero curl everywhere, as needed for a conservative gradient field F=∇f.
Be careful when differentiating ax2 with respect to x not to drop the 2, which would give a=2.
Compute ∇×F and set all three components equal to 0 for every (x,y,z).
Compute the three components of ∇×F (don't take the divergence ∇⋅F=2y+6xz, which does not test whether F is a gradient field, and be careful when differentiating ax2 with respect to x not to drop the 2, which would give a=2):
Setting [4−b,0,(2a−2)x]=[0,0,0] for all (x,y,z) gives 4−b=0 and 2a−2=0, so a=1 and b=4.
5
Can the vector field G(x,y,z)=[2xy,y2+z,3xz] be the curl of another 3D vector field F (so that G=∇×F)? Explain why or why not.
Because ∇⋅(∇×F)=0 for any curl field, check whether ∇⋅G equals 0 everywhere.
If G=∇×F, then its divergence must be zero everywhere (∇⋅(∇×F)=0). Taking the divergence of G (don't confuse this with the conservative test and compute ∇×G=[−1,−3z,−2x], and don't just plug in (0,0,0) where the divergence happens to be 0):