Search

Search papers and lessons

Curl

Level 2 · 11 min read

Curl measures how much a vector field swirls or spins around each point, the local rotation that a tiny paddle wheel would feel.

On this page

  • Colour = topic mix
  • Calculus
  • Discrete math
  • Linear algebra
  • ReadReady to readNot yet

TL;DR

The curl of a Vector Field tells you how much the field swirls at each point. Imagine a tiny paddle wheel placed in the flow. Where the paddle spins, the field has curl, and the faster it spins, the larger the curl. Where the flow only pushes the paddle along without turning it, the curl is zero.

In three dimensions the curl of a field is another field, and its arrow points along the axis of the local spin. In two dimensions it is a single number. It is built from partial derivatives, so it reads how the field changes from place to place.

Builds on: Vector Field, Partial Derivative, Cross Product · Leads to: Maxwell's Equations, Vector Potential

Where it's used

Fluid flow and vorticity. Engineers studying air over a wing or water in a river ask where the flow spins. In fluid mechanics the curl of the velocity field is called vorticity. High values mark the eddies behind an obstacle and the swirls that form in a wake. Simulation software computes it at every grid point to show where turbulence is strongest.

Electromagnetism. Maxwell's equations state that the curl of the electric field equals the negative rate of change of the magnetic field. This is Faraday's law of induction written in local form. It explains why a magnet moving through a coil of wire makes a voltage across the coil, which is the working principle of many electric generators.

Computer graphics. Animators want smoke and water that swirl without bunching up or draining away. A technique called curl noise, from computer graphics, builds a velocity field as the curl of a smooth random function. Because a curl has no sources or sinks, particles follow swirling paths and never pile up.

How it works

Start with the simplest spinning field in the plane, F(x,y)=(−y, x)\mathbf{F}(x, y) = (-y,\ x). At each point the first number of the output is −y-y and the second is xx. Everything in this field turns counterclockwise around the origin. Its curl is one number, found in four steps.

flowchart LR
  A["Field F = (P, Q)"] --> B["How Q changes with x"]
  A --> C["How P changes with y"]
  B --> D["Subtract: Q-change minus P-change"]
  C --> D
  D --> E["Curl: one number that measures the spin"]
  1. Split the field into its two parts. Call the first output P and the second output Q. Here P = −y and Q = x. Check: P is the first number of the output, Q is the second.

  2. Measure how Q changes when x changes. Keep y fixed and let x grow. Q = x increases by 1 for every step of 1 in x, so this rate is 1. Check: the rate is the slope of the line Q = x, which is 1.

  3. Measure how P changes when y changes. Keep x fixed and let y grow. P = −y decreases by 1 for every step of 1 in y, so this rate is −1. Check: keep the minus sign, because P itself has one.

  4. Subtract the second rate from the first. The curl is 1 − (−1) = 2. A positive value means counterclockwise spin when you look at the plane from above. Check: a small paddle placed anywhere in this flow spins at 1 radian per second, and the curl is twice that, which is 2.

What you just computed is called the curl. The number is the same everywhere in the plane, even though the arrows get longer as you move away from the origin. Curl depends on how the field turns, not on how big its arrows are.

00.511.522.530123xlength
  • length of F at (x, 0)
Along the x-axis the arrows of F = (-y, x) grow as you move out, from length 1 at x = 1 to length 3 at x = 3. The curl stays 2 everywhere.

The math

Definition: Curl in the plane

For a field F(x,y)=(P(x,y), Q(x,y))\mathbf{F}(x, y) = (P(x, y),\ Q(x, y)), the curl is the single number

curl⁡ F=∂Q∂x−∂P∂y\operatorname{curl}\,\mathbf{F} = \frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}

Here ∂Q∂x\frac{\partial Q}{\partial x} is the partial derivative of QQ with respect to xx: the rate at which QQ changes as xx moves while yy is held fixed.

In three dimensions, for F(x,y,z)=(P,Q,R)\mathbf{F}(x, y, z) = (P, Q, R), the curl is a vector:

curl⁡ F=(∂R∂y−∂Q∂z, ∂P∂z−∂R∂x, ∂Q∂x−∂P∂y)\operatorname{curl}\,\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 memory aid is to write the three partial-derivative operators in a Determinant-shaped grid. The 2D formula is the third component of this vector when R = 0 and nothing depends on z.

Step 1 in symbols

The field is P=−yP = -y and Q=xQ = x. It has no third part, so R=0R = 0.

Step 2 in symbols

Recall that a Derivative along one input, with the others held fixed, is a partial derivative.

