Multivariable calculus
Curl of the Gradient Field (yz, xz, xy)
The curl of the field with components yz, xz and xy is the zero vector. The field is the gradient of the product xyz, and Clairaut's theorem makes the mixed second partials in each curl component agree, so all three differences cancel. Its divergence is zero as well.
Spot the gradient before you compute anything
Set . Differentiating in each variable in turn gives , and , which is this field exactly. Recognising that saves the whole computation, because the curl of a gradient is always zero.
The reason is Clairaut's theorem. Each curl component is a difference of two mixed second partials of , taken in opposite orders, and for a function with continuous second partials the order does not matter.
That argument holds for any built from polynomials, exponentials, sines and cosines, which is every potential you will meet in this course.
Do the arithmetic anyway
The identity is worth trusting only after you have watched it work once. All six partials here are nonzero, and they cancel in matched pairs.
Contrast this with , whose curl is also zero. There every partial in the formula was zero on its own; here every partial is alive and the cancellation does the work. Both are conservative, but only one of them shows you Clairaut in action.
The mistake: swapping the two vanishing identities
Two identities get memorised together and then confused: for any smooth , and for any smooth . The curl of a gradient is zero; the divergence of a curl is zero. Neither says anything about the divergence of a gradient.
The divergence of a gradient is the Laplacian, , and it is usually not zero. It happens to vanish here because is harmonic, with all three second partials , and equal to zero.
Test the difference on . Its gradient is , whose curl is as the identity promises, but whose divergence is . Zero curl came free; zero divergence did not.
The identity is not taken on trust: each build differentiates P, Q and R numerically and checks that all three curl components come out zero.
Frequently asked questions
Why does Clairaut's theorem matter here?
Because the curl of a gradient is zero only when the mixed second partials agree, and that needs them to be continuous. For they are polynomials, so the hypothesis holds everywhere and the conclusion is safe. Functions built to have discontinuous second partials can fail it, which is why the theorem carries a hypothesis at all.
Does a zero divergence follow from the field being a gradient?
No. is the Laplacian , which vanishes only for harmonic . Here is harmonic, so both operators return zero, but gives the gradient with zero curl and divergence .