A9 · Lesson 35 · Vector identities
The rules for combining gradient, divergence and curl
Gradient, divergence and curl are three different derivatives, and they combine in a handful of identities that carry most of field theory. Two say that certain combinations always vanish: a gradient never curls, and a curl never diverges. Those two facts are why a static electric field can have a potential, why a magnetic field has no sources, and why charge is conserved. A third, the curl of a curl, is the step that turns Maxwell's equations into the wave equation for light.
- The field is : a mixture of a pure gradient (spreading out from the origin) and a pure rotation.
- The readouts give its divergence and curl, which are constant everywhere: and .
- Set : the field is a gradient, and its curl is zero. Set : it's a pure rotation, a curl of something, and its divergence is zero.
Predict
For any smooth scalar function , what is ?
Always zero. Each component of is a difference of mixed partials, like , and mixed partials of a smooth function are equal. Physically: walking around any closed loop on a hill, you end at the height you started, so a gradient field does no net work around a loop and has no circulation.
Name it
Second derivatives that vanish
and, for fields defined on all of space (or any region without holes), the converses hold:
- a field with zero curl is a gradient, so a static (with ) has a potential, ;
- a field with zero divergence is a curl, so means .
Product rules
The last one is the start of Poynting's theorem: energy flowing out of a region equals what the fields inside give up.
Curl of a curl
where takes the Laplacian of each component. In empty space , so taking the curl of Faraday's law and substituting Ampère–Maxwell gives : a wave at speed .
Charge conservation from
Taking the divergence of Ampère–Maxwell, , the left side vanishes, leaving : the field equations force charge to be conserved.
Worked example
Check for .
Show the solution
- Gradient.
- The curl's component.
- The other components. They vanish because nothing depends on and there's no component.
- Interpret. So is curl-free, and the work it does between two points is the change in , whatever the path.
Answer every component of is 0, as the identity says.
Worked example
Find , where and .
Show the solution
- Use the product rule. With and :
- Combine.
- Check directly. and adding the three components gives , the same.
Answer .
Worked example
Check the curl-of-curl identity for .
Show the solution
- Left side: curl twice. and its curl is , since enters the component with a minus sign.
- Right side: the divergence term. so .
- Right side: the Laplacian term.
- Compare.
Answer both sides equal , so the identity holds.
Check
Use the product rule for and . What is at = 2?
Check
What is divided by ?
Check
Which of these must be zero for every smooth field?
Check
A wave has with = 2 rad/m. What is at a crest, where the cosine is 1?
Check
Take .
(a)
What is ?
(b)
What is the component of ?
Check
Take and find the component of its curl.
Step 1
What is ?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What is ?
Check
On a 101 × 101 grid over , compute for with np.gradient, then the component of the curl of that gradient. Set worst to its largest size at interior points (away from the two outermost rows and columns).
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Explain why
Why does the identity force electric charge to be conserved?
Ampère–Maxwell says . The left side is a curl, and the divergence of any curl is zero, so the divergence of the right side must be zero too: . Gauss's law replaces by , leaving : current flowing out of any point must be matched by charge there decreasing. Maxwell added the displacement current partly because, without it, Ampère's law contradicted this for a charging capacitor.
Practice
Keep practicing
6 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.