Math Core

Lesson 4.5 · Multiple Integrals

Triple integrals

A double integral adds up a quantity spread over a flat region. A triple integral does the same thing over a solid region in space. It gives volume, mass, total charge, and average values of functions of three variables, and almost all of the technique carries over from double integrals.

From boxes to triple integrals

Start with a function f(x,y,z)f(x, y, z) defined on a box B=[a,b]×[c,d]×[r,s]B = [a, b] \times [c, d] \times [r, s]. Cut the box into small sub-boxes of volume ΔV=Δx Δy Δz\Delta V = \Delta x\,\Delta y\,\Delta z, pick a sample point (xijk∗,yijk∗,zijk∗)(x_{ijk}^*, y_{ijk}^*, z_{ijk}^*) in each one, and add:

∑i∑j∑kf(xijk∗,yijk∗,zijk∗)ΔV.\sum_{i}\sum_{j}\sum_{k} f\left(x_{ijk}^*, y_{ijk}^*, z_{ijk}^*\right)\Delta V.

As the sub-boxes shrink, these Riemann sums approach the triple integral ∭Bf(x,y,z) dV\displaystyle\iiint_B f(x, y, z)\,dV.

If f=1f = 1, each term is just the volume of a sub-box, so ∭E1 dV\iiint_E 1\,dV is the volume of EE. If ff is a density, the triple integral is a mass.

Fubini's Theorem for boxes

If ff is continuous on B=[a,b]×[c,d]×[r,s]B = [a, b] \times [c, d] \times [r, s], then

∭Bf(x,y,z) dV=∫rs∫cd∫abf(x,y,z) dx dy dz,\iiint_B f(x, y, z)\,dV = \int_r^s \int_c^d \int_a^b f(x, y, z)\,dx\,dy\,dz,

and the three integrations can be done in any of the six possible orders.

You work from the inside out: integrate with respect to the innermost variable while holding the other two constant, then the next, then the last.

Worked example: A separable integrand on a box

Evaluate ∭Bxyz2 dV\displaystyle\iiint_B xyz^2\,dV, where B=[0,1]×[−1,2]×[0,3]B = [0, 1] \times [-1, 2] \times [0, 3].

Solution. The integrand is a product of a function of xx, a function of yy and a function of zz, and the limits are constants, so the integral splits into three single integrals:

(∫01x dx)(∫−12y dy)(∫03z2 dz)=12⋅4−12⋅9=12⋅32⋅9=274.\left(\int_0^1 x\,dx\right)\left(\int_{-1}^2 y\,dy\right)\left(\int_0^3 z^2\,dz\right) = \frac{1}{2} \cdot \frac{4 - 1}{2} \cdot 9 = \frac{1}{2} \cdot \frac{3}{2} \cdot 9 = \frac{27}{4}.

General regions

Most solids are not boxes. The most common way to describe a solid EE is to say it lies between two surfaces, one below and one above, over a region DD in the xyxy-plane:

E={(x,y,z):(x,y)∈D, u1(x,y)≤z≤u2(x,y)}.E = \{(x, y, z) : (x, y) \in D,\ u_1(x, y) \le z \le u_2(x, y)\}.

Here DD is the projection (shadow) of EE onto the xyxy-plane. For such a region,

∭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.

The inner integral runs from the bottom surface to the top surface. What is left is a double integral over DD, which you set up exactly as in the earlier lessons.

Setting up a triple integral

  1. Decide which variable goes innermost (often zz). Find the lower and upper surfaces: those are its limits.
  2. Project the solid onto the plane of the other two variables to get DD.
  3. Describe DD with limits, as for a double integral: the middle limits may depend on the outer variable, and the outer limits are constants.

You can just as well project onto the yzyz-plane (with xx innermost) or the xzxz-plane (with yy innermost). Choose whichever makes the bounding surfaces easiest to write.

Worked example: A tetrahedron

Let EE be the solid tetrahedron bounded by the coordinate planes and the plane x+y+z=1x + y + z = 1. Evaluate ∭Ez dV\displaystyle\iiint_E z\,dV.

Solution. The bottom is z=0z = 0 and the top is z=1−x−yz = 1 - x - y. The shadow DD on the xyxy-plane is the triangle x≥0x \ge 0, y≥0y \ge 0, x+y≤1x + y \le 1, which is 0≤x≤10 \le x \le 1, 0≤y≤1−x0 \le y \le 1 - x. So

∭Ez dV=∫01∫01−x∫01−x−yz dz dy dx=∫01∫01−x(1−x−y)22 dy dx.\iiint_E z\,dV = \int_0^1 \int_0^{1-x} \int_0^{1-x-y} z\,dz\,dy\,dx = \int_0^1 \int_0^{1-x} \frac{(1 - x - y)^2}{2}\,dy\,dx.

For the middle integral, substitute w=1−x−yw = 1 - x - y: it equals ∫01−xw22 dw=(1−x)36\displaystyle\int_0^{1-x}\frac{w^2}{2}\,dw = \frac{(1 - x)^3}{6}. Then

∫01(1−x)36 dx=16⋅14=124.\int_0^1 \frac{(1 - x)^3}{6}\,dx = \frac{1}{6} \cdot \frac{1}{4} = \frac{1}{24}.
The shadow D of the solid in the next example: between y = x² and y = 1.Open in grapher →

Worked example: Volume under a slanted roof

Find the volume of the solid that lies above the xyxy-plane, below the plane z=yz = y, and over the region DD between the parabola y=x2y = x^2 and the line y=1y = 1.

Solution. Volume is ∭E1 dV\iiint_E 1\,dV. The limits for zz are 0≤z≤y0 \le z \le y, and DD is −1≤x≤1-1 \le x \le 1, x2≤y≤1x^2 \le y \le 1:

V=∫−11∫x21∫0ydz dy dx=∫−11∫x21y dy dx=∫−111−x42 dx.V = \int_{-1}^1 \int_{x^2}^1 \int_0^y dz\,dy\,dx = \int_{-1}^1 \int_{x^2}^1 y\,dy\,dx = \int_{-1}^1 \frac{1 - x^4}{2}\,dx.

The integrand is even, so this is ∫01(1−x4)dx=1−15=45\displaystyle\int_0^1 \left(1 - x^4\right)dx = 1 - \frac{1}{5} = \frac{4}{5}.

Common mistake

The limits must get simpler as you move outward. The innermost limits may involve both outer variables, the middle limits may involve only the outermost variable, and the outermost limits must be constants. If your final answer still contains a variable, a limit is in the wrong place.

Changing the order

Sometimes an integral is easier in a different order. To switch, describe the same solid a different way. For the tetrahedron x,y,z≥0x, y, z \ge 0, x+y+z≤1x + y + z \le 1, putting yy innermost gives 0≤y≤1−x−z0 \le y \le 1 - x - z, and the shadow on the xzxz-plane is the triangle 0≤x≤10 \le x \le 1, 0≤z≤1−x0 \le z \le 1 - x:

∫01∫01−x∫01−x−yf dz dy dx=∫01∫01−x∫01−x−zf dy dz dx.\int_0^1 \int_0^{1-x} \int_0^{1-x-y} f\,dz\,dy\,dx = \int_0^1 \int_0^{1-x} \int_0^{1-x-z} f\,dy\,dz\,dx.

Sketching the solid, or at least its shadow, is the reliable way to do this.

Mass, center of mass and average value

Everything from the applications lesson moves up one dimension. If a solid EE has density ρ(x,y,z)\rho(x, y, z), then

m=∭Eρ dV,xˉ=1m∭Ex ρ dV,m = \iiint_E \rho\,dV, \qquad \bar{x} = \frac{1}{m}\iiint_E x\,\rho\,dV,

and similarly for yˉ\bar{y} and zˉ\bar{z}. The average value of ff over EE is

favg=1V(E)∭Ef dV.f_{\text{avg}} = \frac{1}{V(E)}\iiint_E f\,dV.

Tip

Symmetry saves work here too. The tetrahedron x+y+z≤1x + y + z \le 1 looks the same if you swap any two variables, so ∭Ex dV=∭Ey dV=∭Ez dV=124\iiint_E x\,dV = \iiint_E y\,dV = \iiint_E z\,dV = \dfrac{1}{24}.

Practice

Practice 1

Evaluate ∫01∫02∫03(x+y+z) dz dy dx\displaystyle\int_0^1 \int_0^2 \int_0^3 (x + y + z)\,dz\,dy\,dx.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

Evaluate ∫01∫0x∫0xydz dy dx\displaystyle\int_0^1 \int_0^x \int_0^{xy} dz\,dy\,dx.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

A cube [0,1]×[0,1]×[0,1][0, 1] \times [0, 1] \times [0, 1] has density ρ(x,y,z)=x2yz\rho(x, y, z) = x^2yz. Find its mass.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 4

Find the volume of the tetrahedron bounded by the coordinate planes and the plane 2x+y+z=42x + y + z = 4.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

Find the average value of f(x,y,z)=x+y+zf(x, y, z) = x + y + z over the unit cube [0,1]×[0,1]×[0,1][0, 1] \times [0, 1] \times [0, 1].

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

Which integral equals ∫01∫01−x∫01−x−yf dz dy dx\displaystyle\int_0^1 \int_0^{1-x} \int_0^{1-x-y} f\,dz\,dy\,dx, but with the order dy dz dxdy\,dz\,dx?

Practice 7

Find the volume of the solid bounded below by z=0z = 0, above by z=xz = x, and on the sides by the parabolic cylinder x=y2x = y^2 and the plane x=4x = 4.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 8

Let EE be the tetrahedron x≥0x \ge 0, y≥0y \ge 0, z≥0z \ge 0, x+y+z≤1x + y + z \le 1. Evaluate ∭Ex dV\displaystyle\iiint_E x\,dV.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.