Skip to main content

Section 7.1 Area Between Curves

We are often interested in knowing the area of a region. Forget momentarily that we addressed this already in Section 5. Section 5.4 and approach it instead using the technique described in Key Idea 7.0.1.

Let \(Q\) be the area of a region bounded by continuous functions \(f\) and \(g\text{.}\) If we break the region into many subregions, we have an obvious equation:

Total Area = sum of the areas of the subregions.

The issue to address next is how to systematically break a region into subregions. A graph will help. Consider Figure 7.1.1 (a) where a region between two curves is shaded. While there are many ways to break this into subregions, one particularly efficient way is to “slice” it vertically, as shown in Figure 7.1.1 (b), into \(n\) equally spaced slices.

We now approximate the area of a slice. Again, we have many options, but using a rectangle seems simplest. Picking any \(x\)-value \(c_i\) in the \(i^\text{ th }\) slice, we set the height of the rectangle to be \(f(c_i)-g(c_i)\text{,}\) the difference of the corresponding \(y\)-values. The width of the rectangle is a small difference in \(x\)-values, which we represent with \(\dx\text{.}\) Figure 7.1.1 (c) shows sample points \(c_i\) chosen in each subinterval and appropriate rectangles drawn. (Each of these rectangles represents a differential element.) Each slice has an area approximately equal to \(\big(f(c_i)-g(c_i)\big)\dx\text{;}\) hence, the total area is approximately the Riemann Sum

\begin{equation*} Q = \sum_{i=1}^n \big(f(c_i)-g(c_i)\big)\dx. \end{equation*}

Taking the limit as \(n\to \infty\) gives the exact area as \(\int_a^b \big(f(x)-g(x)\big)\ dx\text{.}\)

(a)
(b)
(c)
Figure 7.1.1. Subdividing a region into vertical slices and approximating the areas with rectangles.

Example 7.1.3. Finding area enclosed by curves.

Find the area of the region bounded by \(f(x) = \sin(x) +2\text{,}\) \(g(x) = \frac12\cos(2x)-1\text{,}\) \(x=0\) and \(x=4\pi\text{,}\) as shown in Figure 7.1.4.

Solution.

The graph verifies that the upper boundary of the region is given by \(f\) and the lower bound is given by \(g\text{.}\) Therefore the area of the region is the value of the integral

\begin{align*} \int_0^{4\pi} \big(f(x)- g(x)\big)\ dx \amp = \int_0^{4\pi} \Big(\sin(x) +2 - \big(\frac12\cos(2x)-1\big)\Big)\ dx\\ \amp = -\cos(x) -\frac14\sin(2x)+3x\Big|_0^{4\pi}\\ \amp = 12\pi \approx 37.7\ \text{ units } ^2. \end{align*}
Figure 7.1.4. Graphing an enclosed region in Example 7.1.3.

Example 7.1.5. Finding total area enclosed by curves.

Find the total area of the region enclosed by the functions \(f(x) = -2x+5\) and \(g(x) = x^3-7x^2+12x-3\) as shown in Figure 7.1.6.

Solution.
Figure 7.1.6. Graphing a region enclosed by two functions in Example 7.1.5.

A quick calculation shows that \(f=g\) at \(x=1, 2\) and 4. One can proceed thoughtlessly by computing \(\ds \int_1^4\big(f(x)-g(x)\big)\ dx\text{,}\) but this ignores the fact that on \([1,2]\text{,}\) \(g(x)>f(x)\text{.}\) (In fact, the thoughtless integration returns \(-9/4\text{,}\) hardly the expected value of an area.) Thus we compute the total area by breaking the interval \([1,4]\) into two subintervals, \([1,2]\) and \([2,4]\) and using the proper integrand in each.

\begin{align*} \text{ Total Area } \amp = \int_1^2 \big(g(x)-f(x)\big)\ dx + \int_2^4\big(f(x)-g(x)\big)\ dx\\ \amp = \int_1^2 \big(x^3-7x^2+14x-8\big) \ dx + \int_2^4\big(-x^3+7x^2-14x+8\big)\ dx\\ \amp = 5/12 + 8/3\\ \amp = 37/12 = 3.083\ \text{ units } ^2. \end{align*}