∂Q∂x=∂x∂x=1\frac{\partial Q}{\partial x} = \frac{\partial x}{\partial x} = 1

Step 3 in symbols

∂P∂y=∂(−y)∂y=−1\frac{\partial P}{\partial y} = \frac{\partial (-y)}{\partial y} = -1

Step 4 in symbols

curl⁡ F=1−(−1)=2\operatorname{curl}\,\mathbf{F} = 1 - (-1) = 2

Two facts that follow

If a field is the Gradient of a smooth function, its curl is zero everywhere. The reason is that for smooth functions the order of differentiation does not matter, so the two mixed partial derivatives in the formula cancel. A constant field, whose arrows never change, also has zero curl, because every partial derivative is zero.

Worked examples

Example
1. A tiny field: a shear that spins clockwise

Take F(x,y)=(y, 0)\mathbf{F}(x, y) = (y,\ 0). Find its curl.

  1. Identify the parts: P=yP = y and Q=0Q = 0.
  2. Compute ∂Q∂x=∂0∂x=0\frac{\partial Q}{\partial x} = \frac{\partial 0}{\partial x} = 0, because QQ is always zero.
  3. Compute ∂P∂y=∂y∂y=1\frac{\partial P}{\partial y} = \frac{\partial y}{\partial y} = 1.
  4. Subtract: curl⁡ F=0−1=−1\operatorname{curl}\,\mathbf{F} = 0 - 1 = -1.

The curl is negative, so the spin is clockwise. Check at the top of the unit circle, the point (0,1)(0, 1): the arrow there is (1,0)(1, 0), pointing right. Moving right at the top of a circle is a clockwise motion.

Example
2. The standard case: a three-dimensional field

Take F(x,y,z)=(xy, yz, xz)\mathbf{F}(x, y, z) = (xy,\ yz,\ xz). Find the curl at the point (1,2,3)(1, 2, 3).

  1. Identify the parts: P=xyP = xy, Q=yzQ = yz, R=xzR = xz.
  2. First component: ∂R∂y−∂Q∂z=0−y=−y\frac{\partial R}{\partial y} - \frac{\partial Q}{\partial z} = 0 - y = -y. Here ∂(xz)∂y=0\frac{\partial (xz)}{\partial y} = 0 and ∂(yz)∂z=y\frac{\partial (yz)}{\partial z} = y.
  3. Second component: ∂P∂z−∂R∂x=0−z=−z\frac{\partial P}{\partial z} - \frac{\partial R}{\partial x} = 0 - z = -z. Here ∂(xy)∂z=0\frac{\partial (xy)}{\partial z} = 0 and ∂(xz)∂x=z\frac{\partial (xz)}{\partial x} = z.
  4. Third component: ∂Q∂x−∂P∂y=0−x=−x\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} = 0 - x = -x. Here ∂(yz)∂x=0\frac{\partial (yz)}{\partial x} = 0 and ∂(xy)∂y=x\frac{\partial (xy)}{\partial y} = x.
  5. So curl⁡ F=(−y,−z,−x)\operatorname{curl}\,\mathbf{F} = (-y, -z, -x) as a function of position.
  6. Substitute (1,2,3)(1, 2, 3): the curl is (−2,−3,−1)(-2, -3, -1).

The spin axis points in the direction (−2,−3,−1)(-2, -3, -1), and its strength is 4+9+1=14\sqrt{4 + 9 + 1} = \sqrt{14}, about 3.74.

Example
3. A realistic case: a stirred cup of water

A stirrer turns water in a cup about the vertical zz-axis as a solid body. The velocity at horizontal position (x,y)(x, y) is v=(−ωy, ωx, 0)\mathbf{v} = (-\omega y,\ \omega x,\ 0), where ω\omega is the angular speed in radians per second. Take ω=0.5\omega = 0.5 rad/s, about 4.8 turns a minute. Find the curl.

  1. Identify the parts: P=−0.5 yP = -0.5\,y, Q=0.5 xQ = 0.5\,x, R=0R = 0.
  2. Compute ∂Q∂x=0.5\frac{\partial Q}{\partial x} = 0.5.
  3. Compute ∂P∂y=−0.5\frac{\partial P}{\partial y} = -0.5.
  4. Subtract: the vertical component is 0.5−(−0.5)=10.5 - (-0.5) = 1 rad/s.
  5. The other two components are zero, because R=0R = 0 and nothing depends on zz.
  6. Interpretation: the curl is 1 rad/s along the vertical axis. A small paddle anywhere in the water turns at half the curl, which is 0.5 rad/s, and the curl is the same everywhere in the cup.

