# 14.1 Iterated Integrals and Area

In Chapter 13 we found that it was useful to differentiate functions of several variables with respect to one variable, while treating all the other variables as constants or coefficients. We can integrate functions of several variables in a similar way. For instance, if we are told that $f_{x}(x,y)=2xy$, we can treat $y$ as staying constant and integrate to obtain $f(x,y)$:

 $\displaystyle f(x,y)$ $\displaystyle=\int f_{x}(x,y)\operatorname{d}\!x$ $\displaystyle=\int 2xy\operatorname{d}\!x$ $\displaystyle=x^{2}y+C.$

Make a careful note about the constant of integration, $C$. This “constant” is something with a derivative of $0$ with respect to $x$, so it could be any expression that contains only constants and functions of $y$. For instance, if $f(x,y)=x^{2}y+\sin y+y^{3}+17$, then $f_{x}(x,y)=2xy$. To signify that $C$ is actually a function of $y$, we write:

 $f(x,y)=\int f_{x}(x,y)\operatorname{d}\!x=x^{2}y+C(y).$

Using this process we can even evaluate definite integrals.

###### Example 14.1.1 Integrating functions of more than one variable

Evaluate the integral $\displaystyle\int_{1}^{2y}2xy\operatorname{d}\!x$.

SolutionWe find the indefinite integral as before, then apply the Fundamental Theorem of Calculus to evaluate the definite integral:

 $\displaystyle\int_{1}^{2y}2xy\operatorname{d}\!x$ $\displaystyle=x^{2}y\Big{|}_{1}^{2y}$ $\displaystyle=(2y)^{2}y-(1)^{2}y$ $\displaystyle=4y^{3}-y.$

We can also integrate with respect to $y$. In general,

 $\int_{h_{1}(y)}^{h_{2}(y)}f_{x}(x,y)\operatorname{d}\!x=f(x,y)\Big{|}_{h_{1}(y% )}^{h_{2}(y)}=f\bigl{(}h_{2}(y),y\bigr{)}-f\bigl{(}h_{1}(y),y\bigr{)},$

and

 $\int_{g_{1}(x)}^{g_{2}(x)}f_{y}(x,y)\operatorname{d}\!y=f(x,y)\Big{|}_{g_{1}(x% )}^{g_{2}(x)}=f\bigl{(}x,g_{2}(x)\bigr{)}-f\bigl{(}x,g_{1}(x)\bigr{)}.$

Note that when integrating by $x$, the bounds do not depend on $x$, and the result is no longer a function of $x$. When integrating by $y$, the bounds do not depend on $y$, and the result is no longer a function of $y$. Another example will help us understand this.

###### Example 14.1.2 Integrating functions of more than one variable

Evaluate $\displaystyle\int_{1}^{x}\bigl{(}5x^{3}y^{-3}+6y^{2}\bigr{)}\operatorname{d}\!y$.

SolutionWe consider $x$ as staying constant and integrate with respect to $y$:

 $\displaystyle\int_{1}^{x}\bigl{(}5x^{3}y^{-3}+6y^{2}\bigr{)}\operatorname{d}\!y$ $\displaystyle=\left(\frac{5x^{3}y^{-2}}{-2}+\frac{6y^{3}}{3}\right)\Bigg{|}_{1% }^{x}$ $\displaystyle=\left(-\frac{5}{2}x^{3}x^{-2}+2x^{3}\right)-\left(-\frac{5}{2}x^% {3}+2\right)$ $\displaystyle=\frac{9}{2}x^{3}-\frac{5}{2}x-2.$

Note how the bounds of the integral are from $y=1$ to $y=x$ and that the final answer is a function of $x$.

In the previous example, we integrated a function with respect to $y$ and ended up with a function of $x$. We can integrate this as well. This process is known as iterated integration, or multiple integration.

###### Example 14.1.3 Integrating an integral

Evaluate $\displaystyle\int_{1}^{2}\left(\int_{1}^{x}\bigl{(}5x^{3}y^{-3}+6y^{2}\bigr{)}% \operatorname{d}\!y\right)\operatorname{d}\!x$.

SolutionWe follow a standard “order of operations” and perform the operations inside parentheses first (which is the integral evaluated in Example 14.1.2.)

 $\displaystyle\int_{1}^{2}\left(\int_{1}^{x}\bigl{(}5x^{3}y^{-3}+6y^{2}\bigr{)}% \operatorname{d}\!y\right)\operatorname{d}\!x$ $\displaystyle=\int_{1}^{2}\left(\left[\frac{5x^{3}y^{-2}}{-2}+\frac{6y^{3}}{3}% \right]\Bigg{|}_{1}^{x}\right)\operatorname{d}\!x$ $\displaystyle=\int_{1}^{2}\left(\frac{9}{2}x^{3}-\frac{5}{2}x-2\right)% \operatorname{d}\!x$ $\displaystyle=\left(\frac{9}{8}x^{4}-\frac{5}{4}x^{2}-2x\right)\Bigg{|}_{1}^{2}$ $\displaystyle=\frac{89}{8}.$

Note how the bounds of $x$ were $x=1$ to $x=2$ and the final result was a number.

The previous example showed how we could perform something called an iterated integral; we do not yet know why we would be interested in doing so nor what the result, such as the number $89/8$, means. Before we investigate these questions, we offer some definitions.

###### Definition 14.1.1 Iterated Integration

Iterated integration is the process of repeatedly integrating the results of previous integrations. Integrating one integral is denoted as follows.

Let $a$, $b$, $c$ and $d$ be numbers and let $g_{1}(x)$, $g_{2}(x)$, $h_{1}(y)$ and $h_{2}(y)$ be functions of $x$ and $y$, respectively. Then:

1. (a)

$\displaystyle\int_{c}^{d}\int_{h_{1}(y)}^{h_{2}(y)}f(x,y)\operatorname{d}\!x% \operatorname{d}\!y=\int_{c}^{d}\left(\int_{h_{1}(y)}^{h_{2}(y)}f(x,y)% \operatorname{d}\!x\right)\operatorname{d}\!y.$

2. (b)

$\displaystyle\int_{a}^{b}\int_{g_{1}(x)}^{g_{2}(x)}f(x,y)\operatorname{d}\!y% \operatorname{d}\!x=\int_{a}^{b}\left(\int_{g_{1}(x)}^{g_{2}(x)}f(x,y)% \operatorname{d}\!y\right)\operatorname{d}\!x.$

Again make note of the bounds of these iterated integrals.
With $\displaystyle\int_{c}^{d}\int_{h_{1}(y)}^{h_{2}(y)}f(x,y)\operatorname{d}\!x% \operatorname{d}\!y$, $x$ varies from $h_{1}(y)$ to $h_{2}(y)$, whereas $y$ varies from $c$ to $d$. That is, the bounds of $x$ are curves, the curves $x=h_{1}(y)$ and $x=h_{2}(y)$, whereas the bounds of $y$ are constants, $y=c$ and $y=d$. It is useful to remember that after integrating with respect to a variable, that variable is no longer present.

We now begin to investigate why we are interested in iterated integrals and what they mean.

## Area of a plane region

Consider the plane region $R$ bounded by $a\leq x\leq b$ and $g_{1}(x)\leq y\leq g_{2}(x)$, shown in Figure 14.1.1. We learned in Section 6.1 that the area of $R$ is given by

 $\int_{a}^{b}\bigl{(}g_{2}(x)-g_{1}(x)\bigr{)}\operatorname{d}\!x.$
margin: Figure 14.1.1: Calculating the area of a plane region $R$ with an iterated integral. Λ

We can view the expression $\bigl{(}g_{2}(x)-g_{1}(x)\bigr{)}$ as

 $\bigl{(}g_{2}(x)-g_{1}(x)\bigr{)}=\int_{g_{1}(x)}^{g_{2}(x)}1\operatorname{d}% \!y=\int_{g_{1}(x)}^{g_{2}(x)}\operatorname{d}\!y,$

