Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

8.2: Spherical and Cylindrical Coordinates

( \newcommand{\kernel}{\mathrm{null}\,}\)

Outcomes

  1. Understand cylindrical and spherical coordinates.
  2. Convert points between Cartesian, cylindrical, and spherical coordinates.

Spherical and cylindrical coordinates are two generalizations of polar coordinates to three dimensions. We will first look at cylindrical coordinates .

When moving from polar coordinates in two dimensions to cylindrical coordinates in three dimensions, we use the polar coordinates in the xy plane and add a z coordinate. For this reason, we use the notation (r,θ,z) to express cylindrical coordinates. The relationship between Cartesian coordinates (x,y,z) and cylindrical coordinates (r,θ,z) is given by x=rcos(θ)y=rsin(θ)z=z where r0, θ[0,2π), and z is simply the Cartesian coordinate. Notice that x and y are defined as the usual polar coordinates in the xy-plane. Recall that r is defined as the length of the ray from the origin to the point (x,y,0), while θ is the angle between the positive x-axis and this same ray.

To illustrate this coordinate system, consider the following two pictures. In the first of these, both r and z are known. The cylinder corresponds to a given value for r. A useful way to think of r is as the distance between a point in three dimensions and the z-axis. Every point on the cylinder shown is at the same distance from the z-axis. Giving a value for z results in a horizontal circle, or cross section of the cylinder at the given height on the z axis (shown below as a black line on the cylinder). In the second picture, the point is specified completely by also knowing θ as shown.

Left is a cylinder with r and z known.  Right shows (x,y,z) plotted along with r and theta.  r, theta and z known.
Figure 8.2.1

Every point of three dimensional space other than the z axis has unique cylindrical coordinates. Of course there are infinitely many cylindrical coordinates for the origin and for the z-axis. Any θ will work if r=0 and z is given.

Consider now spherical coordinates, the second generalization of polar form in three dimensions. For a point (x,y,z) in three dimensional space, the spherical coordinates are defined as follows. ρ:the length of the ray from the origin to the pointθ:the angle between the positive x-axis and the ray from the origin to the point (x,y,0)ϕ:the angle between the positive z-axis and the ray from the origin to the point of interest The spherical coordinates are determined by (ρ,ϕ,θ). The relation between these and the Cartesian coordinates (x,y,z) for a point are as follows. x=ρsin(ϕ)cos(θ), ϕ[0,π]y=ρsin(ϕ)sin(θ), θ[0,2π)z=ρcosϕρ0.

Consider the pictures below. The first illustrates the surface when ρ is known, which is a sphere of radius ρ. The second picture corresponds to knowing both ρ and ϕ, which results in a circle about the z-axis. Suppose the first picture demonstrates a graph of the Earth. Then the circle in the second picture would correspond to a particular latitude.

Left is a sphere with pho known.  Right shows a circle above and parallel to the xy-plane and the angle phi shown.
Figure 8.2.2

Giving the third coordinate, θ completely specifies the point of interest. This is demonstrated in the following picture. If the latitude corresponds to ϕ, then we can think of θ as the longitude.

A circle above and parallel to the xy-plane and the angles theta and phi shown.  rho, phi, and theta are known.
Figure 8.2.3

The following picture summarizes the geometric meaning of the three coordinate systems.

A point plotted as (rho, phi,theta), (r,theta,z) and (x,y,z).  The rays from (0,0,0) to (x,y,0) and from (0,0,0) to (x,y,z) are also shown.
Figure 8.2.4

Therefore, we can represent the same point in three ways, using Cartesian coordinates, (x,y,z), cylindrical coordinates, (r,θ,z), and spherical coordinates (ρ,ϕ,θ).

Using this picture to review, call the point of interest P for convenience. The Cartesian coordinates for P are (x,y,z). Then ρ is the distance between the origin and the point P. The angle between the positive z axis and the line between the origin and P is denoted by ϕ. Then θ is the angle between the positive x axis and the line joining the origin to the point (x,y,0) as shown. This gives the spherical coordinates, (ρ,ϕ,θ). Given the line from the origin to (x,y,0), r=ρsin(ϕ) is the length of this line. Thus r and θ determine a point in the xy-plane. In other words, r and θ are the usual polar coordinates and r0 and θ[0,2π). Letting z denote the usual z coordinate of a point in three dimensions, (r,θ,z) are the cylindrical coordinates of P.

The relation between spherical and cylindrical coordinates is that r=ρsin(ϕ) and the θ is the same as the θ of cylindrical and polar coordinates.

We will now consider some examples.

Example 8.2.1: Describing a Surface in Spherical Coordinates

Express the surface z=13x2+y2 in spherical coordinates.

Solution

We will use the equations from above: x=ρsin(ϕ)cos(θ),ϕ[0,π]y=ρsin(ϕ)sin(θ), θ[0,2π)z=ρcosϕρ0

To express the surface in spherical coordinates, we substitute these expressions into the equation. This is done as follows:

ρcos(ϕ)=13(ρsin(ϕ)cos(θ))2+(ρsin(ϕ)sin(θ))2=133ρsin(ϕ).

This reduces to tan(ϕ)=3 and so ϕ=π/3.

Example 8.2.2: Describing a Surface in Spherical Coordinates

Express the surface y=x in terms of spherical coordinates.

Solution

Using the same procedure as the previous example, this says ρsin(ϕ)sin(θ)=ρsin(ϕ)cos(θ). Simplifying, sin(θ)=cos(θ), which you could also write tan(θ)=1.

We conclude this section with an example of how to describe a surface using cylindrical coordinates.

Example 8.2.3: Describing a Surface in Cylindrical Coordinates

Express the surface x2+y2=4 in cylindrical coordinates.

Solution

Recall that to convert from Cartesian to cylindrical coordinates, we can use the following equations: x=rcos(θ),y=rsin(θ),z=z

Substituting these equations in for x,y,z in the equation for the surface, we have r2cos2(θ)+r2sin2(θ)=4 This can be written as r2(cos2(θ)+sin2(θ))=4. Recall that cos2(θ)+sin2(θ)=1. Thus r2=4 or r=2.


This page titled 8.2: Spherical and Cylindrical Coordinates is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by Ken Kuttler (Lyryx) .

Support Center

How can we help?