← Chapter 2 §2.7 Cylindrical and Spherical Coordinates 柱坐标与球坐标 · Chapter 2 · Vectors in Space

Calculus Volume 3 · Chapter 2 · Section 2.7

Cylindrical and Spherical Coordinates

Three numbers still name a point in space, but two of them can be angles: polar coordinates with a height, or a distance with two angles.

Colour key r, ρ θ z φ key idea · 3D figures turn when you drag them · page links open the textbook

Level 1 · see itTwo new ways to name a pointbefore the formulas

One point, three addresses

Rectangular coordinates give three distances along the axes. For round things — a water tank, a pipe, a dome — a distance and an angle say it more simply (p209). Example 2.60's point, three ways:

systemaddresshow to get there
rectangular(2, 23, 2)(-2,\ 2\sqrt3,\ -2)along xx, along yy, down
cylindrical(4, 2π3, 2)(4,\ \tfrac{2\pi}{3},\ -2)turn 2π3\tfrac{2\pi}{3}, go out 4, down 2
spherical(25, 2π3, 2.03)(2\sqrt5,\ \tfrac{2\pi}{3},\ 2.03)turn, tilt 2.03 rad from straight up, go 252\sqrt5

The point stays put; only the directions for reaching it change.

Grey: along the axes. Blue, amber, teal: out, turn, down. Dashed blue with the red angle: one distance, two angles.

Cylindrical: polar plus a height

Definition · p210

(r,θ)(r,\theta) are the polar coordinates of the point's shadow in the xyxy-plane; zz is the usual height.

x=rcosθ,y=rsinθ,z=z x=r\cos\theta,\qquad y=r\sin\theta,\qquad z=z

Cylindrical coordinates are polar coordinates with zz carried along unchanged.

Example 2.60: 4cos2π3=24\cos\tfrac{2\pi}{3}=-2, 4sin2π3=234\sin\tfrac{2\pi}{3}=2\sqrt3, so (4,2π3,2)(4,\tfrac{2\pi}{3},-2) is (2,23,2)(-2,2\sqrt3,-2).

The floor triangle gives xx and yy; the height is untouched.

Spherical: a distance and two angles

Definition · p215
  • ρ\rho: the distance from the origin
  • θ\theta: the same angle as in cylindrical coordinates
  • φ\varphi: the angle from the positive zz-axis, 0φπ0\le\varphi\le\pi
x=ρsinφcosθ,y=ρsinφsinθ,z=ρcosφ x=\rho\sin\varphi\cos\theta,\quad y=\rho\sin\varphi\sin\theta,\quad z=\rho\cos\varphi

φ\varphi is measured down from the north pole, not up from the floor.

Example 2.63: (8,π3,π6)(8,\tfrac\pi3,\tfrac\pi6). The standing triangle has legs r=4r=4 and z=43z=4\sqrt3.

One picture

Cylindrical: r=cr=c, θ=c\theta=c, z=cz=c.
Spherical: ρ=c\rho=c, θ=c\theta=c, φ=c\varphi=c.

Hold one coordinate fixed and it sweeps a surface; a point is where one surface of each kind meets.

Level 2 · compute itConverting, and naming surfacesand four labs

The conversion formulas

Theorem 2.15 · p210 x=rcosθr2=x2+y2y=rsinθtanθ=yxz=zz=z \begin{aligned} x&=r\cos\theta & r^2&=x^2+y^2\\ y&=r\sin\theta & \tan\theta&=\tfrac yx\\ z&=z & z&=z \end{aligned}
Theorem 2.16 · p215 x=ρsinφcosθρ2=x2+y2+z2y=ρsinφsinθtanθ=yxz=ρcosφφ=arccoszρ \begin{aligned} x&=\rho\sin\varphi\cos\theta & \rho^2&=x^2+y^2+z^2\\ y&=\rho\sin\varphi\sin\theta & \tan\theta&=\tfrac yx\\ z&=\rho\cos\varphi & \varphi&=\arccos\tfrac{z}{\rho} \end{aligned}

To and from cylindrical: r=ρsinφr=\rho\sin\varphi, z=ρcosφz=\rho\cos\varphi; ρ=r2+z2\rho=\sqrt{r^2+z^2}.

tan θ = y/x is not enough

It holds for θ\theta and θ+π\theta+\pi alike (p210). Choose θ\theta in the quadrant of (x,y)(x,y): for (1,1)(-1,1), arctan(1)=π4\arctan(-1)=-\tfrac\pi4, but θ=3π4\theta=\tfrac{3\pi}{4}.

