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 , and ; in cylindrical or spherical coordinates they depend on a single variable, . Taking their divergence, curl or Laplacian there needs the right formulas, which carry extra factors of because the coordinate grid itself spreads out as grows.
- The curve is the field of a long rod of uniform charge density and radius , against distance from its axis.
- Inside, the field grows linearly with ; outside, it falls as . The two meet at the surface.
- The readouts give the divergence inside (constant, ) and outside (zero), computed with the cylindrical formula.
Predict
A point charge's field is . What is its divergence away from the charge?
Zero. In spherical coordinates, , and is constant. The field weakens as exactly as fast as the spheres it crosses grow, so no field lines start or end in empty space. Differentiating only forgets that spreading.
Name it
Cylindrical coordinates
Spherical coordinates , for fields that depend on only
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 , so a field with constant still has positive divergence (): its lines spread out. The in the terms converts an angle into a distance.
Fields to know
| Field | Divergence | Curl |
|---|---|---|
| (cylindrical: line charge) | 0 | 0 |
| (around a wire) | 0 | 0 |
| (rigid rotation) | 0 | |
| (spherical: point charge) | 0 | 0 |
| (spherical: uniform charge) | 3 | 0 |
Worked example
A long rod of radius carries uniform charge density . Find inside and check its divergence.
Show the solution
- Gauss's law on a cylinder. Take radius and length :
- Its divergence. as Gauss's law in differential form requires.
- A number. With µC/m³, at cm:
Answer inside, , whose divergence is ; with 1 µC/m³ it's 565 V/m at 1 cm.
Worked example
Check that the field around a wire, , has no curl outside the wire.
Show the solution
- Curl in cylindrical coordinates.
- Compare with Ampère's law. Outside the wire, where , Ampère's law holds with zero on both sides, even though the field circles.
- 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, .
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 in spherical coordinates, away from the origin.
Show the solution
- Differentiate. so , a constant.
- Laplacian.
- Interpret. The potential of a point charge is harmonic everywhere except at the charge. In two dimensions the same role is played by , the potential of a line charge.
Answer everywhere away from the origin.
Check
In cylindrical coordinates, what is the divergence of at = 2?
Check
In spherical coordinates, what is the divergence of at = 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 . What is the component of its curl at = 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, .
(a)
What is ?
(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 holds charge uniformly, so inside . Take .
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 201 × 201 grid over , compute the divergence of (a line charge's field) and of (a constant-size radial field) with np.gradient. Set d1 and d2 to their values at the grid point nearest , and formula2 to 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?
Divergence measures net flux out of a small volume, not whether the field changes along a line. Take a thin slab of a cylindrical shell between and : flux enters through the inner surface and leaves through the outer one, which is larger by the factor . With the same field strength on both, more leaves than enters, so there's net outflow, per unit volume in cylindrical coordinates and in spherical. A field that keeps its divergence zero must weaken as or , which is exactly how the fields of line and point charges behave.
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.