Multivariable CalculusLines, Planes and Surfaces4 of 4
Lines, Planes and Surfaces · 4
Cylindrical and Spherical Coordinates
Standard (x,y,z) coordinates are built for flat boxes, so round 3D surfaces like cylinders, cones, and spheres end up full of square roots unless we use a coordinate system that matches their shape.
1
Cylindrical Coordinates and Their Grid Surfaces
Cylindrical coordinates (r,θ,z) locate a point in 3D space by using polar coordinates (r,θ) in the xy-plane and going straight up or down by the height z.
Cylindrical Coordinates and Their Grid Surfaces
Because z is the exact same vertical height as in rectangular coordinates, converting between cylindrical and rectangular coordinates only changes x and y in the xy-plane:
x=rcosθ,y=rsinθ,z=z
r2=x2+y2,tanθ=xy
Holding one cylindrical coordinate constant while the other two change gives one of the three grid surfaces that meet at (r,θ,z): a vertical cylinder around the z-axis when r is constant, a vertical half-plane starting at the z-axis when θ is constant, and a flat horizontal plane when z is constant.
Holding one coordinate fixed while moving in the other two directions keeps the point on a cylinder, a vertical half-plane, or a flat horizontal plane.
2
Converting Points Between Cylindrical and Rectangular Coordinates
To convert a single point between (r,θ,z) and (x,y,z), we keep z as it is and use the right triangle in the xy-plane to switch between (r,θ) and (x,y). Let's convert (4,32π,5) from cylindrical to rectangular coordinates, and then convert (−2,2,3) from rectangular to cylindrical coordinates.
Converting Points Between Cylindrical and Rectangular Coordinates
Text solution
Plug r and θ into the polar formulas for x and yFor (r,θ,z)=(4,32π,5), use x=rcosθ and y=rsinθ while keeping z=5.
x=4cos(32π)=4(−21)=−2
y=4sin(32π)=4(23)=23,z=5
So the cylindrical point (4,32π,5) is (x,y,z)=(−2,23,5) in rectangular coordinates.
Find the horizontal distance r from x and yFor (x,y,z)=(−2,2,3), keep z=3 and use the Pythagorean theorem in the xy-plane to find r.
r=x2+y2=(−2)2+22=8=22
Plot (x,y) to place θ in the right quadrantThe ratio tanθ=xy gives a reference angle of 4π, and since (−2,2) is in Quadrant II, we subtract 4π from π rather than taking arctan(−1)=−4π in Quadrant IV.
tanθ⟹θ=−22=−1in Quadrant II=π−4π=43π
So the rectangular point (−2,2,3) has cylindrical coordinates (r,θ,z)=(22,43π,3).
Because the fraction y/x has the same sign in opposite quadrants and arctan(y/x) only gives angles in Quadrants I and IV, it points in the exact opposite direction whenever x is negative (Quadrants II and III).
Whenever x is negative, the inverse tangent stays on the right half of the plane and points directly opposite the true angle.
3
Surface Equations in Cylindrical Coordinates
To convert the equation of a 3D surface between rectangular and cylindrical coordinates, we replace x2+y2 with r2,x with rcosθ, and y with rsinθ. Let's write the paraboloid z=x2+y2, the upward cone z=x2+y2, and the hyperboloid x2+y2−z2=1 in cylindrical coordinates, and then find what surface in (x,y,z) is described by r=4cosθ.
Surface Equations in Cylindrical Coordinates
Text solution
Swap x2+y2 for r2 in surfaces around the z-axisReplace each x2+y2 directly with r2.
Paraboloid: z=r2x2+y2=r2
Upward cone: z=r2x2+y2=r
Hyperboloid of one sheet: r2x2+y2−z2=1⟹r2−z2=1
Multiply r=4cosθ by r to get r2 and rcosθBecause our conversion formulas use r2 and rcosθ rather than r or cosθ by itself, multiply both sides by r and convert into x and y.
r⟹r2⟹x2+y2=4cosθ=4rcosθ=4x
Complete the square in xMove 4x to the left side and add (2−4)2=4 to both sides to find the circle's center and radius.
x2−4x+y2⟹(x2−4x+4)+y2⟹(x−2)2+y2=0=4=4
Since z does not appear in the equation, z can be any height, so r=4cosθ is a vertical cylinder of radius 2 centered along the line x=2,y=0 whose side passes through the z-axis.
4
Spherical Coordinates and Their Grid Surfaces
Even in cylindrical coordinates, a sphere like x2+y2+z2=9 still needs square roots (z=±9−r2) because cylindrical walls go straight up while a sphere curves in every direction around the origin. Spherical coordinates (ρ,ϕ,θ) locate a point by starting at the origin and going straight out a 3D distance ρ at a downward tilt angle ϕ from the positive z-axis and a horizontal angle θ in the xy-plane.
Spherical Coordinates and Their Grid Surfaces
x
y
z
x2+y2+z2=9
x
y
z
θ
ϕ
ρ
(ρ,ϕ,θ)
Here θ is the same horizontal angle from cylindrical coordinates, while ϕ tilts straight down from the positive z-axis (ϕ=0 points straight up, ϕ=2π lies flat in the xy-plane, and ϕ=π points straight down):
3D distance from originρ≥0,tilt down from +z-axis0≤ϕ≤π,angle in xy-plane0≤θ<2π
The tilt ϕ stops at π because turning θ all the way around the z-axis already reaches the other side of 3D space.
Holding ρ constant gives a sphere centered at the origin, holding θ constant gives a vertical half-plane starting at the z-axis, and holding ϕ constant gives a cone that opens upward for 0<ϕ<2π, flattens into the xy-plane at ϕ=2π, and opens downward for 2π<ϕ<π.
Tilting ϕ from the top of the z-axis to the bottom widens its cone, flattens it into the x-y plane, and flips it downward, while spinning θ reaches every side of the sphere without ϕ ever passing π.
5
Connecting Spherical and Rectangular Coordinates
To connect (ρ,ϕ,θ) to (x,y,z) without mixing up sines and cosines, we take a vertical slice through the z-axis and use the horizontal distance r to connect the vertical slice to the xy-plane.
Connecting Spherical and Rectangular Coordinates
x
y
z
θ
ϕ
ρ
xyz=ρsinϕcosθ=ρsinϕsinθ=ρcosϕ
x
y
z
ρ
z=ρcosϕ
r=ρsinϕ
ϕ
r
θ
x=rcosθ
y=rsinθ
In the vertical triangle, z is adjacent to ϕ and r is opposite ϕ. Plugging r=ρsinϕ into the polar formulas x=rcosθ and y=rsinθ gives all three coordinates:
z=ρcosϕ,r=ρsinϕ
x=rρsinϕcosθ,y=rρsinϕsinθ
ρ2=r2+z2=x2+y2+z2
In the vertical slice through the z-axis, the leg opposite ϕ is the horizontal distance r=ρsinϕ, which is also the hypotenuse of the triangle in the xy-plane where x=rcosθ and y=rsinθ.
The horizontal leg of the vertical triangle drops straight down to become the hypotenuse of the floor triangle, which is why both x and y are built from that horizontal reach.
6
Converting Points Between Spherical and Rectangular Coordinates
Let's use r to convert the spherical point (ρ,ϕ,θ)=(4,6π,3π) into rectangular coordinates in two steps, and then convert (x,y,z)=(−1,3,−2) into spherical coordinates.
Converting Points Between Spherical and Rectangular Coordinates
x
y
z
ρ
ϕ
θ
(ρ,ϕ,θ)(x,y,z)=(4,6π,3π)=?
Text solution
Find z and r from the vertical ϕ-triangleFor (ρ,ϕ,θ)=(4,6π,3π), use ρ=4 and ϕ=6π to find the vertical height z and horizontal distance r.
z=ρcosϕ=4cos(6π)=4(23)=23
r=ρsinϕ=4sin(6π)=4(21)=2
Find x and y from r and θ in the xy-planePlug r=2 and θ=3π into x=rcosθ and y=rsinθ.
x=rcosθ=2cos(3π)=2(21)=1
y=rsinθ=2sin(3π)=2(23)=3
So the spherical point (4,6π,3π) is (x,y,z)=(1,3,23) in rectangular coordinates.
Find the 3D distance ρ from (x,y,z)For (x,y,z)=(−1,3,−2), use the 3D Pythagorean theorem to find the distance from the origin.
ρ=x2+y2+z2=(−1)2+(3)2+(−2)2=1+3+4=8=22
Solve cosϕ=z/ρ for the tilt angle ϕBecause ϕ only goes from 0 to π,cosϕ gives a single angle with no quadrant confusion: above the xy-plane when z>0 and below the xy-plane when z<0.
cosϕ⟹ϕ=ρz=22−2=−21=−22(0≤ϕ≤π)=43π
Plot (x,y) to place θ in the right quadrantThe point (−1,3) is in Quadrant II with reference angle 3π.
tanθ⟹θ=xy=−13=−3in Quadrant II=π−3π=32π
So the rectangular point (−1,3,−2) has spherical coordinates (ρ,ϕ,θ)=(22,43π,32π).
7
Surface Equations in Spherical Coordinates
To convert surface equations between rectangular and spherical coordinates, we replace x2+y2+z2 with ρ2,z with ρcosϕ, and x2+y2 with r2=ρ2sin2ϕ. Let's convert the paraboloid z=x2+y2 into spherical coordinates to compare it with cylindrical coordinates, and then find what 3D surface is described by the spherical equation ρ=6cosϕ.
Surface Equations in Spherical Coordinates
x
y
z
ρ
ϕ
zρ=x2+y2=?
Text solution
Substitute z=ρcosϕ and x2+y2=ρ2sin2ϕ into the paraboloidReplace both sides of z=x2+y2 and divide by ρ for ρ>0 (the origin ρ=0 is still included at ϕ=2π).
z⟹ρcosϕ=x2+y2=(ρsinϕ)2=ρ2sin2ϕ
cosϕ=ρsin2ϕ⟹ρ=sin2ϕcosϕ=cotϕcscϕ
In spherical coordinates the paraboloid is ρ=cotϕcscϕ, which is much more complicated than z=r2 in cylindrical coordinates because a paraboloid is symmetric around the z-axis rather than centered around the origin.
Multiply ρ=6cosϕ by ρ to get ρ2 and ρcosϕMultiply both sides by ρ so the left side becomes ρ2=x2+y2+z2 and the right side becomes 6ρcosϕ=6z.
ρ⟹ρ2⟹x2+y2+z2=6cosϕ=6ρcosϕ=6z
Complete the square in zMove 6z to the left and add (2−6)2=9 to both sides.
So ρ=6cosϕ is a sphere of radius 3 centered at (0,0,3) whose bottom sits at the origin.
Summary
Choosing a 3D coordinate system comes down to the symmetry of the surface. Keep rectangular coordinates (x,y,z) for flat boxes and planes. When a surface is symmetric around the z-axis so that x2+y2 appears together, like a vertical cylinder x2+y2=9(r=3) or a paraboloid z=x2+y2(z=r2), use cylindrical coordinates(r,θ,z), which are polar coordinates in the xy-plane plus the same height z:
x=rcosθ,y=rsinθ,r2=x2+y2
Don't force a surface symmetric around the z-axis like the paraboloid z=x2+y2 into spherical coordinates, where it turns into ρ=cotϕcscϕ instead of z=r2. Save spherical coordinates(ρ,ϕ,θ) for spheres centered at the origin like x2+y2+z2=9(ρ=3) and cones with their vertex at the origin like z=x2+y2(ϕ=4π), connecting them to (x,y,z) through the vertical triangle z=ρcosϕ and r=ρsinϕ:
When converting points, the downward tilt ϕ only goes from 0 to π, so cosϕ=z/ρ gives the exact angle right away (for z=−2 and ρ=22,cosϕ=−22 gives ϕ=43π). The horizontal angle θ goes from 0 to 2π, so always plot (x,y) first to put θ in the right quadrant instead of trusting arctan(y/x) when x<0 (for (−2,2) in Quadrant II, tanθ=−1 gives θ=43π, not −4π). And when a surface equation has a trig term by itself like r=4cosθ or ρ=6cosϕ, multiply both sides by r or ρ first so you can substitute r2=x2+y2 or ρ2=x2+y2+z2 and complete the square.
8
Practice
1
Convert the point (r,θ,z)=(6,65π,−4) from cylindrical coordinates to rectangular coordinates (x,y,z).
In the xy-plane triangle with hypotenuse r=6 and angle θ=65π in Quadrant II, which trig function gives x, and what happens to z?
Keep z=−4 and use x=rcosθ and y=rsinθ in the xy-plane:
x=6cos(65π)=6(−23)=−33
yz=6sin(65π)=6(21)=3,=−4
(Watch out for dropping the negative sign on cos(5π/6) in Quadrant II, which gives (33,3,−4), or swapping cosine and sine, which gives (3,−33,−4).) The rectangular coordinates are (−33,3,−4).
2
Convert the point (x,y,z)=(−3,−33,7) from rectangular coordinates to cylindrical coordinates (r,θ,z) with r≥0 and 0≤θ<2π.
Plot (−3,−33) in the xy-plane first: which quadrant is it in, and what is its reference angle from tanθ=y/x?
Keep z=7 and find the horizontal distance r:
r=(−3)2+(−33)2=9+27=36=6
Now find θ from tanθ=xy:
tanθ=−3−33=3
(Be careful not to take arctan(3)=3π in Quadrant I to get (6,3π,7): the two negative signs canceled in the fraction, but (−3,−33) is in Quadrant III.) Adding the reference angle 3π to π gives θ=π+3π=34π, so the cylindrical coordinates are (6,34π,7).
3
Convert the cylindrical equation r=6sinθ into rectangular coordinates and describe the surface it represents in 3D space.
You have r on the left and sinθ on the right: what can you multiply both sides by to get expressions that convert directly into x and y?
Multiply both sides by r so the left side becomes r2=x2+y2 and the right side becomes 6rsinθ=6y:
r⟹r2⟹x2+y2=6sinθ=6rsinθ=6y
Move 6y to the left and complete the square in y by adding (2−6)2=9 to both sides:
x2+(y2−6y+9)⟹x2+(y−3)2=9=9
(Don't forget to add 9 to the right side as well, which would leave x2+(y−3)2=0, and don't call this a flat 2D circle: because z can be any value, the circle extends straight up and down.) The equation is x2+(y−3)2=9, which is a vertical circular cylinder of radius 3 centered along the line x=0,y=3 whose side passes through the z-axis.
4
Convert the point (ρ,ϕ,θ)=(8,32π,43π) from spherical coordinates to rectangular coordinates (x,y,z).
Start in the vertical ϕ-triangle with hypotenuse ρ=8 and tilt ϕ=32π: what are the vertical height z and the horizontal distance r?
First use the vertical right triangle with ρ=8 and ϕ=32π to find z and r:
z=ρcosϕ=8cos(32π)=8(−21)=−4
r=ρsinϕ=8sin(32π)=8(23)=43
(Don't swap cosine and sine here to get z=43 and r=−4, and remember that ϕ=32π>2π tilts below the xy-plane, making z negative rather than +4.) Next, use r=43 and θ=43π in the xy-plane:
x=rcosθ=43cos(43π)=43(−22)=−26
y=rsinθ=43sin(43π)=43(22)=26
The rectangular coordinates are (−26,26,−4).
5
Convert the point (x,y,z)=(6,−2,−22) from rectangular coordinates to spherical coordinates (ρ,ϕ,θ) with ρ≥0,0≤ϕ≤π, and 0≤θ<2π.
After finding the 3D distance ρ, use cosϕ=z/ρ for the tilt ϕ, then plot (6,−2) in the xy-plane to place θ in [0,2π).
Find the 3D distance ρ from the origin:
ρ=(6)2+(−2)2+(−22)2=6+2+8=16=4
Find the tilt angle ϕ in [0,π] from cosϕ=ρz:
cosϕ=4−22=−22⟹ϕ=43π
Now plot (x,y)=(6,−2) in Quadrant IV and find tanθ:
tanθ=6−2=−31
(Don't write the calculator output θ=−6π, which falls outside 0≤θ<2π and gives (4,43π,−6π); add 2π to get the Quadrant IV angle in [0,2π).) This gives θ=2π−6π=611π, so the spherical coordinates are (4,43π,611π).
6
Write the equation of the downward-opening cone z=−3x2+3y2 in both cylindrical coordinates and spherical coordinates.
Factor 3(x2+y2) inside the square root for cylindrical coordinates; for spherical coordinates, replace z and r using the ϕ-triangle and solve for the tilt angle ϕ in [0,π].
Factor out 3 inside the square root and replace x2+y2 with r for cylindrical coordinates:
z=−3(x2+y2)=−3r
(Don't forget to apply the square root to the 3, which would give z=−3r.) For spherical coordinates, substitute z=ρcosϕ and r=ρsinϕ, then divide by ρcosϕ:
ρcosϕ⟹tanϕ=−3ρsinϕ=cosϕsinϕ=−31
(Be careful not to divide the wrong way around to get tanϕ=−3 and ϕ=32π, and remember 0≤ϕ≤π so ϕ cannot be −6π.) Since 0≤ϕ≤π, this gives ϕ=π−6π=65π. Thus the cone is z=−3r in cylindrical coordinates and ϕ=65π in spherical coordinates.
7
Convert the paraboloid z=4x2+4y2 into both cylindrical coordinates and spherical coordinates (solved for ρ in terms of ϕ for ρ>0), and state which coordinate system best fits the surface.
Group 4(x2+y2) first: how does x2+y2 convert in cylindrical coordinates versus spherical coordinates?
Factor 4(x2+y2) and substitute x2+y2=r2 to get the cylindrical equation:
z=4(x2+y2)=4r2
For spherical coordinates, substitute z=ρcosϕ and x2+y2=r2=ρ2sin2ϕ, then divide by 4ρsin2ϕ for ρ>0:
ρcosϕ=4ρ2sin2ϕ⟹ρ=4sin2ϕcosϕ=41cotϕcscϕ
(Watch out for leaving the 4 in the numerator when solving for ρ, which gives ρ=4cotϕcscϕ.) In cylindrical coordinates the paraboloid is z=4r2, in spherical coordinates it is ρ=41cotϕcscϕ, and cylindrical coordinates fit best because the paraboloid is symmetric around the z-axis rather than centered around the origin.
8
Convert the spherical equation ρ=4sinϕcosθ into rectangular coordinates and describe the surface it represents in 3D space.
Look at the formula for x in spherical coordinates: what factor is missing from sinϕcosθ to turn the right side into 4x and the left side into ρ2?
Multiply both sides by ρ so the left side becomes ρ2=x2+y2+z2 and the right side becomes 4ρsinϕcosθ=4x:
ρ⟹ρ2⟹x2+y2+z2=4sinϕcosθ=4ρsinϕcosθ=4x
(Don't confuse ρsinϕcosθ=x with y to get x2+(y−2)2+z2=4, and don't forget to add 4 to the right side when completing the square.) Move 4x to the left and add (2−4)2=4 to both sides:
(x2−4x+4)+y2+z2⟹(x−2)2+y2+z2=4=4
The rectangular equation is (x−2)2+y2+z2=4, which is a sphere of radius 2 centered at (2,0,0) whose surface passes through the origin.