Multivariable Calculus · Undergraduate

Triple Integrals

Quick answer

A triple integral adds up f(x, y, z) times volume over a solid region E. With f = 1 it gives the volume of E; with f a density it gives the mass. Over a box, Fubini's theorem allows any of six orders. Over a solid between two surfaces z = u₁(x, y) and z = u₂(x, y), the innermost integral runs up a vertical column from the lower surface to the upper one, and the remaining double integral covers the shadow of E on the xy-plane. Dividing moments by the mass locates the center of mass.

What you'll learn

  • Evaluate a triple integral over a box
  • Set up limits for a solid between two surfaces
  • Compute volumes and masses with triple integrals
  • Find the center of mass of a solid

Adding up through a solid

A double integral adds up a quantity spread over a flat region. A triple integral adds up a quantity spread through a solid. Cut a solid region EE into small boxes of volume ΔV\Delta V, multiply ff at a point of each box by ΔV\Delta V, and add. The limit as the boxes shrink is

∭Ef(x,y,z) dV=lim⁡∑f(xi∗,yj∗,zk∗) ΔV\iiint_E f(x, y, z)\,dV = \lim \sum f(x_i^*, y_j^*, z_k^*)\,\Delta V

With f=1f = 1, the sum counts boxes, and the integral is the volume of EE. When ff is a density, in mass per unit volume, each term is the mass of one box, and the integral is the mass of EE.

Over a box [a,b]×[c,d]×[p,q][a, b] \times [c, d] \times [p, q], Fubini’s theorem works as it did for rectangles: the triple integral equals an iterated integral in any of six orders, all with constant limits.

Why the innermost integral is a column

Suppose EE lies between a lower surface z=u1(x,y)z = u_1(x, y) and an upper surface z=u2(x,y)z = u_2(x, y), over a region DD of the xyxy-plane, its shadow. Group the small boxes into vertical columns. The column over the point (x,y)(x, y) runs from u1(x,y)u_1(x, y) up to u2(x,y)u_2(x, y), so the column’s total is a single integral in zz. Adding the columns over DD is then a double integral:

∭Ef dV=∬D[∫u1(x,y)u2(x,y)f(x,y,z) dz]dA\iiint_E f\,dV = \iint_D \left[\int_{u_1(x, y)}^{u_2(x, y)} f(x, y, z)\,dz\right] dA

Set up the limits from the inside out: first the column, from the bottom surface to the top one, then the shadow DD, described as in double integrals over general regions. With f=1f = 1, the inner integral is u2−u1u_2 - u_1, the height of the column, and the formula becomes the familiar volume between two surfaces.

The tetrahedron under 6x + 3y + 2z = 6 The plane 6x + 3y + 2z = 6 cut off by the coordinate planes, a triangle with corners (1, 0, 0), (0, 2, 0) and (0, 0, 3). Its shadow on the xy-plane is the shaded triangle 0 ≤ x ≤ 1, 0 ≤ y ≤ 2 − 2x. A vertical column over any point of the shadow runs from z = 0 up to the plane. x y z (1, 0, 0) (0, 2, 0) (0, 0, 3)
The tetrahedron under 6x + 3y + 2z = 6

Worked examples

Mass and center of mass

If a solid has density ρ(x,y,z)\rho(x, y, z), its mass is m=∭Eρ dVm = \iiint_E \rho\,dV. Its center of mass is the balance point, (xˉ,yˉ,zˉ)(\bar{x}, \bar{y}, \bar{z}), where

xˉ=1m∭Ex ρ dV,yˉ=1m∭Ey ρ dV,zˉ=1m∭Ez ρ dV\bar{x} = \frac{1}{m}\iiint_E x\,\rho\,dV, \quad \bar{y} = \frac{1}{m}\iiint_E y\,\rho\,dV, \quad \bar{z} = \frac{1}{m}\iiint_E z\,\rho\,dV

Each coordinate is a weighted average, in the sense of the average value of a function, with density as the weight. For a constant density the center of mass is the centroid, a purely geometric point.

Common mistakes