Every formula is a right triangle: one lying in the floor (x,y,rx,y,r), one standing up (r,z,ρr,z,\rho).

Hold one coordinate fixed

Figure 2.92, Figure 2.99; Lab 3 draws each one.

equationsurfacein rectangular coordinates
r=cr=ccylinder of radius cc about the zz-axisx2+y2=c2x^2+y^2=c^2
θ=c\theta=chalf-plane leaving the zz-axis at angle cchalf of y=xtancy=x\tan c
z=cz=chorizontal planez=cz=c
ρ=c\rho=csphere of radius cc about the originx2+y2+z2=c2x^2+y^2+z^2=c^2
φ=c\varphi=chalf-cone about the zz-axis; c=π2c=\tfrac\pi2 is the xyxy-planehalf of z2=(x2+y2)cot2cz^2=(x^2+y^2)\cot^2 c

Choose the system in which your shape is one coordinate held fixed.

Examples 2.60–2.67

Examplegivenresult
2.60 · p211cylindrical (4,2π3,2)(4,\tfrac{2\pi}{3},-2)rectangular (2,23,2)(-2,2\sqrt3,-2)
2.61 · p212rectangular (1,3,5)(1,-3,5)cylindrical (10, arctan(3)+2π, 5)(10,5.03,5)(\sqrt{10},\ \arctan(-3)+2\pi,\ 5)\approx(\sqrt{10},5.03,5)
2.62 · p213θ=π4\theta=\tfrac\pi4; r2+z2=9r^2+z^2=9; z=rz=rhalf-plane; sphere of radius 3; cone
2.63 · p217spherical (8,π3,π6)(8,\tfrac\pi3,\tfrac\pi6)rectangular (2,23,43)(2,2\sqrt3,4\sqrt3); cylindrical (4,π3,43)(4,\tfrac\pi3,4\sqrt3)
2.64 · p218rectangular (1,1,6)(-1,1,\sqrt6)spherical (22,3π4,π6)(2\sqrt2,\tfrac{3\pi}{4},\tfrac\pi6); cylindrical (2,3π4,6)(\sqrt2,\tfrac{3\pi}{4},\sqrt6)
2.65 · p218θ=π3\theta=\tfrac\pi3; φ=5π6\varphi=\tfrac{5\pi}{6}; ρ=6\rho=6; ρ=sinθsinφ\rho=\sin\theta\sin\varphihalf-plane; half-cone 3x2+3y2z2=03x^2+3y^2-z^2=0, z0z\le0; sphere of radius 6; sphere x2+(y12)2+z2=14x^2+(y-\tfrac12)^2+z^2=\tfrac14
2.66 · p221Columbus, 40° N, 83° W(4000, 83, 50)(4000,\ -83^\circ,\ 50^\circ)
2.67 · p222bowling ball; submarine; conical tank; pipeline; footballspherical; rectangular; cylindrical; cylindrical; cylindrical

Lab 1 · a point in cylindrical coordinates

4 120° −2
presets

Try: on the z-axis — with r=0r=0, every θ\theta gives the same point. θ=180\theta=180^\circ and θ=180\theta=-180^\circ — the same half-plane. Going back, the signs of xx and yy pick the quadrant.

Lab 2 · a point in spherical coordinates

8 60° 30°
presets

Try: in the floorφ=90\varphi=90^\circ, so z=0z=0 and r=ρr=\rho. below the floorφ>90\varphi>90^\circ, z<0z<0. ρsinφ\rho\sin\varphi is the distance from the zz-axis: the cylindrical rr.

Lab 3 · coordinate surfaces

hold fixed
r = 2

Try: φ = c at 90° — the cone flattens into the xyxy-plane (Exercise 397); past 90° it opens downward. θ = c — only half a plane: the other half is θ=c±180\theta=c\pm180^\circ.

Lab 4 · latitude and longitude

Earth as a sphere of radius 4000 mi, the zz-axis through the North Pole, the xx-axis through the prime meridian (p221).

40° N 83° W
cities

Try: latitude 90° — φ=0\varphi=0^\circ, the North Pole. Sydney — south of the equator, so φ>90\varphi>90^\circ. θ\theta is the longitude with west negative; φ=90\varphi=90^\circ- latitude.

Common mistakes

