Multivariable CalculusLines, Planes and Surfaces4 of 4
Lines, Planes and Surfaces · 4

Cylindrical and Spherical Coordinates

Standard (x,y,z)(x, y, \height{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)(\axisdist{r}, \turn{\theta}, \height{z}) locate a point in 3D space by using polar coordinates (r,θ)(\axisdist{r}, \turn{\theta}) in the xyxy-plane and going straight up or down by the height z\height{z}.

Cylindrical Coordinates and Their Grid Surfaces

Because z\height{z} is the exact same vertical height as in rectangular coordinates, converting between cylindrical and rectangular coordinates only changes xx and yy in the xyxy-plane:

x\displaystyle x =rcos⁡θ,y\displaystyle = \axisdist{r}\cos\turn{\theta}, \qquad y =rsin⁡θ,z\displaystyle = \axisdist{r}\sin\turn{\theta}, \qquad \height{z} =z\displaystyle = \height{z}
r2\displaystyle \axisdist{r}^2 =x2+y2,tan⁡θ\displaystyle = x^2 + y^2, \qquad \tan\turn{\theta} =yx\displaystyle = \frac{y}{x}

Holding one cylindrical coordinate constant while the other two change gives one of the three grid surfaces that meet at (r,θ,z)(\axisdist{r}, \turn{\theta}, \height{z}): a vertical cylinder around the zz-axis when r\axisdist{r} is constant, a vertical half-plane starting at the zz-axis when θ\turn{\theta} is constant, and a flat horizontal plane when z\height{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)(\axisdist{r}, \turn{\theta}, \height{z}) and (x,y,z)(x, y, \height{z}), we keep z\height{z} as it is and use the right triangle in the xyxy-plane to switch between (r,θ)(\axisdist{r}, \turn{\theta}) and (x,y)(x, y). Let's convert (4,2π3,5)\left(\axisdist{4}, \turn{\frac{2\pi}{3}}, \height{5}\right) from cylindrical to rectangular coordinates, and then convert (−2,2,3)(-2, 2, \height{3}) from rectangular to cylindrical coordinates.

Converting Points Between Cylindrical and Rectangular Coordinates
xx
yy
zz
θ\turn{\theta}
r\axisdist{r}
z\height{z}
(r,θ,z)=(4,2π3,5)(x,y,z)=?\begin{aligned} (\axisdist{r}, \turn{\theta}, \height{z}) &= (\axisdist{4}, \turn{\tfrac{2\pi}{3}}, \height{5}) \\ (x, y, \height{z}) &= ? \end{aligned}
Text solution
Plug r\axisdist{r} and θ\turn{\theta} into the polar formulas for xx and yyFor (r,θ,z)=(4,2π3,5)(\axisdist{r}, \turn{\theta}, \height{z}) = \left(\axisdist{4}, \turn{\frac{2\pi}{3}}, \height{5}\right), use x=rcos⁡θx = \axisdist{r}\cos\turn{\theta} and y=rsin⁡θy = \axisdist{r}\sin\turn{\theta} while keeping z=5\height{z} = \height{5}.
x\displaystyle x =4cos⁡(2π3)\displaystyle = \axisdist{4}\cos\left(\turn{\frac{2\pi}{3}}\right) =4(−12)\displaystyle = 4\left(-\frac{1}{2}\right) =−2\displaystyle = -2
y\displaystyle y =4sin⁡(2π3)\displaystyle = \axisdist{4}\sin\left(\turn{\frac{2\pi}{3}}\right) =4(32)\displaystyle = 4\left(\frac{\sqrt{3}}{2}\right) =23,z\displaystyle = 2\sqrt{3}, \qquad \height{z} =5\displaystyle = \height{5}
So the cylindrical point (4,2π3,5)\left(\axisdist{4}, \turn{\frac{2\pi}{3}}, \height{5}\right) is (x,y,z)=(−2,23,5)(x, y, \height{z}) = (-2, 2\sqrt{3}, \height{5}) in rectangular coordinates.
Find the horizontal distance r\axisdist{r} from xx and yyFor (x,y,z)=(−2,2,3)(x, y, \height{z}) = (-2, 2, \height{3}), keep z=3\height{z} = \height{3} and use the Pythagorean theorem in the xyxy-plane to find r\axisdist{r}.
r\displaystyle \axisdist{r} =x2+y2\displaystyle = \sqrt{x^2 + y^2} =(−2)2+22\displaystyle = \sqrt{(-2)^2 + 2^2} =8\displaystyle = \sqrt{8} =22\displaystyle = \axisdist{2\sqrt{2}}
Plot (x,y)(x, y) to place θ\turn{\theta} in the right quadrantThe ratio tan⁡θ=yx\tan\turn{\theta} = \frac{y}{x} gives a reference angle of π4\frac{\pi}{4}, and since (−2,2)(-2, 2) is in Quadrant II, we subtract π4\frac{\pi}{4} from π\pi rather than taking arctan⁡(−1)=−π4\arctan(-1) = -\frac{\pi}{4} in Quadrant IV.
tan⁡θ=2−2=−1in Quadrant II  ⟹  θ=π−π4=3π4\displaystyle \begin{aligned} \tan\turn{\theta} &= \frac{2}{-2} \\ &= -1 \quad \text{in Quadrant II} \\ \implies \turn{\theta} &= \pi - \frac{\pi}{4} = \turn{\frac{3\pi}{4}} \end{aligned}
So the rectangular point (−2,2,3)(-2, 2, \height{3}) has cylindrical coordinates (r,θ,z)=(22,3π4,3)(\axisdist{r}, \turn{\theta}, \height{z}) = \left(\axisdist{2\sqrt{2}}, \turn{\frac{3\pi}{4}}, \height{3}\right).

Because the fraction y/xy/x has the same sign in opposite quadrants and arctan⁡(y/x)\arctan(y/x) only gives angles in Quadrants I and IV, it points in the exact opposite direction whenever xx 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+y2x^2 + y^2 with r2\axisdist{r}^2, xx with rcos⁡θ\axisdist{r}\cos\turn{\theta}, and yy with rsin⁡θ\axisdist{r}\sin\turn{\theta}. Let's write the paraboloid z=x2+y2\height{z} = x^2 + y^2, the upward cone z=x2+y2\height{z} = \sqrt{x^2 + y^2}, and the hyperboloid x2+y2−z2=1x^2 + y^2 - \height{z}^2 = 1 in cylindrical coordinates, and then find what surface in (x,y,z)(x, y, \height{z}) is described by r=4cos⁡θ\axisdist{r} = 4\cos\turn{\theta}.

Surface Equations in Cylindrical Coordinates
z=x2+y2\height{z} = x^2 + y^2
z=x2+y2\height{z} = \sqrt{x^2 + y^2}
x2+y2−z2=1x^2 + y^2 - \height{z}^2 = 1
Text solution
Swap x2+y2x^2 + y^2 for r2\axisdist{r}^2 in surfaces around the zz-axisReplace each x2+y2x^2 + y^2 directly with r2\axisdist{r}^2.
Paraboloid: z\displaystyle \text{Paraboloid: } \height{z} =x2+y2⏟r2\displaystyle = \underbrace{x^2 + y^2}_{\axisdist{r}^2} =r2\displaystyle = \axisdist{r}^2
Upward cone: z\displaystyle \text{Upward cone: } \height{z} =x2+y2⏟r2\displaystyle = \sqrt{\underbrace{x^2 + y^2}_{\axisdist{r}^2}} =r\displaystyle = \axisdist{r}
Hyperboloid of one sheet: x2+y2⏟r2−z2=1  ⟹  r2−z2=1\displaystyle \begin{aligned} &\text{Hyperboloid of one sheet: } \\ &\underbrace{x^2 + y^2}_{\axisdist{r}^2} - \height{z}^2 = 1 \implies \axisdist{r}^2 - \height{z}^2 = 1 \end{aligned}
Multiply r=4cos⁡θ\axisdist{r} = 4\cos\turn{\theta} by r\axisdist{r} to get r2\axisdist{r}^2 and rcos⁡θ\axisdist{r}\cos\turn{\theta}Because our conversion formulas use r2\axisdist{r}^2 and rcos⁡θ\axisdist{r}\cos\turn{\theta} rather than r\axisdist{r} or cos⁡θ\cos\turn{\theta} by itself, multiply both sides by r\axisdist{r} and convert into xx and yy.
r=4cos⁡θ  ⟹  r2=4rcos⁡θ  ⟹  x2+y2=4x\displaystyle \begin{aligned} \axisdist{r} &= 4\cos\turn{\theta} \\ \implies \axisdist{r}^2 &= 4\axisdist{r}\cos\turn{\theta} \\ \implies x^2 + y^2 &= 4x \end{aligned}
Complete the square in xxMove 4x4x to the left side and add (−42)2=4\left(\frac{-4}{2}\right)^2 = 4 to both sides to find the circle's center and radius.
x2−4x+y2=0  ⟹  (x2−4x+4)+y2=4  ⟹  (x−2)2+y2=4\displaystyle \begin{aligned} x^2 - 4x + y^2 &= 0 \\ \implies (x^2 - 4x + 4) + y^2 &= 4 \\ \implies (x - 2)^2 + y^2 &= 4 \end{aligned}
Since z\height{z} does not appear in the equation, z\height{z} can be any height, so r=4cos⁡θ\axisdist{r} = 4\cos\turn{\theta} is a vertical cylinder of radius 22 centered along the line x=2,y=0x = 2, y = 0 whose side passes through the zz-axis.
4

Spherical Coordinates and Their Grid Surfaces

Even in cylindrical coordinates, a sphere like x2+y2+z2=9x^2 + y^2 + \height{z}^2 = 9 still needs square roots (z=±9−r2)(\height{z} = \pm\sqrt{9 - \axisdist{r}^2}) because cylindrical walls go straight up while a sphere curves in every direction around the origin. Spherical coordinates (ρ,ϕ,θ)(\origindist{\rho}, \tilt{\phi}, \turn{\theta}) locate a point by starting at the origin and going straight out a 3D distance ρ\origindist{\rho} at a downward tilt angle ϕ\tilt{\phi} from the positive zz-axis and a horizontal angle θ\turn{\theta} in the xyxy-plane.

Spherical Coordinates and Their Grid Surfaces
xx
yy
zz
x2+y2+z2=9x^2 + y^2 + \height{z}^2 = 9

Here θ\turn{\theta} is the same horizontal angle from cylindrical coordinates, while ϕ\tilt{\phi} tilts straight down from the positive zz-axis (ϕ=0\tilt{\phi} = \tilt{0} points straight up, ϕ=π2\tilt{\phi} = \tilt{\frac{\pi}{2}} lies flat in the xyxy-plane, and ϕ=π\tilt{\phi} = \tilt{\pi} points straight down):

ρ≥0⏟3D distance from origin,0≤ϕ≤π⏟tilt down from +z-axis,0≤θ<2π⏟angle in xy-plane\displaystyle \begin{gathered} \underbrace{\origindist{\rho} \ge 0}_{\text{3D distance from origin}}, \\ \underbrace{0 \le \tilt{\phi} \le \pi}_{\text{tilt down from } +z\text{-axis}}, \\ \underbrace{0 \le \turn{\theta} < 2\pi}_{\text{angle in } xy\text{-plane}} \end{gathered}

The tilt ϕ\tilt{\phi} stops at π\pi because turning θ\turn{\theta} all the way around the zz-axis already reaches the other side of 3D space.

Holding ρ\origindist{\rho} constant gives a sphere centered at the origin, holding θ\turn{\theta} constant gives a vertical half-plane starting at the zz-axis, and holding ϕ\tilt{\phi} constant gives a cone that opens upward for 0<ϕ<π20 < \tilt{\phi} < \frac{\pi}{2}, flattens into the xyxy-plane at ϕ=π2\tilt{\phi} = \tilt{\frac{\pi}{2}}, and opens downward for π2<ϕ<π\frac{\pi}{2} < \tilt{\phi} < \pi.

Tilting ϕ\tilt{\phi} from the top of the zz-axis to the bottom widens its cone, flattens it into the xx-yy plane, and flips it downward, while spinning θ\turn{\theta} reaches every side of the sphere without ϕ\tilt{\phi} ever passing π\pi.
5

Connecting Spherical and Rectangular Coordinates

To connect (ρ,ϕ,θ)(\origindist{\rho}, \tilt{\phi}, \turn{\theta}) to (x,y,z)(x, y, \height{z}) without mixing up sines and cosines, we take a vertical slice through the zz-axis and use the horizontal distance r\axisdist{r} to connect the vertical slice to the xyxy-plane.

Connecting Spherical and Rectangular Coordinates
xx
yy
zz
θ\turn{\theta}
ϕ\tilt{\phi}
ρ\origindist{\rho}
x=ρsin⁡ϕcos⁡θy=ρsin⁡ϕsin⁡θz=ρcos⁡ϕ\begin{aligned} x &= \origindist{\rho}\sin \tilt{\phi}\cos \turn{\theta} \\ y &= \origindist{\rho}\sin \tilt{\phi}\sin \turn{\theta} \\ \height{z} &= \origindist{\rho}\cos \tilt{\phi} \end{aligned}

In the vertical triangle, z\height{z} is adjacent to ϕ\tilt{\phi} and r\axisdist{r} is opposite ϕ\tilt{\phi}. Plugging r=ρsin⁡ϕ\axisdist{r} = \origindist{\rho}\sin\tilt{\phi} into the polar formulas x=rcos⁡θx = \axisdist{r}\cos\turn{\theta} and y=rsin⁡θy = \axisdist{r}\sin\turn{\theta} gives all three coordinates:

z\displaystyle \height{z} =ρcos⁡ϕ,r\displaystyle = \origindist{\rho}\cos\tilt{\phi}, \qquad \axisdist{r} =ρsin⁡ϕ\displaystyle = \origindist{\rho}\sin\tilt{\phi}
x\displaystyle x =ρsin⁡ϕ⏟rcos⁡θ,y\displaystyle = \underbrace{\origindist{\rho}\sin\tilt{\phi}}_{\axisdist{r}}\cos\turn{\theta}, \qquad y =ρsin⁡ϕ⏟rsin⁡θ\displaystyle = \underbrace{\origindist{\rho}\sin\tilt{\phi}}_{\axisdist{r}}\sin\turn{\theta}
ρ2\displaystyle \origindist{\rho}^2 =r2+z2\displaystyle = \axisdist{r}^2 + \height{z}^2 =x2+y2+z2\displaystyle = x^2 + y^2 + \height{z}^2

In the vertical slice through the zz-axis, the leg opposite ϕ\tilt{\phi} is the horizontal distance r=ρsin⁡ϕ\axisdist{r} = \origindist{\rho}\sin\tilt{\phi}, which is also the hypotenuse of the triangle in the xyxy-plane where x=rcos⁡θx = \axisdist{r}\cos\turn{\theta} and y=rsin⁡θy = \axisdist{r}\sin\turn{\theta}.

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\axisdist{r} to convert the spherical point (ρ,ϕ,θ)=(4,π6,π3)(\origindist{\rho}, \tilt{\phi}, \turn{\theta}) = \left(\origindist{4}, \tilt{\frac{\pi}{6}}, \turn{\frac{\pi}{3}}\right) into rectangular coordinates in two steps, and then convert (x,y,z)=(−1,3,−2)(x, y, \height{z}) = (-1, \sqrt{3}, \height{-2}) into spherical coordinates.

Converting Points Between Spherical and Rectangular Coordinates
xx
yy
zz
ρ\origindist{\rho}
ϕ\tilt{\phi}
θ\turn{\theta}
(ρ,ϕ,θ)=(4,π6,π3)(x,y,z)=?\begin{aligned} (\origindist{\rho}, \tilt{\phi}, \turn{\theta}) &= (\origindist{4}, \tilt{\tfrac{\pi}{6}}, \turn{\tfrac{\pi}{3}}) \\ (x, y, \height{z}) &= ? \end{aligned}
Text solution
Find z\height{z} and r\axisdist{r} from the vertical ϕ\tilt{\phi}-triangleFor (ρ,ϕ,θ)=(4,π6,π3)(\origindist{\rho}, \tilt{\phi}, \turn{\theta}) = \left(\origindist{4}, \tilt{\frac{\pi}{6}}, \turn{\frac{\pi}{3}}\right), use ρ=4\origindist{\rho} = \origindist{4} and ϕ=π6\tilt{\phi} = \tilt{\frac{\pi}{6}} to find the vertical height z\height{z} and horizontal distance r\axisdist{r}.
z\displaystyle \height{z} =ρcos⁡ϕ\displaystyle = \origindist{\rho}\cos\tilt{\phi} =4cos⁡(π6)\displaystyle = \origindist{4}\cos\left(\tilt{\frac{\pi}{6}}\right) =4(32)\displaystyle = 4\left(\frac{\sqrt{3}}{2}\right) =23\displaystyle = \height{2\sqrt{3}}
r\displaystyle \axisdist{r} =ρsin⁡ϕ\displaystyle = \origindist{\rho}\sin\tilt{\phi} =4sin⁡(π6)\displaystyle = \origindist{4}\sin\left(\tilt{\frac{\pi}{6}}\right) =4(12)\displaystyle = 4\left(\frac{1}{2}\right) =2\displaystyle = \axisdist{2}
Find xx and yy from r\axisdist{r} and θ\turn{\theta} in the xyxy-planePlug r=2\axisdist{r} = \axisdist{2} and θ=π3\turn{\theta} = \turn{\frac{\pi}{3}} into x=rcos⁡θx = \axisdist{r}\cos\turn{\theta} and y=rsin⁡θy = \axisdist{r}\sin\turn{\theta}.
x\displaystyle x =rcos⁡θ\displaystyle = \axisdist{r}\cos\turn{\theta} =2cos⁡(π3)\displaystyle = \axisdist{2}\cos\left(\turn{\frac{\pi}{3}}\right) =2(12)\displaystyle = 2\left(\frac{1}{2}\right) =1\displaystyle = 1
y\displaystyle y =rsin⁡θ\displaystyle = \axisdist{r}\sin\turn{\theta} =2sin⁡(π3)\displaystyle = \axisdist{2}\sin\left(\turn{\frac{\pi}{3}}\right) =2(32)\displaystyle = 2\left(\frac{\sqrt{3}}{2}\right) =3\displaystyle = \sqrt{3}
So the spherical point (4,π6,π3)\left(\origindist{4}, \tilt{\frac{\pi}{6}}, \turn{\frac{\pi}{3}}\right) is (x,y,z)=(1,3,23)(x, y, \height{z}) = (1, \sqrt{3}, \height{2\sqrt{3}}) in rectangular coordinates.
Find the 3D distance ρ\origindist{\rho} from (x,y,z)(x, y, \height{z})For (x,y,z)=(−1,3,−2)(x, y, \height{z}) = (-1, \sqrt{3}, \height{-2}), use the 3D Pythagorean theorem to find the distance from the origin.
ρ\displaystyle \origindist{\rho} =x2+y2+z2\displaystyle = \sqrt{x^2 + y^2 + \height{z}^2} =(−1)2+(3)2+(−2)2\displaystyle = \sqrt{(-1)^2 + (\sqrt{3})^2 + (\height{-2})^2} =1+3+4\displaystyle = \sqrt{1 + 3 + 4} =8\displaystyle = \sqrt{8} =22\displaystyle = \origindist{2\sqrt{2}}
Solve cos⁡ϕ=z/ρ\cos\tilt{\phi} = \height{z}/\origindist{\rho} for the tilt angle ϕ\tilt{\phi}Because ϕ\tilt{\phi} only goes from 00 to π\pi, cos⁡ϕ\cos\tilt{\phi} gives a single angle with no quadrant confusion: above the xyxy-plane when z>0\height{z} > 0 and below the xyxy-plane when z<0\height{z} < 0.
cos⁡ϕ=zρ=−222=−12=−22(0≤ϕ≤π)  ⟹  ϕ=3π4\displaystyle \begin{aligned} \cos\tilt{\phi} &= \frac{\height{z}}{\origindist{\rho}} = \frac{\height{-2}}{\origindist{2\sqrt{2}}} = -\frac{1}{\sqrt{2}} \\ &= -\frac{\sqrt{2}}{2} \quad (0 \le \tilt{\phi} \le \pi) \\ \implies \tilt{\phi} &= \tilt{\frac{3\pi}{4}} \end{aligned}
Plot (x,y)(x, y) to place θ\turn{\theta} in the right quadrantThe point (−1,3)(-1, \sqrt{3}) is in Quadrant II with reference angle π3\frac{\pi}{3}.
tan⁡θ=yx=3−1=−3in Quadrant II  ⟹  θ=π−π3=2π3\displaystyle \begin{aligned} \tan\turn{\theta} &= \frac{y}{x} = \frac{\sqrt{3}}{-1} \\ &= -\sqrt{3} \quad \text{in Quadrant II} \\ \implies \turn{\theta} &= \pi - \frac{\pi}{3} = \turn{\frac{2\pi}{3}} \end{aligned}
So the rectangular point (−1,3,−2)(-1, \sqrt{3}, \height{-2}) has spherical coordinates (ρ,ϕ,θ)=(22,3π4,2π3)(\origindist{\rho}, \tilt{\phi}, \turn{\theta}) = \left(\origindist{2\sqrt{2}}, \tilt{\frac{3\pi}{4}}, \turn{\frac{2\pi}{3}}\right).
7

Surface Equations in Spherical Coordinates

To convert surface equations between rectangular and spherical coordinates, we replace x2+y2+z2x^2 + y^2 + \height{z}^2 with ρ2\origindist{\rho}^2, z\height{z} with ρcos⁡ϕ\origindist{\rho}\cos\tilt{\phi}, and x2+y2x^2 + y^2 with r2=ρ2sin⁡2ϕ\axisdist{r}^2 = \origindist{\rho}^2\sin^2\tilt{\phi}. Let's convert the paraboloid z=x2+y2\height{z} = x^2 + y^2 into spherical coordinates to compare it with cylindrical coordinates, and then find what 3D surface is described by the spherical equation ρ=6cos⁡ϕ\origindist{\rho} = 6\cos\tilt{\phi}.

Surface Equations in Spherical Coordinates
xx
yy
zz
ρ\origindist{\rho}
ϕ\tilt{\phi}
z=x2+y2ρ=?\begin{aligned} \height{z} &= x^2 + y^2 \\ \origindist{\rho} &= ? \end{aligned}
Text solution
Substitute z=ρcos⁡ϕ\height{z} = \origindist{\rho}\cos\tilt{\phi} and x2+y2=ρ2sin⁡2ϕx^2 + y^2 = \origindist{\rho}^2\sin^2\tilt{\phi} into the paraboloidReplace both sides of z=x2+y2\height{z} = x^2 + y^2 and divide by ρ\origindist{\rho} for ρ>0\origindist{\rho} > 0 (the origin ρ=0\origindist{\rho} = \origindist{0} is still included at ϕ=π2\tilt{\phi} = \tilt{\frac{\pi}{2}}).
z=x2+y2  ⟹  ρcos⁡ϕ=(ρsin⁡ϕ)2=ρ2sin⁡2ϕ\displaystyle \begin{aligned} \height{z} &= x^2 + y^2 \\ \implies \origindist{\rho}\cos\tilt{\phi} &= (\origindist{\rho}\sin\tilt{\phi})^2 \\ &= \origindist{\rho}^2\sin^2\tilt{\phi} \end{aligned}
cos⁡ϕ\displaystyle \cos\tilt{\phi} =ρsin⁡2ϕ  ⟹  ρ\displaystyle = \origindist{\rho}\sin^2\tilt{\phi} \implies \origindist{\rho} =cos⁡ϕsin⁡2ϕ\displaystyle = \frac{\cos\tilt{\phi}}{\sin^2\tilt{\phi}} =cot⁡ϕcsc⁡ϕ\displaystyle = \cot\tilt{\phi}\csc\tilt{\phi}
In spherical coordinates the paraboloid is ρ=cot⁡ϕcsc⁡ϕ\origindist{\rho} = \cot\tilt{\phi}\csc\tilt{\phi}, which is much more complicated than z=r2\height{z} = \axisdist{r}^2 in cylindrical coordinates because a paraboloid is symmetric around the zz-axis rather than centered around the origin.
Multiply ρ=6cos⁡ϕ\origindist{\rho} = 6\cos\tilt{\phi} by ρ\origindist{\rho} to get ρ2\origindist{\rho}^2 and ρcos⁡ϕ\origindist{\rho}\cos\tilt{\phi}Multiply both sides by ρ\origindist{\rho} so the left side becomes ρ2=x2+y2+z2\origindist{\rho}^2 = x^2 + y^2 + \height{z}^2 and the right side becomes 6ρcos⁡ϕ=6z6\origindist{\rho}\cos\tilt{\phi} = 6\height{z}.
ρ=6cos⁡ϕ  ⟹  ρ2=6ρcos⁡ϕ  ⟹  x2+y2+z2=6z\displaystyle \begin{aligned} \origindist{\rho} &= 6\cos\tilt{\phi} \\ \implies \origindist{\rho}^2 &= 6\origindist{\rho}\cos\tilt{\phi} \\ \implies x^2 + y^2 + \height{z}^2 &= 6\height{z} \end{aligned}
Complete the square in z\height{z}Move 6z6\height{z} to the left and add (−62)2=9\left(\frac{-6}{2}\right)^2 = 9 to both sides.
x2+y2+(z2−6z)=0  ⟹  x2+y2+(z2−6z+9)=9  ⟹  x2+y2+(z−3)2=9\displaystyle \begin{aligned} x^2 + y^2 + (\height{z}^2 - 6\height{z}) &= 0 \\ \implies x^2 + y^2 + (\height{z}^2 - 6\height{z} + 9) &= 9 \\ \implies x^2 + y^2 + (\height{z} - 3)^2 &= 9 \end{aligned}
So ρ=6cos⁡ϕ\origindist{\rho} = 6\cos\tilt{\phi} is a sphere of radius 33 centered at (0,0,3)(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)(x, y, \height{z}) for flat boxes and planes. When a surface is symmetric around the zz-axis so that x2+y2x^2 + y^2 appears together, like a vertical cylinder x2+y2=9x^2 + y^2 = 9 (r=3)(\axisdist{r} = \axisdist{3}) or a paraboloid z=x2+y2\height{z} = x^2 + y^2 (z=r2)(\height{z} = \axisdist{r}^2), use cylindrical coordinates (r,θ,z)(\axisdist{r}, \turn{\theta}, \height{z}), which are polar coordinates in the xyxy-plane plus the same height z\height{z}:

x=rcos⁡θ,y=rsin⁡θ,r2=x2+y2\displaystyle \begin{gathered} x = \axisdist{r}\cos\turn{\theta}, \qquad y = \axisdist{r}\sin\turn{\theta}, \\ \axisdist{r}^2 = x^2 + y^2 \end{gathered}

Don't force a surface symmetric around the zz-axis like the paraboloid z=x2+y2\height{z} = x^2 + y^2 into spherical coordinates, where it turns into ρ=cot⁡ϕcsc⁡ϕ\origindist{\rho} = \cot\tilt{\phi}\csc\tilt{\phi} instead of z=r2\height{z} = \axisdist{r}^2. Save spherical coordinates (ρ,ϕ,θ)(\origindist{\rho}, \tilt{\phi}, \turn{\theta}) for spheres centered at the origin like x2+y2+z2=9x^2 + y^2 + \height{z}^2 = 9 (ρ=3)(\origindist{\rho} = \origindist{3}) and cones with their vertex at the origin like z=x2+y2\height{z} = \sqrt{x^2 + y^2} (ϕ=π4)(\tilt{\phi} = \tilt{\frac{\pi}{4}}), connecting them to (x,y,z)(x, y, \height{z}) through the vertical triangle z=ρcos⁡ϕ\height{z} = \origindist{\rho}\cos\tilt{\phi} and r=ρsin⁡ϕ\axisdist{r} = \origindist{\rho}\sin\tilt{\phi}:

z=ρcos⁡ϕ,x=ρsin⁡ϕ⏟rcos⁡θ,y=ρsin⁡ϕ⏟rsin⁡θ,ρ2=x2+y2+z2\displaystyle \begin{aligned} \height{z} &= \origindist{\rho}\cos\tilt{\phi}, \\ x &= \underbrace{\origindist{\rho}\sin\tilt{\phi}}_{\axisdist{r}}\cos\turn{\theta}, \\ y &= \underbrace{\origindist{\rho}\sin\tilt{\phi}}_{\axisdist{r}}\sin\turn{\theta}, \\ \origindist{\rho}^2 &= x^2 + y^2 + \height{z}^2 \end{aligned}

When converting points, the downward tilt ϕ\tilt{\phi} only goes from 00 to π\pi, so cos⁡ϕ=z/ρ\cos\tilt{\phi} = \height{z}/\origindist{\rho} gives the exact angle right away (for z=−2\height{z} = \height{-2} and ρ=22\origindist{\rho} = \origindist{2\sqrt{2}}, cos⁡ϕ=−22\cos\tilt{\phi} = -\frac{\sqrt{2}}{2} gives ϕ=3π4\tilt{\phi} = \tilt{\frac{3\pi}{4}}). The horizontal angle θ\turn{\theta} goes from 00 to 2π2\pi, so always plot (x,y)(x, y) first to put θ\turn{\theta} in the right quadrant instead of trusting arctan⁡(y/x)\arctan(y/x) when x<0x < 0 (for (−2,2)(-2, 2) in Quadrant II, tan⁡θ=−1\tan\turn{\theta} = -1 gives θ=3π4\turn{\theta} = \turn{\frac{3\pi}{4}}, not −π4-\frac{\pi}{4}). And when a surface equation has a trig term by itself like r=4cos⁡θ\axisdist{r} = 4\cos\turn{\theta} or ρ=6cos⁡ϕ\origindist{\rho} = 6\cos\tilt{\phi}, multiply both sides by r\axisdist{r} or ρ\origindist{\rho} first so you can substitute r2=x2+y2\axisdist{r}^2 = x^2 + y^2 or ρ2=x2+y2+z2\origindist{\rho}^2 = x^2 + y^2 + \height{z}^2 and complete the square.

8

Practice

1

Convert the point (r,θ,z)=(6,5π6,−4)(\axisdist{r}, \turn{\theta}, \height{z}) = \left(\axisdist{6}, \turn{\frac{5\pi}{6}}, \height{-4}\right) from cylindrical coordinates to rectangular coordinates (x,y,z)(x, y, \height{z}).

In the xyxy-plane triangle with hypotenuse r=6\axisdist{r} = \axisdist{6} and angle θ=5π6\turn{\theta} = \turn{\frac{5\pi}{6}} in Quadrant II, which trig function gives xx, and what happens to z\height{z}?

Keep z=−4\height{z} = \height{-4} and use x=rcos⁡θx = \axisdist{r}\cos\turn{\theta} and y=rsin⁡θy = \axisdist{r}\sin\turn{\theta} in the xyxy-plane:
x\displaystyle x =6cos⁡(5π6)\displaystyle = \axisdist{6}\cos\left(\turn{\frac{5\pi}{6}}\right) =6(−32)\displaystyle = 6\left(-\frac{\sqrt{3}}{2}\right) =−33\displaystyle = -3\sqrt{3}
y=6sin⁡(5π6)=6(12)=3,z=−4\displaystyle \begin{aligned} y &= \axisdist{6}\sin\left(\turn{\frac{5\pi}{6}}\right) = 6\left(\frac{1}{2}\right) = 3, \\ \height{z} &= \height{-4} \end{aligned}
(Watch out for dropping the negative sign on cos⁡(5π/6)\cos(\turn{5\pi/6}) in Quadrant II, which gives (33,3,−4)(3\sqrt{3}, 3, -4), or swapping cosine and sine, which gives (3,−33,−4)(3, -3\sqrt{3}, -4).) The rectangular coordinates are (−33,3,−4)(-3\sqrt{3}, 3, \height{-4}).
2

Convert the point (x,y,z)=(−3,−33,7)(x, y, \height{z}) = (-3, -3\sqrt{3}, \height{7}) from rectangular coordinates to cylindrical coordinates (r,θ,z)(\axisdist{r}, \turn{\theta}, \height{z}) with r≥0\axisdist{r} \ge 0 and 0≤θ<2π0 \le \turn{\theta} < 2\pi.

Plot (−3,−33)(-3, -3\sqrt{3}) in the xyxy-plane first: which quadrant is it in, and what is its reference angle from tan⁡θ=y/x\tan\turn{\theta} = y/x?

Keep z=7\height{z} = \height{7} and find the horizontal distance r\axisdist{r}:
r\displaystyle \axisdist{r} =(−3)2+(−33)2\displaystyle = \sqrt{(-3)^2 + (-3\sqrt{3})^2} =9+27\displaystyle = \sqrt{9 + 27} =36\displaystyle = \sqrt{36} =6\displaystyle = \axisdist{6}
Now find θ\turn{\theta} from tan⁡θ=yx\tan\turn{\theta} = \frac{y}{x}:
tan⁡θ\displaystyle \tan\turn{\theta} =−33−3\displaystyle = \frac{-3\sqrt{3}}{-3} =3\displaystyle = \sqrt{3}
(Be careful not to take arctan⁡(3)=π3\arctan(\sqrt{3}) = \frac{\pi}{3} in Quadrant I to get (6,π3,7)\left(6, \frac{\pi}{3}, 7\right): the two negative signs canceled in the fraction, but (−3,−33)(-3, -3\sqrt{3}) is in Quadrant III.) Adding the reference angle π3\frac{\pi}{3} to π\pi gives θ=π+π3=4π3\turn{\theta} = \pi + \frac{\pi}{3} = \turn{\frac{4\pi}{3}}, so the cylindrical coordinates are (6,4π3,7)\left(\axisdist{6}, \turn{\frac{4\pi}{3}}, \height{7}\right).
3

Convert the cylindrical equation r=6sin⁡θ\axisdist{r} = 6\sin\turn{\theta} into rectangular coordinates and describe the surface it represents in 3D space.

You have r\axisdist{r} on the left and sin⁡θ\sin\turn{\theta} on the right: what can you multiply both sides by to get expressions that convert directly into xx and yy?

Multiply both sides by r\axisdist{r} so the left side becomes r2=x2+y2\axisdist{r}^2 = x^2 + y^2 and the right side becomes 6rsin⁡θ=6y6\axisdist{r}\sin\turn{\theta} = 6y:
r=6sin⁡θ  ⟹  r2=6rsin⁡θ  ⟹  x2+y2=6y\displaystyle \begin{aligned} \axisdist{r} &= 6\sin\turn{\theta} \\ \implies \axisdist{r}^2 &= 6\axisdist{r}\sin\turn{\theta} \\ \implies x^2 + y^2 &= 6y \end{aligned}
Move 6y6y to the left and complete the square in yy by adding (−62)2=9\left(\frac{-6}{2}\right)^2 = 9 to both sides:
x2+(y2−6y+9)=9  ⟹  x2+(y−3)2=9\displaystyle \begin{aligned} x^2 + (y^2 - 6y + 9) &= 9 \\ \implies x^2 + (y - 3)^2 &= 9 \end{aligned}
(Don't forget to add 99 to the right side as well, which would leave x2+(y−3)2=0x^2 + (y - 3)^2 = 0, and don't call this a flat 2D circle: because z\height{z} can be any value, the circle extends straight up and down.) The equation is x2+(y−3)2=9x^2 + (y - 3)^2 = 9, which is a vertical circular cylinder of radius 33 centered along the line x=0,y=3x = 0, y = 3 whose side passes through the zz-axis.
4

Convert the point (ρ,ϕ,θ)=(8,2π3,3π4)(\origindist{\rho}, \tilt{\phi}, \turn{\theta}) = \left(\origindist{8}, \tilt{\frac{2\pi}{3}}, \turn{\frac{3\pi}{4}}\right) from spherical coordinates to rectangular coordinates (x,y,z)(x, y, \height{z}).

Start in the vertical ϕ\tilt{\phi}-triangle with hypotenuse ρ=8\origindist{\rho} = \origindist{8} and tilt ϕ=2π3\tilt{\phi} = \tilt{\frac{2\pi}{3}}: what are the vertical height z\height{z} and the horizontal distance r\axisdist{r}?

First use the vertical right triangle with ρ=8\origindist{\rho} = \origindist{8} and ϕ=2π3\tilt{\phi} = \tilt{\frac{2\pi}{3}} to find z\height{z} and r\axisdist{r}:
z\displaystyle \height{z} =ρcos⁡ϕ\displaystyle = \origindist{\rho}\cos\tilt{\phi} =8cos⁡(2π3)\displaystyle = \origindist{8}\cos\left(\tilt{\frac{2\pi}{3}}\right) =8(−12)\displaystyle = 8\left(-\frac{1}{2}\right) =−4\displaystyle = \height{-4}
r\displaystyle \axisdist{r} =ρsin⁡ϕ\displaystyle = \origindist{\rho}\sin\tilt{\phi} =8sin⁡(2π3)\displaystyle = \origindist{8}\sin\left(\tilt{\frac{2\pi}{3}}\right) =8(32)\displaystyle = 8\left(\frac{\sqrt{3}}{2}\right) =43\displaystyle = \axisdist{4\sqrt{3}}
(Don't swap cosine and sine here to get z=43\height{z} = 4\sqrt{3} and r=−4\axisdist{r} = -4, and remember that ϕ=2π3>π2\tilt{\phi} = \tilt{\frac{2\pi}{3}} > \frac{\pi}{2} tilts below the xyxy-plane, making z\height{z} negative rather than +4+4.) Next, use r=43\axisdist{r} = \axisdist{4\sqrt{3}} and θ=3π4\turn{\theta} = \turn{\frac{3\pi}{4}} in the xyxy-plane:
x\displaystyle x =rcos⁡θ\displaystyle = \axisdist{r}\cos\turn{\theta} =43cos⁡(3π4)\displaystyle = \axisdist{4\sqrt{3}}\cos\left(\turn{\frac{3\pi}{4}}\right) =43(−22)\displaystyle = 4\sqrt{3}\left(-\frac{\sqrt{2}}{2}\right) =−26\displaystyle = -2\sqrt{6}
y\displaystyle y =rsin⁡θ\displaystyle = \axisdist{r}\sin\turn{\theta} =43sin⁡(3π4)\displaystyle = \axisdist{4\sqrt{3}}\sin\left(\turn{\frac{3\pi}{4}}\right) =43(22)\displaystyle = 4\sqrt{3}\left(\frac{\sqrt{2}}{2}\right) =26\displaystyle = 2\sqrt{6}
The rectangular coordinates are (−26,26,−4)(-2\sqrt{6}, 2\sqrt{6}, \height{-4}).
5

Convert the point (x,y,z)=(6,−2,−22)(x, y, \height{z}) = (\sqrt{6}, -\sqrt{2}, \height{-2\sqrt{2}}) from rectangular coordinates to spherical coordinates (ρ,ϕ,θ)(\origindist{\rho}, \tilt{\phi}, \turn{\theta}) with ρ≥0\origindist{\rho} \ge 0, 0≤ϕ≤π0 \le \tilt{\phi} \le \pi, and 0≤θ<2π0 \le \turn{\theta} < 2\pi.

After finding the 3D distance ρ\origindist{\rho}, use cos⁡ϕ=z/ρ\cos\tilt{\phi} = \height{z}/\origindist{\rho} for the tilt ϕ\tilt{\phi}, then plot (6,−2)(\sqrt{6}, -\sqrt{2}) in the xyxy-plane to place θ\turn{\theta} in [0,2π)[0, 2\pi).

Find the 3D distance ρ\origindist{\rho} from the origin:
ρ\displaystyle \origindist{\rho} =(6)2+(−2)2+(−22)2\displaystyle = \sqrt{(\sqrt{6})^2 + (-\sqrt{2})^2 + (\height{-2\sqrt{2}})^2} =6+2+8\displaystyle = \sqrt{6 + 2 + 8} =16\displaystyle = \sqrt{16} =4\displaystyle = \origindist{4}
Find the tilt angle ϕ\tilt{\phi} in [0,π][0, \pi] from cos⁡ϕ=zρ\cos\tilt{\phi} = \frac{\height{z}}{\origindist{\rho}}:
cos⁡ϕ\displaystyle \cos\tilt{\phi} =−224\displaystyle = \frac{\height{-2\sqrt{2}}}{\origindist{4}} =−22  ⟹  ϕ\displaystyle = -\frac{\sqrt{2}}{2} \implies \tilt{\phi} =3π4\displaystyle = \tilt{\frac{3\pi}{4}}
Now plot (x,y)=(6,−2)(x, y) = (\sqrt{6}, -\sqrt{2}) in Quadrant IV and find tan⁡θ\tan\turn{\theta}:
tan⁡θ\displaystyle \tan\turn{\theta} =−26\displaystyle = \frac{-\sqrt{2}}{\sqrt{6}} =−13\displaystyle = -\frac{1}{\sqrt{3}}
(Don't write the calculator output θ=−π6\turn{\theta} = -\frac{\pi}{6}, which falls outside 0≤θ<2π0 \le \turn{\theta} < 2\pi and gives (4,3π4,−π6)\left(4, \frac{3\pi}{4}, -\frac{\pi}{6}\right); add 2π2\pi to get the Quadrant IV angle in [0,2π)[0, 2\pi).) This gives θ=2π−π6=11π6\turn{\theta} = 2\pi - \frac{\pi}{6} = \turn{\frac{11\pi}{6}}, so the spherical coordinates are (4,3π4,11π6)\left(\origindist{4}, \tilt{\frac{3\pi}{4}}, \turn{\frac{11\pi}{6}}\right).
6

Write the equation of the downward-opening cone z=−3x2+3y2\height{z} = -\sqrt{3x^2 + 3y^2} in both cylindrical coordinates and spherical coordinates.

Factor 3(x2+y2)3(x^2 + y^2) inside the square root for cylindrical coordinates; for spherical coordinates, replace z\height{z} and r\axisdist{r} using the ϕ\tilt{\phi}-triangle and solve for the tilt angle ϕ\tilt{\phi} in [0,π][0, \pi].

Factor out 33 inside the square root and replace x2+y2\sqrt{x^2 + y^2} with r\axisdist{r} for cylindrical coordinates:
z\displaystyle \height{z} =−3(x2+y2)\displaystyle = -\sqrt{3(x^2 + y^2)} =−3 r\displaystyle = -\sqrt{3}\,\axisdist{r}
(Don't forget to apply the square root to the 33, which would give z=−3r\height{z} = -3\axisdist{r}.) For spherical coordinates, substitute z=ρcos⁡ϕ\height{z} = \origindist{\rho}\cos\tilt{\phi} and r=ρsin⁡ϕ\axisdist{r} = \origindist{\rho}\sin\tilt{\phi}, then divide by ρcos⁡ϕ\origindist{\rho}\cos\tilt{\phi}:
ρcos⁡ϕ=−3 ρsin⁡ϕ  ⟹  tan⁡ϕ=sin⁡ϕcos⁡ϕ=−13\displaystyle \begin{aligned} \origindist{\rho}\cos\tilt{\phi} &= -\sqrt{3}\,\origindist{\rho}\sin\tilt{\phi} \\ \implies \tan\tilt{\phi} &= \frac{\sin\tilt{\phi}}{\cos\tilt{\phi}} = -\frac{1}{\sqrt{3}} \end{aligned}
(Be careful not to divide the wrong way around to get tan⁡ϕ=−3\tan\tilt{\phi} = -\sqrt{3} and ϕ=2π3\tilt{\phi} = \frac{2\pi}{3}, and remember 0≤ϕ≤π0 \le \tilt{\phi} \le \pi so ϕ\tilt{\phi} cannot be −π6-\frac{\pi}{6}.) Since 0≤ϕ≤π0 \le \tilt{\phi} \le \pi, this gives ϕ=π−π6=5π6\tilt{\phi} = \pi - \frac{\pi}{6} = \tilt{\frac{5\pi}{6}}. Thus the cone is z=−3 r\height{z} = -\sqrt{3}\,\axisdist{r} in cylindrical coordinates and ϕ=5π6\tilt{\phi} = \tilt{\frac{5\pi}{6}} in spherical coordinates.
7

Convert the paraboloid z=4x2+4y2\height{z} = 4x^2 + 4y^2 into both cylindrical coordinates and spherical coordinates (solved for ρ\origindist{\rho} in terms of ϕ\tilt{\phi} for ρ>0\origindist{\rho} > 0), and state which coordinate system best fits the surface.

Group 4(x2+y2)4(x^2 + y^2) first: how does x2+y2x^2 + y^2 convert in cylindrical coordinates versus spherical coordinates?

Factor 4(x2+y2)4(x^2 + y^2) and substitute x2+y2=r2x^2 + y^2 = \axisdist{r}^2 to get the cylindrical equation:
z\displaystyle \height{z} =4(x2+y2)\displaystyle = 4(x^2 + y^2) =4r2\displaystyle = 4\axisdist{r}^2
For spherical coordinates, substitute z=ρcos⁡ϕ\height{z} = \origindist{\rho}\cos\tilt{\phi} and x2+y2=r2=ρ2sin⁡2ϕx^2 + y^2 = \axisdist{r}^2 = \origindist{\rho}^2\sin^2\tilt{\phi}, then divide by 4ρsin⁡2ϕ4\origindist{\rho}\sin^2\tilt{\phi} for ρ>0\origindist{\rho} > 0:
ρcos⁡ϕ\displaystyle \origindist{\rho}\cos\tilt{\phi} =4ρ2sin⁡2ϕ  ⟹  ρ\displaystyle = 4\origindist{\rho}^2\sin^2\tilt{\phi} \implies \origindist{\rho} =cos⁡ϕ4sin⁡2ϕ\displaystyle = \frac{\cos\tilt{\phi}}{4\sin^2\tilt{\phi}} =14cot⁡ϕcsc⁡ϕ\displaystyle = \frac{1}{4}\cot\tilt{\phi}\csc\tilt{\phi}
(Watch out for leaving the 44 in the numerator when solving for ρ\origindist{\rho}, which gives ρ=4cot⁡ϕcsc⁡ϕ\origindist{\rho} = 4\cot\tilt{\phi}\csc\tilt{\phi}.) In cylindrical coordinates the paraboloid is z=4r2\height{z} = 4\axisdist{r}^2, in spherical coordinates it is ρ=14cot⁡ϕcsc⁡ϕ\origindist{\rho} = \frac{1}{4}\cot\tilt{\phi}\csc\tilt{\phi}, and cylindrical coordinates fit best because the paraboloid is symmetric around the zz-axis rather than centered around the origin.
8

Convert the spherical equation ρ=4sin⁡ϕcos⁡θ\origindist{\rho} = 4\sin\tilt{\phi}\cos\turn{\theta} into rectangular coordinates and describe the surface it represents in 3D space.

Look at the formula for xx in spherical coordinates: what factor is missing from sin⁡ϕcos⁡θ\sin\tilt{\phi}\cos\turn{\theta} to turn the right side into 4x4x and the left side into ρ2\origindist{\rho}^2?

Multiply both sides by ρ\origindist{\rho} so the left side becomes ρ2=x2+y2+z2\origindist{\rho}^2 = x^2 + y^2 + \height{z}^2 and the right side becomes 4ρsin⁡ϕcos⁡θ=4x4\origindist{\rho}\sin\tilt{\phi}\cos\turn{\theta} = 4x:
ρ=4sin⁡ϕcos⁡θ  ⟹  ρ2=4ρsin⁡ϕcos⁡θ  ⟹  x2+y2+z2=4x\displaystyle \begin{aligned} \origindist{\rho} &= 4\sin\tilt{\phi}\cos\turn{\theta} \\ \implies \origindist{\rho}^2 &= 4\origindist{\rho}\sin\tilt{\phi}\cos\turn{\theta} \\ \implies x^2 + y^2 + \height{z}^2 &= 4x \end{aligned}
(Don't confuse ρsin⁡ϕcos⁡θ=x\origindist{\rho}\sin\tilt{\phi}\cos\turn{\theta} = x with yy to get x2+(y−2)2+z2=4x^2 + (y - 2)^2 + \height{z}^2 = 4, and don't forget to add 44 to the right side when completing the square.) Move 4x4x to the left and add (−42)2=4\left(\frac{-4}{2}\right)^2 = 4 to both sides:
(x2−4x+4)+y2+z2=4  ⟹  (x−2)2+y2+z2=4\displaystyle \begin{aligned} (x^2 - 4x + 4) + y^2 + \height{z}^2 &= 4 \\ \implies (x - 2)^2 + y^2 + \height{z}^2 &= 4 \end{aligned}
The rectangular equation is (x−2)2+y2+z2=4(x - 2)^2 + y^2 + \height{z}^2 = 4, which is a sphere of radius 22 centered at (2,0,0)(2, 0, 0) whose surface passes through the origin.