5.7: Cylindrical and Spherical Coordinates
This page is a draft and is under active development.
( \newcommand{\kernel}{\mathrm{null}\,}\)
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.
Cylindrical Coordinates
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.
Definition: The Cylindrical Coordinate System
In the cylindrical coordinate system, a point in space (Figure
are the polar coordinates of the pointโs projection in the( ๐ , ๐ ) -plane๐ฅ โข ๐ฆ is the usual๐ง -coordinate in the Cartesian coordinate system๐ง

In the
Conversion between Cylindrical and Cartesian Coordinates
The rectangular coordinates
These equations are used to convert from cylindrical coordinates to rectangular coordinates.
๐ฅ = ๐ โข c o s โก ๐ ๐ฆ = ๐ โข s i n โก ๐ ๐ง = ๐ง
These equations are used to convert from rectangular coordinates to cylindrical coordinates
๐ 2 = ๐ฅ 2 + ๐ฆ 2 t a n โก ๐ = ๐ฆ ๐ฅ ๐ง = ๐ง
As when we discussed conversion from rectangular coordinates to polar coordinates in two dimensions, it should be noted that the equation
Notice that these equations are derived from properties of right triangles. To make this easy to see, consider point

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


Example
Plot the point with cylindrical coordinates
Solution
Conversion from cylindrical to rectangular coordinates requires a simple application of the equations listed in Note:
The point with cylindrical coordinates

Exercise
Point
- Hint
-
The first two components match the polar coordinates of the point in the
-plane.๐ฅ โข ๐ฆ - Answer
-
The rectangular coordinates of the point are
( 5 โข โ 3 2 , 5 2 , 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.
Example
Convert the rectangular coordinates
Solution
Use the second set of equations from Note to translate from rectangular to cylindrical coordinates:
We choose the positive square root, so
In this case, the z-coordinates are the same in both rectangular and cylindrical coordinates:
The point with rectangular coordinates
Exercise
Convert point
- Hint
-
and๐ 2 = ๐ฅ 2 + ๐ฆ 2 t a n โก ๐ = ๐ฆ ๐ฅ - Answer
-
8 โข โ 2 , 3 โข ๐ 4 , โ 7 )
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
Example
Describe the surfaces with the given cylindrical equations.
๐ = ๐ 4 ๐ 2 + ๐ง 2 = 9 ๐ง = ๐
Solution
a. When the angle

b. Substitute

c. To describe the surface defined by equation

Exercise
Describe the surface with cylindrical equation
- Hint
-
The
and๐ components of points on the surface can take any value.๐ง - Answer
-
This surface is a cylinder with radius
.6
Spherical Coordinates
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, location of a point in space is described using two distances
Definition: spherical coordinate system
In the spherical coordinate system, a point
(the Greek letter rho) is the distance between๐ and the origin๐ ( ๐ โ 0 ) ; is the same angle used to describe the location in cylindrical coordinates;๐ (the Greek letter phi) is the angle formed by the positive๐ -axis and line segment๐ง , whereยฏ ๐ โข ๐ is the origin and๐ 0 โค ๐ โค ๐ .

By convention, the origin is represented as
HOWTO: Converting among Spherical, Cylindrical, and Rectangular Coordinates
Rectangular coordinates
Convert from spherical coordinates to rectangular coordinates
These equations are used to convert from spherical coordinates to rectangular coordinates.
๐ฅ = ๐ โข s i n โก ๐ ๐ โข ๐ โข ๐ โข ๐ ๐ฆ = ๐ โข s i n โก ๐ โข s i n โก ๐ ๐ง = ๐ โข c o s โก ๐
Convert from rectangular coordinates to spherical coordinates
These equations are used to convert from rectangular coordinates to spherical coordinates.
๐ 2 = ๐ฅ 2 + ๐ฆ 2 + ๐ง 2 t a n โก ๐ = ๐ฆ ๐ฅ ๐ = a r c c o s โก ( ๐ง โ ๐ฅ 2 + ๐ฆ 2 + ๐ง 2 ) .
Convert from spherical coordinates to rectangular coordinates
These equations are used to convert from spherical coordinates to rectangular coordinates.
๐ = ๐ โข s i n โก ๐ ๐ = ๐ ๐ง = ๐ โข c o s โก ๐
Convert from cylindrical coordinates to spherical coordinates
These equations are used to convert from cylindrical coordinates to spherical coordinates.
๐ = โ ๐ 2 + ๐ง 2 ๐ = ๐ ๐ = a r c c o s โก ( ๐ง โ ๐ 2 + ๐ง 2 )
The formulas to convert from spherical coordinates to rectangular coordinates may seem complex, but they are straightforward applications of trigonometry. Looking at Figure, it is easy to see that

As we did with cylindrical coordinates, letโs consider the surfaces that are generated when each of the coordinates is held constant. Let

Example
Plot the point with spherical coordinates
Solution
Use the equations in Note to translate between spherical and cylindrical coordinates (Figure

The point with spherical coordinates
Finding the values in cylindrical coordinates is equally straightforward:
Thus, cylindrical coordinates for the point are
Exercise
Plot the point with spherical coordinates
- Hint
-
Converting the coordinates first may help to find the location of the point in space more easily.
- Answer
-
Cartesian:
cylindrical:( โ โ 3 2 , โ 1 2 , โ 3 ) , ( 1 , โ 5 โข ๐ 6 , โ 3 )
Example
Convert the rectangular coordinates
Solution
Start by converting from rectangular to spherical coordinates:
Because
There are actually two ways to identify
and therefore
To find the cylindrical coordinates for the point, we need only find r:
The cylindrical coordinates for the point are
Example
Describe the surfaces with the given spherical equations.
๐ = ๐ 3 ๐ = 5 โข ๐ 6 ๐ = 6 ๐ = s i n โก ๐ โข ๐ โข ๐ โข ๐ โข ๐
Solution
a. The variable

b. Equation

To find the equation in rectangular coordinates, use equation
This is the equation of a cone centered on the
c. Equation

d. To identify this surface, convert the equation from spherical to rectangular coordinates, using equations
The equation describes a sphere centered at point
Exercise
Describe the surfaces defined by the following equations.
๐ = 1 3 ๐ = 2 โข ๐ 3 ๐ = ๐ 4
- Hint
-
Think about what each component represents and what it means to hold that component constant.
- Answer a
-
This is the set of all points
units from the origin. This set forms a sphere with radius1 3 .1 3 - Answer b
-
This set of points forms a half plane. The angle between the half plane and the positive
-axis is๐ฅ ๐ = 2 โข ๐ 3 . - Answer c
-
Let
be a point on this surface. The position vector of this point forms an angle of๐ with the positive๐ = ๐ 4 -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
In geography, latitude and longitude are used to describe locations on Earthโs surface, as shown in Figure. 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

Let the center of Earth be the center of the sphere, with the ray from the center through the North Pole representing the positive
Example
The latitude of Columbus, Ohio, is
Solution
The radius of Earth is
Exercise
Sydney, Australia is at
- Hint
-
Because Sydney lies south of the equator, we need to add
to find the angle measured from the positive9 0 ยฐ -axis.๐ง - Answer
-
( 4 0 0 0 , 1 5 1 ยฐ , 1 2 4 ยฐ )
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.
Example
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
- Find the center of gravity of a bowling ball.
- Determine the velocity of a submarine subjected to an ocean current.
- Calculate the pressure in a conical water tank.
- Find the volume of oil flowing through a pipeline.
- Determine the amount of leather required to make a football.

Solution
- Clearly, a bowling ball is a sphere, so spherical coordinates would probably work best here. The origin should be located at the physical center of the ball. There is no obvious choice for how the
-,๐ฅ - and๐ฆ -axes should be oriented. Bowling balls normally have a weight block in the center. One possible choice is to align the๐ง -axis with the axis of symmetry of the weight block.๐ง - A submarine generally moves in a straight line. There is no rotational or spherical symmetry that applies in this situation, so rectangular coordinates are a good choice. The
-axis should probably point upward. The๐ง - and๐ฅ -axes could be aligned to point east and north, respectively. The origin should be some convenient physical location, such as the starting position of the submarine or the location of a particular port.๐ฆ - A cone has several kinds of symmetry. In cylindrical coordinates, a cone can be represented by equation
where๐ง = ๐ โข ๐ , is a constant. In spherical coordinates, we have seen that surfaces of the form๐ are half-cones. Last, in rectangular coordinates, elliptic cones are quadric surfaces and can be represented by equations of the form๐ = ๐ In this case, we could choose any of the three. However, the equation for the surface is more complicated in rectangular coordinates than in the other two systems, so we might want to avoid that choice. In addition, we are talking about a water tank, and the depth of the water might come into play at some point in our calculations, so it might be nice to have a component that represents height and depth directly. Based on this reasoning, cylindrical coordinates might be the best choice. Choose the๐ง 2 = ๐ฅ 2 ๐ 2 + ๐ฆ 2 ๐ 2 . -axis to align with the axis of the cone. The orientation of the other two axes is arbitrary. The origin should be the bottom point of the cone.๐ง - A pipeline is a cylinder, so cylindrical coordinates would be best the best choice. In this case, however, we would likely choose to orient our
-axis with the center axis of the pipeline. The๐ง -axis could be chosen to point straight downward or to some other logical direction. The origin should be chosen based on the problem statement. Note that this puts the๐ฅ -axis in a horizontal orientation, which is a little different from what we usually do. It may make sense to choose an unusual orientation for the axes if it makes sense for the problem.๐ง - A football has rotational symmetry about a central axis, so cylindrical coordinates would work best. The
-axis should align with the axis of the ball. The origin could be the center of the ball or perhaps one of the ends. The position of the๐ง -axis is arbitrary.๐ฅ
Exercise
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
-axis aligned with the North Pole, and the๐ง -axis aligned with the prime meridian๐ฅ
Key Concepts
- In the cylindrical coordinate system, a point in space is represented by the ordered triple
where( ๐ , ๐ , ๐ง ) , represents the polar coordinates of the pointโs projection in the( ๐ , ๐ ) -plane and z represents the pointโs projection onto the๐ฅ โข ๐ฆ -axis.๐ง - To convert a point from cylindrical coordinates to Cartesian coordinates, use equations
and๐ฅ = ๐ โข c o s โก ๐ , ๐ฆ = ๐ โข s i n โก ๐ , ๐ง = ๐ง . - To convert a point from Cartesian coordinates to cylindrical coordinates, use equations
and๐ 2 = ๐ฅ 2 + ๐ฆ 2 , t a n โก ๐ = ๐ฆ ๐ฅ , ๐ง = ๐ง . - In the spherical coordinate system, a point
in space is represented by the ordered triple๐ , where( ๐ , ๐ , ๐ ) is the distance between๐ and the origin๐ is the same angle used to describe the location in cylindrical coordinates, and( ๐ โ 0 ) , ๐ is the angle formed by the positive๐ -axis and line segment๐ง , whereยฏ ๐ โข ๐ is the origin and๐ 0 โค ๐ โค ๐ . - To convert a point from spherical coordinates to Cartesian coordinates, use equations
and๐ฅ = ๐ โข s i n โก ๐ โข c o s โก ๐ , ๐ฆ = ๐ โข s i n โก ๐ โข s i n โก ๐ , ๐ง = ๐ โข c o s โก ๐ . - To convert a point from Cartesian coordinates to spherical coordinates, use equations
and๐ 2 = ๐ฅ 2 + ๐ฆ 2 + ๐ง 2 , t a n โก ๐ = ๐ฆ ๐ฅ , .๐ = a r c c o s โก ( ๐ง โ ๐ฅ 2 + ๐ฆ 2 + ๐ง 2 ) - To convert a point from spherical coordinates to cylindrical coordinates, use equations
and๐ = ๐ โข s i n โก ๐ , ๐ = ๐ , ๐ง = ๐ โข c o s โก ๐ . - To convert a point from cylindrical coordinates to spherical coordinates, use equations
and๐ = โ ๐ 2 + ๐ง 2 , ๐ = ๐ , ๐ = a r c c o s โก ( ๐ง โ ๐ 2 + ๐ง 2 ) .
Glossary
- cylindrical coordinate system
- a way to describe a location in space with an ordered triple
where( ๐ , ๐ , ๐ง ) , represents the polar coordinates of the pointโs projection in the( ๐ , ๐ ) -plane, and z represents the pointโs projection onto the๐ฅ โข ๐ฆ -axis๐ง
- spherical coordinate system
- a way to describe a location in space with an ordered triple
where( ๐ , ๐ , ๐ ) , is the distance between๐ and the origin๐ is the same angle used to describe the location in cylindrical coordinates, and( ๐ โ 0 ) , ๐ is the angle formed by the positive๐ -axis and line segment๐ง , whereยฏ ๐ โข ๐ is the origin and๐ 0 โค ๐ โค ๐
Contributors and Attributions
Gilbert Strang (MIT) and Edwin โJedโ Herman (Harvey Mudd) with many contributing authors. This content by OpenStax is licensed with a CC-BY-SA-NC 4.0 license. Download for free at http://cnx.org.
- Paul Seeburger edited the LaTeX on the page
โโโโโโโ