The previous example makes note that we are expecting area to be positive. When first learning about the definite integral, we interpreted it as “signed area under the curve,” allowing for “negative area.” That doesn't apply here; area is to be positive.

The previous example also demonstrates that we often have to break a given region into subregions before applying Theorem 7.1.2. The following example shows another situation where this is applicable, along with an alternate view of applying the Theorem.

Example 7.1.7. Finding area: integrating with respect to \(y\).

Find the area of the region enclosed by the functions \(y=\sqrt{x}+2\text{,}\) \(y=-(x-1)^2+3\) and \(y=2\text{,}\) as shown in Figure 7.1.8.

Solution.

We give two approaches to this problem. In the first approach, we notice that the region's “top” is defined by two different curves. On \([0,1]\text{,}\) the top function is \(y=\sqrt{x}+2\text{;}\) on \([1,2]\text{,}\) the top function is \(y=-(x-1)^2+3\text{.}\)

Figure 7.1.8. Graphing a region for Example 7.1.7.

Thus we compute the area as the sum of two integrals:

\begin{align*} \text{ Total Area } \amp = \int_0^1 \Big(\big(\sqrt{x}+2\big)-2\Big)\ dx + \int_1^2 \Big(\big(-(x-1)^2+3\big)-2\Big)\ dx\\ \amp = 2/3 + 2/3\\ \amp =4/3. \end{align*}

The second approach is clever and very useful in certain situations. We are used to viewing curves as functions of \(x\text{;}\) we input an \(x\)-value and a \(y\)-value is returned. Some curves can also be described as functions of \(y\text{:}\) input a \(y\)-value and an \(x\)-value is returned. We can rewrite the equations describing the boundary by solving for \(x\text{:}\)

\begin{equation*} y=\sqrt{x}+2 \Rightarrow x=(y-2)^2 \end{equation*}
\begin{equation*} y=-(x-1)^2+3 \Rightarrow x=\sqrt{3-y}+1. \end{equation*}
Figure 7.1.9. The region used in Example 7.1.7 with boundaries relabeled as functions of \(y\text{.}\)

Figure 7.1.9 shows the region with the boundaries relabeled. A differential element, a horizontal rectangle, is also pictured. The width of the rectangle is a small change in \(y\text{:}\) \(\Delta y\text{.}\) The height of the rectangle is a difference in \(x\)-values. The “top” \(x\)-value is the largest value, i.e., the rightmost. The “bottom” \(x\)-value is the smaller, i.e., the leftmost. Therefore the height of the rectangle is

\begin{equation*} \big(\sqrt{3-y}+1\big) - (y-2)^2. \end{equation*}

The area is found by integrating the above function with respect to \(y\) with the appropriate bounds. We determine these by considering the \(y\)-values the region occupies. It is bounded below by \(y=2\text{,}\) and bounded above by \(y=3\text{.}\) That is, both the “top” and “bottom” functions exist on the \(y\) interval \([2,3]\text{.}\) Thus

\begin{align*} \text{ Total Area } \amp = \int_2^3 \big(\sqrt{3-y}+1 - (y-2)^2\big)\ dy\\ \amp = \Big(-\frac23(3-y)^{3/2}+y-\frac13(y-2)^3\Big)\Big|_2^3\\ \amp = 4/3. \end{align*}

This calculus–based technique of finding area can be useful even with shapes that we normally think of as “easy.” Example 7.1.10 computes the area of a triangle. While the formula “\(\frac12\times\text{ base } \times\text{ height }\)” is well known, in arbitrary triangles it can be nontrivial to compute the height. Calculus makes the problem simple.

Example 7.1.10. Finding the area of a triangle.

Compute the area of the regions bounded by the lines

