The Cartesian coordinate system provides a straightforward way to describe the location of points in space. Some surfaces, however, can be difficult to model with equations based on the Cartesian system. This is a familiar problem; recall that in two dimensions, polar coordinates often provide a useful alternative system for describing the location of a point in the plane, particularly in cases involving circles. In this section, we look at two different ways of describing the location of points in space, both of them based on extensions of polar coordinates. As the name suggests, cylindrical coordinates are useful for dealing with problems involving cylinders, such as calculating the volume of a round water tank or the amount of oil flowing through a pipe. Similarly, spherical coordinates are useful for dealing with problems involving spheres, such as finding the volume of domed structures.
When we expanded the traditional Cartesian coordinate system from two dimensions to three, we simply added a new axis to model the third dimension. Starting with polar coordinates, we can follow this same process to create a new three-dimensional coordinate system, called the cylindrical coordinate system. In this way, cylindrical coordinates provide a natural extension of polar coordinates to three dimensions.
In the cylindrical coordinate system, a point in space (Figure \(\PageIndex\)) is represented by the ordered triple \((r,θ,z)\), where
In the \(xy\)-plane, the right triangle shown in Figure \(\PageIndex\) provides the key to transformation between cylindrical and Cartesian, or rectangular, coordinates.
The rectangular coordinates \((x,y,z)\) and the cylindrical coordinates \((r,θ,z)\) of a point are related as follows:
These equations are used to convert from cylindrical coordinates to rectangular coordinates.
These equations are used to convert from rectangular coordinates to cylindrical coordinates
As when we discussed conversion from rectangular coordinates to polar coordinates in two dimensions, it should be noted that the equation \(\tan θ=\dfrac\) has an infinite number of solutions. However, if we restrict \(θ\) to values between \(0\) and \(2π\), then we can find a unique solution based on the quadrant of the \(xy\)-plane in which original point \((x,y,z)\) is located. Note that if \(x=0\), then the value of \(θ\) is either \(\dfrac,\dfrac,\) or \(0\), depending on the value of \(y\).
Notice that these equations are derived from properties of right triangles. To make this easy to see, consider point \(P\) in the \(xy\)-plane with rectangular coordinates \((x,y,0)\) and with cylindrical coordinates \((r,θ,0)\), as shown in Figure \(\PageIndex\).
Let’s consider the differences between rectangular and cylindrical coordinates by looking at the surfaces generated when each of the coordinates is held constant. If \(c\) is a constant, then in rectangular coordinates, surfaces of the form \(x=c, y=c,\) or \(z=c\) are all planes. Planes of these forms are parallel to the \(yz\)-plane, the \(xz\)-plane, and the \(xy\)-plane, respectively. When we convert to cylindrical coordinates, the \(z\)-coordinate does not change. Therefore, in cylindrical coordinates, surfaces of the form \(z=c\) are planes parallel to the \(xy\)-plane. Now, let’s think about surfaces of the form \(r=c\). The points on these surfaces are at a fixed distance from the \(z\)-axis. In other words, these surfaces are vertical circular cylinders. Last, what about \(θ=c\)? The points on a surface of the form \(θ=c\) are at a fixed angle from the \(x\)-axis, which gives us a half-plane that starts at the \(z\)-axis (Figures \(\PageIndex\) and \(\PageIndex\)).
Plot the point with cylindrical coordinates \((4,\dfrac,−2)\) and express its location in rectangular coordinates.
Conversion from cylindrical to rectangular coordinates requires a simple application of the equations listed in Conversion between Cylindrical and Cartesian Coordinates:
\[\begin x &=r\cos θ=4\cos\dfrac=−2 \\[4pt] y &=r\sin θ=4\sin \dfrac=2\sqrt \\[4pt] z &=−2 \end. \nonumber \]
The point with cylindrical coordinates \((4,\dfrac,−2)\) has rectangular coordinates \((−2,2\sqrt,−2)\) (Figure \(\PageIndex\)).
Point \(R\) has cylindrical coordinates \((5,\frac,4)\). Plot \(R\) and describe its location in space using rectangular, or Cartesian, coordinates.
Hint
The first two components match the polar coordinates of the point in the \(xy\)-plane.
Answer
The rectangular coordinates of the point are \((\frac>,\frac,4).\)
If this process seems familiar, it is with good reason. This is exactly the same process that we followed in Introduction to Parametric Equations and Polar Coordinates to convert from polar coordinates to two-dimensional rectangular coordinates.
Convert the rectangular coordinates \((1,−3,5)\) to cylindrical coordinates.
Use the second set of equations from Conversion between Cylindrical and Cartesian Coordinates to translate from rectangular to cylindrical coordinates:
We choose the positive square root, so \(r=\sqrt\).Now, we apply the formula to find \(θ\). In this case, \(y\) is negative and \(x\) is positive, which means we must select the value of \(θ\) between \(\dfrac\) and \(2π\):
In this case, the z-coordinates are the same in both rectangular and cylindrical coordinates:
The point with rectangular coordinates \((1,−3,5)\) has cylindrical coordinates approximately equal to \((\sqrt,5.03,5).\)
Convert point \((−8,8,−7)\) from Cartesian coordinates to cylindrical coordinates.
Hint
Answer
The use of cylindrical coordinates is common in fields such as physics. Physicists studying electrical charges and the capacitors used to store these charges have discovered that these systems sometimes have a cylindrical symmetry. These systems have complicated modeling equations in the Cartesian coordinate system, which make them difficult to describe and analyze. The equations can often be expressed in more simple terms using cylindrical coordinates. For example, the cylinder described by equation \(x^2+y^2=25\) in the Cartesian system can be represented by cylindrical equation \(r=5\).
Describe the surfaces with the given cylindrical equations.
a. When the angle \(θ\) is held constant while \(r\) and \(z\) are allowed to vary, the result is a half-plane (Figure \(\PageIndex\)).
b. Substitute \(r^2=x^2+y^2\) into equation \(r^2+z^2=9\) to express the rectangular form of the equation: \(x^2+y^2+z^2=9\). This equation describes a sphere centered at the origin with radius 3 (Figure \(\PageIndex\)).
c. To describe the surface defined by equation \(z=r\), is it useful to examine traces parallel to the \(xy\)-plane. For example, the trace in plane \(z=1\) is circle \(r=1\), the trace in plane \(z=3\) is circle \(r=3\), and so on. Each trace is a circle. As the value of \(z\) increases, the radius of the circle also increases. The resulting surface is a cone (Figure \(\PageIndex\)).
Describe the surface with cylindrical equation \(r=6\).
Hint
The \(θ\) and \(z\) components of points on the surface can take any value.
Answer
This surface is a cylinder with radius \(6\).
In the Cartesian coordinate system, the location of a point in space is described using an ordered triple in which each coordinate represents a distance. In the cylindrical coordinate system, the location of a point in space is described using two distances \((r\) and \(z)\) and an angle measure \((θ)\). In the spherical coordinate system, we again use an ordered triple to describe the location of a point in space. In this case, the triple describes one distance and two angles. Spherical coordinates make it simple to describe a sphere, just as cylindrical coordinates make it easy to describe a cylinder. Grid lines for spherical coordinates are based on angle measures, like those for polar coordinates.
In the spherical coordinate system, a point \(P\) in space (Figure \(\PageIndex\)) is represented by the ordered triple \((ρ,θ,φ)\) where
By convention, the origin is represented as \((0,0,0)\) in spherical coordinates.
Rectangular coordinates \((x,y,z)\), cylindrical coordinates \((r,θ,z),\) and spherical coordinates \((ρ,θ,φ)\) of a point are related as follows:
Convert from spherical coordinates to rectangular coordinates
These equations are used to convert from spherical coordinates to rectangular coordinates.
Convert from rectangular coordinates to spherical coordinates
These equations are used to convert from rectangular coordinates to spherical coordinates.
Convert from spherical coordinates to cylindrical coordinates
These equations are used to convert from spherical coordinates to cylindrical coordinates.
Convert from cylindrical coordinates to spherical coordinates
These equations are used to convert from cylindrical coordinates to spherical coordinates.
The formulas to convert from spherical coordinates to rectangular coordinates may seem complex, but they are straightforward applications of trigonometry. Looking at Figure \(\PageIndex\), it is easy to see that \(r=ρ \sin φ\). Then, looking at the triangle in the \(xy\)-plane with r as its hypotenuse, we have \(x=r\cos θ=ρ\sin φ \cos θ\). The derivation of the formula for \(y\) is similar. Figure \(\PageIndex\) also shows that \(ρ^2=r^2+z^2=x^2+y^2+z^2\) and \(z=ρ\cos φ\). Solving this last equation for \(φ\) and then substituting \(ρ=\sqrt\) (from the first equation) yields \(φ=\arccos(\dfrac<\sqrt>)\). Also, note that, as before, we must be careful when using the formula \(\tan θ=\dfrac\) to choose the correct value of \(θ\).
As we did with cylindrical coordinates, let’s consider the surfaces that are generated when each of the coordinates is held constant. Let \(c\) be a constant, and consider surfaces of the form \(ρ=c\). Points on these surfaces are at a fixed distance from the origin and form a sphere. The coordinate \(θ\) in the spherical coordinate system is the same as in the cylindrical coordinate system, so surfaces of the form \(θ=c\) are half-planes, as before. Last, consider surfaces of the form \(φ=c\). The points on these surfaces are at a fixed angle from the \(z\)-axis and form a half-cone (Figure \(\PageIndex\)).
Plot the point with spherical coordinates \((8,\dfrac,\dfrac)\) and express its location in both rectangular and cylindrical coordinates.
Use the equations in Converting among Spherical, Cylindrical, and Rectangular Coordinates to translate between spherical and cylindrical coordinates (Figure \(\PageIndex\)):
\[ \begin x &=ρ\sin φ\cos θ \\[4pt] &=8 \sin\left(\dfrac\right) \cos\left(\dfrac\right) \\[4pt] &= 8\left(\dfrac\right)\dfrac \\[4pt] &=2 \\[4pt] y &=ρ\sin φ\sin θ \\[4pt] &= 8\sin\left(\dfrac\right)\sin\left(\dfrac\right) \\[4pt] &= 8\left(\dfrac\right)\dfrac<\sqrt> \\[4pt] &= 2\sqrt \\[4pt] z &=ρ\cos φ \\[4pt] &= 8\cos\left(\dfrac\right) \\[4pt] &= 8\left(\dfrac<\sqrt>\right) \\[4pt] &= 4\sqrt \end\]
The point with spherical coordinates \((8,\dfrac,\dfrac)\) has rectangular coordinates \((2,2\sqrt,4\sqrt).\)
Finding the values in cylindrical coordinates is equally straightforward:
\[ \begin r&=ρ \sin φ \\[4pt] &= 8\sin \dfrac \\[4pt] &=4 \\[4pt] θ&=θ \\[4pt] z&=ρ\cos φ\\[4pt] &= 8\cos\dfrac \\[4pt] &= 4\sqrt .\end\]
Thus, cylindrical coordinates for the point are \((4,\dfrac,4\sqrt)\).
Plot the point with spherical coordinates \((2,−\frac,\frac)\) and describe its location in both rectangular and cylindrical coordinates.
Hint
Converting the coordinates first may help to find the location of the point in space more easily.
Answer
Convert the rectangular coordinates \((−1,1,\sqrt)\) to both spherical and cylindrical coordinates.
Start by converting from rectangular to spherical coordinates:
Because \((x,y)=(−1,1)\), then the correct choice for \(θ\) is \(\frac\).
There are actually two ways to identify \(φ\). We can use the equation \(φ=\arccos(\dfrac>)\). A more simple approach, however, is to use equation \(z=ρ\cos φ.\) We know that \(z=\sqrt\) and \(ρ=2\sqrt\), so
and therefore \(φ=\dfrac\). The spherical coordinates of the point are \((2\sqrt,\dfrac,\dfrac).\)
To find the cylindrical coordinates for the point, we need only find \(r\):
The cylindrical coordinates for the point are \((\sqrt,\dfrac,\sqrt)\).
Describe the surfaces with the given spherical equations.
a. The variable \(θ\) represents the measure of the same angle in both the cylindrical and spherical coordinate systems. Points with coordinates \((ρ,\dfrac,φ)\) lie on the plane that forms angle \(θ=\dfrac\) with the positive \(x\)-axis. Because \(ρ>0\), the surface described by equation \(θ=\dfrac\) is the half-plane shown in Figure \(\PageIndex\).
b. Equation \(φ=\dfrac\) describes all points in the spherical coordinate system that lie on a line from the origin forming an angle measuring \(\dfrac\) rad with the positive \(z\)-axis. These points form a half-cone (Figure \(\PageIndex\)). Because there is only one value for \(φ\) that is measured from the positive \(z\)-axis, we do not get the full cone (with two pieces).
To find the equation in rectangular coordinates, use equation \(φ=\arccos(\dfrac>).\)
This is the equation of a cone centered on the \(z\)-axis.
c. Equation \(ρ=6\) describes the set of all points \(6\) units away from the origin—a sphere with radius \(6\) (Figure \(\PageIndex\)).
d. To identify this surface, convert the equation from spherical to rectangular coordinates, using equations \(y=ρ\sin φ\sin θ\) and \(ρ^2=x^2+y^2+z^2:\)
\(ρ^2=ρ\sin θ\sin φ\) Multiply both sides of the equation by \(ρ\).
\(x^2+y^2+z^2=y\) Substitute rectangular variables using the equations above.
\(x^2+y^2−y+z^2=0\) Subtract \(y\) from both sides of the equation.
\(x^2+y^2−y+\dfrac+z^2=\dfrac\) Complete the square.
\(x^2+\left(y−\dfrac\right)^2+z^2=\dfrac\). Rewrite the middle terms as a perfect square.
The equation describes a sphere centered at point \((0,\dfrac,0)\) with radius \(\dfrac\).
Describe the surfaces defined by the following equations.
Think about what each component represents and what it means to hold that component constant.
Answer a
This is the set of all points \(13\) units from the origin. This set forms a sphere with radius \(13\).
Answer b
This set of points forms a half plane. The angle between the half plane and the positive \(x\)-axis is \(θ=\dfrac.\)
Answer c
Let \(P\) be a point on this surface. The position vector of this point forms an angle of \(φ=\dfrac\) with the positive \(z\)-axis, which means that points closer to the origin are closer to the axis. These points form a half-cone.
Spherical coordinates are useful in analyzing systems that have some degree of symmetry about a point, such as the volume of the space inside a domed stadium or wind speeds in a planet’s atmosphere. A sphere that has Cartesian equation \(x^2+y^2+z^2=c^2\) has the simple equation \(ρ=c\) in spherical coordinates.
In geography, latitude and longitude are used to describe locations on Earth’s surface, as shown in Figure \(\PageIndex\). Although the shape of Earth is not a perfect sphere, we use spherical coordinates to communicate the locations of points on Earth. Let’s assume Earth has the shape of a sphere with radius \(4000\) mi. We express angle measures in degrees rather than radians because latitude and longitude are measured in degrees.
around the middle labeled "Equator." Arrows run from center of sphere to the intersection of prime meridian and equator, a point on equator east of prime meridian, and a third point above this second one. The arc between the first two points is labeled "longitude"; the arc between the second and third "latitude."" />
Let the center of Earth be the center of the sphere, with the ray from the center through the North Pole representing the positive \(z\)-axis. The prime meridian represents the trace of the surface as it intersects the \(xz\)-plane. The equator is the trace of the sphere intersecting the \(xy\)-plane.
The latitude of Columbus, Ohio, is \(40°\) N and the longitude is \(83°\) W, which means that Columbus is \(40°\) north of the equator. Imagine a ray from the center of Earth through Columbus and a ray from the center of Earth through the equator directly south of Columbus. The measure of the angle formed by the rays is \(40°\). In the same way, measuring from the prime meridian, Columbus lies \(83°\) to the west. Express the location of Columbus in spherical coordinates.
The radius of Earth is \(4000\)mi, so \(ρ=4000\). The intersection of the prime meridian and the equator lies on the positive \(x\)-axis. Movement to the west is then described with negative angle measures, which shows that \(θ=−83°\), Because Columbus lies \(40°\) north of the equator, it lies \(50°\) south of the North Pole, so \(φ=50°\). In spherical coordinates, Columbus lies at point \((4000,−83°,50°).\)
Sydney, Australia is at \(34°S\) and \(151°E.\) Express Sydney’s location in spherical coordinates.
Hint
Because Sydney lies south of the equator, we need to add \(90°\) to find the angle measured from the positive \(z\)-axis.
Answer
Cylindrical and spherical coordinates give us the flexibility to select a coordinate system appropriate to the problem at hand. A thoughtful choice of coordinate system can make a problem much easier to solve, whereas a poor choice can lead to unnecessarily complex calculations. In the following example, we examine several different problems and discuss how to select the best coordinate system for each one.
In each of the following situations, we determine which coordinate system is most appropriate and describe how we would orient the coordinate axes. There could be more than one right answer for how the axes should be oriented, but we select an orientation that makes sense in the context of the problem. Note: There is not enough information to set up or solve these problems; we simply select the coordinate system (Figure \(\PageIndex\)).
Which coordinate system is most appropriate for creating a star map, as viewed from Earth (see the following figure)?
How should we orient the coordinate axes?
Hint
What kinds of symmetry are present in this situation?
Answer
Spherical coordinates with the origin located at the center of the earth, the \(z\)-axis aligned with the North Pole, and the \(x\)-axis aligned with the prime meridian
cylindrical coordinate system a way to describe a location in space with an ordered triple \((r,θ,z),\) where \((r,θ)\) represents the polar coordinates of the point’s projection in the \(xy\)-plane, and z represents the point’s projection onto the \(z\)-axis spherical coordinate system a way to describe a location in space with an ordered triple \((ρ,θ,φ),\) where \(ρ\) is the distance between \(P\) and the origin \((ρ≠0), θ\) is the same angle used to describe the location in cylindrical coordinates, and \(φ\) is the angle formed by the positive \(z\)-axis and line segment \(\bar\), where \(O\) is the origin and \(0≤φ≤π\)
This page titled 12.7: Cylindrical and Spherical Coordinates is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Gilbert Strang & Edwin “Jed” Herman (OpenStax) via source content that was edited to the style and standards of the LibreTexts platform.