Skip to main content

CLP-3 Multivariable Calculus

Section 3.6 Triple Integrals in Cylindrical Coordinates

Many problems possess natural symmetries. We can make our work easier by using coordinate systems, like polar coordinates, that are tailored to those symmetries. We will look at two more such coordinate systems — cylindrical and spherical coordinates.

Subsection 3.6.1 Cylindrical Coordinates

In the event that we wish to compute, for example, the mass of an object that is invariant under rotations about the \(z\)-axis
 1 
like a pipe or a can of tuna fish
, it is advantageous to use a natural generalization of polar coordinates to three dimensions. The coordinate system is called cylindrical coordinates.

Definition 3.6.1.

Cylindrical coordinates are denoted
 2 
We are using the standard mathematics conventions for the cylindrical coordinates. Under the ISO conventions they are \((\rho,\phi,z)\text{.}\) See Appendix A.7.
\(r\text{,}\) \(\theta\) and \(z\) and are defined by
\begin{align*} r&=\text{ the distance from }(x,y,0)\text{ to }(0,0,0)\\ &=\text{ the distance from }(x,y,z)\text{ to the $z$-axis}\\ \theta&=\text{ the angle between the positive $x$ axis and}\\ & \qquad\qquad \text{the line joining $(x,y,0)$ to $(0,0,0)$}\\ z&=\text{ the signed distance from }(x,y,z) \text{ to the $xy$-plane} \end{align*}
That is, \(r\) and \(\theta\) are the usual polar coordinates and \(z\) is the usual \(z\text{.}\)
The Cartesian and cylindrical coordinates are related by
 3 
As was the case for polar coordinates, it is sometimes convenient to extend these definitions by saying that \(x = r\cos\theta\) and \(y = r\sin\theta\) even when r is negative. See the end of Section 3.2.1.
Here are sketches of surfaces of constant \(r\text{,}\) constant \(\theta\text{,}\) and constant \(z\text{.}\)

Subsection 3.6.2 The Volume Element in Cylindrical Coordinates

Before we can start integrating using these coordinates we need to determine the volume element. Recall that before integrating in polar coordinates, we had to establish that \(\dee{A}=r\,\dee{r}\,\dee{\theta}\text{.}\) In the arguments that follow we establish that \(\dee{V} =r\,\dee{r}\,\dee{\theta}\,\dee{z}\text{.}\)
If we cut up a solid by
  • first slicing it into horizontal plates of thickness \(\dee{z}\) by using planes of constant \(z\text{,}\)
  • and then subdividing the plates into wedges using surfaces of constant \(\theta\text{,}\) say with the difference between successive \(\theta\)’s being \(\dee{\theta}\text{,}\)
  • and then subdividing the wedges into approximate cubes using surfaces of constant \(r\text{,}\) say with the difference between successive \(r\)’s being \(\dee{r}\text{,}\)
we end up with approximate cubes that look like
  • When we introduced slices using surfaces of constant \(r\text{,}\) the difference between the successive \(r\)’s was \(\dee{r}\text{,}\) so the indicated edge of the cube has length \(\dee{r}\text{.}\)
  • When we introduced slices using surfaces of constant \(z\text{,}\) the difference between the successive \(z\)’s was \(\dee{z}\text{,}\) so the vertical edges of the cube have length \(\dee{z}\text{.}\)
  • When we introduced slices using surfaces of constant \(\theta\text{,}\) the difference between the successive \(\theta\)’s was \(\dee{\theta}\text{,}\) so the remaining edges of the cube are circular arcs of radius essentially
     4 
    The inner edge has radius \(r\text{,}\) but the outer edge has radius \(r+\dee{r} \text{.}\) However the error that this generates goes to zero in the limit \(\dee{r}\text{,}\) \(\dee{\theta}\text{,}\) \(\dee{z}\) \(\rightarrow 0\text{.}\)
    \(r\) that subtend an angle \(\theta\text{,}\) and so have length \(r\,\dee{\theta}\text{.}\) See the derivation of equation 3.2.5.
So the volume of the approximate cube in cylindrical coordinates is (essentially
 5 
By “essentially”, we mean that the formula for \(\dee{V}\) works perfectly when we take the limit \(\dee{r},\dee{\theta}, \dee{z}\rightarrow 0\) of Riemann sums.
)

Subsection 3.6.3 Sample Integrals in Cylindrical Coordinates

Now we can use 3.6.3 to handle a variant of Example 3.5.1 in which the density is invariant under rotations around the \(z\)-axis. Cylindrical coordinates are tuned to provide easier integrals to evaluate when the integrand is invariant under rotations about the \(z\)-axis, or when the domain of integration is cylindrical.

Example 3.6.4.

Find the mass of the solid body consisting of the inside of the sphere \(x^2+y^2+z^2=1\) if the density is \(\rho(x,y,z) = x^2+y^2\text{.}\)
Solution.
Before we get started, note that \(x^2+y^2\) is the square of the distance from \((x,y,z)\) to the \(z\)-axis. Consequently both the integrand, \(x^2+y^2\text{,}\) and the domain of integration, \(x^2+y^2+z^2\le 1\text{,}\) and hence our solid, are invariant under rotations about the \(z\)-axis
 6 
Imagine that you are looking that the solid from, for example, far out on the \(x\)-axis. You close your eyes for a minute. Your evil twin then sneaks in, rotates the solid about the \(z\)-axis, and sneaks out. You open your eyes. You will not be able to tell that the solid has been rotated.
. That makes this integral a good candidate for cylindrical coordinates.
Again, by symmetry the total mass of the sphere will be eight times the mass in the first octant. We shall cut the first octant part of the sphere into tiny pieces using cylindrical coordinates. That is, we shall cut it up using planes of constant \(z\text{,}\) planes of constant \(\theta\text{,}\) and surfaces of constant \(r\text{.}\)
  • First slice the (the first octant part of the) sphere into horizontal plates by inserting many planes of constant \(z\text{,}\) with the various values of \(z\) differing by \(\dee{z}\text{.}\) The figure on the left below shows the part of one plate in the first octant outlined in red. Each plate
    • has thickness \(\dee{z}\text{,}\)
    • has \(z\) essentially constant on the plate, and
    • has \((x,y)\) running over \(x\ge 0\text{,}\) \(y\ge 0\text{,}\) \(x^2+y^2\le 1-z^2\text{.}\) In cylindrical coordinates, \(r\) runs from \(0\) to \(\sqrt{1-z^2}\) and \(\theta\) runs from \(0\) to \(\frac{\pi}{2}\text{.}\)
    • The bottom plate has, essentially, \(z=0\) and the top plate has, essentially, \(z=1\text{.}\) See the figure on the right below.
    So far, this looks just like what we did in Example 3.5.1.
  • Concentrate on any one plate. Subdivide it into wedges by inserting many planes of constant \(\theta\text{,}\) with the various values of \(\theta\) differing by \(\dee{\theta}\text{.}\) The figure on the left below shows one such wedge outlined in blue. Each wedge
    • has \(z\) and \(\theta\) essentially constant on the wedge, and
    • has \(r\) running over \(0\le r\le \sqrt{1-z^2}\text{.}\)
    • The leftmost wedge has, essentially, \(\theta=0\) and the rightmost wedge has, essentially, \(\theta=\frac{\pi}{2}\text{.}\) See the figure on the right below.
  • Concentrate on any one wedge. Subdivide it into tiny approximate cubes by inserting many surfaces of constant \(r\text{,}\) with the various values of \(r\) differing by \(\dee{r}\text{.}\) The figure on the left below shows the top of one approximate cube in black. Each cube
    • has volume \(r\,\dee{r}\,\dee{\theta}\,\dee{z}\text{,}\) by 3.6.3, and
    • has \(r\text{,}\) \(\theta\) and \(z\) all essentially constant on the cube.
    • The first cube has, essentially, \(r=0\) and the last cube has, essentially, \(r=\sqrt{1-z^2}\text{.}\) See the figure on the right below.
