Skip to main content
Logo image

APEX Calculus

Section 14.1 Iterated Integrals and Area

In Section 13.3 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\text{,}\) we can treat \(y\) as staying constant and integrate to obtain \(f(x,y)\text{:}\)
\begin{align*} f(x,y) \amp = \int f_x(x,y)\, dx\\ \amp = \int 2xy\, dx\\ \amp = x^2y + C\text{.} \end{align*}
Make a careful note about the constant of integration, \(C\text{.}\) This “constant” is something with a derivative of \(0\) with respect to \(x\text{,}\) so it could be any expression that contains only constants and functions of \(y\text{.}\) For instance, if \(f(x,y) = x^2y+ \sin(y) + y^3 + 17\text{,}\) then \(f_x(x,y) = 2xy\text{.}\) To signify that \(C\) is actually a function of \(y\text{,}\) we write:
\begin{equation*} f(x,y) = \int f_x(x,y)\, dx = x^2y+C(y)\text{.} \end{equation*}
Using this process we can even evaluate definite integrals.

Subsection 14.1.1 Iterated integrals

Example 14.1.1. Integrating functions of more than one variable.

Evaluate the integral \(\ds \int_1^{2y} 2xy\, dx\text{.}\)
Solution.
We find the indefinite integral as before, then apply the Fundamental Theorem of Calculus to evaluate the definite integral:
\begin{align*} \int_1^{2y} 2xy\, dx \amp = x^2y\Big|_1^{2y}\\ \amp = (2y)^2y - (1)^2y\\ \amp = 4y^3-y\text{.} \end{align*}
We can also integrate with respect to \(y\text{.}\) In general,
\begin{equation*} \int_{h_1(y)}^{h_2(y)} f_x(x,y)\, dx = f(x,y)\Big|_{h_1(y)}^{h_2(y)} = f\big(h_2(y),y\big)-f\big(h_1(y),y\big)\text{,} \end{equation*}
and
\begin{equation*} \int_{g_1(x)}^{g_2(x)} f_y(x,y)\, dy = f(x,y)\Big|_{g_1(x)}^{g_2(x)} = f\big(x,g_2(x)\big)-f\big(x,g_1(x)\big)\text{.} \end{equation*}
Note that when integrating with respect to \(x\text{,}\) the bounds are functions of \(y\) (of the form \(x=h_1(y)\) and \(x=h_2(y)\)) and the final result is also a function of \(y\text{.}\) When integrating with respect to \(y\text{,}\) the bounds are functions of \(x\) (of the form \(y=g_1(x)\) and \(y=g_2(x)\)) and the final result is a function of \(x\text{.}\) Another example will help us understand this.

Example 14.1.2. Integrating functions of more than one variable.

Evaluate \(\ds \int_1^x\big(5x^3y^{-3}+6y^2\big)\, dy\text{.}\)
Solution.
We consider \(x\) as staying constant and integrate with respect to \(y\text{:}\)
\begin{align*} \int_1^x\big(5x^3y^{-3}+6y^2\big)\, dy \amp = \left(\frac{5x^3y^{-2}}{-2}+\frac{6y^3}{3}\right)\Bigg|_1^x\\ \amp = \left(-\frac52x^3x^{-2}+2x^3\right) - \left(-\frac52x^3+2\right)\\ \amp = \frac92x^3-\frac52x-2\text{.} \end{align*}
Note how the bounds of the integral are from \(y=1\) to \(y=x\) and that the final answer is a function of \(x\text{.}\)
In the previous example, we integrated a function with respect to \(y\) and ended up with a function of \(x\text{.}\) We can integrate this as well. This process is known as iterated integration, or multiple integration.

Example 14.1.3. Evaluating an integral.

Evaluate \(\ds \int_1^2\left(\int_1^x\big(5x^3y^{-3}+6y^2\big)\, dy\right)\, dx\text{.}\)
Solution.
We follow a standard “order of operations” and perform the operations inside parentheses first (which is the integral evaluated in Example 14.1.2.)
\begin{align*} \int_1^2\left(\int_1^x\big(5x^3y^{-3}+6y^2\big)\, dy\right)\, dx \amp = \int_1^2 \left(\left[\frac{5x^3y^{-2}}{-2}+\frac{6y^3}{3}\right]\Bigg|_1^x\right)\, dx\\ \amp = \int_1^2 \left(\frac92x^3-\frac52x-2\right)\, dx\\ \amp = \left(\frac98x^4-\frac54x^2-2x\right)\Bigg|_1^2\\ \amp = \frac{89}8\text{.} \end{align*}
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\text{,}\) means. Before we investigate these questions, we offer some definitions.

