Divergence and Curl: Computing Them and Reading What They Mean

Two derivatives of a vector field

A vector field F = (P, Q, R) assigns a vector to every point of space. The gradient already tells us how a scalar function changes; divergence and curl are the two ways of differentiating a vector field, and they extract different information.


Divergence is a scalar: it measures how much the field spreads out at a point. Curl is a vector: it measures how much the field swirls at a point, and it points along the axis of that swirl.


Written with the symbolic operator del = (d/dx, d/dy, d/dz):


  • div F = dP/dx + dQ/dy + dR/dz, a scalar field.
  • curl F = (dR/dy - dQ/dz, dP/dz - dR/dx, dQ/dx - dP/dy), a vector field.


The pairing in each term of the divergence is strict: the first component is differentiated with respect to the first variable, the second with respect to the second, the third with respect to the third.


The curl uses six cross partial derivatives, each appearing once and arranged as three differences. In div(curl F), the resulting mixed second derivatives cancel in pairs.


Memorising the curl as the formal determinant of the three-by-three array whose rows are the unit vectors, the operators and the components reproduces the middle sign automatically, which is where most sign errors occur.

Computing divergence

Worked example. Let F = (x y2, 3 y z, x2 z). Then dP/dx = y2, dQ/dy = 3z and dR/dz = x2, so div F = y2 + 3z + x2.


Evaluating at the point (2, -1, 3) gives 1 + 9 + 4 = 14. Notice that divergence is a function of position: the same field has a different divergence elsewhere, and the sign of that number is what carries the meaning.


What does 14 mean? Enclose the point in a small ball of volume V and measure the net outward flux of F through its surface.


As the ball shrinks, the ratio of flux to volume approaches the divergence at that point. Positive divergence means the point acts as a source: more field leaves the small ball than enters it.


Negative divergence means a sink. Zero divergence at a point means the outflow and inflow balance there, and a field with zero divergence everywhere is called incompressible or solenoidal.

Computing curl

Worked example. Let G = (z, x, y). The first component of the curl is dR/dy - dQ/dz = 1 - 0 = 1; the second is dP/dz - dR/dx = 1 - 0 = 1; the third is dQ/dx - dP/dy = 1 - 0 = 1. So curl G = (1, 1, 1), a constant vector field.


The interpretation is mechanical: imagine a tiny paddle wheel held at a point in a fluid whose velocity field is G.


The wheel spins fastest when its axis is aligned with curl G, and its maximum angular speed is proportional to the magnitude of the curl. A field whose curl vanishes everywhere is called irrotational.


Two points about the paddle-wheel picture are worth keeping straight.


Curl measures local rotation, not whether the overall flow follows a circular path: a field can carry particles in circles while its curl is zero away from the centre, and a field of parallel straight lines with a transverse speed gradient has nonzero curl even though nothing travels in a circle.

Two identities that do most of the work

  • div(curl F) = 0 for any field with continuous second partial derivatives. Every term in the expansion appears twice with opposite signs and cancels, because mixed partial derivatives are equal for such fields. The practical use is as a veto: if a candidate field has nonzero divergence somewhere, it cannot be the curl of anything smooth.
  • curl(grad f) = 0 for any scalar function with continuous second partials, by the same cancellation. So a gradient field is always irrotational, which is why a nonzero curl immediately shows a field is not conservative.


Both identities are one-way tests. A zero divergence does not by itself prove a field is a curl, and a zero curl proves a field is a gradient only when the domain is simply connected; on a domain with a hole removed, irrotational fields that are not gradients exist.

Common misconceptions

  • Divergence is not the sum of the components of F, and it is not obtained by differentiating every component with respect to x. Each component is matched to its own variable.
  • The outputs have different types. Asking for the direction of a divergence or the value of a curl at a point as a single number is a type error; div returns a number and curl returns a vector.
  • All three curl components follow the cyclic formula (dR/dy - dQ/dz, dP/dz - dR/dx, dQ/dx - dP/dy). In a determinant expansion, the middle cofactor is -(dR/dx - dP/dz); omitting that minus sign reverses only the middle component.

Let F(x, y, z) = (3x2y, 2yz, xz3). What is div F at the point (1, 2, 1)?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Which statement correctly describes what div F and curl F produce and what each one measures?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Let F(x, y, z) = (yz, x2z, xy2). Compute the j-component (the second component) of curl F at the point (2, 3, 1). Report a decimal number.

Give your answer as a number.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors