14.05 Triple Integrals in Rectangular Coordinates
14.05 Triple Integrals in Rectangular Coordinates
Previously, we discussed the double integral of a function f (x, y) of two variables over a rectangular region in the plane. In this section we define the triple
integral of a function f (x, y, z) of three variables over a rectangular solid box in space, R . Later in this section we extend the definition to more general
3
regions in R .3
B = {(x, y, z) | a ≤ x ≤ b, c ≤ y ≤ d, e ≤ z ≤ f }.
We follow a similar procedure to what we did in previously. We divide the interval [a, b] into l subintervals [x i−1 , xi ] of equal length Δx with
xi − xi−1
Δx = ,
l
divide the interval [c, d] into m subintervals [y i−1 , yi ] of equal length Δy with
yj − yj−1
Δy = ,
m
and divide the interval [e, f ] into n subintervals [z i−1 , zi ] of equal length Δz with
zk − zk−1
Δz =
n
Figure 14.5.1 : A rectangular box in R divided into subboxes by planes parallel to the coordinate planes.
3
∗ ∗ ∗
∑ ∑ ∑ f (x ,y ,z ) ΔxΔyΔz.
ijk ijk ijk
14.5.1 https://math.libretexts.org/@go/page/138504
We define the triple integral in terms of the limit of a triple Riemann sum, as we did for the double integral in terms of a double Riemann sum.
∗ ∗ ∗
lim ∑ ∑ ∑ f (x ,y ,z ) ΔxΔyΔz = ∭ f (x, y, z) dV
ijk ijk ijk
l,m,n→∞
i=1 j=1 k=1 B
When the triple integral exists on B the function f (x, y, z) is said to be integrable on B . Also, the triple integral exists if f (x, y, z) is continuous on B .
Therefore, we will use continuous functions for our examples. However, continuity is sufficient but not necessary; in other words, f is bounded on B and
continuous except possibly on the boundary of B . The sample point (x , y , z ) can be any point in the rectangular sub-box B and all the properties
∗
ijk
∗
ijk
∗
ijk ijk
of a double integral apply to a triple integral. Just as the double integral has many practical applications, the triple integral also has many applications, which
we discuss in later sections.
Now that we have developed the concept of the triple integral, we need to know how to compute it. Just as in the case of the double integral, we can have an
iterated triple integral, and consequently, a version of Fubini’s theorem for triple integrals exists.
This integral is also equal to any of the other five possible orderings for the iterated triple integral.
For a, b, c, d, e and f real numbers, the iterated triple integral can be expressed in six different orderings:
f d b f d b
d f b
b f d
f b d
d b d
b d f
For a rectangular box, the order of integration does not make any significant difference in the level of difficulty in computation. We compute triple integrals
using Fubini’s Theorem rather than using the Riemann sum definition. We follow the order of integration in the same way as we did for double integrals
(that is, from inside to outside).
Solution
The order of integration is specified in the problem, so integrate with respect to x first, then y, and then z .
14.5.2 https://math.libretexts.org/@go/page/138504
z=1 y=4 x=5
2
∫ ∫ ∫ (x + y z ) dx dy dz
z=0 y=2 x=−1
z=1 y=4
2
=∫ ∫ [12 + 6y z ] dy dz Evaluate.
z=0 y=2
z=1 2 y=4
y ∣
2
=∫ [ 12y + 6 z ∣ ] dz Integrate with respect to y.
z=0
2 ∣y=2
z=1
2
=∫ [24 + 36 z ] dz Evaluate.
z=0
z=1
3
z
= [24z + 36 ] Integrate with respect to z.
3
z=0
= 36. Evaluate.
2
∭ x yz dV
B
Solution
The order is not specified, but we can use the iterated integral in any order without changing the level of difficulty. Choose, say, to integrate y first, then
x, and then z .
5 1 3
2 2
∭ x yz dV =∫ ∫ ∫ [ x yz] dy dx dz
1 −2 0
B
5 1 3 3
y ∣
2
=∫ ∫ [x z∣ ] dx dz
1 −2
3 ∣
0
5 1
y
2
=∫ ∫ x z dx dz
1 −2 2
5 1
3
9 x ∣
=∫ [ z∣ ] dz
1 2 3 ∣−2
5
27
=∫ z dz
1
2
5
2
27 z ∣
= ∣ = 162.
2 2 ∣
1
Now try to integrate in a different order just to see that we get the same answer. Choose to integrate with respect to x first, then z , then y
14.5.3 https://math.libretexts.org/@go/page/138504
3 5 1
2 2
∭ x yz dV =∫ ∫ ∫ [ x yz] dx dz dy
0 1 −2
B
3 5 3 1
x ∣
=∫ ∫ [ yz∣ ] dz dy
0 1
3 ∣
−2
3 5
=∫ ∫ 3yz dz dy
0 1
3 2 5
z ∣
=∫ [3y ∣ ] dy
0
2 ∣
1
=∫ 36y dy
0
2 3
y ∣
= 36 ∣ = 18(9 − 0) = 162.
2 ∣
0
Exercise 14.5.1
∭ z sin x cos y dV
B
3π
where B = {(x, y, z) | 0 ≤ x ≤ π, ≤ y ≤ 2π, 1 ≤ z ≤ 3} .
2
Hint
Follow the steps in the previous example.
Answer
∭ z sin x cos y dV = 8
B
we will consider are of three types. First, let D be the bounded region that is a projection of E onto the xy-plane. Suppose the region E in R has the form 3
Figure 14.5.3 : We can describe region E as the space between u 1 (x, y) and u 2 (x, y) above the projection D of E onto the xy-plane.
The triple integral of a continuous function f (x, y, z) over a general three-dimensional region
u2 (x,y)
14.5.4 https://math.libretexts.org/@go/page/138504
Similarly, we can consider a general bounded region D in the xy-plane and two functions y = u 1 (x, z) and y = u2 (x, z) such that u1 (x, z) ≤ u2 (x, z) for
all (x, z) in D. Then we can describe the solid region E in R as 3
where D is the projection of E onto the xy-plane and the triple integral is
u2 (x,z)
Finally, if D is a general bounded region in the xy-plane and we have two functions x = u1 (y, z) and x = u 2 (y, z) such that u1 (y, z) ≤ u2 (y, z) for all
(y, z) in D, then the solid region E in R can be described as
3
where D is the projection of E onto the xy-plane and the triple integral is
u2 (y,z)
Note that the region D in any of the planes may be of Type I or Type II as described in previously. If D in the xy-plane is of Type I (Figure 14.5.4), then
Figure 14.5.5 : A box E where the projection D in the xy-plane is of Type II.
Then the triple integral becomes
14.5.5 https://math.libretexts.org/@go/page/138504
y=d x=h2 (y) z=u2 (x,y)
Evaluate the triple integral of the function f (x, y, z) = 5x − 3y over the solid tetrahedron bounded by the planes x = 0, y = 0, z = 0 , and
x +y +z = 1 .
Solution
Figure 14.5.6 shows the solid tetrahedron E and its projection D on the xy-plane.
E = {(x, y, z) | 0 ≤ x ≤ 1, 0 ≤ y ≤ 1 − x, 0 ≤ z ≤ 1 − x − y}.
z=1−x−y
To simplify the calculation, first evaluate the integral ∫ (5x − 3y) dz . We have
z=0
z=1−x−y z=1−x−y
∣
∫ (5x − 3y) dz = (5x − 3y)z∣ = (5x − 3y)(1 − x − y).
∣
z=0 z=0
obtaining
y=1−x
1 2
∫ (5x − 3y)(1 − x − y) dy = (x − 1 ) (6x − 1).
y=0
2
Finally evaluate
x=1
1 2
1
∫ (x − 1 ) (6x − 1) dx = .
x=0
2 12
∬ 1 dA
D
∭ 1 dV
E
to find the volume of a general solid bounded region E . The next example illustrates the method.
14.5.6 https://math.libretexts.org/@go/page/138504
Example 14.5.3B: Finding a Volume by Evaluating a Triple Integral
Find the volume of a right pyramid that has the square base in the xy-plane [−1, 1] × [−1, 1] and vertex at the point (0, 0, 1) as shown in the following
figure.
Solution
In this pyramid the value of z changes from 0 to 1 and at each height z the cross section of the pyramid for any value of z is the square
∭ 1 dV
E
where
E = {(x, y, z) | 0 ≤ z ≤ 1, −1 + z ≤ y ≤ 1 − z, −1 + z ≤ x ≤ 1 − z}.
Thus, we have
z=1 y=1−z x=1−z
∭ 1 dV =∫ ∫ ∫ 1 dx dy dz
E z=0 y=−1+z x=−1+z
z=1 y=1−z
=∫ ∫ (2 − 2z) dy dz
z=0 y=−1+z
z=1
4
2
=∫ (2 − 2z) dz = .
z=0
3
4
Hence, the volume of the pyramid is cubic units.
3
Exercise 14.5.3
∭ f (x, y, z) dV
E
for an arbitrary function f as an iterated integral. Then evaluate this triple integral with f (x, y, z) = 1 . Notice that this gives the volume of a sphere
using a triple integral.
Hint
Follow the steps in the previous example. Use symmetry.
Answer
2 2 2
x=3 y=√9−z z=√9−x −y
∭ 1 dV = 8 ∫ ∫ ∫ 1 dz dy dx
2 2 2
E x=−3 y=−√9−z z=−√9−x −y
14.5.7 https://math.libretexts.org/@go/page/138504
Changing the Order of Integration
As we have already seen in double integrals over general bounded regions, changing the order of the integration is done quite often to simplify the
computation. With a triple integral over a rectangular box, the order of integration does not change the level of difficulty of the calculation. However, with a
triple integral over a general bounded region, choosing an appropriate order of integration can simplify the computation quite a bit. Sometimes making the
change to polar coordinates can also be very helpful. We demonstrate two examples here.
∫ ∫ ∫ f (x, y, z) dz dy dx.
x=0 y=0 z=0
The order of integration here is first with respect to z, then y, and then x. Express this integral by changing the order of integration to be first with
respect to x, then z , and then y . Verify that the value of the integral is the same if we let f (x, y, z) = xyz.
Solution
The best way to do this is to sketch the region E and its projections onto each of the three coordinate planes. Thus, let
2
E = {(x, y, z) | 0 ≤ x ≤ 1, 0 ≤ y ≤ x , 0 ≤ z ≤ y}.
and
2 2
x=1 y=x z=x
∫ ∫ ∫ f (x, y, z) dz dy dx = ∭ f (x, y, z) dV .
x=0 y=0 z=0 E
∫ ∫ ∫ f (x, y, z) dx dz dy.
y=c z=v1 (y) x=u1 (y,z)
Knowing the region E we can draw the following projections (Figure 14.5.8):
on the xy-plane is D 1
2
= {(x, y) | 0 ≤ x ≤ 1, 0 ≤ y ≤ x } = {(x, y) | 0 ≤ y ≤ 1, √y ≤ x ≤ 1},
Figure 14.5.8 . The three cross sections of E on the three coordinate planes.
Now we can describe the same region E as {(x, y, z) | 0 ≤ y ≤ 1, 2
0 ≤ z ≤ y , √y ≤ x ≤ 1} , and consequently, the triple integral becomes
2
y=d z=v2 (y) x=u2 (y,z) y=1 z=x x=1
∫ ∫ ∫ f (x, y, z) dx dz dy = ∫ ∫ ∫ f (x, y, z) dx dz dy
y=c z=v1 (y) x=u1 (y,z) y=0 z=0 x=√y
Now assume that f (x, y, z) = xyz in each of the integrals. Then we have
14.5.8 https://math.libretexts.org/@go/page/138504
2
2 2 2
x=1 y=x z=y x=1 y=x 2 z=y
z ∣
∫ ∫ ∫ xyz dz dy dx = ∫ ∫ [xy ∣ ] dy dx
x=0 y=0 z=0 x=0 y=0
2 ∣
z=0
2
x=1 y=x 5
y
=∫ ∫ (x ) dy dx
x=0 y=0
2
2
x=1 y=x
6
y ∣
=∫ [x ∣ ] dx
x=0 12 ∣
y=0
x=1 x=1
13 14
x x ∣
=∫ dx = ∣
x=0
12 168 ∣
x=0
1
= ,
168
y=1 z=y
2
x=1 y=1 z=y
2 1
2
x ∣
∫ ∫ ∫ xyz dx dz dy = ∫ ∫ [yz ∣ ] dz dy
y=0 z=0 x=√y y=0 z=0 2 ∣
√y
2
y=1 z=y 2
yz y z
=∫ ∫ ( − ) dz dy
y=0 z=0
2 2
2
y=1 2 2 2 z=y
yz y z ∣
=∫ [ − ∣ ] dy
y=0
4 4 ∣
z=0
y=1 5 6
y y
=∫ ( − ) dy
y=0
4 4
y=1
6 7
y y ∣
= ( − )∣
24 28 ∣
y=0
1
= .
168
Exercise 14.5.4
Write five different iterated integrals equal to the given integral
z=4 y=4−z x=√y
∫ ∫ ∫ f (x, y, z) dx dy dz.
z=0 y=0 x=0
Hint
Follow the steps in the previous example, using the region E as {(x, y, z) | 0 ≤ z ≤ 4, 0 ≤ y ≤ 4 − z, 0 ≤ x ≤ √y} , and describe and sketch the
projections onto each of the three planes, five different times.
Answer
z=4 x=√4−z y=4−z y=4 z=4−y x=√y y=4 x=√y Z=4−y
2
x=2 y=4 z=4−y x=2 z=4−x y=4−z
14.5.9 https://math.libretexts.org/@go/page/138504
Figure 14.5.9 . Integrating a triple integral over a paraboloid.
Solution
The projection of the solid region E onto the xy-plane is the region bounded above by y = 4 and below by the parabola y = x as shown. 2
Figure 14.5.10. Cross section in the xy-plane of the paraboloid in Figure 14.5.9 .
Thus, we have
−−−−− −−−−−
2 2 2
E = {(x, y, z) | − 2 ≤ x ≤ 2, x ≤ y ≤ 4, −√ y − x ≤ z ≤ √ y − x }.
This expression is difficult to compute, so consider the projection of E onto the xz-plane. This is a circular disc x 2
+z
2
≤4 . So we obtain
2 2
x=2 y=4 z=√y−x x=2 z=√4−x y=4
− −−−−− − −−−−− − −−−−−
2 2 2 2 2 2
∭ √ x + z dV = ∫ ∫ ∫ √ x + z dz dy dx = ∫ ∫ ∫ √ x + z dy dz dx.
2 2 2 2 2
E x=−2 y=x z=−√y−x x=−2 z=−√4−x y=x +z
Here the order of integration changes from being first with respect to z then y and then x to being first with respect to y then to z and then to x. It will
soon be clear how this change can be beneficial for computation. We have
2 2
x=2 z=√4−x y=4 x=2 z=√4−x
− −−−−− − −−−−−
2 2 2 2 2 2
∫ ∫ ∫ √ x + z dy dz dx = ∫ ∫ (4 − x − z )√ x + z dz dx.
x=−2 z=√4−x2 y=x2 +z 2 x=−2 z=−√4−x2
Now use the polar substitution x = r cos θ, z = r sin θ , and dz dx = r dr dθ in the xz-plane. This is essentially the same thing as when we used
polar coordinates in the xy-plane, except we are replacing y by z . Consequently the limits of integration change and we have, by using r = x + z , 2 2 2
x=2 z=√4−x
2
θ=2π r=2 2π 2
3 5
− −−−−− 4r r ∣
2 2 2 2 2
∫ ∫ (4 − x − z )√ x + z dz dx = ∫ ∫ (4 − r )rr dr dθ = ∫ [ − ∣ ] dθ =
x=−2 z=−√4−x2 θ=0 r=0 0 3 5 ∣
0
2π
64 128π
∫ dθ =
0
15 15
If f (x, y, z) is integrable over a solid bounded region E with positive volume V (E), then the average value of the function is
14.5.10 https://math.libretexts.org/@go/page/138504
1
fave = ∭ f (x, y, z) dV .
V (E) E
V (E) = ∭ 1 dV .
E
The temperature at a point (x, y, z) of a solid E bounded by the coordinate planes and the plane x +y +z = 1 is T (x, y, z) = (xy + 8z + 20) °C .
Find the average temperature over the solid.
Solution
Use the theorem given above and the triple integral to find the numerator and the denominator. Then do the division. Notice that the plane
x + y + z = 1 has intercepts (1, 0, 0), (0, 1, 0),and (0, 0, 1). The region E looks like
E = {(x, y, z) | 0 ≤ x ≤ 1, 0 ≤ y ≤ 1 − x, 0 ≤ z ≤ 1 − x − y}.
Exercise 14.5.6
Find the average value of the function f (x, y, z) = xyz over the cube with sides of length 4 units in the first octant with one vertex at the origin and
edges parallel to the coordinate axes.
Hint
Follow the steps in the previous example.
Answer
fave = 8
Key Concepts
To compute a triple integral we use Fubini’s theorem, which states that if f (x, y, z) is continuous on a rectangular box B = [a, b] × [c, d] × [e, f ] , then
f d b
∭ f (x, y, z) dV = ∫ ∫ ∫ f (x, y, z) dx dy dz
B e c a
and is also equal to any of the other five possible orderings for the iterated triple integral.
To compute the volume of a general solid bounded region E we use the triple integral
V (E) = ∭ 1 dV .
E
Interchanging the order of the iterated integrals does not change the answer. As a matter of fact, interchanging the order of integration can help simplify
the computation.
To compute the average value of a function over a general three-dimensional region, we use
1
fave = ∭ f (x, y, z) dV .
V (E) E
Key Equations
Triple integral
14.5.11 https://math.libretexts.org/@go/page/138504
l m n
∗ ∗ ∗
lim ∑ ∑ ∑ f (x ,y ,z ) ΔxΔyΔz = ∭ f (x, y, z) dV
ijk ijk ijk
l,m,n→∞
i=1 j=1 B
k=1
Glossary
triple integral
the triple integral of a continuous function f (x, y, z) over a rectangular solid box B is the limit of a Riemann sum for a function of three variables, if this
limit exists
14.5: Triple Integrals in Rectangular Coordinates is shared under a not declared license and was authored, remixed, and/or curated by LibreTexts.
15.4: Triple Integrals by Edwin “Jed” Herman, Gilbert Strang is licensed CC BY-NC-SA 4.0. Original source: https://openstax.org/details/books/calculus-volume-1.
14.5.12 https://math.libretexts.org/@go/page/138504