Definition 14.1.4. Iterated Integration.

Iterated integration is the process of repeatedly integrating the results of previous integrations. Evaulating one integral is denoted as follows.
Let \(a\text{,}\) \(b\text{,}\) \(c\) and \(d\) be numbers and let \(g_1(x)\text{,}\) \(g_2(x)\text{,}\) \(h_1(y)\) and \(h_2(y)\) be functions of \(x\) and \(y\text{,}\) respectively. Then:
  1. \(\ds \int_c^d\int_{h_1(y)}^{h_2(y)} f(x,y)\, dx\, dy = \int_c^d\left(\int_{h_1(y)}^{h_2(y)} f(x,y)\, dx\right) dy\text{.}\)
  2. \(\ds \int_a^b\int_{g_1(x)}^{g_2(x)} f(x,y)\, dy\, dx = \int_a^b\left(\int_{g_1(x)}^{g_2(x)} f(x,y)\, dy\right) dx\text{.}\)
Again make note of the bounds of these iterated integrals.
With \(\ds \int_c^d\int_{h_1(y)}^{h_2(y)} f(x,y)\, dx\, dy\text{,}\) \(x\) varies from \(h_1(y)\) to \(h_2(y)\text{,}\) whereas \(y\) varies from \(c\) to \(d\text{.}\) That is, the bounds of \(x\) are curves, the curves \(x=h_1(y)\) and \(x=h_2(y)\text{,}\) whereas the bounds of \(y\) are constants, \(y=c\) and \(y=d\text{.}\) It is useful to remember that when setting up and evaluating such iterated integrals, we integrate “from curve to curve, then from point to point.”
We now begin to investigate why we are interested in iterated integrals and what they mean.

Subsection 14.1.2 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)\text{,}\) shown in Figure 14.1.5. We learned in Section 7.1 that the area of \(R\) is given by
\begin{equation*} \int_a^b \big(g_2(x)-g_1(x)\big)\, dx\text{.} \end{equation*}
A region in the first quadrant is bounded above and below by graphs, and left and right by vertical lines.
Two graphs are plotted in the first quadrant of the plane. The graph \(y=g_1(x)\) lies entirely below the graph \(y=g_2(x)\text{.}\) There are also two vertical lines: \(x=a\) on the left, and \(x=b\) on the right. Together, the two graphs and two lines bound a region in the plane, labeled \(R\text{.}\)
Figure 14.1.5. Calculating the area of a plane region \(R\) with an iterated integral
We can view the expression \(\big(g_2(x)-g_1(x)\big)\) as
\begin{equation*} \big(g_2(x)-g_1(x)\big) = \int_{g_1(x)}^{g_2(x)} 1\, dy =\int_{g_1(x)}^{g_2(x)} \, dy\text{,} \end{equation*}
meaning we can express the area of \(R\) as an iterated integral:
\begin{equation*} \text{ area of } R = \int_a^b \big(g_2(x)-g_1(x)\big)\, dx = \int_a^b\left(\int_{g_1(x)}^{g_2(x)} \, dy\right) dx =\int_a^b\int_{g_1(x)}^{g_2(x)} \, dy\, dx\text{.} \end{equation*}
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)\text{,}\) as shown in Figure 14.1.6. Using a process similar to that above, we have
\begin{equation*} \text{ the area of } R = \int_c^d\int_{h_1(y)}^{h_2(y)} \, dx\, dy\text{.} \end{equation*}
A region in the first quadrant is bounded left and right by graphs, and above and below by horizontal lines.
Two curves are plotted in the first quadrant of the plane. Both curves are graphs, but with \(x\) as a function of \(y\text{.}\) The graph \(x=h_1(y)\) lies entirely to the left of the graph \(x=h_2(y)\text{.}\) There are also two horizontal lines: \(y=c\) at the bottom, and \(y=d\) at the top. Together, the two graphs and two lines bound a region in the plane, labeled \(R\text{.}\)
Figure 14.1.6. Calculating the area of a plane region \(R\) with an iterated integral
We state this formally in a theorem.
The following examples should help us understand this theorem.

Example 14.1.8. Area of a rectangle.