Practice problems

  1. Evaluate ∭B(x+y+z) dV\iiint_B (x + y + z)\,dV over B=[0,1]×[0,2]×[0,3]B = [0, 1] \times [0, 2] \times [0, 3].

    Answer

    1818

    Full solution

    The box has volume 66. The average of xx over it is 12\tfrac{1}{2}, of yy is 11, and of zz is 32\tfrac{3}{2}, so the integral is 6(12+1+32)=186\left(\tfrac{1}{2} + 1 + \tfrac{3}{2}\right) = 18. Term by term: 3+6+93 + 6 + 9.

  2. Evaluate ∫01∫01∫01xyz dz dy dx\displaystyle\int_0^1 \int_0^1 \int_0^1 xyz\,dz\,dy\,dx.

    Answer

    18\tfrac{1}{8}

    Full solution

    The integral splits: 12⋅12⋅12\tfrac{1}{2} \cdot \tfrac{1}{2} \cdot \tfrac{1}{2}.

  3. Find the average value of f(x,y,z)=zf(x, y, z) = z over the unit cube.

    Answer

    12\tfrac{1}{2}

    Full solution

    The integral is ∫01z dz=12\int_0^1 z\,dz = \tfrac{1}{2}, and the cube has volume 11.

  4. Use a triple integral to find the volume of the solid under z=x+yz = x + y and over the unit square [0,1]×[0,1][0, 1] \times [0, 1].

    Answer

    11

    Full solution

    ∫01∫01∫0x+ydz dy dx=∫01∫01(x+y) dy dx=∫01(x+12)dx=1\int_0^1 \int_0^1 \int_0^{x + y} dz\,dy\,dx = \int_0^1 \int_0^1 (x + y)\,dy\,dx = \int_0^1 \left(x + \tfrac{1}{2}\right)dx = 1.

  5. Evaluate ∭Ex dV\iiint_E x\,dV, where EE is the wedge 0≤x≤20 \le x \le 2, 0≤y≤10 \le y \le 1, 0≤z≤y0 \le z \le y.

    Answer

    11

    Full solution

    ∫02∫01∫0yx dz dy dx=∫02x dx⋅∫01y dy=2⋅12=1\int_0^2 \int_0^1 \int_0^y x\,dz\,dy\,dx = \int_0^2 x\,dx \cdot \int_0^1 y\,dy = 2 \cdot \tfrac{1}{2} = 1.

  6. Set up, without evaluating, a triple integral for the volume of the solid between the paraboloid z=x2+y2z = x^2 + y^2 and the plane z=4z = 4.

    Answer

    ∫−22∫−4−x24−x2∫x2+y24dz dy dx\displaystyle\int_{-2}^{2} \int_{-\sqrt{4 - x^2}}^{\sqrt{4 - x^2}} \int_{x^2 + y^2}^{4} dz\,dy\,dx

    Full solution

    Columns run from the paraboloid up to the plane. They exist where x2+y2≤4x^2 + y^2 \le 4, the disk of radius 22, so the shadow is that disk. The next lesson evaluates this volume, 8π8\pi, in cylindrical coordinates.

  7. The tetrahedron of Example 2 has constant density. Find xˉ\bar{x}.

    Hint

    The centroid of a tetrahedron is the average of its four corners.

    Answer

    14\tfrac{1}{4}

    Full solution

    The corners are (0,0,0)(0, 0, 0), (1,0,0)(1, 0, 0), (0,2,0)(0, 2, 0) and (0,0,3)(0, 0, 3), and the average of their xx-coordinates is 14\tfrac{1}{4}. Example 4 confirmed this pattern for the tetrahedron with corners on the unit axes. By integration, ∭Ex dV=∫01x⋅3(2−2x)24 dx=3∫01x(1−x)2 dx=14\iiint_E x\,dV = \int_0^1 x \cdot \tfrac{3(2 - 2x)^2}{4}\,dx = 3\int_0^1 x(1 - x)^2\,dx = \tfrac{1}{4}, and the volume is 11.

  8. A student writes the volume of the tetrahedron x+y+z≤1x + y + z \le 1 as ∫01−x−y∫01−x∫01dx dy dz\displaystyle\int_0^{1 - x - y} \int_0^{1 - x} \int_0^1 dx\,dy\,dz. What went wrong?

    Answer

    The limits are listed in reverse: the constant limits must go on the outer integral, not the inner one.

    Full solution

    With dxdx innermost, the xx-limits come first, and here they are 00 to 11, while the outer zz-limits contain xx and yy. A correct version is ∫01∫01−x∫01−x−ydz dy dx=16\int_0^1 \int_0^{1 - x} \int_0^{1 - x - y} dz\,dy\,dx = \tfrac{1}{6}.

Frequently asked questions

What does a triple integral measure?

It adds up f(x, y, z) times volume over a solid. With f = 1 it is the volume of the solid; with f a density, in mass per unit volume, it is the total mass.

How do you set up the limits of a triple integral?

For a solid between surfaces z = u₁(x, y) below and z = u₂(x, y) above, the z-limits are u₁ and u₂. The remaining double integral runs over the shadow of the solid on the xy-plane, with limits found as for any double integral.

In how many orders can a triple integral be written?

Six: dz dy dx, dz dx dy, dy dz dx, dy dx dz, dx dz dy and dx dy dz. Over a box all six give the same value with constant limits; over other solids the limits change with the order.

How do you find the center of mass of a solid?

Divide each first moment by the mass. For example, x-bar is the triple integral of x times the density, divided by the triple integral of the density.

Why is a triple integral not a volume in four dimensions?

It can be read that way, but the useful readings are physical: a total amount of something spread through a solid, such as mass, charge or heat.

What to learn next