Try it: the stirrer speeds up to ω=1.5\omega = 1.5 rad/s. What is the vertical component of the curl? Answer: the curl is 2ω=2×1.5=32\omega = 2 \times 1.5 = 3 rad/s along the vertical axis.

Common mistakes and tradeoffs

It is tempting to think curl is the spin of the arrows themselves. In fact it is the local rotation of the flow, which you read from how the arrows change across space. A field of arrows that all point the same way, such as (5,0)(5, 0) everywhere, has curl zero even though the arrows are long, because nothing changes from place to place.

It is tempting to think a zero curl means nothing moves. In fact zero curl means the flow has no local spin. Water sliding in a straight line at constant speed has zero curl. A flow with zero curl everywhere is called irrotational.

It is tempting to think the 2D curl is a vector. In fact in the plane it is a single number, the vertical component of the 3D curl. Its sign gives the direction of the spin: positive is counterclockwise, negative is clockwise.

It is tempting to think the order of the subtraction does not matter. In fact it does. Swapping the two terms in the 2D formula flips the sign, so always compute ∂Q∂x\frac{\partial Q}{\partial x} minus ∂P∂y\frac{\partial P}{\partial y}.

Use curl when the field is a vector field and you care about rotation, for example in fluid flow, magnetism or the analysis of a vortex. Do not use it on a scalar quantity such as a temperature map; for that, the Gradient is the right tool. Curl also gives a quick test: if the curl of a smooth field is not zero, the field is not the gradient of any smooth function. For a full description of all the partial derivatives at once, use the Jacobian Matrix, of which the curl is one part.

History

Vector calculus grew in the 1800s from two separate areas of physics: the rotation of fluids and the forces of electricity and magnetism. George Gabriel Stokes, a Cambridge mathematician, set a theorem that relates the spin inside a surface to the circulation around its edge, which is the idea behind curl. James Clerk Maxwell wrote the laws of electricity and magnetism in the 1860s in a form that used rotational terms. Josiah Willard Gibbs and Oliver Heaviside then rewrote those laws in the compact vector notation used today, in the 1880s. The idea caught on because it made fluid mechanics and electromagnetism share one language, and today computers evaluate curls at millions of points in simulations.

Recap

  • A vector field gives one arrow at every point of a plane or of space.
  • Curl measures local spin: subtract the cross partial derivatives.
  • In the plane the curl is a single number, ∂Q∂x−∂P∂y\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}. In three dimensions it is a vector.
  • Gradient fields and constant fields have zero curl. Rigid rotation (−ωy, ωx,0)(-\omega y,\ \omega x, 0) has curl 2ω2\omega along the vertical axis.
  • Read next: Maxwell's Equations, where the curl of the electric field gives the rate of change of the magnetic field, and Vector Potential, a field whose curl gives the magnetic field.

Check yourself

QuestionWhat is the curl of the field F(x,y)=(x,y)\mathbf{F}(x, y) = (x, y) at every point?Show answer

Here P=xP = x and Q=yQ = y. Then ∂Q∂x=0\frac{\partial Q}{\partial x} = 0 and ∂P∂y=0\frac{\partial P}{\partial y} = 0, so the curl is 0−0=00 - 0 = 0. The field points straight away from the origin and does not spin.

QuestionFind the curl of F(x,y)=(−y2, x)\mathbf{F}(x, y) = (-y^2,\ x) at the point (1,2)(1, 2).Show answer

Here P=−y2P = -y^2 and Q=xQ = x. Then ∂Q∂x=1\frac{\partial Q}{\partial x} = 1 and ∂P∂y=−2y\frac{\partial P}{\partial y} = -2y. The curl is 1−(−2y)=1+2y1 - (-2y) = 1 + 2y. At y=2y = 2 this is 1+4=51 + 4 = 5.

QuestionWhy does a constant field such as F(x,y)=(3,4)\mathbf{F}(x, y) = (3, 4) have zero curl, even though its arrows are long?Show answer

Curl depends only on how the field changes from one point to the next. A constant field has the same arrow everywhere, so every partial derivative of its parts is zero, and the curl is zero. Length alone does not create spin.

QuestionA map of a river's surface current shows a strongly positive curl near a bend, viewed from above with the usual axes. Which way does the water spin there?Show answer

A positive curl means counterclockwise spin when viewed from above with the vertical axis pointing up. So the water near the bend is turning counterclockwise, as seen from above.

Sources