Skip to main content
Logo image

APEX Calculus

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.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\)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\text{.} \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{.}\)
Graph of two curves f and g with a shaded region between two points on the x-axis and the two curves.
Graph of two functions \(f(x) \) and \(g(x) \) lying on the \(xy\) plane. The x-axis contains two marked points, a and b, which are both plotted on the positive x-axis. The functions \(f(x) \) and \(g(x) \) cross at the y-axis before diverging. The function \(f(x) \) lies above the function \(g(x) \) and resembles a sine wave. The function \(g(x) \) is a quadratic function which lies below \(f(x) \) on the interval \((a,b)\text{.}\) The area lying between the marked points a and b and below \(f(x) \) and above \(g(x) \) is shaded, which gives the exact area of this region.
(a)
Graph of the shaded region between the points a and b and the two curves is subdivided into 10 vertical slices.
Graph of the same two functions \(f(x) \) and \(g(x) \) as in the previous image. Now, the area lying between the marked points a and b and below \(f(x) \) and above \(g(x) \) is subdivided into 10 exact vertical slices, whose areas added together give the exact area of this region.
(b)
Graph of the shaded region between the two curves is approximated using 10 rectangles.
Graph of the same two functions \(f(x) \) and \(g(x) \) as in the previous two images. Now, the area lying between the marked points \(a\) and \(b\) and below \(f(x) \) and above \(g(x) \) is subdivided into 10 approximate vertical slices. These slices showcase the slight inaccuracy of approximation using Riemann sums for small \(n \text{,}\) while the first image shows us that taking the limit as \(n\to \infty\) gives the exact area of this region between the two functions.
(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.
Graph of the shaded region between two points on the x-axis  and the functions f and g.
Graph showing 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{.}\) The function \(f(x) \) is drawn starting from the y-axis and ends at the point \(x=4 \pi \text{.}\) The function \(g(x) \) is also drawn starting from the y-axis and ending at the point \(x=4 \pi \text{.}\) For the duration of the region between \(x=0 \) and \(x=4 \pi \text{,}\) the curve \(f(x) = \sin(x) +2\) lies above the curve \(g(x) = \frac12\cos(2x)-1\text{.}\)
Figure 7.1.4. Graphing an enclosed region in Example 7.1.3
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\text{.} \end{align*}

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.
Graph of the shaded region enclosed by the functions f and g.
Graph showing the area of the region bounded by \(f(x) = -2x+5\text{,}\) \(g(x) = x^3 -7x^2 +12x -3\text{.}\) The line given by \(f(x) \) is drawn starting approximately at \(x=1 \) and ending at the point \(x=5 \text{.}\) The cubic function given by \(g(x) \) is drawn starting from the y-axis as it comes up, before intersecting and going above the line \(f(x) \) at the point \((1,3) \text{.}\) The function \(g(x) \) then meets \(f(x) \) at the point \((2,1) \) and continues below \(f(x) \) until once again intercepting at the point \((4,-3) \text{.}\) After this point, the function \(g(x) \) continues above the x-axis while the line \(f(x) \) slopes downwards never to meet again.
The area encosed by the curves \(f(x)\) and \(g(x)\) contains two parts. The first part begins when \(g(x) \) rises above \(f(x) \) at \(x=1 \) and ends at \(x=2 \text{,}\) where \(g(x) \) falls below \(f(x) \text{.}\) The second part begins at the point \(x=2 \) where \(g(x) \) is below \(f(x) \) and ends at \(x=4 \text{,}\) where \(g(x) \) rises above \(f(x) \text{.}\) The first region is bounded below by \(f(x) \text{,}\) above by \(g(x) \text{,}\) \(x=1 \) and \(x=2 \text{.}\) The second region is bounded above by \(f(x) \text{,}\) below by \(g(x) \text{,}\) \(x=2 \) and \(x=4 \text{.}\) The two regions are shaded to showcase the total area enclosed by the two functions.
Figure 7.1.6. Graphing a region enclosed by two functions in Example 7.1.5
Solution.
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) \gt 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\text{.} \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.
Graph of the shaded region enclosed by the two functions and the line y=2.
Graph showing the area of the region bounded by \(y=\sqrt{x}+2\text{,}\) \(y=-(x-1)^2+3\) and \(y=2\text{.}\) The curve given by \(y=\sqrt{x}+2 \) is drawn starting at the y-axis and ending at the point \((1,3) \text{.}\) The curve given by \(y=-(x-1)^2+3\) is drawn starting from the end of the previous curve, at the point \((1,3) \text{.}\) This curve then slopes downwards before intersecting the horizontal line \(y=2\) at the point \((2,2) \text{.}\) Both curves lie entirely above the line \(y=2\text{.}\) Additionally, the curve \(y=\sqrt{x}+2 \) lies to the left of \(y=-(x-1)^2+3\) for the entirety of the enclosed region.
Figure 7.1.8. Graphing a region for Example 7.1.7
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{.}\)
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\text{.} \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\text{.} \end{equation*}
Graph of the shaded region with boundaries relabeled as functions of y.
Graph of the shaded region bounded by \(y=\sqrt{x}+2\text{,}\) \(y=-(x-1)^2+3\) and \(y=2\) with a red horizontal rectangle slice showing integration with respect to y. The rectangle starts near the beginning of the graph of \(y=\sqrt{x}+2\) at a \(y\)-level of about 2.2 and spans across to meet the graph of \(y=-(x-1)^2+3\text{.}\)
Figure 7.1.9. The region used in Example 7.1.7 with boundaries relabeled as functions of \(y\)
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\text{.} \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\text{.} \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.
Graph of the triangle having corners on the points (1,2), (2,3) and (3,1).
Graph showing the enclosed area of the triangular region bounded by \(y=x+1\text{,}\) \(y=-2x+7\) and \(y=-\frac12x+\frac52\text{.}\) The corners of the triangle are the points \((1,2) \text{,}\) \((2,3) \) and \((3,1) \text{.}\) The line \(y=x+1\) lies above the line \(y=-\frac12x+\frac52\) between \(x=1\) and \(x=2\text{.}\) The line \(y=-2x+7\) also lies above the line \(y=-\frac12x+\frac52\) between \(x=2\) and \(x=3\text{.}\) For integrating in terms of \(y\text{,}\) the line \(y=x+1\) lies to the left of \(y=-2x+7\) between \(y=2\) and \(y=3\text{.}\) The line \(y=-\frac12x+\frac52\) lies to the left of \(y=-2x+7\) between \(y=1\) and \(y=2\text{.}\)
Figure 7.1.11. Graphing a triangular region in Example 7.1.10
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\\ \amp \quad + \int_2^3\big((-2x+7)-(-\frac12x+\frac52)\big)\, dx\\ \amp = 3/4+3/4\\ \amp =3/2\text{.} \end{align*}
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\text{.} \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). The lengths are given in hundreds of feet. Approximate the area of the lake.
A sketch of a lake.
A sketch of a lake. This image contains no included measurements and no coordinate plots.
(a)
A graph of the lake with five vertical length measurements.
A graph of the previous sketch of a lake with vertically strenching length measurements. The curve begins at the y-axis at the point \((0,3)\text{.}\) From this point, the curve slopes upwards until it reaches a peak near the point \((6,7)\text{.}\) After reaching a peak, the curve slopes downwards towards the point \((12,3)\text{.}\) From the point \((0,3)\text{,}\) the downward portion of the curve reaches its minimum near \((7,1)\text{,}\) after which it goes upwards to meet at the point \((12,3)\text{.}\)
There are 5 vertical length measurements given which occur at all even x starting at \(x=2\text{.}\) The first vertical length measurement is 2.25. The second is 5.08. The third is 6.35. The fourth is 5.21. The fifth is 2.76. There is then an increment of length 2 on the x-axis between the last measurement occuring at \(x=10\)m, and the edge of the lake occuring at \(x=12\text{.}\)
(b)
Figure 7.1.13. (a) A sketch of a lake, and (b) the lake with length measurements
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.
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)\text{.} \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\text{.} \end{align*}
Since the measurements are in hundreds of feet, square units are given by (100 ft)\(^2 = \)10,000 ft2, giving a total area of 440,133 ft2. (Since we are approximating, we’d likely say the area was about 440,000 ft2, 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

Terms and Concepts

1.
The area between curves is always positive.
  • True
  • False
2.
Calculus can be used to find the area of basic geometric shapes.
  • True
  • False
3.
In your own words, describe how to find the total area enclosed by \(y=f(x)\) and \(y=g(x)\text{.}\)
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{.}\)