meaning we can express the area of $R$ as an iterated integral:

 $\text{area of }R=\int_{a}^{b}\bigl{(}g_{2}(x)-g_{1}(x)\bigr{)}\operatorname{d}% \!x=\int_{a}^{b}\left(\int_{g_{1}(x)}^{g_{2}(x)}\operatorname{d}\!y\right)% \operatorname{d}\!x=\int_{a}^{b}\int_{g_{1}(x)}^{g_{2}(x)}\operatorname{d}\!y% \operatorname{d}\!x.$

In short: a certain iterated integral can be viewed as giving the area of a plane region.

A region $R$ could also be defined by $c\leq y\leq d$ and $h_{1}(y)\leq x\leq h_{2}(y)$, as shown in Figure 14.1.2. Using a process similar to that above, we have

 $\text{the area of }R=\int_{c}^{d}\int_{h_{1}(y)}^{h_{2}(y)}\operatorname{d}\!x% \operatorname{d}\!y.$
margin: Figure 14.1.2: Calculating the area of a plane region $R$ with an iterated integral. Λ

We state this formally in a theorem.

###### Theorem 14.1.1 Area of a plane region

(a) Let $R$ be a plane region bounded by $a\leq x\leq b$ and $g_{1}(x)\leq y\leq g_{2}(x)$, where $g_{1}$ and $g_{2}$ are continuous functions on $[a,b]$. The area $A$ of $R$ is $A=\int_{a}^{b}\int_{g_{1}(x)}^{g_{2}(x)}\operatorname{d}\!y\operatorname{d}\!x.$ (b) Let $R$ be a plane region bounded by $c\leq y\leq d$ and $h_{1}(y)\leq x\leq h_{2}(y)$, where $h_{1}$ and $h_{2}$ are continuous functions on $[c,d]$. The area $A$ of $R$ is $A=\int_{c}^{d}\int_{h_{1}(y)}^{h_{2}(y)}\operatorname{d}\!x\operatorname{d}\!y.$

The following examples should help us understand this theorem.

###### Example 14.1.4 Area of a rectangle

Find the area $A$ of the rectangle with corners $(-1,1)$ and $(3,3)$, as shown in Figure 14.1.3.

SolutionMultiple integration is obviously overkill in this situation, but we proceed to establish its use.

margin: Figure 14.1.3: Calculating the area of a rectangle with an iterated integral in Example 14.1.4. Λ

The region $R$ is bounded by $x=-1$, $x=3$, $y=1$ and $y=3$. Choosing to integrate with respect to $y$ first, we have

 $A=\int_{-1}^{3}\int_{1}^{3}1\operatorname{d}\!y\operatorname{d}\!x=\int_{-1}^{% 3}\left(y\ \Big{|}_{1}^{3}\right)\operatorname{d}\!x=\int_{-1}^{3}2% \operatorname{d}\!x=2x\Big{|}_{-1}^{3}=8.$

We could also integrate with respect to $x$ first, giving:

 $A=\int_{1}^{3}\int_{-1}^{3}1\operatorname{d}\!x\operatorname{d}\!y=\int_{1}^{3% }\left(x\ \Big{|}_{-1}^{3}\right)\operatorname{d}\!y=\int_{1}^{3}4% \operatorname{d}\!y=4y\Big{|}_{1}^{3}=8.$

Clearly there are simpler ways to find this area, but it is interesting to note that this method works.

###### Example 14.1.5 Area of a triangle

Find the area $A$ of the triangle with vertices at $(1,1)$, $(3,1)$ and $(5,5)$, as shown in Figure 14.1.4. margin: Figure 14.1.4: Calculating the area of a triangle with iterated integrals in Example 14.1.5. Λ