Find the area \(A\) of the rectangle with corners \((-1,1)\) and \((3,3)\text{,}\) as shown in Figure 14.1.9.
A rectangle in the plane, spanning x values from -1 to 3, and y values from 1 to 3.
A rectangle, labeled \(R\text{,}\) is plotted in the \(xy\) plane. It is defined by the inequalities \(-1\leq x\leq 3\) and \(1\leq y\leq 3\text{.}\)
Figure 14.1.9. Calculating the area of a rectangle with an iterated integral in Example 14.1.8
Solution.
Multiple integration is obviously overkill in this situation, but we proceed to establish its use.
The region \(R\) is bounded by \(x=-1\text{,}\) \(x=3\text{,}\) \(y=1\) and \(y=3\text{.}\) Choosing to integrate with respect to \(y\) first, we have
\begin{equation*} A = \int_{-1}^3\int_1^3 1\, dy\, dx = \int_{-1}^3 \left(y\, \Big|_1^3\right)\, dx = \int_{-1}^3 2\, dx = 2x\Big|_{-1}^3=8\text{.} \end{equation*}
We could also integrate with respect to \(x\) first, giving:
\begin{equation*} A = \int_1^3\int_{-1}^3 1\, dx \, dy =\int_1^3 \left(x\, \Big|_{-1}^3\right)\, dy = \int_1^3 4\, dy = 4y\Big|_1^3 = 8\text{.} \end{equation*}
Clearly there are simpler ways to find this area, but it is interesting to note that this method works.

Example 14.1.10. Area of a triangle.

Find the area \(A\) of the triangle with vertices at \((1,1)\text{,}\) \((3,1)\) and \((5,5)\text{,}\) as shown in Figure 14.1.11.
An obtuse triangle in the plane. The base is horizontal, and the other sides are lines with positive slope.
The image shows a triangle in the first quadrant. It is an obtuse triangle, with a horizontal base. The base lies along the line \(y=1\text{,}\) for \(1\leq x\leq 3\text{.}\) The other two sides of triangle are lines with positive slope: the line \(y=x\text{,}\) from the point \((1,1)\) to the point \((5,5)\text{,}\) and the line \(y=2x-5\text{,}\) from the point \((1,1)\) to the point \((5,5)\text{.}\)
Note that the upper vertex lies to the right of the right-most vertex at the bottom. This means that an attempt to integrate first with respect to \(y\) will require dividing the triangle into two regions.
Figure 14.1.11. Calculating the area of a triangle with iterated integrals in Example 14.1.10
Solution.
The 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\text{,}\) while \(y\) is bounded by \(y=1\) to \(y=5\text{.}\) (Recall that since \(x\)-values increase from left to right, the leftmost curve, \(x=y\text{,}\) is the lower bound and the rightmost curve, \(x=(y+5)/2\text{,}\) is the upper bound.) The area is
\begin{align*} A \amp = \int_1^5\int_{y}^{\frac{y+5}2}\, dx\, dy\\ \amp = \int_1^5\left(x\, \Big|_y^{\frac{y+5}2}\right)\, dy\\ \amp = \int_1^5 \left(-\frac12y+\frac52\right)\, dy\\ \amp = \left(-\frac14y^2+\frac52y\right)\Big|_1^5\\ \amp =4\text{.} \end{align*}
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\text{,}\) \(y=1\) and \(y=2x-5\text{.}\) This requires us to use two iterated integrals. Note how the \(x\)-bounds are different for each integral:
\begin{align*} A \amp = \int_1^3\int_1^x 1\, dy \, dx \amp +\amp \amp \amp \int_3^5\int_{2x-5}^x1\, dy\, dx\\ \amp = \int_1^3\big(y\big)\Big|_1^x\, dx \amp + \amp \amp \amp \int_3^5\big(y\big)\Big|_{2x-5}^x\, dx\\ \amp = \int_1^3\big(x-1\big)\, dx \amp + \amp \amp \amp \int_3^5\big(-x+5\big)\, dx\\ \amp = 2 \amp + \amp \amp \amp 2\\ \amp =4\text{.} \end{align*}
As expected, we get the same answer both ways.

Example 14.1.12. Area of a plane region.

Find the area of the region enclosed by \(y=2x\) and \(y=x^2\text{,}\) as shown in Figure 14.1.13.
A region in the first quadrant of the plane, bounded by a line and a parabola.
A region \(R\) in the first quadrant of the plane is shown.
  • It is bounded by two curves.
  • The curve that lies above (or alternatively, to the left of) the region is the line \(y=2x\text{.}\)
  • The curve that lies below (or alternatively, to the right of) the region is the parabola \(y=x^2\text{.}\)
