A935 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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 𝐅=α(x,y)+β(−y,x): 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: 2α and 2β.
  • Set β=0: the field is a gradient, and its curl is zero. Set α=0: it's a pure rotation, a curl of something, and its divergence is zero.

Predict

For any smooth scalar function f, what is ∇×(∇f)?

Name it

Second derivatives that vanish

∇×(∇f)=𝟎,∇⋅(∇×𝐀)=0

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 ∇×𝐄=0) has a potential, 𝐄=−∇V;
  • a field with zero divergence is a curl, so ∇⋅𝐁=0 means 𝐁=∇×𝐀.

Product rules

∇⋅(f𝐅)=f∇⋅𝐅+𝐅⋅∇f
∇×(f𝐅)=f∇×𝐅+∇f×𝐅
∇⋅(𝐄×𝐇)=𝐇⋅(∇×𝐄)−𝐄⋅(∇×𝐇)

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

∇×(∇×𝐅)=∇(∇⋅𝐅)−∇2𝐅

where ∇2𝐅 takes the Laplacian of each component. In empty space ∇⋅𝐄=0, so taking the curl of Faraday's law and substituting Ampère–Maxwell gives ∇2𝐄=μ0ε0∂2𝐄∂t2: a wave at speed 1μ0ε0.

Charge conservation from ∇⋅∇×=0

Taking the divergence of Ampère–Maxwell, ∇×𝐇=𝐉+∂𝐃∂t, the left side vanishes, leaving ∇⋅𝐉+∂ρ∂t=0: the field equations force charge to be conserved.

Worked example

Check ∇×(∇f)=𝟎 for f=x2y.

Show the solution
  1. Gradient. ∇f=(2xy,x2,0)
  2. The curl's z component. ∂∂x(x2)−∂∂y(2xy)=2x−2x=0
  3. The other components. They vanish because nothing depends on z and there's no z component.
  4. Interpret. So ∇f is curl-free, and the work it does between two points is the change in f, whatever the path.

Answer every component of ∇×(∇f) is 0, as the identity says.

Worked example

Find ∇⋅(r2𝐫), where 𝐫=(x,y,z) and r2=x2+y2+z2.

Show the solution
  1. Use the product rule. With f=r2 and 𝐅=𝐫: ∇⋅𝐫=3,∇r2=2𝐫
  2. Combine. ∇⋅(r2𝐫)=r2⋅3+𝐫⋅2𝐫=3r2+2r2=5r2
  3. Check directly. ∂∂x(xr2)=r2+2x2 and adding the three components gives 3r2+2r2, the same.

Answer ∇⋅(r2𝐫)=5r2.

Worked example

Check the curl-of-curl identity for 𝐅=(0,x2,0).

Show the solution
  1. Left side: curl twice. ∇×𝐅=(0,0,2x) and its curl is (0,−2,0), since ∂(2x)∂x=2 enters the y component with a minus sign.
  2. Right side: the divergence term. ∇⋅𝐅=∂(x2)∂y=0 so ∇(∇⋅𝐅)=𝟎.
  3. Right side: the Laplacian term. ∇2𝐅=(0,2,0)
  4. Compare. 𝟎−(0,2,0)=(0,−2,0)

Answer both sides equal (0,−2,0), so the identity holds.

Check

Use the product rule for f=2x2 and 𝐅=(1x,0,0). What is ∇⋅(f𝐅) at x = 2?

Check

What is ∇⋅(r3𝐫) divided by r3?

Check

Which of these must be zero for every smooth field?

Check

A wave has Ex=2cos⁡(kz−ωt) with k = 2 rad/m. What is |∇2Ex| at a crest, where the cosine is 1?

Check

Take 𝐅=(1x−3y,1y+3x,0).

(a)

What is ∇⋅𝐅?

(b)

What is the z component of ∇×𝐅?

Check

Take 𝐀=(yz,xz,xy) and find the x component of its curl.

Step 1

What is ∂Az∂y?

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°.

Check

On a 101 × 101 grid over [0,2]2, compute ∇f for f=y2sin⁡x with np.gradient, then the z 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 ∇⋅(∇×𝐇)=0 force electric charge to be conserved?

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.