SolutionThe triangle is bounded by the lines as shown in the figure. Choosing to integrate with respect to $x$ first gives that $x$ is bounded by $x=y$ to $x=\frac{y+5}{2}$, while $y$ is bounded by $y=1$ to $y=5$. (Recall that since $x$-values increase from left to right, the leftmost curve, $x=y$, is the lower bound and the rightmost curve, $x=(y+5)/2$, is the upper bound.) The area is

 $\displaystyle A$ $\displaystyle=\int_{1}^{5}\int_{y}^{\frac{y+5}{2}}\operatorname{d}\!x% \operatorname{d}\!y$ $\displaystyle=\int_{1}^{5}\left(x\ \Big{|}_{y}^{\frac{y+5}{2}}\right)% \operatorname{d}\!y$ $\displaystyle=\int_{1}^{5}\left(-\frac{1}{2}y+\frac{5}{2}\right)\operatorname{% d}\!y$ $\displaystyle=\left(-\frac{1}{4}y^{2}+\frac{5}{2}y\right)\Big{|}_{1}^{5}$ $\displaystyle=4.$

We can also find the area by integrating with respect to $y$ first. In this situation, though, we have two functions that act as the lower bound for the region $R$, $y=1$ and $y=2x-5$. This requires us to use two iterated integrals. Note how the $x$-bounds are different for each integral:

 $\displaystyle A$ $\displaystyle=\int_{1}^{3}\int_{1}^{x}1\operatorname{d}\!y\operatorname{d}\!x$ $\displaystyle+\qquad\int_{3}^{5}\int_{2x-5}^{x}1\operatorname{d}\!y% \operatorname{d}\!x$ $\displaystyle=\int_{1}^{3}\bigl{(}y\bigr{)}\Big{|}_{1}^{x}\operatorname{d}\!x$ $\displaystyle+\qquad\int_{3}^{5}\bigl{(}y\bigr{)}\Big{|}_{2x-5}^{x}% \operatorname{d}\!x$ $\displaystyle=\int_{1}^{3}\bigl{(}x-1\bigr{)}\operatorname{d}\!x$ $\displaystyle+\qquad\int_{3}^{5}\bigl{(}-x+5\bigr{)}\operatorname{d}\!x$ $\displaystyle=2$ $\displaystyle+\qquad 2$ $\displaystyle=4.$

As expected, we get the same answer both ways. This equality will also be justified by Theorem 14.2.2 in the next section.

###### Example 14.1.6 Area of a plane region

Find the area of the region enclosed by $y=2x$ and $y=x^{2}$, as shown in Figure 14.1.5. margin: Figure 14.1.5: Calculating the area of a plane region with iterated integrals in Example 14.1.6. Λ

SolutionOnce again we’ll find the area of the region using both orders of integration.

Using $\operatorname{d}\!y\operatorname{d}\!x$:

 $\int_{0}^{2}\int_{x^{2}}^{2x}1\operatorname{d}\!y\operatorname{d}\!x=\int_{0}^% {2}(2x-x^{2})\operatorname{d}\!x=\bigl{(}x^{2}-\frac{1}{3}x^{3}\bigr{)}\Big{|}% _{0}^{2}=\frac{4}{3}.$

Using $\operatorname{d}\!x\operatorname{d}\!y$:

 $\int_{0}^{4}\int_{y/2}^{\sqrt{y}}1\operatorname{d}\!x\operatorname{d}\!y=\int_% {0}^{4}(\sqrt{y}-y/2)\operatorname{d}\!y=\left(\frac{2}{3}y^{3/2}-\frac{1}{4}y% ^{2}\right)\Big{|}_{0}^{4}=\frac{4}{3}.$

## Changing Order of Integration

In each of the previous examples, we have been given a region $R$ and found the bounds needed to find the area of $R$ using both orders of integration. We integrated using both orders of integration to demonstrate their equality.

We now approach the skill of describing a region using both orders of integration from a different perspective. Instead of starting with a region and creating iterated integrals, we will start with an iterated integral and rewrite it in the other integration order. To do so, we’ll need to understand the region over which we are integrating.

