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

A9 · Lesson 18 · Cylindrical and spherical coordinates

Coordinates that fit wires and charges

The magnetic field of a wire circles it, getting weaker with distance. In x and y it's the messy-looking μ0I2π(−y,x)x2+y2. Described by distance from the wire and direction around it, it's just "strength μ0I/2πr, pointing around." Choosing coordinates that match the shape of a problem turns hard integrals into easy ones, and every textbook formula for wires, cables and charges is written this way.

Play

  • The arrows show the magnetic field around a wire carrying current I out of the page at the origin. The point is placed by its distance r and angle φ instead of x and y.
  • The two short arrows at the point are the unit vectors r^ (straight out) and φ^ (around). Move the point. Which one does the field follow?
  • Change r and watch the field strength. Change φ: does the strength change?

Predict

In the x,y grid, a small patch has area dxdy. In polar coordinates, a patch spans dr outward and dφ around. What is its area?

Name it

Cylindrical and spherical coordinates

Cylindrical (r,φ,z): distance from an axis, angle around it, and height along it.

x=rcos⁡φy=rsin⁡φz=zr=x2+y2

Spherical (r,θ,φ): distance from a center, angle down from the z axis, and angle around it.

x=rsin⁡θcos⁡φy=rsin⁡θsin⁡φz=rcos⁡θ

(Math books sometimes swap the names θ and φ; physics and engineering books use these.)

Unit vectors that move. r^, φ^ and θ^ point differently at different places: in the plane, r^=(cos⁡φ,sin⁡φ) and φ^=(−sin⁡φ,cos⁡φ). That's why fields look simple in these coordinates:

SourceField
point charge Q𝐄=Q4πε0r2r^ (spherical)
line charge λ𝐄=λ2πε0rr^ (cylindrical)
wire carrying I𝐁=μ0I2πrφ^ (cylindrical)

Area and volume elements. A small patch or box isn't drdφ:

dA=rdrdφdVcyl=rdrdφdzdVsph=r2sin⁡θdrdθdφ

Integrals become easy when the region matches. The charge on a disk of radius R with density σ=σ0r/R:

Q=∫02π∫0Rσ0rRrdrdφ=2πσ0R23

and the volume of a sphere: ∫02π∫0π∫0Rr2sin⁡θdrdθdφ=R33⋅2⋅2π=43πR3.

Divergence of a spreading field. For a field pointing straight out from a center, Fr(r)r^, the divergence is 1r2ddr(r2Fr) in spherical coordinates. For Fr=1/r2 that's zero: a point charge's field has no divergence anywhere except at the charge itself, just as Gauss's law requires.

Worked example

Find the volume of a cylinder of radius R and height h in cylindrical coordinates.

Show the solution
  1. Set up the integral. The factor r in dV=rdrdθdz is essential: V=∫0h∫02π∫0Rrdrdθdz
  2. Integrate each factor. V=R22×2π×h=πR2h

Answer the volume is πR2h.

Worked example

A ball of radius R has density ρ=ρ0(1−r/R). What is its mass?

Show the solution
  1. Add up spherical shells. M=∫0Rρ0(1−rR)4πr2dr
  2. Integrate. M=4πρ0(R33−R34)=πρ0R33
  3. Compare with a uniform ball. That's a quarter of what a uniform ball at ρ0 would have.

Answer the mass is πρ0R33.

Worked example

Find the volume inside the unit sphere and within 45° of the z axis.

Show the solution
  1. Describe the region. In spherical coordinates it's 0≤r≤1, 0≤φ≤π4, 0≤θ≤2π, with dV=r2sin⁡φdrdφdθ
  2. Integrate each factor. V=2π⋅13⋅(1−cos⁡π4)=0.613
  3. Compare with the whole sphere. That's 14.6% of the whole sphere's 43π=4.19. The same integral with φ up to π gives the full volume.

Answer the volume is 0.613.

Check

A point is at r = 4 cm, φ = 20°. What is its x coordinate, in cm?

Write units the way you normally would: 1.5 cm, 15 mm and 0.015 m are the same answer.

Check

A disk of radius 1 m has charge density σ=4r/R nC/m², zero at the center and largest at the rim. What is its total charge?

Write units the way you normally would: 1.5 nC, 1500 pC and 0.0015 µC are the same answer.

Check

A ball of radius 1 cm holds a uniform charge density of 4 µC/m³. What is its total charge?

Write units the way you normally would: 1.5 nC, 1500 pC and 0.0015 µC are the same answer.

Check

A long wire carries 4 nC/m of charge. How strong is the electric field 1 cm from it?

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

Check

You integrate over a sphere using dV=drdθdφ, forgetting the r2sin⁡θ. What goes wrong?

Check

The cone within 45° of the z axis, inside the unit sphere.

(a)

What is its volume?

Check

Find the volume of a cylinder in cylindrical coordinates.

Step 1

What is ∫0Rrdr?

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

Explain why

Why does the area element in polar coordinates include a factor of r?

Practice

Keep practicing

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