Figure 14.1.13. Calculating the area of a plane region with iterated integrals in Example 14.1.12
Solution.
Once again we’ll find the area of the region using both orders of integration.
Using \(dy\, dx\text{:}\)
\begin{equation*} \int_0^2\int_{x^2}^{2x}1\, dy \, dx = \int_0^2(2x-x^2)\, dx = \big(x^2-\frac13x^3\big)\Big|_0^2 = \frac43\text{.} \end{equation*}
Using \(dx\, dy\text{:}\)
\begin{equation*} \int_0^4\int_{y/2}^{\sqrt{y}} 1\, dx\, dy = \int_0^4 (\sqrt{y}-y/2)\, dy = \left(\frac23y^{3/2} - \frac14y^2\right)\Big|_0^4 = \frac43\text{.} \end{equation*}

Subsection 14.1.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.8), and so:
\begin{equation*} \int_a^b\int_c^d 1\, dy\, dx = \int_c^d\int_a^b1\, dx\, dy\text{.} \end{equation*}
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.14. Changing the order of integration.

Rewrite the iterated integral \(\ds \int_0^6\int_0^{x/3} 1\, dy\, dx\) with the order of integration \(dx\, dy\text{.}\)
Solution.
We 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\text{;}\) \(x\) is bounded by 0 and 6. We plot these four curves: \(y=0\text{,}\) \(y=x/3\text{,}\) \(x=0\) and \(x=6\) to find the region described by the bounds. Figure 14.1.15 shows these curves, indicating that \(R\) is a triangle.
A triangular region in the plane, bounded by lines y=0, x=6, and y=x/3.
The region \(R\) in the plane is a right-angled triangle.
  • The base of the triangle is the \(x\) axis, from the origin to \((6,0)\)
  • The vertical side of the triangle is the line \(x=6\text{,}\) from \((6,0)\) to \((6.2)\)
  • The hypotenuse of the triangle is the line \(y=x/3\text{,}\) from \((0,0)\) to \((6,2)\)
Figure 14.1.15. Sketching the region \(R\) described by the iterated integral in Example 14.1.14
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\text{.}\) The bounds on \(y\) are \(0\) to \(2\text{.}\) Thus we can rewrite the integral as \(\ds \int_0^2\int_{3y}^6 1\, dx \, dy\text{.}\)

Example 14.1.16. Changing the order of integration.