The simplest of all cases is when both integrals are bound by constants. The region described by these bounds is a rectangle (see Example 14.1.4), and so:

 $\int_{a}^{b}\int_{c}^{d}1\operatorname{d}\!y\operatorname{d}\!x=\int_{c}^{d}% \int_{a}^{b}1\operatorname{d}\!x\operatorname{d}\!y.$

When the inner integral’s bounds are not constants, it is generally very useful to sketch the bounds to determine what the region we are integrating over looks like. From the sketch we can then rewrite the integral with the other order of integration.

Examples will help us develop this skill.

###### Example 14.1.7 Changing the order of integration

Rewrite the iterated integral $\displaystyle\int_{0}^{6}\int_{0}^{x/3}1\operatorname{d}\!y\operatorname{d}\!x$ with the order of integration $\operatorname{d}\!x\operatorname{d}\!y$.

SolutionWe need to use the bounds of integration to determine the region we are integrating over.

The bounds tell us that $y$ is bounded by $0$ and $x/3$; $x$ is bounded by 0 and 6. We plot these four curves: $y=0$, $y=x/3$, $x=0$ and $x=6$ to find the region described by the bounds. Figure 14.1.6 shows these curves, indicating that $R$ is a triangle.

margin: Figure 14.1.6: Sketching the region $R$ described by the iterated integral in Example 14.1.7. Λ

To change the order of integration, we need to consider the curves that bound the $x$-values. We see that the lower bound is $x=3y$ and the upper bound is $x=6$. The bounds on $y$ are $0$ to $2$. Thus we can rewrite the integral as $\displaystyle\int_{0}^{2}\int_{3y}^{6}1\operatorname{d}\!x\operatorname{d}\!y$.

###### Example 14.1.8 Changing the order of integration

Change the order of integration of $\displaystyle\int_{0}^{4}\int_{y^{2}/4}^{(y+4)/2}1\operatorname{d}\!x% \operatorname{d}\!y$.

SolutionWe sketch the region described by the bounds to help us change the integration order. We see $x$ is bounded below and above (i.e., to the left and right) by $x=y^{2}/4$ and $x=(y+4)/2$ respectively, and $y$ is bounded between 0 and 4. Graphing the previous curves, we find the region $R$ to be that shown in Figure 14.1.7.

margin: Figure 14.1.7: Drawing the region determined by the bounds of integration in Example 14.1.8. Λ

To change the order of integration, we need to establish curves that bound $y$. The figure makes it clear that there are two lower bounds for $y$: $y=0$ on $0\leq x\leq 2$, and $y=2x-4$ on $2\leq x\leq 4$. Thus we need two double integrals. The upper bound for each is $y=2\sqrt{x}$. Thus we have

 $\int_{0}^{4}\int_{y^{2}/4}^{(y+4)/2}1\operatorname{d}\!x\operatorname{d}\!y=% \int_{0}^{2}\int_{0}^{2\sqrt{x}}1\operatorname{d}\!y\operatorname{d}\!x+\int_{% 2}^{4}\int_{2x-4}^{2\sqrt{x}}1\operatorname{d}\!y\operatorname{d}\!x.$

This section has introduced a new concept, the iterated integral. We developed one application for iterated integration: area between curves. However, this is not new, for we already know how to find areas bounded by curves.

In the next section we apply iterated integration to solve problems we currently do not know how to handle. The “real” goal of this section was not to learn a new way of computing area. Rather, our goal was to learn how to define a region in the plane using the bounds of an iterated integral. That skill is very important in the following sections.

## Exercises 14.1

### Terms and Concepts

1. 1.

When integrating $f_{x}(x,y)$ with respect to $x$, the constant of integration $C$ is really which: $C(x)$ or $C(y)$? What does this mean?

2. 2.

Integrating an integral is called                          .

3. 3.

When evaluating an iterated integral, we integrate from              to             , then from              to             .

4. 4.
One understanding of an iterated integral is that $\displaystyle\int_{a}^{b}\int_{g_{1}(x)}^{g_{2}(x)}\operatorname{d}\!y% \operatorname{d}\!x$ gives the              of a plane region.

### Problems