Now we can build up the mass.
  • Concentrate on one approximate cube. Let’s say that it contains the point with cylindrical coordinates \(r\text{,}\) \(\theta\) and \(z\text{.}\)
    • The cube has volume essentially \(\dee{V}=r\,\dee{r}\,\dee{\theta}\,\dee{z}\) and
    • essentially has density \(\rho(x,y,z)=\rho(r\cos\theta,r\sin\theta,z) = r^2\) and so
    • essentially has mass \(r^3\,\dee{r}\,\dee{\theta}\,\dee{z}\text{.}\) (See how nice the right coordinate system can be!)
  • To get the mass any one wedge, say the wedge whose \(\theta\) coordinate runs from \(\theta\) to \(\theta+\dee{\theta}\text{,}\) we just add up the masses of the approximate cubes in that wedge, by integrating \(r\) from its smallest value on the wedge, namely \(0\text{,}\) to its largest value on the wedge, namely \(\sqrt{1-z^2}\text{.}\) The mass of the wedge is thus
    \begin{gather*} \dee{\theta}\,\dee{z} \int_0^{\sqrt{1-z^2}} \dee{r}\,r^3 \end{gather*}
  • To get the mass of any one plate, say the plate whose \(z\) coordinate runs from \(z\) to \(z+\dee{z}\text{,}\) we just add up the masses of the wedges in that plate, by integrating \(\theta\) from its smallest value on the plate, namely \(0\text{,}\) to its largest value on the plate, namely \(\frac{\pi}{2}\text{.}\) The mass of the plate is thus
    \begin{gather*} \dee{z}\int_0^{\pi/2}\dee{\theta}\int_0^{\sqrt{1-z^2}} \dee{r}\,r^3 \end{gather*}
  • To get the mass of the part of the sphere in the first octant, we just add up the masses of the plates that it contains, by integrating \(z\) from its smallest value in the octant, namely \(0\text{,}\) to its largest value on the sphere, namely \(1\text{.}\) The mass in the first octant is thus
    \begin{align*} \int_0^1\dee{z}\int_0^{\pi/2}\dee{\theta}\int_0^{\sqrt{1-z^2}} \dee{r}\,r^3 &= \frac{1}{4}\int_0^1\dee{z}\int_0^{\pi/2}\dee{\theta}\ {(1-z^2)}^2\\ &= \frac{\pi}{8}\int_0^1\dee{z}\ {(1-z^2)}^2\\ &=\frac{\pi}{8}\int_0^1\dee{z}\ (1-2z^2+z^4)\\ &= \frac{\pi}{8}\overbrace{\left[1-\frac{2}{3}+\frac{1}{5}\right]}^{8/15}\\ &=\frac{1}{15}\pi \end{align*}
  • So the mass of the total (eight octant) sphere is \(8\times\frac{1}{15}\pi=\frac{8}{15}\pi\text{.}\)
Just by way of comparison, here is the integral in Cartesian coordinates that gives the mass in the first octant. (We found the limits of integration in Example 3.5.1.)
\begin{equation*} \int_0^1\dee{z}\int_0^{\sqrt{1-z^2}}\dee{y}\int_0^{\sqrt{1-y^2-z^2}} \dee{x}\ \big(x^2+y^2\big) \end{equation*}
In the next example, we compute the moment of inertia of a right circular cone. The Definition 3.3.15 of the moment of inertia was restricted to two dimensions. However, as was pointed out at the time, the same analysis extends naturally to the definition
of the moment of inertia of a solid \(\cV\) in three dimensions. Here
  • \(\rho(x,y,z)\) is the mass density of the solid at the point \((x,y,z)\) and
  • \(D(x,y,z)\) is the distance from \((x,y,z)\) to the axis of rotation.

Example 3.6.6.

Find the moment of inertia of a right circular cone
  • of radius \(a\text{,}\)
  • of height \(h\text{,}\) and
  • of constant density with mass \(M\)
about an axis through the vertex (i.e. the tip of the cone) and parallel to the base.
Solution.
Here is a sketch of the cone.
Let’s pick a coordinate system with
  • the vertex at the origin,
  • the cone symmetric about the \(z\)-axis and
  • the axis of rotation being the \(y\)-axis.