Problems

Exercise Group.
In the following exercises, find the area of the shaded region in the given graph.
5.
Between \(y=\frac12 x +3\) and \(y=\frac12\cos(x)+1\text{,}\) for \(0\leq x\leq 2\pi\text{.}\)
Graph of the region between two functions between x=0 and x=2pi.
6.
Between \(y=-3x^3+3x+2\) and \(y=x^2+x-1\text{,}\) for \(-1\leq x\leq 1\text{.}\)
Graph of the region enclosed by the two functions between x=0 and x=2pi.
7.
Between \(y=1\) and \(y=2\text{,}\) for \(0\leq x\leq \pi\text{.}\)
Graph of the rectangular region between y=1, y=2, and x=0, x=pi.
8.
Between \(y=\sin(x)+1\) and \(y=\sin(x)\text{,}\) for \(0\leq x\leq \pi\text{.}\)
Graph of the region between the two sine graphs between x=0 and x=pi.
9.
Between \(y=\sin(4x)\) and \(y=\sec^2(x)\text{,}\) for \(0\leq x\leq \pi/4\text{.}\)
Graph of the region enclosed by the two functions between x=0 and x=pi/4.
10.
Between \(y=\sin(x)\) and \(y=\cos(x)\text{,}\) for \(\pi/4\leq x\leq 5\pi/4\text{.}\)
Graph of the region enclosed by the two functions between x=pi/4 and x=5 pi/4.
11.
Between \(y=2^x\) and \(y=4^x\text{,}\) for \(0\leq x\leq 1\text{.}\)
Graph of the region enclosed by the two functions between x=0 and x=1.
12.
Bounded by the curves \(y=\sqrt{x}+1\text{,}\) \(y=\sqrt{2-x}+1\text{,}\) and \(y=1\text{.}\)
Graph of the region enclosed by the two functions and the line y=1.
Graph of the region enclosed by the functions \(y=\sqrt{x}+1\text{,}\) \(y=\sqrt{2-x}+1\) and the horizontal line \(y=1\text{.}\) The curve given by \(y=\sqrt{x}+1 \) is drawn starting at the y-axis and ending at the point \((1,2) \text{.}\) The curve given by \(y=\sqrt{2-x}+1\) is drawn starting from the end of the previous curve, at the point \((1,2) \text{.}\) This curve then falls downwards before intersecting the horizontal line \(y=1\) at the point \((2,1) \text{.}\) Both curves lie entirely above the horizontal line \(y=1\text{.}\) The curve \(y=\sqrt{x}+1 \) also lies to the left of \(y=\sqrt{2-x}+1\) throughout the enclosed region.
Exercise Group.
In the following exercises, 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\)
14.
\(f(x) = x^2-3x+2\text{,}\) \(g(x) = -3x+3\)
15.
\(f(x) = \sin(x)\text{,}\) \(g(x) = 2x/\pi\)
16.
\(f(x) = x^3-4x^2+x-1\text{,}\) \(g(x) = -x^2+2x-4\)
17.
\(f(x) = x\text{,}\) \(g(x) = \sqrt{x}\)
18.
\(f(x) = -x^3+5x^2+2x+1\text{,}\) \(g(x) = 3x^2+x+3\)
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.
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.
Exercise Group.
In the following exercises, 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{.}\)
21.
Bounded by \(y=x^2+1\text{,}\) \(y=\frac14(x-3)^2+1\text{,}\) and \(y=1\text{.}\)
Graph of the region enclosed by the two functions and the line y=1.
22.
Bounded by \(y=\sqrt{x}\text{,}\) \(y=-2x+3\text{,}\) and \(y=-\frac12 x\text{.}\)
Graph of the region enclosed by the three functions.
23.
Between the curves \(y=x+2\) and \(y=x^2\text{.}\)
Graph of the region enclosed by the line and parabola.
24.
Between the curves \(x=-\frac12 y+1\) and \(x=\frac12 y^2\text{.}\)
Graph of the region enclosed by the line and parabola.
25.
Bounded by \(y=x^{1/3}\text{,}\) \(y=\sqrt{x-1/2}\text{,}\) \(y=0\text{,}\) and \(x=1\text{.}\)
Graph of the region enclosed by the two functions and y=0 and x=1.
26.
Bounded by the curves \(y=\sqrt{x}+1\text{,}\) \(y=\sqrt{2-x}+1\text{,}\) and \(y=1\text{.}\)
Graph of the region enclosed by the two functions and the line y=1.
Graph of the region enclosed by the functions \(y=\sqrt{x}+1\text{,}\) \(y=\sqrt{2-x}+1\) and the line \(y=1\text{.}\) The curve \(y=\sqrt{x}+1\) is drawn starting at the point \((0,1)\text{,}\) from which it goes upwards and ends at the point \((1,2) \text{.}\) The curve \(y=\sqrt{2-x}+1\) is drawn starting from the end of the previous curve, at the point \((1,2)\text{,}\) from which it goes downward until ending at the point \((2,1)\text{.}\) Both of these curves lie entirely above the horizontal line \(y=1\text{.}\) The curve \(y=\sqrt{x}+1\) lies to the left of the curve \(y=\sqrt{2-x}+1\) for the entirety of the enclosed region.
Exercise Group.
In the following exercises, 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 \((0, 4)\)
30.
\((0, 0)\text{,}\)\((2, 5)\text{,}\) and \((5, 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.
A sketch of a lake with four vertical length measurements.
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.
A sketch of a lake with five vertical length measurements.