In Exercises 5–10., evaluate the integral and subsequent iterated integral.

1. 5.
(a) $\displaystyle\int_{2}^{5}\big{(}6x^{2}+4xy-3y^{2}\big{)}\operatorname{d}\!y$ (b) $\displaystyle\int_{-3}^{-2}\int_{2}^{5}\big{(}6x^{2}+4xy-3y^{2}\big{)}% \operatorname{d}\!y\operatorname{d}\!x$
2. 6.
(a) $\displaystyle\int_{0}^{\pi}\big{(}2x\cos y+\sin x\big{)}\operatorname{d}\!x$ (b) $\displaystyle\int_{0}^{\pi/2}\int_{0}^{\pi}\big{(}2x\cos y+\sin x\big{)}% \operatorname{d}\!x\operatorname{d}\!y$
3. 7.
(a) $\displaystyle\int_{1}^{x}\big{(}x^{2}y-y+2\big{)}\operatorname{d}\!y$ (b) $\displaystyle\int_{0}^{2}\int_{1}^{x}\big{(}x^{2}y-y+2\big{)}\operatorname{d}% \!y\operatorname{d}\!x$
4. 8.
(a) $\displaystyle\int_{y}^{y^{2}}\big{(}x-y\big{)}\operatorname{d}\!x$ (b) $\displaystyle\int_{-1}^{1}\int_{y}^{y^{2}}\big{(}x-y\big{)}\operatorname{d}\!x% \operatorname{d}\!y$
5. 9.
(a) $\displaystyle\int_{0}^{y}\big{(}\cos x\sin y\big{)}\operatorname{d}\!x$ (b) $\displaystyle\int_{0}^{\pi}\int_{0}^{y}\big{(}\cos x\sin y\big{)}\operatorname% {d}\!x\operatorname{d}\!y$
6. 10.
(a) $\displaystyle\int_{0}^{x}\left(\frac{1}{1+x^{2}}\right)\operatorname{d}\!y$ (b) $\displaystyle\int_{1}^{2}\int_{0}^{x}\left(\frac{1}{1+x^{2}}\right)% \operatorname{d}\!y\operatorname{d}\!x$

In Exercises 11–16., a graph of a planar region $R$ is given. Give the iterated integrals, with both orders of integration $\operatorname{d}\!y\operatorname{d}\!x$ and $\operatorname{d}\!x\operatorname{d}\!y$, that give the area of $R$. Evaluate one of the iterated integrals to find the area.

1. 11.
2. 12.
3. 13.
4. 14.
5. 15.
6. 16.

In Exercises 17–22., iterated integrals are given that compute the area of a region $R$ in the $x$-$y$ plane. Sketch the region $R$, and give the iterated integral(s) that give the area of $R$ with the opposite order of integration.

1. 17.

$\displaystyle\int_{-2}^{2}\int_{0}^{4-x^{2}}\operatorname{d}\!y\operatorname{d% }\!x$

2. 18.

$\displaystyle\int_{0}^{1}\int_{5-5x}^{5-5x^{2}}\operatorname{d}\!y% \operatorname{d}\!x$

3. 19.

$\displaystyle\int_{-2}^{2}\int_{0}^{2\sqrt{4-y^{2}}}\operatorname{d}\!x% \operatorname{d}\!y$

4. 20.

$\displaystyle\int_{-3}^{3}\int_{-\sqrt{9-x^{2}}}^{\sqrt{9-x^{2}}}\operatorname% {d}\!y\operatorname{d}\!x$

5. 21.

$\displaystyle\int_{0}^{1}\int_{-\sqrt{y}}^{\sqrt{y}}\operatorname{d}\!x% \operatorname{d}\!y+\int_{1}^{4}\int_{y-2}^{\sqrt{y}}\operatorname{d}\!x% \operatorname{d}\!y$

6. 22.

$\displaystyle\int_{-1}^{1}\int_{(x-1)/2}^{(1-x)/2}\operatorname{d}\!y% \operatorname{d}\!x$ 