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

A9 · Lesson 38 · Curvilinear coordinates

Derivatives that fit wires, cables and charges

The fields engineers meet most often have round symmetry: the field around a wire or inside a coaxial cable, the field of a charge or a charged sphere. In Cartesian coordinates their formulas are tangles of x, y and z; in cylindrical or spherical coordinates they depend on a single variable, r. Taking their divergence, curl or Laplacian there needs the right formulas, which carry extra factors of r because the coordinate grid itself spreads out as r grows.

  • The curve is the field of a long rod of uniform charge density and radius a, against distance from its axis.
  • Inside, the field grows linearly with r; outside, it falls as 1/r. The two meet at the surface.
  • The readouts give the divergence inside (constant, ρ/ε0) and outside (zero), computed with the cylindrical formula.

Predict

A point charge's field is kqr2𝐫^. What is its divergence away from the charge?

Name it

Cylindrical coordinates (r,θ,z)

∇f=∂f∂r𝐫^+1r∂f∂θ𝜽^+∂f∂z𝐳^
∇⋅𝐅=1r∂(rFr)∂r+1r∂Fθ∂θ+∂Fz∂z,(∇×𝐅)z=1r(∂(rFθ)∂r−∂Fr∂θ)
∇2f=1r∂∂r(r∂f∂r)+1r2∂2f∂θ2+∂2f∂z2

Spherical coordinates (r,θ,φ), for fields that depend on r only

∇f=f′(r)𝐫^,∇⋅(Fr𝐫^)=1r2d(r2Fr)dr,∇2f=1r2ddr(r2dfdr)

Where the factors come from

The divergence counts net flux out of a small box. In cylindrical coordinates the box's outer face is larger than its inner face by a factor r+drr, so a field with constant Fr still has positive divergence (Frr): its lines spread out. The 1r in the θ terms converts an angle into a distance.

Fields to know

FieldDivergenceCurl
1r𝐫^ (cylindrical: line charge)00
1r𝜽^ (around a wire)00
r𝜽^ (rigid rotation)02𝐳^
1r2𝐫^ (spherical: point charge)00
r𝐫^ (spherical: uniform charge)30

Worked example

A long rod of radius a carries uniform charge density ρ. Find 𝐄 inside and check its divergence.

Show the solution
  1. Gauss's law on a cylinder. Take radius r<a and length ℓ: E⋅2πrℓ=ρπr2ℓε0Er=ρr2ε0
  2. Its divergence. 1rddr(r⋅ρr2ε0)=1r⋅ρrε0=ρε0 as Gauss's law in differential form requires.
  3. A number. With ρ=1 µC/m³, at r=1 cm: E=10−6×0.012×8.854×10−12=565V/m

Answer inside, Er=ρr2ε0, whose divergence is ρε0; with 1 µC/m³ it's 565 V/m at 1 cm.

Worked example

Check that the field around a wire, 𝐁=μ0I2πr𝜽^, has no curl outside the wire.

Show the solution
  1. Curl in cylindrical coordinates. (∇×𝐁)z=1rddr(rBθ)=1rddr(μ0I2π)=0
  2. Compare with Ampère's law. Outside the wire, where 𝐉=0, Ampère's law ∇×𝐁=μ0𝐉 holds with zero on both sides, even though the field circles.
  3. Where the curl lives. All of its curl is concentrated in the wire, which is why every loop around the wire has the same circulation, μ0I.

Answer outside the wire the curl is 0, so Ampère's law holds there with zero on both sides.

Worked example

Find the Laplacian of V=1r in spherical coordinates, away from the origin.

Show the solution
  1. Differentiate. dVdr=−1r2 so r2dVdr=−1, a constant.
  2. Laplacian. ∇2V=1r2ddr(−1)=0
  3. Interpret. The potential of a point charge is harmonic everywhere except at the charge. In two dimensions the same role is played by ln⁡r, the potential of a line charge.

Answer ∇21r=0 everywhere away from the origin.

Check

In cylindrical coordinates, what is the divergence of 𝐅=1r2𝐫^ at r = 2?

Check

In spherical coordinates, what is the divergence of 𝐅=1r2𝐫^ at r = 2?

Check

A long rod with ρ = 1 µC/m³. What is the field 0.5 cm from its axis, inside the rod?

Write units the way you normally would: 1.5 V/m, 1500 mV/m and 0.0015 kV/m are the same answer.

Check

A rigid rotation has 𝐯=2r𝜽^. What is the z component of its curl at r = 0.5?

Check

A coaxial cable has inner radius 1 mm and outer radius 3 mm, with the inner conductor at 1 V and the outer at 0. Inside, V=Aln⁡r+B.

(a)

What is A?

(b)

What is the field at the inner conductor's surface?

Write units the way you normally would: 1.5 V/m, 1500 mV/m and 0.0015 kV/m are the same answer.

Check

A ball of radius R holds charge uniformly, so inside Er=kQrR3. Take k=1.

Step 1

What is r2Er?

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 201 × 201 grid over [0.5,2.5]2, compute the divergence of (x,y)x2+y2 (a line charge's field) and of (x,y)x2+y2 (a constant-size radial field) with np.gradient. Set d1 and d2 to their values at the grid point nearest (1.5,1.5), and formula2 to 1r there.

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 a field that points straight out with constant strength, 𝐅=𝐫^, have positive divergence even though its size never changes?

Practice

Keep practicing

7 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.