Skip to main content

Section 6.6 Other Coordinate Systems

Coordinate systems are tools that let us use algebraic methods to understand geometry. While the rectangular (also called Cartesian) coordinates that we have been discussing are the most common, some problems are easier to analyze in alternate coordinate systems.

A coordinate system is a scheme that allows us to identify any point in the plane or in three-dimensional space by a set of numbers. In rectangular coordinates these numbers are interpreted, roughly speaking, as the lengths of the sides of a rectangular “box.”

In two dimensions you may already be familiar with an alternative, called polar coordinates. In this system, each point in the plane is identified by a pair of numbers \((r,\theta)\text{.}\) The number \(\theta\) measures the counter-clockwise angle between the positive \(x\)-axis and a vector with tail at the origin and head at the point, as shown in Figure 6.15; the number \(r\) measures the distance from the origin to the point. Either of these may be negative; a negative \(\theta\) indicates the angle is measured clockwise from the positive \(x\)-axis instead of counter-clockwise, and a negative \(r\) indicates the point at distance \(|r|\) in the opposite of the direction given by \(\theta\text{.}\)

The relationship between polar and rectangular coordinates is given by

\begin{gather*} x = r \cos \theta\\ y = r \sin \theta \end{gather*}

and

\begin{gather*} r = \sqrt{x^2 + y^2}\\ \tan \theta = \frac{y}{x} \end{gather*}
Example 6.20. Rectangular to Polar Coordinates.

Convert the point \((x,y) = (1, \sqrt3)\) into polar coordinates.

Solution

First calculate \(r\text{:}\)

\begin{equation*} r = \sqrt{x^2 + y^2} = \sqrt{ 1 + 3} = 2 \end{equation*}

Now find \(\theta\) such that \(\tan \theta = \frac{\sqrt{3}}{1}\text{.}\) The required \(\theta\) is \(\frac{\pi}{3}\text{.}\)

The polar coordinates are \((2, \frac{\pi}{3})\text{.}\)

Figure 6.15 also shows the point with rectangular coordinates \((1,\sqrt3)\) and polar coordinates \((2,\pi/3)\text{,}\) 2 units from the origin and \(\pi/3\) radians from the positive \(x\)-axis.

Figure 6.15. Polar coordinates: the general case and the point with rectangular coordinates \((1,\sqrt3)\text{.}\)

We can extend polar coordinates to three dimensions simply by adding a \(z\) coordinate; this is called cylindrical coordinates. Each point in three-dimensional space is represented by three coordinates \((r,\theta,z)\) in the obvious way: this point is \(z\) units above or below the point \((r,\theta)\) in the \(x\)-\(y\)-plane, as shown in Figure 6.16. The point with rectangular coordinates \((1,\sqrt3, 3)\) and cylindrical coordinates \((2,\pi/3,3)\) is also indicated in Figure 6.16.

Figure 6.16. Cylindrical coordinates: the general case and the point with rectangular coordinates \((1,\sqrt3, 3)\text{.}\)

Some figures with relatively complicated equations in rectangular coordinates will be represented by simpler equations in cylindrical coordinates. For example, the cylinder in Figure 6.17 has equation \(x^2+y^2=4\) in rectangular coordinates, but equation \(r=2\) in cylindrical coordinates.

Figure 6.17. The cylinder \(r=2\text{.}\)

Given a point \((r,\theta)\) in polar coordinates, it is easy to see (as in Figure 6.15) that the rectangular coordinates of the same point are \((r\cos\theta,r\sin\theta)\text{,}\) and so the point \((r,\theta,z)\) in cylindrical coordinates is \((r\cos\theta,r\sin\theta,z)\) in rectangular coordinates. This means it is usually easy to convert any equation from rectangular to cylindrical coordinates: simply substitute

\begin{align*} x\amp =r\cos\theta\\ y\amp =r\sin\theta \end{align*}

and leave \(z\) alone. For example, starting with \(x^2+y^2=4\) and substituting \(x=r\cos\theta\text{,}\) \(y=r\sin\theta\) gives

\begin{align*} r^2\cos^2\theta+r^2\sin^2\theta\amp =4\\ r^2(\cos^2\theta+\sin^2\theta)\amp =4\\ r^2\amp =4\\ r\amp =2\text{.} \end{align*}

