Skip to main content
Mathematics LibreTexts

11.7: Triple Integrals

  • Page ID
    108026
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    6Motivating Questions
    • How are a triple Riemann sum and the corresponding triple integral of a continuous function \(f = f(x,y,z)\) defined?
    • What are two things the triple integral of a function can tell us?

    We have now learned that we define the double integral of a continuous function \(f = f(x,y)\) over a rectangle \(R = [a,b] \times [c,d]\) as a limit of a double Riemann sum, and that these ideas parallel the single-variable integral of a function \(g = g(x)\) on an interval \([a,b]\text{.}\) Moreover, this double integral has natural interpretations and applications, and can even be considered over non-rectangular regions, \(D\text{.}\) For instance, given a continuous function \(f\) over a region \(D\text{,}\) the average value of \(f\text{,}\) \(f_{\operatorname{AVG}(D)}\text{,}\) is given by

    \[ f_{\operatorname{AVG}(D)} = \frac{1}{A(D)} \iint_D f(x,y) \, dA, \nonumber \]

    where \(A(D)\) is the area of \(D\text{.}\) Likewise, if \(\delta(x,y)\) describes a mass density function on a lamina over \(D\text{,}\) the mass, \(M\text{,}\) of the lamina is given by

    \[ M = \iint_D \delta(x,y) \, dA. \nonumber \]

    It is natural to wonder if it is possible to extend these ideas of double Riemann sums and double integrals for functions of two variables to triple Riemann sums and then triple integrals for functions of three variables. We begin investigating in Preview Activity \(\PageIndex{1}\).

    Preview Activity \(\PageIndex{1}\)

    Consider a solid piece of granite in the shape of a box \(B = \{(x,y,z) : 0 \leq x \leq 4, 0 \leq y \leq 6, 0 \leq z \leq 8\}\text{,}\) whose density varies from point to point. Let \(\delta(x, y, z)\) represent the mass density of the piece of granite at point \((x,y,z)\) in kilograms per cubic meter (so we are measuring \(x\text{,}\) \(y\text{,}\) and \(z\) in meters). Our goal is to find the mass of this solid.

    Recall that if the density was constant, we could find the mass by multiplying the density and volume; since the density varies from point to point, we will use the approach we did with two-variable lamina problems, and slice the solid into small pieces on which the density is roughly constant.

    Partition the interval \([0,4]\) into 2 subintervals of equal length, the interval \([0,6]\) into 3 subintervals of equal length, and the interval \([0,8]\) into 2 subintervals of equal length. This partitions the box \(B\) into sub-boxes as shown in Figure \(\PageIndex{1}\).

    fig_11_7_preview.svg

    Figure \(\PageIndex{1}\). A partitioned three-dimensional domain.
    1. Let \(0=x_0 \lt x_1 \lt x_2=4\) be the endpoints of the subintervals of \([0,4]\) after partitioning. Draw a picture of Figure \(\PageIndex{1}\) and label these endpoints on your drawing. Do likewise with \(0=y_0 \lt y_1 \lt y_2 \lt y_3=6\) and \(0=z_0 \lt z_1 \lt z_2=8\) What is the length \(\Delta x\) of each subinterval \([x_{i-1},x_i]\) for \(i\) from 1 to 2? the length of \(\Delta y\text{?}\) of \(\Delta z\text{?}\)
    2. The partitions of the intervals \([0,4]\text{,}\) \([0,6]\) and \([0,8]\) partition the box \(B\) into sub-boxes. How many sub-boxes are there? What is volume \(\Delta V\) of each sub-box?
    3. Let \(B_{ijk}\) denote the sub-box \([x_{i-1},x_i] \times [y_{j-1},y_j] \times [z_{k-1}, z_k]\text{.}\) Say that we choose a point \((x_{ijk}^*, y_{ijk}^*, z_{ijk}^*)\) in the \(i,j,k\)th sub-box for each possible combination of \(i,j,k\text{.}\) What is the meaning of \(\delta(x_{ijk}^*, y_{ijk}^*, z_{ijk}^*)\text{?}\) What physical quantity will \(\delta(x_{ijk}^*, y_{ijk}^*, z_{ijk}^*) \Delta V\) approximate?
    4. What final step(s) would it take to determine the exact mass of the piece of granite?

    Triple Riemann Sums and Triple Integrals

    Through the application of a mass density distribution over a three-dimensional solid, Preview Activity \(\PageIndex{1}\) suggests that the generalization from double Riemann sums of functions of two variables to triple Riemann sums of functions of three variables is natural. In the same way, so is the generalization from double integrals to triple integrals. By simply adding a \(z\)-coordinate to our earlier work, we can define both a triple Riemann sum and the corresponding triple integral.

    Definition \(\PageIndex{1}\)

    Let \(f = f(x,y,z)\) be a continuous function on a box \(B = [a,b] \times [c,d] \times [r,s]\text{.}\) The triple Riemann sum of \(f\) over \(B\) is created as follows.

    • Partition the interval \([a,b]\) into \(m\) subintervals of equal length \(\Delta x = \frac{b-a}{m}\text{.}\) Let \(x_0\text{,}\) \(x_1\text{,}\) \(\ldots\text{,}\) \(x_m\) be the endpoints of these subintervals, where \(a = x_0\lt x_1\lt x_2 \lt \cdots \lt x_m = b\text{.}\) Do likewise with the interval \([c,d]\) using \(n\) subintervals of equal length \(\Delta y = \frac{d-c}{n}\) to generate \(c = y_0\lt y_1\lt y_2 \lt \cdots \lt y_n = d\text{,}\) and with the interval \([r,s]\) using \(\ell\) subintervals of equal length \(\Delta z = \frac{s-r}{\ell}\) to have \(r = z_0\lt z_1\lt z_2 \lt \cdots \lt z_l = s\text{.}\)
    • Let \(B_{ijk}\) be the sub-box of \(B\) with opposite vertices \((x_{i-1},y_{j-1},z_{k-1})\) and \((x_i, y_j, z_k)\) for \(i\) between \(1\) and \(m\text{,}\) \(j\) between \(1\) and \(n\text{,}\) and \(k\) between 1 and \(\ell\text{.}\) The volume of each \(B_{ijk}\) is \(\Delta V = \Delta x \cdot \Delta y \cdot \Delta z\text{.}\)
    • Let \((x_{ijk}^*, y_{ijk}^*, z_{ijk}^*)\) be a point in box \(B_{ijk}\) for each \(i\text{,}\) \(j\text{,}\) and \(k\text{.}\) The resulting triple Riemann sum for \(f\) on \(B\) is
      \[ \sum_{i=1}^m \sum_{j=1}^n \sum_{k=1}^{\ell} f(x_{ijk}^*, y_{ijk}^*, z_{ijk}^*) \cdot \Delta V. \nonumber \]

    If \(f(x,y,z)\) represents the mass density of the box \(B\text{,}\) then, as we saw in Preview Activity \(\PageIndex{1}\), the triple Riemann sum approximates the total mass of the box \(B\text{.}\) In order to find the exact mass of the box, we need to let the number of sub-boxes increase without bound (in other words, let \(m\text{,}\) \(n\text{,}\) and \(\ell\) go to infinity); in this case, the finite sum of the mass approximations becomes the actual mass of the solid \(B\text{.}\) More generally, we have the following definition of the triple integral.

    Definition \(\PageIndex{2}\)

    With following notation defined as in a triple Riemann sum, the triple integral of \(f\) over \(B\) is

    \[ \iiint_B f(x,y,z) \, dV = \lim_{m,n,\ell \to \infty} \sum_{i=1}^m \sum_{j=1}^n \sum_{k=1}^{\ell} f(x_{ijk}^*, y_{ijk}^*, z_{ijk}^*) \cdot \Delta V. \nonumber \]

    As we noted earlier, if \(f(x, y, z)\) represents the density of the solid \(B\) at each point \((x, y, z)\text{,}\) then

    \[ M = \iiint_B f(x,y,z) \, dV \nonumber \]

    is the mass of \(B\text{.}\) Even more importantly, for any continuous function \(f\) over the solid \(B\text{,}\) we can use a triple integral to determine the average value of \(f\) over \(B\text{,}\) \(f_{\operatorname{AVG}(B)}\text{.}\) We note this generalization of our work with functions of two variables along with several others in the following important boxed information. Note that each of these quantities may actually be considered over a general domain \(S\) in \(\mathbb{R}^3\text{,}\) not simply a box, \(B\text{.}\)

    • The triple integral
      \[ \displaystyle V(S) = \iiint_S 1 \, dV \nonumber \]

      represents the volume of the solid \(S\).

    • The average value of the function \(f = f(x,y,x)\) over a solid domain \(S\) is given by
      \[ f_{\operatorname{AVG}(S)} = \displaystyle \left(\frac{1}{V(S)} \right) \iiint_S f(x,y,z) \, dV, \nonumber \]

      where \(V(S)\) is the volume of the solid \(S\text{.}\)

    • The center of mass of the solid \(S\) with density \(\delta = \delta(x,y,z)\) is \((\overline{x}, \overline{y}, \overline{z})\text{,}\) where
      \begin{align*} \overline{x} & = \frac{\iiint_S x \ \delta(x,y,z) \, dV}{M},\\[4pt] \overline{y} & = \frac{\iiint_S y \ \delta(x,y,z) \, dV}{M}, \\[4pt] \overline{z} & = \frac{\iiint_S z \ \delta(x,y,z) \, dV}{M}, \end{align*}

      and \(M = \displaystyle \iiint_S \delta(x,y,z) \, dV\) is the mass of the solid \(S\text{.}\)

    In the Cartesian coordinate system, the volume element \(dV\) is \(dz \, dy \, dx\text{,}\) and, as a consequence, a triple integral of a function \(f\) over a box \(B = [a,b] \times [c,d] \times [r,s]\) in Cartesian coordinates can be evaluated as an iterated integral of the form

    \[ \iiint_B f(x,y,z) \, dV = \int_a^b \int_c^d \int_r^s f(x,y,z) \, dz \, dy \, dx. \nonumber \]

    If we want to evaluate a triple integral as an iterated integral over a solid \(S\) that is not a box, then we need to describe the solid in terms of variable limits.

    Activity \(\PageIndex{2}\)

    a. Set up and evaluate the triple integral of \(f(x,y,z) = x-y+2z\) over the box \(B = [-2,3] \times [1,4] \times [0,2]\text{.}\)

    b. Let \(S\) be the solid cone bounded by \(z = \sqrt{x^2+y^2}\) and \(z=3\text{.}\) A picture of \(S\) is shown at right in Figure \(\PageIndex{2}\). Our goal in what follows is to set up an iterated integral of the form

    \[ \int_{x=?}^{x=?} \int_{y=?}^{y=?} \int_{z=?}^{z=?} \delta(x,y,z) \, dz \, dy \, dx\label{eq_11_7_TI_not_box} \]

    to represent the mass of \(S\) in the setting where \(\delta(x,y,z)\) tells us the density of \(S\) at the point \((x,y,z)\text{.}\) Our particular task is to find the limits on each of the three integrals.

    fig_11_7_cone_project.svg fig_11_7_cone.svg

    Figure \(\PageIndex{2}\). Left: The cone. Right: Its projection.

    i. If we think about slicing up the solid, we can consider slicing the domain of the solid's projection onto the \(xy\)-plane (just as we would slice a two-dimensional region in \(\mathbb{R}^2\)), and then slice in the \(z\)-direction as well. The projection of the solid onto the \(xy\)-plane is shown at left in Figure \(\PageIndex{4}\). If we decide to first slice the domain of the solid's projection perpendicular to the \(x\)-axis, over what range of constant \(x\)-values would we have to slice?

    ii. If we continue with slicing the domain, what are the limits on \(y\) on a typical slice? How do these depend on \(x\text{?}\) What, therefore, are the limits on the middle integral?

    iii. Finally, now that we have thought about slicing up the two-dimensional domain that is the projection of the cone, what are the limits on \(z\) in the innermost integral? Note that over any point \((x,y)\) in the plane, a vertical slice in the \(z\) direction will involve a range of values from the cone itself to its flat top. In particular, observe that at least one of these limits is not constant but depends on \(x\) and \(y\text{.}\)

    iv. In conclusion, write an iterated integral of the form \ref{eq_11_7_TI_not_box} that represents the mass of the cone \(S\text{.}\)

    Note well: When setting up iterated integrals, the limits on a given variable can be only in terms of the remaining variables. In addition, there are multiple different ways we can choose to set up such an integral. For example, two possibilities for iterated integrals that represent a triple integral \(\iiint_S f(x,y,z) \, dV\) over a solid \(S\) are

    • \(\displaystyle \int_a^b \int_{g_1(x)}^{g_2(x)} \int_{h_1(x,y)}^{h_2(x,y)} f(x,y,z) \, dz \, dy \, dx\)
    • \(\displaystyle \int_r^s \int_{p_1(z)}^{p_2(z)} \int_{q_1(x,z)}^{q_2(x,z)} f(x,y,z) \, dy \, dx \, dz\)

    where \(g_1\text{,}\) \(g_2\text{,}\) \(h_1\text{,}\) \(h_2\text{,}\) \(p_1\text{,}\) \(p_2\text{,}\) \(q_1\text{,}\) and \(q_2\) are functions of the indicated variables. There are four other options beyond the two stated here, since the variables \(x\text{,}\) \(y\text{,}\) and \(z\) can (theoretically) be arranged in any order. Of course, in many circumstances, an insightful choice of variable order will make it easier to set up an iterated integral, just as was the case when we worked with double integrals.

    Example \(\PageIndex{1}\)

    Find the mass of the tetrahedron in the first octant bounded by the coordinate planes and the plane \(x + 2 y + 3 z = 6\) if the density at point \((x,y,z)\) is given by \(\delta(x, y, z) = x + y + z\text{.}\) A picture of the solid tetrahedron is shown at left in Figure \(\PageIndex{3}\).

    fig_11_7_tetrahedron.svgfig_11_7_tetrahedron_project.svg 

    Figure \(\PageIndex{3}\). Left: The tetrahedron. Right: Its projection.

    We find the mass, \(M\text{,}\) of the tetrahedron by the triple integral

    \[ M = \iiint_S \delta(x,y,z) \, dV, \nonumber \]

    where \(S\) is the solid tetrahedron described above. In this example, we choose to integrate with respect to \(z\) first for the innermost integral. The top of the tetrahedron is given by the equation

    \[ x + 2 y + 3 z = 6; \nonumber \]

    solving for \(z\) then yields

    \[ z = \frac{1}{3}(6 - x - 2y). \nonumber \]

    The bottom of the tetrahedron is the \(xy\)-plane, so the limits on \(z\) in the iterated integral will be \(0 \leq z \leq \frac{1}{3}(6-x-2y)\text{.}\)

    To find the bounds on \(x\) and \(y\) we project the tetrahedron onto the \(xy\)-plane; this corresponds to setting \(z = 0\) in the equation \(z = \frac{1}{3}(6 - x - 2y)\text{.}\) The resulting relation between \(x\) and \(y\) is

    \[ x + 2 y = 6. \nonumber \]

    The right image in Figure \(\PageIndex{3}\) shows the projection of the tetrahedron onto the \(xy\)-plane.

    If we choose to integrate with respect to \(y\) for the middle integral in the iterated integral, then the lower limit on \(y\) is the \(x\)-axis and the upper limit is the hypotenuse of the triangle. Note that the hypotenuse joins the points \((6,0)\) and \((0,3)\) and so has equation \(y = 3 - \frac{1}{2}x\text{.}\) Thus, the bounds on \(y\) are \(0 \leq y \leq 3 - \frac{1}{2}x\text{.}\) Finally, the \(x\) values run from 0 to 6, so the iterated integral that gives the mass of the tetrahedron is

    \[ M = \int_{0}^{6} \int_{0}^{3-(1/2)x} \int_{0}^{(1/3)(6-x-2y)} x+y+z \, dz \, dy \, dx.\label{eq_11_7_Tetrahedron_mass}\]

    Evaluating the triple integral gives us

    \begin{align*} M & = \int_{0}^{6} \int_{0}^{3-(1/2)x} \int_{0}^{(1/3)(6-x-2y)} x+y+z \, dz \, dy \, dx\\[4pt] & = \int_{0}^{6} \int_{0}^{3-(1/2)x} \left[xz+yz+\frac{z}{2}\right]\biggm|_{0}^{(1/3)(6-x-2y)} \, dy \, dx\\[4pt] & = \int_{0}^{6} \int_{0}^{3-(1/2)x} \frac{4}{3}x - \frac{5}{18}x^2 - \frac{}{9}xy + \frac{2}{3}y - \frac{4}{9}y^2 + 2 \, dy \, dx\\[4pt] & = \int_{0}^{6} \left[\frac{4}{3}xy - \frac{5}{18}x^2y - \frac{7}{18}xy^2 + \frac{1}{3}y^2 - \frac{4}{27}y^3 + 2y \right]\biggm|_{0}^{3-(1/2)x} \, dx\\[4pt] & = \int_{0}^{6} 5 + \frac{1}{2}x - \frac{7}{12}x^2 + \frac{13}{216}x^3 \, dx\\[4pt] & = \left[5x + \frac{1}{4}x^2 - \frac{7}{36}x^3 + \frac{13}{864}x^4 \right] \biggm|_{0}^{6}\\[4pt] & = \frac{33}{2}. \end{align*}

    Setting up limits on iterated integrals can require considerable geometric intuition. It is important to not only create carefully labeled figures, but also to think about how we wish to slice the solid. Further, note that when we say “we will integrate first with respect to \(x\text{,}\)” by “first” we are referring to the innermost integral in the iterated integral. The next activity explores several different ways we might set up the integral in the preceding example.

    Activity \(\PageIndex{3}\)

    There are several other ways we could have set up the integral to give the mass of the tetrahedron in Example \(\PageIndex{1}\).

    1. How many different iterated integrals could be set up that are equal to the integral in Equation \ref{eq_11_7_Tetrahedron_mass}?
    2. Set up an iterated integral, integrating first with respect to \(z\text{,}\) then \(x\text{,}\) then \(y\) that is equivalent to the integral in Equation \ref{eq_11_7_Tetrahedron_mass}. Before you write down the integral, think about Figure \(\PageIndex{6}\), and draw an appropriate two-dimensional image of an important projection.
    3. Set up an iterated integral, integrating first with respect to \(y\text{,}\) then \(z\text{,}\) then \(x\) that is equivalent to the integral in Equation \ref{eq_11_7_Tetrahedron_mass}. As in (b), think carefully about the geometry first.
    4. Set up an iterated integral, integrating first with respect to \(x\text{,}\) then \(y\text{,}\) then \(z\) that is equivalent to the integral in Equation \ref{eq_11_7_Tetrahedron_mass}.

    Now that we have begun to understand how to set up iterated triple integrals, we can apply them to determine important quantities, such as those found in the next activity.

    Activity \(\PageIndex{4}\)

    A solid \(S\) is bounded below by the square \(z=0\text{,}\) \(-1 \leq x \leq 1\text{,}\) \(-1 \leq y \leq 1\) and above by the surface \(z = 2-x^2-y^2\text{.}\) A picture of the solid is shown in Figure \(\PageIndex{4}\).

    fig_11_7_volume.svg

    Figure \(\PageIndex{4}\). The solid bounded by the surface \(z = 2-x^2-y^2\text{.}\)
    1. First, set up an iterated double integral to find the volume of the solid \(S\) as a double integral of a solid under a surface. Then set up an iterated triple integral that gives the volume of the solid \(S\text{.}\) You do not need to evaluate either integral. Compare the two approaches.
    2. Set up (but do not evaluate) iterated integral expressions that will tell us the center of mass of \(S\text{,}\) if the density at point \((x,y,z)\) is \(\delta(x,y,z)=x^2+1\text{.}\)
    3. Set up (but do not evaluate) an iterated integral to find the average density on \(S\) using the density function from part (b).
    4. Use technology appropriately to evaluate the iterated integrals you determined in (a), (b), and (c); does the location you determined for the center of mass make sense?

    Summary

    • Let \(f = f(x,y,z)\) be a continuous function on a box \(B = [a,b] \times [c,d] \times [r,s]\text{.}\) The triple integral of \(f\) over \(B\) is defined as
      \[ \iiint_B f(x,y,z) \, dV = \lim_{\Delta V \to 0} \sum_{i=1}^m \sum_{j=1}^n \sum_{k=1}^l f(x_{ijk}^*, y_{ijk}^*, z_{ijk}^*) \cdot \Delta V, \nonumber \]

      where the triple Riemann sum is defined in the usual way. The definition of the triple integral naturally extends to non-rectangular solid regions \(S\text{.}\)

    • The triple integral \(\iiint_S f(x,y,z) \, dV\) can tell us
      • the volume of the solid \(S\) if \(f(x,y,z) = 1\text{,}\)
      • the mass of the solid \(S\) if \(f\) represents the density of \(S\) at the point \((x,y,z)\text{.}\)

      Moreover,

      \[ f_{\operatorname{AVG}(S)} = \displaystyle \frac{1}{V(S)} \iiint_S f(x,y,z) \, dV, \nonumber \]

      is the average value of \(f\) over \(S\text{.}\)


    This page titled 11.7: Triple Integrals is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Matthew Boelkins, David Austin & Steven Schlicker (ScholarWorks @Grand Valley State University) via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.