and call the cone \(\cV\text{.}\)
We shall use 3.6.5 to find the moment of inertia. In the current problem, the axis of rotation is the \(y\)-axis. The point on the \(y\)-axis that is closest to \((x,y,z)\) is \((0,y,0)\) so that the distance from \((x,y,z)\) to the axis is just
\begin{equation*} D(x,y,z) = \sqrt{x^2+z^2} \end{equation*}
Our solid has constant density and mass \(M\text{,}\) so
\begin{equation*} \rho(x,y,z) = \frac{M}{\text{Volume}(\cV)} \end{equation*}
The formula
\begin{equation*} \text{Volume}(\cV)= \frac{1}{3} \pi a^2 h \end{equation*}
for the volume of a cone was derived in Example 1.6.1 of the CLP-2 text and in Appendix B.5.2 of the CLP-1 text. However because of the similarity between the integral \(\text{Volume}(\cV)=\tripInt_\cV \dee{x}\,\dee{y}\,\dee{z}\) and the integral \(\tripInt_\cV (x^2+z^2)\ \dee{x}\,\dee{y}\,\dee{z}\text{,}\) that we need for our computation of \(I_\cA\text{,}\) it is easy to rederive the volume formula and we shall do so.
We’ll evaluate both of the integrals above using cylindrical coordinates.
  • Start by slicing the cone into horizontal plates by inserting many planes of constant \(z\text{,}\) with the various values of \(z\) differing by \(\dee{z}\text{.}\)
    Each plate
    • is a circular disk of thickness \(\dee{z}\text{.}\)
    • By similar triangles, as in the figure on the right below, the disk at height \(z\) has radius \(R\) obeying
      \begin{equation*} \frac{R}{z} = \frac{a}{h} \implies R =\frac{a}{h}z \end{equation*}
    • So the disk at height \(z\) has the cylindrical coordinates \(r\) running from \(0\) to \(\frac{a}{h}z\) and \(\theta\) running from \(0\) to \(2\pi\text{.}\)
    • The bottom plate has, essentially, \(z=0\) and the top plate has, essentially, \(z=h\text{.}\)
  • Now concentrate on any one plate. Subdivide it into wedges by inserting many planes of constant \(\theta\text{,}\) with the various values of \(\theta\) differing by \(\dee{\theta}\text{.}\)
    • The first wedge has, essentially \(\theta=0\) and the last wedge has, essentially, \(\theta=2\pi\text{.}\)
  • Concentrate on any one wedge. Subdivide it into tiny approximate cubes
     7 
    Again they are wonky cubes, but we can bound the error and show that it goes to zero in the limit \(\dee{r} ,\dee{\theta},\dee{z} \rightarrow 0\text{.}\)
    by inserting many surfaces of constant \(r\text{,}\) with the various values of \(r\) differing by \(\dee{r}\text{.}\) Each cube
    • has volume \(r\,\dee{r}\,\dee{\theta}\,\dee{z}\text{,}\) by 3.6.3.
    • The first cube has, essentially, \(r=0\) and the last cube has, essentially, \(r=\frac{a}{h}z\text{.}\)
So the two integrals of interest are
\begin{align*} \tripInt_\cV \dee{x}\,\dee{y}\,\dee{z} &=\int_0^h\dee{z}\int_0^{2\pi}\dee{\theta}\int_0^{\frac{a}{h}z}\dee{r}\ r\\ &=\int_0^h\dee{z}\int_0^{2\pi}\dee{\theta}\ \frac{1}{2}\left(\frac{a}{h}z\right)^2 =\frac{a^2\pi}{h^2}\int_0^h\dee{z}\ z^2\\ &=\frac{1}{3}\pi a^2 h \end{align*}
as expected, and
\begin{align*} \tripInt_\cV (x^2+z^2)\ \dee{x}\,\dee{y}\,\dee{z} &=\int_0^h\dee{z}\int_0^{2\pi}\dee{\theta}\int_0^{\frac{a}{h}z}\dee{r}\ r \overbrace{\big(r^2\cos^2\theta+z^2\big)}^{x^2+z^2}\\ &=\int_0^h\dee{z}\int_0^{2\pi}\dee{\theta}\left[ \frac{1}{4}\left(\frac{a}{h}z\right)^4\cos^2\theta +\frac{1}{2}\left(\frac{a}{h}z\right)^2z^2\right]\\ &=\int_0^h\dee{z}\left[ \frac{1}{4}\frac{a^4}{h^4} +\frac{a^2}{h^2}\right]\pi z^4\\ &\hskip0.5in\text{since } \int_0^{2\pi}\cos^2\theta\ \dee{\theta}=\pi \text{ by Remark } \knowl{./knowl/xref/rem_sneaky.html}{\text{3.3.5}}\\ &=\frac{1}{5}\left[ \frac{1}{4}\frac{a^4}{h^4} +\frac{a^2}{h^2}\right]\pi h^5 \end{align*}
Putting everything together, the moment of inertia is
\begin{align*} I_\cA &=\tripInt_\cV \overbrace{(x^2+z^2)}^{D(x,y,z)^2} \overbrace{\frac{M}{\frac{1}{3}\pi a^2h}}^{\rho(x,y,z)} \ \dee{x}\,\dee{y}\,\dee{z}\\ &=3\frac{M}{\pi a^2h} \ \frac{1}{5}\left[ \frac{1}{4}\frac{a^4}{h^4} +\frac{a^2}{h^2}\right]\pi h^5\\ &=\frac{3}{20} M\big(a^2+4h^2\big) \end{align*}