MistakeResultFix
θ=arctanyx\theta=\arctan\tfrac yx without the quadrant(1,1,6)(-1,1,\sqrt6) gets θ=π4\theta=-\tfrac\pi4, a direction in quadrant IV(1,1)(-1,1) is in quadrant II: θ=3π4\theta=\tfrac{3\pi}{4}
φ\varphi measured up from the floorColumbus at φ=40\varphi=40^\circφ=90latitude=50\varphi=90^\circ-\text{latitude}=50^\circ
x=ρcosφcosθx=\rho\cos\varphi\cos\theta(8,π3,π6)(8,\tfrac\pi3,\tfrac\pi6) gives x3.46x\approx3.46, not 2r=ρsinφr=\rho\sin\varphi, so x=ρsinφcosθx=\rho\sin\varphi\cos\theta
West longitude as positive θ\thetaColumbus at θ=83\theta=83^\circ, in Asiawest is negative: θ=83\theta=-83^\circ
φ=5π6\varphi=\tfrac{5\pi}{6} read as all of 3x2+3y2=z23x^2+3y^2=z^2the upper half comes alongkeep z0z\le0: one nappe
r=10r=-\sqrt{10}a negative distance from the zz-axisr=x2+y20r=\sqrt{x^2+y^2}\ge0

Practice and answers

Exercises from p224; the book's key: p836p837, p848p850.

Checkpoints 2.55–2.61
#taskanswer
2.55cylindrical (5,π6,4)(5,\tfrac\pi6,4) to rectangular(532, 52, 4)(\tfrac{5\sqrt3}{2},\ \tfrac52,\ 4)
2.56rectangular (8,8,7)(-8,8,-7) to cylindrical(82, 3π4, 7)(8\sqrt2,\ \tfrac{3\pi}{4},\ -7)
2.57the surface r=6r=6cylinder of radius 6 about the zz-axis
2.58spherical (2,5π6,π6)(2,-\tfrac{5\pi}{6},\tfrac\pi6)rectangular (32,12,3)(-\tfrac{\sqrt3}{2},-\tfrac12,\sqrt3); cylindrical (1,5π6,3)(1,-\tfrac{5\pi}{6},\sqrt3)
2.59ρ=13\rho=13; θ=2π3\theta=\tfrac{2\pi}{3}; φ=π4\varphi=\tfrac\pi4sphere of radius 13; half-plane; half-cone
2.60Sydney, 34° S, 151° E(4000, 151, 124)(4000,\ 151^\circ,\ 124^\circ)
2.61a star map seen from Earthspherical: origin at Earth's centre, zz to the North Pole, xx to the prime meridian
Exercises
#taskanswerkey step
363cylindrical (4,π6,3)(4,\tfrac\pi6,3) to rectangular(23, 2, 3)(2\sqrt3,\ 2,\ 3)4cosπ6=234\cos\tfrac\pi6=2\sqrt3
367rectangular (1,3,2)(1,\sqrt3,2) to cylindrical(2, π3, 2)(2,\ \tfrac\pi3,\ 2)tanθ=3\tan\theta=\sqrt3, quadrant I
369(3,3,7)(3,-3,7) to cylindrical(32, π4, 7)(3\sqrt2,\ -\tfrac\pi4,\ 7)quadrant IV; 7π4\tfrac{7\pi}{4} names the same angle
371r=4r=4cylinder x2+y2=16x^2+y^2=16r2=x2+y2r^2=x^2+y^2
373r2cos2θ+z2+1=0r^2\cos2\theta+z^2+1=0hyperboloid of two sheets x2+y2z2=1-x^2+y^2-z^2=1, about the yy-axisr2cos2θ=x2y2r^2\cos2\theta=x^2-y^2
375r=2cosθr=2\cos\thetacylinder x22x+y2=0x^2-2x+y^2=0: centre (1,0,0)(1,0,0), radius 1multiply by rr
377r=2secθr=2\sec\thetaplane x=2x=2rcosθ=2r\cos\theta=2
383x2+y216x=0x^2+y^2-16x=0 in cylindricalr=16cosθr=16\cos\theta, and r=0r=0r2=16rcosθr^2=16r\cos\theta
385spherical (3,0,π)(3,0,\pi) to rectangular(0,0,3)(0,0,-3)φ=π\varphi=\pi: straight down
387(12,π4,π4)(12,-\tfrac\pi4,\tfrac\pi4) to rectangular(6, 6, 62)(6,\ -6,\ 6\sqrt2)12sinπ4=62=r12\sin\tfrac\pi4=6\sqrt2=r
391rectangular (0,3,0)(0,3,0) to spherical(3, 90, 90)(3,\ 90^\circ,\ 90^\circ)x=0, y>0x=0,\ y>0: θ=90\theta=90^\circ
395ρ=2cosφ\rho=2\cos\varphisphere x2+y2+(z1)2=1x^2+y^2+(z-1)^2=1multiply by ρ\rho
399x2+y23z2=0x^2+y^2-3z^2=0, z0z\ne0, in sphericalφ=π3\varphi=\tfrac\pi3 or φ=2π3\varphi=\tfrac{2\pi}{3}: a conetanφ=rz=±3\tan\varphi=\tfrac rz=\pm\sqrt3
403cylindrical (1,π4,3)(1,\tfrac\pi4,3) to spherical(10, π4, 0.3218)(\sqrt{10},\ \tfrac\pi4,\ 0.3218)φ=arctan13\varphi=\arctan\tfrac13
417Washington, DC, 39° N, 77° W(4000, 77, 51)(4000,\ -77^\circ,\ 51^\circ)φ=9039\varphi=90^\circ-39^\circ
419Rio de Janeiro at (4000, 43.17, 102.91)(4000,\ -43.17^\circ,\ 102.91^\circ)43.17° W, 12.91° Slatitude =90φ=90^\circ-\varphi