\(y=x+1\text{,}\) \(y=-2x+7\) and \(y=-\frac12x+\frac52\text{,}\) as shown in Figure 7.1.11.

Solution.

Recognize that there are two “top” functions to this region, causing us to use two definite integrals.

\begin{align*} \text{ Total Area } \amp = \int_1^2\big((x+1)-(-\frac12x+\frac52)\big)\ dx + \int_2^3\big((-2x+7)-(-\frac12x+\frac52)\big)\ dx\\ \amp = 3/4+3/4\\ \amp =3/2. \end{align*}
Figure 7.1.11. Graphing a triangular region in Example 7.1.10.

We can also approach this by converting each function into a function of \(y\text{.}\) This also requires 2 integrals, so there isn't really any advantage to doing so. We do it here for demonstration purposes.

The “top” function is always \(x=\frac{7-y}2\) while there are two “bottom” functions. Being mindful of the proper integration bounds, we have

\begin{align*} \text{ Total Area } \amp = \int_1^2\big(\frac{7-y}2 - (5-2y)\big)\ dy + \int_2^3\big(\frac{7-y}2-(y-1)\big)\ dy\\ \amp = 3/4 + 3/4\\ \amp = 3/2. \end{align*}

Of course, the final answer is the same. (It is interesting to note that the area of all 4 subregions used is 3/4. This is coincidental.)

While we have focused on producing exact answers, we are also able to make approximations using the principle of Theorem 7.1.2. The integrand in the theorem is a distance (“top minus bottom”); integrating this distance function gives an area. By taking discrete measurements of distance, we can approximate an area using numerical integration techniques developed in Section 5.5. The following example demonstrates this.

Example 7.1.12. Numerically approximating area.

To approximate the area of a lake, shown in Figure 7.1.13.(a), the “length” of the lake is measured at 200-foot increments as shown in Figure 7.1.13.(b), where the lengths are given in hundreds of feet. Approximate the area of the lake.

Solution.

The measurements of length can be viewed as measuring “top minus bottom” of two functions. The exact answer is found by integrating \(\ds \int_0^{12} \big(f(x)-g(x)\big)\ dx\text{,}\) but of course we don't know the functions \(f\) and \(g\text{.}\) Our discrete measurements instead allow us to approximate.

(a)
(b)
Figure 7.1.13. (a) A sketch of a lake, and (b) the lake with length measurements.

We have the following data points:

\begin{equation*} (0,0),\ (2,2.25),\ (4,5.08),\ (6,6.35),\ (8,5.21),\ (10,2.76),\ (12,0). \end{equation*}

We also have that \(\dx=\frac{b-a}{n} = 2\text{,}\) so Simpson's Rule gives

\begin{align*} \text{ Area } \amp \approx \frac{2}{3}\Big(1\cdot0+4\cdot2.25+2\cdot5.08+4\cdot6.35+2\cdot5.21+4\cdot2.76+1\cdot0\Big)\\ \amp = 44.01\overline{3} \ \text{ units } ^2. \end{align*}

