15
Multiple Integration
15.1 Volume and Average Height
Consider a surface f (x, y); you might temporarily think of this as representing physical
topography—a hilly landscape, perhaps. What is the average height of the surface (or
average altitude of the landscape) over some region?
As with most such problems, we start by thinking about how we might approximate
the answer. Suppose the region is a rectangle, [a, b] × [c, d]. We can divide the rectangle
into a grid, m subdivisions in one direction and n in the other, as indicated in figure 15.1.1.
We pick x values x0 , x1 ,. . . , xm−1 in each subdivision in the x direction, and similarly in
the y direction. At each of the points (xi , yj ) in one of the smaller rectangles in the grid,
we compute the height of the surface: f (xi , yj ). Now the average of these heights should
be (depending on the fineness of the grid) close to the average height of the surface:
f (x0 , y0 ) + f (x1 , y0 ) + · · · + f (x0 , y1 ) + f (x1 , y1 ) + · · · + f (xm−1 , yn−1 )
.
mn
As both m and n go to infinity, we expect this approximation to converge to a fixed
value, the actual average height of the surface. For reasonably nice functions this does
indeed happen.
385
386 Chapter 15 Multiple Integration
d
y3
∆y
y2
y1
c
∆x
a x1 x2 x3 x4 x5 b
Figure 15.1.1 A rectangular subdivision of [a, b] × [c, d].
Using sigma notation, we can rewrite the approximation:
n−1 m−1 n−1
X m−1
1 XX 1 X b−ad−c
f (xj , yi ) = f (xj , yi )
mn i=0 j=0 (b − a)(d − c) i=0 j=0 m n
n−1
X m−1
1 X
= f (xj , yi )∆x∆y.
(b − a)(d − c) i=0 j=0
The two parts of this product have useful meaning: (b − a)(d − c) is of course the area of
the rectangle, and the double sum adds up mn terms of the form f (xj , yi )∆x∆y, which is
the height of the surface at a point times the area of one of the small rectangles into which
we have divided the large rectangle. In short, each term f (xj , yi )∆x∆y is the volume of a
tall, thin, rectangular box, and is approximately the volume under the surface and above
one of the small rectangles; see figure 15.1.2. When we add all of these up, we get an
approximation to the volume under the surface and above the rectangle R = [a, b] × [c, d].
When we take the limit as m and n go to infinity, the double sum becomes the actual
volume under the surface, which we divide by (b − a)(d − c) to get the average height.
Double sums like this come up in many applications, so in a way it is the most impor-
tant part of this example; dividing by (b − a)(d − c) is a simple extra step that allows the
computation of an average. As we did in the single variable case, we introduce a special
notation for the limit of such a double sum:
n−1
X m−1
X ZZ ZZ
lim f (xj , yi )∆x∆y = f (x, y) dx dy = f (x, y) dA,
m,n→∞
i=0 j=0 R R
the double integral of f over the region R. The notation dA indicates a small bit of
area, without specifying any particular order for the variables x and y; it is shorter and
15.1 Volume and Average Height 387
Figure 15.1.2 Approximating the volume under a surface.
more “generic” than writing dx dy. The average height of the surface in this notation is
1
ZZ
f (x, y) dA.
(b − a)(d − c)
R
The next question, of course, is: How do we compute these double integrals? You
might think that we will need some two-dimensional version of the Fundamental Theorem
of Calculus, but as it turns out we can get away with just the single variable version,
applied twice.
Going back to the double sum, we can rewrite it to emphasize a particular order in
which we want to add the terms:
X m−1
n−1 X
f (xj , yi )∆x ∆y.
i=0 j=0
In the sum in parentheses, only the value of xj is changing; yi is temporarily constant. As
m goes to infinity, this sum has the right form to turn into an integral:
m−1
X Z b
lim f (xj , yi )∆x = f (x, yi) dx.
m→∞ a
j=0
So after we take the limit as m goes to infinity, the sum is
n−1
!
X Z b
f (x, yi ) dx ∆y.
i=0 a
388 Chapter 15 Multiple Integration
Of course, for different values of yi this integral has different values; in other words, it is
really a function applied to yi :
Z b
G(y) = f (x, y) dx.
a
If we substitute back into the sum we get
n−1
X
G(yi )∆y.
i=0
This sum has a nice interpretation. The value G(yi ) is the area of a cross section of the
region under the surface f (x, y), namely, when y = yi . The quantity G(yi )∆y can be
interpreted as the volume of a solid with face area G(yi ) and thickness ∆y. Think of the
surface f (x, y) as the top of a loaf of sliced bread. Each slice has a cross-sectional area and
a thickness; G(yi )∆y corresponds to the volume of a single slice of bread. Adding these
up approximates the total volume of the loaf. (This is very similar to the technique we
used to compute volumes in section 9.3, except that there we need the cross-sections to be
in some way “the same”.) Figure 15.1.3 shows this “sliced loaf” approximation using the
same surface as shown in figure 15.1.2. Nicely enough, this sum looks just like the sort of
sum that turns into an integral, namely,
n−1
X Z d
lim G(yi )∆y = G(y) dy
n→∞ c
i=0
Z d Z b
= f (x, y) dx dy.
c a
Let’s be clear about what this means: we first will compute the inner integral, temporarily
treating y as a constant. We will do this by finding an anti-derivative with respect to
x, then substituting x = a and x = b and subtracting, as usual. The result will be an
expression with no x variable but some occurrences of y. Then the outer integral will be
an ordinary one-variable problem, with y as the variable.
EXAMPLE 15.1.1 Figure 15.1.2 shows the function sin(xy)+6/5 on [0.5, 3.5]×[0.5, 2.5].
The volume under this surface is
Z 2.5 Z 3.5
6
sin(xy) + dx dy.
0.5 0.5 5
The inner integral is
Z 3.5 3.5
6 − cos(xy) 6x − cos(3.5y) cos(0.5y) 18
sin(xy) + dx = + = + + .
0.5 5 y 5 0.5 y y 5
Unfortunately, this gives a function for which we can’t find a simple anti-derivative. To
complete the problem we could use Sage or similar software to approximate the integral.
15.1 Volume and Average Height 389
Figure 15.1.3 Approximating the volume under a surface with slices. (AP)
Doing this gives a volume of approximately 8.84, so the average height is approximately
8.84/6 ≈ 1.47.
Because addition and multiplication are commutative and associative, we can rewrite
the original double sum:
n−1
X m−1
X m−1
X n−1
X
f (xj , yi )∆x∆y = f (xj , yi )∆y∆x.
i=0 j=0 j=0 i=0
Now if we repeat the development above, the inner sum turns into an integral:
n−1
X Z d
lim f (xj , yi )∆y = f (xj , y) dy,
n→∞ c
i=0
and then the outer sum turns into an integral:
m−1
!
X Z d Z b Z d
lim f (xj , y) dy ∆x = f (x, y) dy dx.
m→∞ c a c
j=0
In other words, we can compute the integrals in either order, first with respect to x then
y, or vice versa. Thinking of the loaf of bread, this corresponds to slicing the loaf in a
direction perpendicular to the first.
We haven’t really proved that the value of a double integral is equal to the value of the
corresponding two single integrals in either order of integration, but provided the function
is reasonably nice, this is true; the result is called Fubini’s Theorem.
390 Chapter 15 Multiple Integration
ZZ
EXAMPLE 15.1.2 We compute 1 + (x − 1)2 + 4y 2 dA, where R = [0, 3] × [0, 2], in
R
two ways.
First,
3 2 3 2
4
Z Z Z
2 2
1 + (x − 1) + 4y dy dx = y + (x − 1)2 y + y 3 dx
0 0 0 3 0
3
32
Z
= 2 + 2(x − 1)2 + dx
0 3
3
2 32
= 2x + (x − 1)3 + x
3 3 0
2 32 2
=6+ ·8+ · 3 − (0 − 1 · + 0)
3 3 3
= 44.
In the other order:
2 3 2 3
(x − 1)3
Z Z Z
2 2
1 + (x − 1) + 4y dx dy = x+ + 4y 2 x dy
0 0 0 3 0
2
8 1
Z
= 3+ + 12y 2 + dy
0 3 3
2
8 1
= 3y + y + 4y 3 + y
3 3 0
16 2
=6+ + 32 +
3 3
= 44.
In this example there is no particular reason to favor one direction over the other;
in some cases, one direction might be much easier than the other, so it’s usually worth
considering the two different possibilities.
Frequently we will be interested in a region that is not simply a rectangle. Let’s
compute the volume under the surface x + 2y 2 above the region described by 0 ≤ x ≤ 1
and 0 ≤ y ≤ x2 , shown in figure 15.1.4.
In principle there is nothing more difficult about this problem. If we imagine the three-
dimensional region under the surface and above the parabolic region as an oddly shaped
loaf of bread, we can still slice it up, approximate the volume of each slice, and add these
15.1 Volume and Average Height 391
0
0 1
Figure 15.1.4 A parabolic region of integration.
volumes up. For example, if we slice perpendicular to the x axis at xi , the thickness of a
slice will be ∆x and the area of the slice will be
Z x2i
xi + 2y 2 dy.
0
When we add these up and take the limit as ∆x goes to 0, we get the double integral
1 x2 1 x2
2
Z Z Z
x + 2y 2 dy dx = xy + y 3 dx
0 0 0 3 0
1
2
Z
= x3 + x6 dx
0 3
1
x4 2
= + x7
4 21 0
1 2 29
= + = .
4 21 84
We could just as well slice the solid perpendicular to the y axis, in which case we get
1 1 1 1
x2
Z Z Z
2
x + 2y dx dy = + 2y 2 x dy
0
√
y 0 2 √
y
1
1 y √
Z
= + 2y 2 − − 2y 2 y dy
0 2 2
1
y 2 3 y2 4
= + y − − y 7/2
2 3 4 7 0
1 2 1 4 29
= + − − = .
2 3 4 7 84
What is the average height of the surface over this region? As before, it is the volume
divided by the area of the base, but now we need to use integration to compute the area
392 Chapter 15 Multiple Integration
of the base, since it is not a simple rectangle. The area is
1
1
Z
x2 dx = ,
0 3
so the average height is 29/28.
p
EXAMPLE 15.1.3 Find the volume under the surface z = 1 − x2 and above the
triangle formed by y = x, x = 1, and the x-axis.
Let’s consider the two possible ways to set this up:
Z 1 Z x p Z 1 Z 1 p
1 − x2 dy dx or 1 − x2 dx dy.
0 0 0 y
Which appears easier? In the first, the inner integral is easy, because we need an anti-
p
derivative with respect to y, and the entire integrand 1 − x2 is constant with respect to
y. Of course, the outer integral may be more difficult. In the second, the inner integral
is mildly unpleasant—a trig substitution. So let’s try the first one, since the first step is
easy, and see where that leaves us.
Z 1 Z x p Z 1 p x
Z 1 p
2
1 − x dy dx = y 1 − x2 dx = x 1 − x2 dx.
0 0 0 0 0
This is quite easy, since the substitution u = 1 − x2 works:
1 √ 1 1
Z p Z
x 1− x2 dx = − u du = − u3/2 = − (1 − x2 )3/2 .
2 3 3
Then
1 1
1 1
Z p
x 1 − x2 dx = − (1 − x2 )3/2 = .
0 3 0 3
This is a good example of how the order of integration can affect the complexity of the
problem. In this case it is possible to do the other order, but it is a bit messier. In
some cases one order may lead to a very difficult or impossible integral; it’s usually worth
considering both possibilities before going very far.
15.1 Volume and Average Height 393
Exercises 15.1.
Z 2 Z 4
1. Compute 1 + x dy dx. ⇒
0 0
Z 1 Z 2
2. Compute x + y dy dx. ⇒
−1 0
Z 2Z y
3. Compute xy dx dy. ⇒
1 0
√
Z 1 Z y
4. Compute dx dy. ⇒
0 y 2 /2
2 x
x2
Z Z
5. Compute dy dx. ⇒
1 1 y2
Z 1 Z x2
y
6. Compute dy dx. ⇒
0 0 ex
Z √π/2 Z x2
7. Compute x cos y dy dx. ⇒
0 0
Z π/2 Z cos θ
8. Compute r 2 (cos θ − r) dr dθ. ⇒
0 0
Z 1 Z 1 p
9. Compute: x3 + 1 dx dy. ⇒
√
0 y
Z 1Z 1
10. Compute: y sin(x2 ) dx dy. ⇒
0 y2
Z 1 Z 1 p
11. Compute: x 1 + y2 dy dx ⇒
0 x2
Z 1 Z y
2
12. Compute: √ dx dy ⇒
0 0 1 − x2
Z 1 Z 3
2
13. Compute: ex dx dy ⇒
0 3y
Z 1 Z 1−x2
√
14. Compute x2 − y dy dx. ⇒
−1 0
Z √ 2/2 Z √1−2x2
15. Compute √ x dy dx. ⇒
0 − 1−2x2
ZZ
16. Evaluate x2 dA over the region in the first quadrant bounded by the hyperbola xy = 16
and the lines y = x, y = 0, and x = 8. ⇒
17. Find the volume below z = 1 − y above the region −1 ≤ x ≤ 1, 0 ≤ y ≤ 1 − x2 . ⇒
18. Find the volume bounded by z = x2 + y2 and z = 4. ⇒
19. Find the volume in the first octant bounded by y2 = 4 − x and y = 2z. ⇒
20. Find the volume in the first octant bounded by y2 = 4x, 2x + y = 4, z = y, and y = 0. ⇒