Exercise 419: 90102.91=12.9190^\circ-102.91^\circ=-12.91^\circ, so 12.91° S. The book's key prints 22.91° S, Rio's actual latitude, which would need φ=112.91\varphi=112.91^\circ.

Level 3 · why it worksTwo triangles and a signshort arguments

Where the formulas come from

The standing triangle has its right angle under the point and φ\varphi at the origin, between ρ\rho and the zz-axis (p216):

ρ2=r2+z2,r=ρsinφ,z=ρcosφ \rho^2=r^2+z^2,\qquad r=\rho\sin\varphi,\qquad z=\rho\cos\varphi

Put this rr into the floor triangle:

x=rcosθ=ρsinφcosθ,y=rsinθ=ρsinφsinθ x=r\cos\theta=\rho\sin\varphi\cos\theta,\qquad y=r\sin\theta=\rho\sin\varphi\sin\theta
Why sin φ

φ\varphi opens from the vertical, so the horizontal leg is the sine. Example 2.63: 8sinπ6=4=r8\sin\tfrac\pi6=4=r.

No quadrant rule for φ

arccos\arccos returns an angle in [0,π][0,\pi] — exactly the range of φ\varphi. Only θ\theta needs the signs of xx and yy.

Which θ? Let the signs decide

where (x,y)(x,y) isθ\theta in [0,2π)[0,2\pi)example
x>0, y0x>0,\ y\ge0arctanyx\arctan\tfrac yx(1,3)(1,\sqrt3): π3\tfrac\pi3
x<0x<0arctanyx+π\arctan\tfrac yx+\pi(1,1)(-1,1): π4+π=3π4-\tfrac\pi4+\pi=\tfrac{3\pi}{4}
x>0, y<0x>0,\ y<0arctanyx+2π\arctan\tfrac yx+2\pi(1,3)(1,-3): 5.03\approx5.03
x=0x=0π2\tfrac\pi2 if y>0y>0, 3π2\tfrac{3\pi}{2} if y<0y<0(0,3)(0,3): π2\tfrac\pi2

θ\theta and θ+2πk\theta+2\pi k name the same half-plane, so the key's π4-\tfrac\pi4 for Exercise 369 is 7π4\tfrac{7\pi}{4}. The pair (x,y)(x,y) knows its quadrant; the ratio y/xy/x has forgotten it.

Half a cone

φ=c:r=ρsinc,z=ρcoscz=rcotc,  r0 \varphi=c:\qquad r=\rho\sin c,\quad z=\rho\cos c\quad\Longrightarrow\quad z=r\cot c,\ \ r\ge0

One value of φ\varphi gives one nappe (p219). Squaring, as in Example 2.65, gives 3x2+3y2z2=03x^2+3y^2-z^2=0 — both nappes — so z0z\le0 has to be kept by hand. Likewise z=rz=r in Example 2.62 is φ=π4\varphi=\tfrac\pi4, the upper nappe when r0r\ge0; z2=x2+y2z^2=x^2+y^2 is the whole double cone.

Squaring can add points: the sign it removes was information.

Where it is used next

WhereThe new coordinates give
§5.5 Triple integralsdV=rdrdθdzdV=r\,dr\,d\theta\,dz and dV=ρ2sinφdρdφdθdV=\rho^2\sin\varphi\,d\rho\,d\varphi\,d\theta
§6.6 Surface integralsa cylinder or a sphere described by the two coordinates that vary on it
Physicsfields around a wire (cylindrical) or a point charge (spherical)
Maps and astronomylatitude, longitude and star maps

A boundary that is a coordinate held fixed makes the limits of an integral constant.