Exercises 3.6.4 Exercises

Exercise Group.

Exercises — Stage 1
1.
Use \((r,\theta,z)\) to denote cylindrical coordinates.
  1. Draw \(r=0\text{.}\)
  2. Draw \(r=1\text{.}\)
  3. Draw \(\theta=0\text{.}\)
  4. Draw \(\theta=\frac{\pi}{4}\text{.}\)
2.
Sketch the points with the specified cylindrical coordinates.
  1. \(r=1\text{,}\) \(\theta=0\text{,}\) \(z=0\)
  2. \(r=1\text{,}\) \(\theta=\frac{\pi}{4}\text{,}\) \(z=0\)
  3. \(r=1\text{,}\) \(\theta=\frac{\pi}{2}\text{,}\) \(z=0\)
  4. \(r=0\text{,}\) \(\theta=\pi\text{,}\) \(z=1\)
  5. \(r=1\text{,}\) \(\theta=\frac{\pi}{4}\text{,}\) \(z=1\)
3.
Convert from cylindrical to Cartesian coordinates.
  1. \(r=1\text{,}\) \(\theta=0\text{,}\) \(z=0\)
  2. \(r=1\text{,}\) \(\theta=\frac{\pi}{4}\text{,}\) \(z=0\)
  3. \(r=1\text{,}\) \(\theta=\frac{\pi}{2}\text{,}\) \(z=0\)
  4. \(r=0\text{,}\) \(\theta=\pi\text{,}\) \(z=1\)
  5. \(r=1\text{,}\) \(\theta=\frac{\pi}{4}\text{,}\) \(z=1\)
4.
Convert from Cartesian to cylindrical coordinates.
  1. \(\displaystyle (1,1,2)\)
  2. \(\displaystyle (-1,-1,2)\)
  3. \(\displaystyle (-1,\sqrt{3}, 0)\)
  4. \(\displaystyle (0,0,1)\)
5.
Rewrite the following equations in cylindrical coordinates.
  1. \(\displaystyle z=2xy\)
  2. \(\displaystyle x^2+y^2+z^2=1\)
  3. \(\displaystyle (x-1)^2 + y^2 =1\)

Exercise Group.

Exercises — Stage 2
6.
Use cylindrical coordinates to evaluate the volumes of each of the following regions.
  1. Above the \(xy\)-plane, inside the cone \(z=2a-\sqrt{x^2+y^2}\) and inside the cylinder \(x^2+y^2=2ay\text{,}\) where \(a>0\) is a constant.
  2. Above the \(xy\)-plane, under the paraboloid \(z=1-x^2-y^2\) and in the wedge \(-x\le y\le \sqrt{3}x\text{.}\)
  3. Above the paraboloid \(\ z=x^2+y^2\ \) and below the plane \(\ z=2y\text{.}\)