Since the measurements are in hundreds of feet, \(\text{units}^2 = (100\ \text{ ft } )^2 = 10,000\ \text{ ft } ^2\text{,}\) giving a total area of \(440,133\ \text{ ft } ^2\text{.}\) (Since we are approximating, we'd likely say the area was about \(440,000\ \text{ ft } ^2\text{,}\) which is a little more than 10 acres.)

In the next section we apply our applications–of–integration techniques to finding the volumes of certain solids.

Exercises Exercises

1.

T/F: The area between curves is always positive.

2.

T/F: Calculus can be used to find the area of basic geometric shapes.

3.

In your own words, describe how to find the total area enclosed by \(y=f(x)\) and \(y=g(x)\text{.}\)

Answer.

Answers will vary.

4.

Describe a situation where it is advantageous to find an area enclosed by curves through integration with respect to \(y\) instead of \(x\text{.}\)

Answer.

Answers may vary; one common answer is when the region has two or more “top” or “bottom” functions when viewing the region with respect to \(x\text{,}\) but has only 1 “top” function and 1 “bottom” function when viewed with respect to \(y\text{.}\) The former area requires multiple integrals to compute, whereas the latter area requires one.

Exercise Group.

In Exercises 5–12, find the area of the shaded region in the given graph.

5.

Answer.

\(4\pi +\pi ^2\approx 22.436\)

Exercise Group.

In Exercises 13–20, find the total area enclosed by the functions \(f\) and \(g\text{.}\)

13.

\(f(x) = 2x^2+5x-3\text{,}\) \(g(x) = x^2+4x-1\)

Answer.

\(4.5\)

14.

\(f(x) = x^2-3x+2\text{,}\) \(g(x) = -3x+3\)

Answer.

\(4/3\)

15.

\(f(x) = \sin x\text{,}\) \(g(x) = 2x/\pi \)

Answer.

\(2-\pi /2\)

16.

\(f(x) = x^3-4x^2+x-1\text{,}\) \(g(x) = -x^2+2x-4\)

Answer.

\(8\)

17.

\(f(x) = x\text{,}\) \(g(x) = \sqrt{x}\)

Answer.

\(1/6\)

18.

\(f(x) = -x^3+5x^2+2x+1\text{,}\) \(g(x) = 3x^2+x+3\)

Answer.

\(37/12\)

19.

The functions \(f(x) = \cos (x)\) and \(g(x) = \sin x\) intersect infinitely many times, forming an infinite number of repeated, enclosed regions. Find the areas of these regions.

Answer.

All enclosed regions have the same area, with regions being the reflection of adjacent regions. One region is formed on \([\pi /4,5\pi /4]\text{,}\) with area \(2\sqrt{2}\text{.}\)

20.

The functions \(f(x) = \cos (2x)\) and \(g(x) = \sin x\) intersect infinitely many times, forming an infinite number of repeated, enclosed regions. Find the areas of these regions.

Answer.

On regions such as \([\pi /6,5\pi /6]\text{,}\) the area is \(3\sqrt{3}/2\text{.}\) On regions such as \([-\pi /2,\pi /6]\text{,}\) the area is \(3\sqrt{3}/4\text{.}\)

Exercise Group.

In Exercises 21–26, find the area of the enclosed region in two ways:

  1. by treating the boundaries as functions of \(x\text{,}\) and

  2. by treating the boundaries as functions of \(y\text{.}\)

25.

Answer.

\(1/12(9-2\sqrt{2})\approx 0.514\)

Exercise Group.

In Exercises 27–30, find the area of the triangle formed by the given three points.

27.

\((1,1)\text{,}\)   \((2,3)\text{,}\)   and    \((3,3)\)

28.

\((-1,1)\text{,}\)   \((1,3)\text{,}\)   and    \((2,-1)\)

29.

\((1,1)\text{,}\)   \((3,3)\text{,}\)   and    \((-1,3)\)

30.

\((0,0)\text{,}\)   \((2,5)\text{,}\)   and    \((5,2)\)

Answer.

\(21/2\)

31.

Use the Trapezoidal Rule to approximate the area of the pictured lake whose lengths, in hundreds of feet, are measured in 100-foot increments.

Answer.

219,000 ft\(^2\)

32.

Use Simpson's Rule to approximate the area of the pictured lake whose lengths, in hundreds of feet, are measured in 200-foot increments.

Answer.

623,333 ft\(^2\)

Exercise Group.

In Exercises 33–42, use the Direct Comparison Test or the Limit Comparison Test to determine whether the given definite integral converges or diverges. Clearly state what test is being used and what function the integrand is being compared to.

33.

\(\displaystyle \int _{10}^\infty \frac{3}{\sqrt{3x^2+2x-5}} \ dx\)

Answer.

diverges; Limit Comparison Test with \(1/x\text{.}\)

34.

\(\displaystyle \int _{2}^\infty \frac{4}{\sqrt{7x^3-x}} \ dx\)

Answer.

converges; Limit Comparison Test with \(1/x^{3/2}\text{.}\)

35.

\(\displaystyle \int _{0}^\infty \frac{\sqrt{x+3}}{\sqrt{x^3-x^2+x+1}} \ dx\)

Answer.

diverges; Limit Comparison Test with \(1/x\text{.}\)

36.

\(\displaystyle \int _{1}^\infty e^{-x}\ln x \ dx\)

Answer.

converges; Direct Comparison Test with \(xe^{-x}\text{.}\)

37.

\(\displaystyle \int _{5}^\infty e^{-x^2+3x+1} \ dx\)

Answer.

converges; Direct Comparison Test with \(e^{-x}\text{.}\)

38.

\(\displaystyle \int _{0}^\infty \frac{\sqrt{x}}{e^x} \ dx\)

Answer.

converges; Direct Comparison Test with \(xe^{-x}\text{.}\)

39.

\(\displaystyle \int _{2}^\infty \frac{1}{x^2+\sin x} \ dx\)

Answer.

converges; Direct Comparison Test with \(1/(x^2-1)\text{.}\)

40.

\(\displaystyle \int _{0}^\infty \frac{x}{x^2+\cos x} \ dx\)

Answer.

diverges; Direct Comparison Test with \(x/(x^2+1)\text{.}\)

41.

\(\displaystyle \int _{0}^\infty \frac{1}{x+e^x} \ dx\)

Answer.

converges; Direct Comparison Test with \(1/e^x\text{.}\)

42.

\(\displaystyle \int _{0}^\infty \frac{1}{e^x-x} \ dx\)

Answer.

converges; Limit Comparison Test with \(1/e^x\text{.}\)

Exercise Group.

In Exercises 43–48, find the equation of the line tangent to the function at the given \(x\)-value.

43.

\(f(x) = \sinh x\) at \(x=0\)

Answer.

\(y=x\)

44.

\(f(x) = \cosh x\) at \(x=\ln 2\)

Answer.

\(y=\frac{3}{4}(x-\ln 2)+\frac{5}{4}\)

45.

\(f(x) = \tanh x\) at \(x=-\ln 3\)

Answer.

\(y=\frac{9}{25}(x+\ln 3)-\frac{4}{5}\)

46.

\(f(x) = \operatorname{sech}^2 x\) at \(x=\ln 3\)

Answer.

\(y=-\frac{72}{125}(x-\ln 3)+\frac{9}{25}\)

47.

\(f(x) = \sinh ^{-1} x\) at \(x=0\)

Answer.

\(y=x\)

48.

\(f(x) = \cosh ^{-1} x\) at \(x=\sqrt{2}\)

Answer.

\(y=(x-\sqrt{2})+\cosh ^{-1}(\sqrt{2}) \approx (x-1.414)+0.881\)

Exercise Group.

In Exercises 49–64, evaluate the given indefinite integral.

49.

\(\displaystyle \int \tanh (2x)\ dx\)

Answer.

\(1/2\ln (\cosh (2x))+C\)

50.

\(\displaystyle \int \cosh (3x-7)\ dx\)

Answer.

\(1/3\sinh (3x-7)+C\)

51.

\(\displaystyle \int \sinh x\cosh x\ dx\)

Answer.

\(1/2\sinh ^2x+C\) or \(1/2\cosh ^2x+C\)

52.

\(\displaystyle \int x\cosh x\ dx\)

Answer.

\(x \sinh (x)-\cosh (x)+C\)

53.

\(\displaystyle \int x\sinh x\ dx\)

Answer.

\(x \cosh (x)-\sinh (x)+C\)

54.

\(\displaystyle \int \frac{1}{\sqrt{x^2+1}}\ dx\)

Answer.

\(\sinh ^{-1} x +C=\ln \big (x+\sqrt{x^2+1}\big )+C\)

55.

\(\displaystyle \int \frac{1}{\sqrt{x^2-9}}\ dx\)

Answer.

\(\cosh ^{-1} x/3 +C=\ln \big (x+\sqrt{x^2-9}\big )+C\)

56.

\(\displaystyle \int \frac{1}{9-x^2}\ dx\)

Answer.

\(\left\lbrace \begin{array}{ccc} \frac{1}{3}\tanh ^{-1}\left(\frac{x}{3}\right)+C & & x^2\lt 9 \\ \\ \frac{1}{3}\coth ^{-1}\left(\frac{x}{3}\right)+C & & 9\lt x^2 \end{array}\right. = \frac{1}{2}\ln |x+1| - \frac{1}{2}\ln |x-1|+C\)

57.

\(\displaystyle \int \frac{2x}{\sqrt{x^4-4}}\ dx\)

Answer.

\(\cosh ^{-1} (x^2/2) + C = \ln (x^2+\sqrt{x^4-4})+C\)

58.

\(\displaystyle \int \frac{\sqrt{x}}{\sqrt{1+x^3}}\ dx\)

Answer.

\(2/3\sinh ^{-1} x^{3/2} + C = 2/3\ln (x^{3/2}+\sqrt{x^3+1})+C\)

59.

\(\displaystyle \int \frac{1}{x^4-16}\ dx\)

Answer.

\(\frac{1}{16}\tan ^{-1}(x/2)+\frac{1}{32}\ln |x-2|+\frac{1}{32}\ln |x+2|+C\)

60.

\(\displaystyle \int \frac{1}{x^2+x}\ dx\)

Answer.

\(\ln x- \ln |x+1|+C\)

61.

\(\displaystyle \int \frac{e^x}{e^{2x}+1}\ dx\)

Answer.

\(\tan ^{-1}(e^x)+C\)

62.

\(\displaystyle \int \sinh ^{-1}x \ dx\)

Answer.

\(x\sinh ^{-1}x-\sqrt{x^2+1}+C\)

63.

\(\displaystyle \int \tanh ^{-1}x \ dx\)

Answer.

\(x\tanh ^{-1}x+1/2\ln |x^2-1|+C\)

64.

\(\displaystyle \int \operatorname{sech}x \ dx\)    (Hint: multiply by \(\frac{\cosh x}{\cosh x}\text{;}\) set \(u = \sinh x\text{.}\))

Answer.

\(\tan ^{-1}(\sinh x)+C\)

Exercise Group.

In Exercises 65–68, evaluate the given definite integral.

65.

\(\displaystyle \int _{-1}^1 \sinh x \ dx\)

Answer.

\(0\)

66.

\(\displaystyle \int _{-\ln 2}^{\ln 2} \cosh x \ dx\)

Answer.

\(3/2\)

67.

\(\displaystyle \int _{0}^{1} \tanh ^{-1} x \ dx\)

Answer.

\(2\)

68.

\(\displaystyle \int _0^2 \frac{1}{\sqrt{x^2+1}}\ dx\)

Answer.

\(\sinh ^{-1} 2 =\ln \big (2+\sqrt{5}\big )\approx 1.444\)

Exercise Group.

In Exercises 69–72, find \(F\hspace{0.75pt}^{\prime }(x)\text{.}\)

69.

\(\displaystyle F(x) = \int _2^{x^3+x} \frac{1}{t}\ dt\)

Answer.

\(F^{\prime }(x) = (3x^2+1)\frac{1}{x^3+x}\)

70.

\(\displaystyle F(x) = \int _{x^3}^{0} t^3\ dt\)

Answer.

\(F^{\prime }(x) = -3x^{11}\)

71.

\(\displaystyle F(x) = \int _{x}^{x^2} (t+2)\ dt\)

Answer.

\(F^{\prime }(x) = 2x(x^2+2)-(x+2)\)

72.

\(\displaystyle F(x) = \int _{\ln x}^{e^x} \sin t\ dt\)

Answer.

\(F^{\prime }(x) = e^x\sin (e^x) - 1/x\sin (\ln x)\)