Of course, it's easy to see directly that this defines a cylinder as mentioned above.

Cylindrical coordinates are an obvious extension of polar coordinates to three dimensions, but the use of the \(z\) coordinate means they are not as closely analogous to polar coordinates as another standard coordinate system. In polar coordinates, we identify a point by a direction and distance from the origin; in three dimensions we can do the same thing, in a variety of ways. The question is: how do we represent a direction? One way is to give the angle of rotation, \(\theta\text{,}\) from the positive \(x\)-axis, just as in cylindrical coordinates, and also an angle of rotation, \(\phi\text{,}\) from the positive \(z\)-axis. Roughly speaking, \(\theta\) is like longitude and \(\phi\) is like latitude. (Earth longitude is measured as a positive or negative angle from the prime meridian, and is always between 0 and 180 degrees, east or west; \(\theta\) can be any positive or negative angle, and we use radians except in informal circumstances. Earth latitude is measured north or south from the equator; \(\phi\) is measured from the north pole down.) This system is called spherical coordinates; the coordinates are listed in the order \((\rho,\theta,\phi)\text{,}\) where \(\rho\) is the distance from the origin, and like \(r\) in polar and cylindrical coordinates it may be negative. The general case and an example are pictured in Figure 6.18; the length marked \(r\) is the \(r\) of cylindrical coordinates.

Figure 6.18. Spherical coordinates: the general case and the point with rectangular coordinates \((1,\sqrt3 , 3)\text{.}\)

As with cylindrical coordinates, we can easily convert equations in rectangular coordinates to the equivalent in spherical coordinates, though it is a bit more difficult to discover the proper substitutions. Figure 6.19 shows the typical point in spherical coordinates from Figure 6.18, viewed now so that the arrow marked \(r\) in the original graph appears as the horizontal “axis” in the left hand graph. From this diagram it is easy to see that the \(z\) coordinate is \(\rho\cos\phi\text{,}\) and that \(r=\rho\sin\phi\text{,}\) as shown. Thus, in converting from rectangular to spherical coordinates we will replace \(z\) by \(\rho\cos\phi\text{.}\) To see the substitutions for \(x\) and \(y\) we now view the same point from above, as shown in the right hand graph. The hypotenuse of the triangle in the right hand graph is \(r=\rho\sin\phi\text{,}\) so the sides of the triangle, as shown, are \(x=r\cos\theta=\rho\sin\phi\cos\theta\) and \(y=r\sin\theta=\rho\sin\phi\sin\theta\text{.}\) Therefore to convert from rectangular to spherical coordinates, we make these substitutions:

\begin{align*} x\amp =\rho\sin\phi\cos\theta\\ y\amp =\rho\sin\phi\sin\theta\\ z\amp =\rho\cos\phi\text{.} \end{align*}
Figure 6.19. Converting from rectangular to spherical coordinates.

As the cylinder had a simple equation in cylindrical coordinates, so does the sphere in spherical coordinates.

Example 6.21.

Find an equation for the sphere of radius \(2\) in spherical coordinates.

Solution

If we start with the Cartesian equation of the sphere and substitute, we get the spherical equation:

\begin{align*} x^2+y^2+z^2\amp =2^2\\ \rho^2\sin^2\phi\cos^2\theta+ \rho^2\sin^2\phi\sin^2\theta+\rho^2\cos^2\phi\amp =2^2\\ \rho^2\sin^2\phi(\cos^2\theta+\sin^2\theta)+\rho^2\cos^2\phi\amp =2^2\\ \rho^2\sin^2\phi+\rho^2\cos^2\phi\amp =2^2\\ \rho^2(\sin^2\phi+\cos^2\phi)\amp =2^2\\ \rho^2\amp =2^2\\ \rho\amp =2 \end{align*}

Therefore, in spherical coordinates, a sphere of radius \(2\) is expressed \(\rho=2\text{.}\)

Although not as simple as with cylindrical coordinates, we can use spherical coordinates to describe the equation of a cylinder.

Example 6.22. Cylinder Equation in Spherical Coordinates.

Find an equation for the cylinder \(x^2+y^2=4\) in spherical coordinates.

Solution

Proceeding as in the previous example:

\begin{align*} x^2+y^2\amp =4\\ \rho^2\sin^2\phi\cos^2\theta+ \rho^2\sin^2\phi\sin^2\theta=4\\ \rho^2\sin^2\phi(\cos^2\theta+\sin^2\theta)\amp =4\\ \rho^2\sin^2\phi\amp =4\\ \rho\sin\phi\amp =2\\ \rho\amp ={2\over\sin\phi} \end{align*}
Exercises for Section 6.6.

Convert the following points in rectangular coordinates to cylindrical and spherical coordinates:

  1. \((1,1,1)\)

    Answer
    \(\ds (\sqrt2,\pi/4,1)\text{,}\) \(\ds (\sqrt3,\pi/4,\arccos(1/\sqrt3))\)
  2. \((7,-7,5)\)

    Answer
    \(\ds (7\sqrt2,7\pi/4,5)\text{,}\) \(\ds (\sqrt{123},7\pi/4,\arccos(5/\sqrt{123})\)
  3. \((\cos(1),\sin(1),1)\)

    Answer
    \((1,1,1)\text{,}\) \(\ds (\sqrt2,1,\pi/4)\)
  4. \((0,0,-\pi)\)

    Answer
    \((0,0,-\pi)\text{,}\) \((\pi,0,\pi)\)

Find an equation for the sphere \(x^2+y^2+z^2=4\) in cylindrical coordinates.

Answer

\(r^2+z^2=4\)

Find an equation for the \(y\)-\(z\)-plane in cylindrical coordinates.

Answer

\(r\cos\theta=0\)

Find an equation equivalent to \(x^2+y^2+2z^2+2z-5=0\) in cylindrical coordinates.

Answer

\(r^2+2z^2+2z-5=0\)

Suppose the curve \(z=e^{-x^2}\) in the \(x\)-\(z\)-plane is rotated around the \(z\)-axis. Find an equation for the resulting surface in cylindrical coordinates.

Answer

\(z=e^{-r^2}\)

Suppose the curve \(z=x\) in the \(x\)-\(z\)-plane is rotated around the \(z\)-axis. Find an equation for the resulting surface in cylindrical coordinates.

Answer

\(z=r\)

Find an equation for the plane \(y=0\) in spherical coordinates.

Answer

\(\sin\theta=0\)

Find an equation for the plane \(z=1\) in spherical coordinates.

Answer

\(1=\rho\cos\phi\)

Find an equation for the sphere with radius 1 and center at \((0,1,0)\) in spherical coordinates.

Answer

\(\rho=2\sin\theta\sin\phi\text{.}\)

Find an equation for the cylinder \(x^2+y^2=4\) in spherical coordinates.

Answer

\(\rho\sin\phi=2\)

Suppose the curve \(z=x\) in the \(x\)-\(z\)-plane is rotated around the \(z\)-axis. Find an equation for the resulting surface in spherical coordinates.

Answer

\(\cos\phi=1/\sqrt2\)

Plot the polar equations \(r=\sin(\theta)\) and \(r=\cos(\theta)\) and comment on their similarities. (If you get stuck on how to plot these, you can multiply both sides of each equation by \(r\) and convert back to rectangular coordinates).

Extend Exercises 6.6.6 and 6.6.11 by rotating the curve \(z=mx\) around the \(z\)-axis and converting to both cylindrical and spherical coordinates.

Answer

\(z=mr\text{;}\) \(\cot\phi=m\) if \(m\neq0\text{,}\) \(\phi=0\) if \(m=0\)

Convert the spherical formula \(\rho=\sin \theta \sin \phi\) to rectangular coordinates and describe the surface defined by the formula (Hint: Multiply both sides by \(\rho\text{.}\))

Answer

A sphere with radius \(1/2\text{,}\) center at \((0,1/2,0)\)

We can describe points in the first octant by \(x >0\text{,}\) \(y>0\) and \(z>0\text{.}\) Give similar inequalities for the first octant in cylindrical and spherical coordinates.

Answer

\(0\lt \theta\lt \pi/2\text{,}\) \(0\lt \phi\lt \pi/2\text{,}\) \(\rho>0\text{;}\) \(0\lt \theta\lt \pi/2\text{,}\) \(r>0\text{,}\) \(z>0\)