7. (✳).
Let E be the region bounded between the parabolic surfaces \(z = x^2 + y^2\) and \(z = 2 - x^2 - y^2\) and within the cylinder \(x^2 + y^2 \le 1\text{.}\) Calculate the integral of \(f(x,y,z) = {(x^2 + y^2)}^{3/2}\) over the region \(E\text{.}\)
8. (✳).
Let \(E\) be the region bounded above by the sphere \(x^2 + y^2 + z^2 = 2\) and below by the paraboloid \(z = x^2 + y^2\text{.}\) Find the centroid of \(E\text{.}\)
9. (✳).
Let \(E\) be the smaller of the two solid regions bounded by the surfaces \(z = x^2 + y^2\) and \(x^2 + y^2 + z^2 = 6\text{.}\) Evaluate \(\tripInt_E (x^2+y^2)\ \dee{V}\) .
10. (✳).
Let \(a \gt 0\) be a fixed positive real number. Consider the solid inside both the cylinder \(x^2 + y^2 = ax\) and the sphere \(x^2 + y^2 + z^2 = a^2\text{.}\) Compute its volume.
You may use that \(\int \sin^3(\theta) =\frac{1}{12}\cos(3\theta) -\frac{3}{4}\cos(\theta) +C\)
11. (✳).
Let \(E\) be the solid lying above the surface \(z = y^2\) and below the surface \(z = 4 - x^2\text{.}\) Evaluate
\begin{equation*} \tripInt_E y^2\ \dee{V} \end{equation*}
You may use the half angle formulas:
\begin{equation*} \sin^2\theta = \frac{1-\cos(2\theta)}{2},\qquad \cos^2\theta = \frac{1+\cos(2\theta)}{2} \end{equation*}
12.
The centre of mass \((\bar x,\bar y, \bar z)\) of a body \(B\) having density \(\rho(x,y,z)\) (units of mass per unit volume) at \((x,y,z)\) is defined to be
\begin{gather*} \bar x=\frac{1}{M}\tripInt_B x\rho(x,y,z)\ \dee{V}\quad \bar y=\frac{1}{M}\tripInt_B y\rho(x,y,z)\ \dee{V}\\ \bar z=\frac{1}{M}\tripInt_B z\rho(x,y,z)\ \dee{V} \end{gather*}
where
\begin{equation*} M=\tripInt_B \rho(x,y,z)\ \dee{V} \end{equation*}
is the mass of the body. So, for example, \(\bar x\) is the weighted average of \(x\) over the body. Find the centre of mass of the part of the solid ball \(x^2+y^2+z^2\le a^2\) with \(x\ge 0\text{,}\) \(y\ge 0\) and \(z\ge 0\text{,}\) assuming that the density \(\rho\) is constant.
13. (✳).
A sphere of radius \(2{\rm m}\) centred on the origin has variable density \(\frac{5}{\sqrt{3}}(z^2+1)\)kg/\({\rm m}^3\text{.}\) A hole of diameter 1m is drilled through the sphere along the \(z\)--axis.
  1. Set up a triple integral in cylindrical coordinates giving the mass of the sphere after the hole has been drilled.
  2. Evaluate this integral.
14. (✳).
Consider the finite solid bounded by the three surfaces: \(z=e^{-x^2-y^2}\text{,}\) \(z=0\) and \(x^2+y^2=4\text{.}\)
  1. Set up (but do not evaluate) a triple integral in rectangular coordinates that describes the volume of the solid.
  2. Calculate the volume of the solid using any method.
15. (✳).
Find the volume of the solid which is inside \(x^2 + y^2 = 4\text{,}\) above \(z = 0\) and below \(2z = y\text{.}\)

Exercise Group.

Exercises — Stage 3
16. (✳).
The density of hydrogen gas in a region of space is given by the formula
\begin{equation*} \rho(x,y,z) =\frac{z+2x^2}{1+x^2+y^2} \end{equation*}
  1. At \((1,0,-1)\text{,}\) in which direction is the density of hydrogen increasing most rapidly?
  2. You are in a spacecraft at the origin. Suppose the spacecraft flies in the direction of \(\llt 0,0,1\rgt\text{.}\) It has a disc of radius \(1\text{,}\) centred on the spacecraft and deployed perpendicular to the direction of travel, to catch hydrogen. How much hydrogen has been collected by the time that the spacecraft has traveled a distance \(2\text{?}\)
    You may use the fact that \(\int_0^{2\pi}\cos^2\theta\ \dee{\theta} =\pi\text{.}\)
17.
A torus of mass \(M\) is generated by rotating a circle of radius \(a\) about an axis in its plane at distance \(b\) from the centre \((b \gt a)\text{.}\) The torus has constant density. Find the moment of inertia about the axis of rotation. By definition the moment of intertia is \(\tripInt r^2 \dee{m}\) where \(\dee{m}\) is the mass of an infinitesmal piece of the solid and \(r\) is its distance from the axis.