Change the order of integration of \(\ds\int_0^4\int_{y^2/4}^{(y+4)/2}1\, dx\, dy\text{.}\)
Solution.
We sketch the region described by the bounds to help us change the integration order. \(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.17.
A sketch of the region of integration for this example.
A region \(R\) is plotted in the first quadrant of the plane. It is bounded by several curves.
  • The left boundary of the region is the parabola \(x=y^2/4\text{.}\) This is a parabola with its vertex at the origin that opens to the right.
  • The right boundary of the region is the line \(x=(y+4)/2\text{.}\) This line intersects the parabola at the point \((4,4)\text{,}\) and intersects the \(x\) axis at the point \((2,0)\text{.}\)
  • There is also a bottom boundary, given by the portion of the \(x\) axis from \((0,0)\) to \((2,0)\text{.}\)
Figure 14.1.17. Drawing the region determined by the bounds of integration in Example 14.1.16
To change the order of integration, we need to establish curves that bound \(y\text{.}\) The figure makes it clear that there are two lower bounds for \(y\text{:}\) \(y=0\) on \(0\leq x\leq 2\text{,}\) and \(y=2x-4\) on \(2\leq x\leq 4\text{.}\) Thus we need two double integrals. The upper bound for each is \(y=2\sqrt{x}\text{.}\) Thus we have
\begin{equation*} \int_0^4\int_{y^2/4}^{(y+4)/2}1\, dx\, dy = \int_0^2\int_0^{2\sqrt{x}} 1\, dy\, dx + \int_2^4\int_{2x-4}^{2\sqrt{x}}1\, dy\, dx\text{.} \end{equation*}
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.4 Exercises

Terms and Concepts

1.
When integrating \(f_x(x,y)\) with respect to \(x\text{,}\) the constant of integration \(C\) is really which: \(C(x)\) or \(C(y)\text{?}\) What does this mean?
2.
3.
4.

Problems

Exercise Group.
In the following exercises, evaluate the integral and subsequent iterated integral.
5.
(a)
\(\ds \int_2^{5} \big(6x^2+4xy-3y^2\big)\, dy\)
(b)
\(\ds \int_{-3}^{-2} \int_2^{5} \big(6x^2+4xy-3y^2\big)\, dy\, dx\)
6.
(a)
\(\ds \int_0^{\pi} (2x\cos(y) + \sin(x) )\,dx\)
(b)
\(\ds \int_{0}^{\pi/2} \int_0^{\pi} (2x\cos(y) + \sin(x) )\,dx\,dy\)
7.
(a)
\(\ds \int_1^x \big(x^2y - y+2\big)\, dy\)
(b)
\(\ds \int_0^2\int_1^x \big(x^2y - y+2\big)\, dy\, dx\)
8.
(a)
\(\ds \int_y^{y^2} (x-y)\,dx\)
(b)
\(\ds \int_{-1}^1\int_y^{y^2} (x-y)\,dx\,dy\)
9.
(a)
\(\ds \int_0^{y} \big(\cos(x) \sin(y) \big)\, dx\)
(b)
\(\ds \int_0^\pi \int_0^{y} \big(\cos(x) \sin(y) \big)\, dx\, dy\)
10.
(a)
\(\ds \int_0^{x} \left(\frac{1}{1+x^2}\right)\,dy\)
(b)
\(\ds \int_1^2 \int_0^{x} \left(\frac{1}{1+x^2}\right)\,dy\,dx\)
Exercise Group.
In the following exercises, a graph of a planar region \(R\) is given. Give the iterated integrals, with both orders of integration \(dy\, dx\) and \(dx\, dy\text{,}\) that give the area of \(R\text{.}\) Evaluate one of the iterated integrals to find the area.
11.
The region R is a rectangle, with x from 1 to 4, and y from -2 to 1.
A sketch of the region \(R\) for this exercise. \(R\) is a rectangle, with bounds \(1\leq x\leq 4\) and \(-2\leq y\le1 1\text{.}\)
12.
The region R is a right triangle with vertices (1,1), (4,1), and (4,3)
A sketch of the region \(R\) for this exercise. The boundary of \(R\) is a right-angle triangle, with vertices at \((1,1)\text{,}\) \((4,1)\text{,}\) and \((4,3)\text{.}\)
13.
A triangular region R. The vertices are (2,5), (2,1), and (4,3).
The region \(R\) for this exercise is a triangle. The left side of the triangle is vertical, from \((2,1)\) to \((2,5)\text{.}\) The other vertex is at \((4,3)\)
14.
The region R is bounded to the left by a parabola opening along the x axis, and the line x=12.
The region \(R\) for this exercise is bounded by a parabola and a line.
  • The parabola is \(x=y^2/3\text{,}\) which has vertex \((0,0)\) and opens to the right.
  • The line is the vertical line \(x=12\text{.}\)
15.
A region in the first quadrant bounded by two curves that intersect at the points (0,0) and (1,1)
The region \(R\) is bounded by two intersecting curves.
  • The curve that lies below (and to the right) of the region is \(y=x^4\text{.}\) This curve is increasing and concave up.
  • The curve that lies above (and to the left) of the region is \(y=\sqrt{x}\text{.}\) This curve is increasing and concave down.
  • The two curves intersect at the origin, and again at the point \((1,1)\text{.}\)
16.
A region R bounded above by a line, and below by a cubic curve.
The region \(R\) lies in the first quadrant. It is bounded by two curves that intersect twice.
  • Above (and to the left of) the region is the line \(y=4x\text{.}\)
  • Below (and to the right of) the region is the curve \(y=x^3\text{.}\)
  • The two curves meet at the origin. The curve \(y=x^3\) begins below the line \(y=4x\text{,}\) but bends upward to meet the line again at the point \((2,8)\text{.}\)
Exercise Group.
In the following exercises, iterated integrals are given that compute the area of a region \(R\) in the \(xy\)-plane. Sketch the region \(R\text{,}\) and give the iterated integral(s) that give the area of \(R\) with the opposite order of integration.
17.
\(\ds \int_{-2}^2\int_0^{4-x^2} \, dy \, dx\)
18.
\(\ds \int_{0}^{1}\int_{5-5x}^{5-5x^2} \, dy \, dx\)
19.
\(\ds \int_{-2}^2\int_{0}^{2\sqrt{4-y^2}} \, dx \, dy\)
20.
\(\ds \int_{-3}^3\int_{-\sqrt{9-x^2}}^{\sqrt{9-x^2}} \, dy \, dx\)
21.
\(\ds \int_{0}^{1}\int_{-\sqrt{y}}^{\sqrt{y}} \, dx \, dy+\int_{1}^{4}\int_{y-2}^{\sqrt{y}} \, dx \, dy\)
22.
\(\ds \int_{-1}^{1}\int_{(x-1)/2}^{(1-x)/2} \, dy \, dx\)