Skip to main content
Logo image

Active Calculus 2nd Ed

Section 6.1 Using definite integrals to find area and length

Subsection 6.1.1 Introduction

Early on in our work with the definite integral, we learned that for an object moving along an axis, the area under a non-negative velocity function \(v\) between \(a\) and \(b\) tells us the distance the object traveled on that time interval, and that area is given precisely by the definite integral \(\int_a^b v(t) \, dt\text{.}\) In general, for any nonnegative function \(f\) on an interval \([a,b]\text{,}\) \(\int_a^b f(x) \, dx\) measures the area bounded by the curve and the \(x\)-axis between \(x = a\) and \(x = b\text{.}\)
Next, we will explore how definite integrals can be used to represent other physically important properties. In Preview Activity 6.1.1, we investigate how a single definite integral may be used to represent the area between two curves.

Preview Activity 6.1.1.
Consider the functions given by \(f(x) = 5-(x-1)^2\) and \(g(x) = 4-x\text{.}\)
(a)
Use algebra to find the points where the graphs of \(f\) and \(g\) intersect.
(b)
Sketch an accurate graph of \(f\) and \(g\) on the axes provided, labeling the curves by name and the intersection points with ordered pairs.
described in detail following the image
Axes for plotting \(f\) and \(g\text{.}\) The \(x\)-values range horizontally from \(x = -0.5\) to \(x = 4\text{,}\) while the \(y\)-values range vertically from \(y = -0.5\) to \(y = 8\text{.}\) Boxes on the grid are \(0.5 \times 1\text{.}\)
(c)
Find and evaluate exactly an integral expression that represents the area between \(y = f(x)\) and the \(x\)-axis on the interval between the intersection points of \(f\) and \(g\text{.}\)
(d)
Find and evaluate exactly an integral expression that represents the area between \(y = g(x)\) and the \(x\)-axis on the interval between the intersection points of \(f\) and \(g\text{.}\)
(e)
What is the exact area between \(f\) and \(g\) between their intersection points? Why?

Subsection 6.1.2 The Area Between Two Curves

In Preview Activity 6.1.1, we saw a natural way to think about the area between two curves: it is the area beneath the upper curve minus the area below the lower curve.

Example 6.1.1.

Find the area bounded between the graphs of \(f(x) = (x-1)^2 + 1\) and \(g(x) = x+2\text{.}\)
Solution.
We can find the intersection points of the graphs of \(f\) and \(g\) algebraically by solving the system of equations given by \(y = x+2\) and \(y = (x-1)^2 + 1\text{:}\) substituting \(x+2\) for \(y\) in the second equation yields \(x+2 = (x-1)^2 + 1\text{,}\) so \(x+2 = x^2 - 2x + 1 + 1\text{,}\) and thus
\begin{equation*} x^2 - 3x = x(x-3) = 0\text{,} \end{equation*}
from which it follows that \(x = 0\) or \(x = 3\text{.}\) Using \(y = x+2\text{,}\) we find the corresponding \(y\)-values of the intersection points. In Figure 6.1.2, we confirm this result and show the \(y\)-coordinates of the points, \((0,2)\) and \((3,5)\text{.}\) Furthermore, the figure shows how we can think of the area beneath \(f\) and the area beneath \(g\) separately, and use the difference of these quantities to find the difference between the curves.
described in detail following the image
There are three adjacent images that show how we can think about the area bounded by the functions \(f(x) = (x-1)^2 + 1\) and \(g(x) = x+2\) on the interval \([0,3]\text{.}\)
In the first image on the left, only the graph of \(g\) is shown and the area between its graph and the \(x\)-axis on \([0,3]\) is shaded. This region has the shape of a trapezoid.
In the second image in the middle, the focus is on the area beneath \(f\text{.}\) The graph of \(g\) is still shown, but now the graph of \(f\) is included and the area between the graph of \(f\) and the \(x\)-axis on \([0,3]\) is shaded.
The third and final image shows only the shaded area between the curves, which consists of the area below \(g\) and above \(f\) on the interval \([0,3]\text{.}\)
Figure 6.1.2. The area bounded by the functions \(f(x) = (x-1)^2 + 1\) and \(g(x) = x+2\) on the interval \([0,3]\text{.}\)
Now, using definite integrals to find the values of the respective areas beneath the curves, on the interval \([0,3]\text{,}\) the area beneath \(g\) is
\begin{equation*} \int_0^3 (x+2) \, dx = \frac{21}{2}\text{,} \end{equation*}
while the area under \(f\) on the same interval is
\begin{equation*} \int_0^3 [(x-1)^2 + 1] \, dx = 6\text{.} \end{equation*}
Thus, the area between the curves is
\begin{equation} A = \int_0^3 (x+2) \, dx - \int_0^3 [(x-1)^2 + 1] \, dx = \frac{21}{2} - 6 = \frac{9}{2}\text{.}\tag{6.1.1} \end{equation}
We can also think of the area in this slightly different way: if we slice up the region between two curves into thin vertical rectangles (in the same spirit as we originally sliced the region between a single curve and the \(x\)-axis in Section 4.2), we see (as shown in Figure 6.1.3) that the height of a typical rectangle is given by the difference between the two functions, \(g(x) - f(x)\text{,}\) and its width is \(\Delta x\text{.}\) Thus the area of the rectangle is
\begin{equation*} A_{\text{rect} } = (g(x) - f(x)) \Delta x\text{.} \end{equation*}
The area between the two curves on \([0,3]\) is thus approximated by the Riemann sum
\begin{equation*} A \approx \sum_{i=1}^{n} (g(x_i) - f(x_i)) \Delta x\text{,} \end{equation*}
and as we let \(n \to \infty\text{,}\) it follows that the area is given by the single definite integral
\begin{equation} A = \int_0^3 (g(x) - f(x)) \, dx\text{.}\tag{6.1.2} \end{equation}
described in detail following the image
There are two adjacent images that show key features of the area bounded by the functions \(f(x) = (x-1)^2 + 1\) and \(g(x) = x+2\) on the interval \([0,3]\text{.}\) Both curves are plotted along with their intersection points at \((0,2)\) and \((3,5)\text{.}\)
In the first version of the image on the left, a thin representative vertical rectangular slice is shown. The bottom of the rectangle is on the curve \(y = f(x) = (x-1)^2 + 1\) and the top of the rectangle is on the curve \(y = g(x) = x+2\text{.}\) This makes the height of the rectangle \(g(x)-f(x)\text{.}\) The width of the rectangle is \(\Delta x\text{.}\)
In the second version of the image on the right, the full region between the curves is shaded to reflect the area that is measured by the definite integral \(\int_0^3 (g(x)-f(x)) \, dx\text{.}\)
Figure 6.1.3. The area bounded by the functions \(f(x) = (x-1)^2 + 1\) and \(g(x) = x+2\) on the interval \([0,3]\text{.}\)
In many applications of the definite integral, we will find it helpful to think of a “representative slice” and use the definite integral to add up these slices. Here, the integral sums the areas of thin rectangles.
Finally, it doesn’t matter whether we think of the area between two curves as the difference between the area bounded by the individual curves (as in (6.1.1)) or as the limit of a Riemann sum of the areas of thin rectangles between the curves (as in (6.1.2)). These two results are the same, since the difference of two integrals is the integral of the difference:
\begin{equation*} \int_0^3 g(x) \, dx - \int_0^3 f(x) \, dx = \int_0^3 (g(x) - f(x)) \, dx\text{.} \end{equation*}
Our work so far in this section illustrates the following general principle.

The area between two curves.

If two curves \(y = g(x)\) and \(y = f(x)\) intersect at \((a,g(a))\) and \((b,g(b))\text{,}\) and for all \(x\) such that \(a \le x \le b\text{,}\) \(g(x) \ge f(x)\text{,}\) then the area between the curves is
\begin{equation*} A = \int_a^b (g(x) - f(x)) \, dx\text{.} \end{equation*}

Activity 6.1.2.
In each of the following situations, our goal is to determine the area of the region described. For each region, (i) determine the intersection points of the curves, (ii) sketch the region whose area is being found, (iii) draw and label a representative slice, and (iv) state the area of the representative slice. Then, state a definite integral whose value is the exact area of the region, and evaluate the integral to find the numeric value of the region’s area.
(a)
The finite region bounded by \(y = \sqrt{x}\) and \(y = \frac{1}{4}x\text{.}\)
(b)
The finite region bounded by \(y = 12-2x^2\) and \(y = x^2 - 8\text{.}\)
(c)
The area bounded by the \(y\)-axis, \(f(x) = \cos(x)\text{,}\) and \(g(x) = \sin(x)\text{,}\) where we consider the region formed by the first positive value of \(x\) for which \(f\) and \(g\) intersect.
(d)
The finite regions between the curves \(y = x^3-x\) and \(y = x^2\text{.}\)

Subsection 6.1.3 Finding Area with Horizontal Slices

At times, the shape of a region may dictate that we use horizontal rectangular slices, instead of vertical ones.

Example 6.1.4.

Find the area of the region bounded by the parabola \(x = y^2 - 1\) and the line \(y = x-1\text{,}\) shown at left in Figure 6.1.5.
described in detail following the image
There are three adjacent images that show how we can think about the area bounded by the curves \(x = y^2 - 1\) and \(y = x-1\text{.}\)
In the first image on the left, the region between the two curves is shaded. The curves intersect at the points \((0,-1)\) and \((3,2)\text{,}\) with the region between them consisting of the area to the right of \(x = y^2 - 1\) and to the left of \(y = x-1\text{.}\)
In the second image in the middle, we consider using thin vertical rectangles to slice up the region between the curves. While one vertical rectangle, located at approximately \(x = 1.2\) has its top on the parabola and its bottom on the line, another vertical rectangle located at approximately \(x = -0.5\) has both its top and bottom on the parabola.
The third and final image on the right shows a representative horizontal rectangular slice that has thickness \(\Delta y\text{.}\) This rectangular (which is typical of of any horizontal slice) has its left end on the parabola and its right end on the line.
Figure 6.1.5. The area bounded by the functions \(x = y^2-1\) and \(y = x-1\) (at left), with the region sliced vertically (center) and horizontally (at right).
Solution.
By solving the second equation for \(x\) and writing \(x = y + 1\text{,}\) we find that \(y+1 = y^2 - 1\text{.}\) Hence the curves intersect where \(y^2 - y - 2 = 0\text{.}\) Thus, we find \(y = -1\) or \(y = 2\text{,}\) so the intersection points of the two curves are \((0,-1)\) and \((3,2)\text{.}\)
If we attempt to use vertical rectangles to slice up the area (as in the center graph of Figure 6.1.5), we see that from \(x = -1\) to \(x = 0\) the curves that bound the top and bottom of the rectangle are one and the same. This suggests, as shown in the rightmost graph in the figure, that we try using horizontal rectangles.
Note that the width of a horizontal rectangle depends on \(y\text{.}\) Between \(y = -1\) and \(y = 2\text{,}\) the right end of a representative rectangle is determined by the line \(x = y+1\text{,}\) and the left end is determined by the parabola, \(x = y^2-1\text{.}\) The thickness of the rectangle is \(\Delta y\text{.}\)
Therefore, the area of the rectangle is
\begin{equation*} A_{\text{rect} } = [(y+1) - (y^2-1)] \Delta y\text{,} \end{equation*}
and the area between the two curves on the \(y\)-interval \([-1,2]\) is approximated by the Riemann sum
\begin{equation*} A \approx \sum_{i=1}^{n} [(y_i+1)-(y_i^2-1)] \Delta y\text{.} \end{equation*}
Taking the limit of the Riemann sum, it follows that the area of the region is
\begin{equation} A = \int_{y=-1}^{y=2} [(y+1) - (y^2-1)] \, dy\text{.}\tag{6.1.3} \end{equation}
We emphasize that we are integrating with respect to \(y\text{;}\) this is because we chose to use horizontal rectangles whose widths depend on \(y\) and whose thickness is denoted \(\Delta y\text{.}\) It is a straightforward exercise to evaluate the integral in Equation (6.1.3) and find that \(A = \frac{9}{2}\text{.}\)
Just as with the use of vertical rectangles of thickness \(\Delta x\text{,}\) we have a general principle for finding the area between two curves, which we state as follows.

Using horizontal slices to find the area between two curves.

If two curves \(x = g(y)\) and \(x = f(y)\) intersect at \((g(c),c)\) and \((g(d),d)\text{,}\) and for all \(y\) such that \(c \le y \le d\text{,}\) \(g(y) \ge f(y)\text{,}\) then the area between the curves is
\begin{equation*} A = \int_{y=c}^{y=d} (g(y) - f(y)) \, dy\text{.} \end{equation*}

Activity 6.1.3.
In each of the following situations, our goal is to determine the area of the region described. For each region, (i) determine the intersection points of the curves, (ii) sketch the region whose area is being found, (iii) draw and label a representative slice, and (iv) state the area of the representative slice. Then, state a definite integral whose value is the exact area of the region, and evaluate the integral to find the numeric value of the region’s area. Note well: At the step where you draw a representative slice, you need to make a choice about whether to slice vertically or horizontally.
(a)
The finite region bounded by \(x=y^2\) and \(x=6-2y^2\text{.}\)
(b)
The finite region bounded by \(x=1-y^2\) and \(x = 2-2y^2\text{.}\)
(c)
The area bounded by the \(x\)-axis, \(y=x^2\text{,}\) and \(y=2-x\text{.}\)
(d)
The finite regions between the curves \(x=y^2-2y\) and \(y=x\text{.}\)

Subsection 6.1.4 Finding the length of a curve

We can also use the definite integral to find the length of a portion of a curve. We use the same fundamental principle: we slice the curve up into small pieces whose lengths we can easily approximate. Specifically, we subdivide the curve into small approximating line segments, as shown at left in Figure 6.1.6.
described in detail following the image
There are two adjacent images that show how we can think about the length of the given curve.
In the first version of the image on the left, the focus is on an interval in the first quadrant from \(x=x_0\) to \(x = x_3\) with three subdivisions. On the graph of the cubic function \(f\text{,}\) the points \((x_0,f(x_0))\text{,}\) \((x_1,f(x_1))\text{,}\) \((x_2,f(x_2))\text{,}\) and \((x_3,f(x_4))\) are plotted along with line segments connecting each adjacent pair of points. There is a box in the graph that includes the points \((x_1,f(x_1))\) and \((x_2,f(x_2))\text{,}\) as the contents of this box are magnified in the next image.
The second image zooms in on the portion of the graph of \(f\) from \(x=x_1\) to \(x=x_2\text{,}\) focusing on the line segment between \((x_1,f(x_1))\) and \((x_2,f(x_2))\text{.}\) We think of that line segment as the hypotenuse of the right triangle that’s now in this figure. That right triangle has a horizontal leg of length \(\Delta x\text{,}\) a vertical leg of length \(\Delta y\text{,}\) and we call the length of the hypotenuse \(h\text{.}\) Finally, the portion of the curve that lies between \((x_1,f(x_1))\) and \((x_2,f(x_2))\) we label as “\(L_{\text{slice}}\)”.
Figure 6.1.6. At left, a continuous function \(y = f(x)\) whose length we seek on the interval \(a = x_0\) to \(b = x_3\text{.}\) At right, a close up view of a portion of the curve.
We estimate the length \(L_{\text{slice} }\) of each portion of the curve on a small interval of length \(\Delta x\text{.}\) We use the right triangle with legs parallel to the coordinate axes and hypotenuse connecting the endpoints of the slice, as seen at right in Figure 6.1.6. The length, \(h\text{,}\) of the hypotenuse approximates the length, \(L_{\text{slice} }\text{,}\) of the curve between the two selected points. Thus,
\begin{equation*} L_{\text{slice} } \approx h = \sqrt{ (\Delta x)^2 + (\Delta y)^2 }\text{.} \end{equation*}
Next we use algebra to rearrange the expression for the length of the hypotenuse into a form that we can integrate. By removing a factor of \((\Delta x)^2\text{,}\) we find
\begin{align*} L_{\text{slice}} &\approx \sqrt{ (\Delta x)^2 + (\Delta y)^2 }\\ &= \sqrt{ (\Delta x)^2\left(1 + \frac{(\Delta y)^2}{(\Delta x)^2} \right)}\\ &= \sqrt{1 + \frac{(\Delta y)^2}{(\Delta x)^2} } \cdot \Delta x\text{.} \end{align*}
Then, as \(n \to \infty\) and \(\Delta x \to 0\text{,}\) we have that \(\frac{\Delta y}{\Delta x} \to \frac{dy}{dx} = f'(x)\text{.}\) Thus, we can say that
\begin{equation*} L_{\text{slice} } \approx \sqrt{1 + f'(x)^2} \Delta x\text{.} \end{equation*}
Taking a Riemann sum of all of these slices and letting \(n \to \infty\text{,}\) the total length of the curve is therefore
\begin{equation*} L = \int_a^b \sqrt{1+f'(x)^2} \, dx\text{.} \end{equation*}
We summarize this result more formally as follows.

The arc length of a curve.

Given a differentiable function \(f\) on an interval \([a,b]\text{,}\) the total arc length, \(L\text{,}\) along the curve \(y = f(x)\) from \(x = a\) to \(x = b\) is given by
\begin{equation*} L = \int_a^b \sqrt{1+f'(x)^2} \, dx\text{.} \end{equation*}

Activity 6.1.4.
Each of the following questions involves the arc length along a curve.
(a)
Use the definition and appropriate computational technology to determine the arc length along \(y = x^2\) from \(x = -1\) to \(x = 1\text{.}\)
(b)
Find the arc length of \(y = \sqrt{4-x^2}\) on the interval \(-2 \le x \le 2\text{.}\) Find this value in two different ways: (a) by using a definite integral, and (b) by using a familiar property of the curve.
(c)
Determine the arc length of \(y = xe^{3x}\) on the interval \([0,1]\text{.}\)
(d)
Will the integrals that arise calculating arc length typically be ones that we can evaluate exactly using the First FTC, or ones that we need to approximate? Why?
(e)
A moving particle is traveling along the curve given by \(y = f(x) = 0.1x^2 + 1\text{,}\) and does so at a constant rate of 7 cm/sec, where both \(x\) and \(y\) are measured in cm (that is, the curve \(y = f(x)\) is the path along which the object actually travels; the curve is not a “position function”). Find the position of the particle when \(t = 4\) sec, assuming that when \(t = 0\text{,}\) the particle’s location is \((0,f(0))\text{.}\)

Subsection 6.1.5 Summary

  • To find the area between two curves, we think about slicing the region into thin rectangles. If, for instance, the area of a typical rectangle on the interval \(x = a\) to \(x = b\) is given by \(A_{\text{rect} } = (g(x) - f(x)) \Delta x\text{,}\) then the exact area of the region is given by the definite integral
    \begin{equation*} A = \int_a^b (g(x)-f(x))\, dx\text{.} \end{equation*}
  • The shape of the region usually dictates whether we should use vertical rectangles of thickness \(\Delta x\) or horizontal rectangles of thickness \(\Delta y\text{.}\) We want the height of the rectangle given by the difference between two curves: if those curves are best thought of as functions of \(y\text{,}\) we use horizontal rectangles, whereas if those curves are best viewed as functions of \(x\text{,}\) we use vertical rectangles.
  • The arc length, \(L\text{,}\) along the curve \(y = f(x)\) from \(x = a\) to \(x = b\) is given by
    \begin{equation*} L = \int_a^b \sqrt{1 + f'(x)^2} \, dx\text{.} \end{equation*}

Exercises 6.1.6 Exercises

1.

Find the area enclosed between \(f(x) = 0.9 x^2 + 8\) and \(g(x) = x\) from \(x= -2\) to \(x= 3\text{.}\)

2.

Find the area of the region between \(y=x^{1/2}\) and \(y=x^{1/5}\) for \(0 \leq x \leq 1\text{.}\)
area =

3.

Find the area of the shaded region below.
Graph of the region between two functions of y in the plane.
A region in the \(x-y\) coordinate plane. The parabola \(x=y^2-4y\) forms the left boundary of the region. The parabola \(x=2y-y^2\) forms the right boundary of the region. The two parabolas intersect at a point labeled \((-3,3)\) and at another point which looks like the origin.
Area =

4.

Find the area between \(y = 2 \sin x\) and \(y = 4 \cos x\) over the interval \(\left[0,\pi\right]\text{.}\) Sketch the curves if necessary.
\(A=\)

5.

The boundaries of the shaded region are the \(y\)-axis, the line \(y = 1\text{,}\) and the curve \(y=\sqrt[4]{x}.\)
Graph of the region.
The region in the \(x-y\)-plane. The shaded region looks like a triangle with a curved side and seems to have vertices at the origin, \((0,1)\) and \((1,1)\text{.}\) The top boundary of the region is the horizontal line \(y=1\text{,}\) the left boundary of the region is the \(y\)-axis, and the bottom boundary of the region is the function \(y=\sqrt[4]{x}\text{.}\)
This area can be computed in two different ways using integrals.
First, it can be computed as an integral with respect to x,
\begin{equation*} \int_a^b [f(x)- g(x)]\,dx \end{equation*}
where \(a =\) , \(b =\) , and
\(f(x) -g(x) =\)
Alternatively, this area can be computed as an integral with respect to y,
\begin{equation*} \int_{c}^{d} h(y)\,dy \end{equation*}
where \(c =\) , \(d =\) and
\(h(y) =\)
Either way we find that the area is .

6.

Find the area of the region between the curves \(4x+y^2=12\) and \(x=y\text{.}\)
These two curves intersect when \(y =\) and \(y =\) .
This is better to integrate with respect to y, since we know the starting value and ending value of y, and the region can be described with one integral,
\begin{equation*} \int_{c}^{d} \left[ h(y)-k(y) \right] \,dy \end{equation*}
where \(c =\) , \(d =\) and
\(h(y)-k(y) =\)
Then we find that the area is .

7.

Consider the curve defined by the equation \(y=3x^{3}+2x\text{.}\) Set up an integral that represents the length of curve from the point \((-3,-87)\) to the point \((3,87)\text{.}\)
arclength = \(\int_c^d f(x)\, dx\text{,}\)
where \(c=\) \(d=\) \(f(x)=\)

8.

Find the arc length of the graph of the function \(f(x)=5 \sqrt{x^{3}}\) from \(x= 4\) to \(x=8\text{.}\)
arc length =

9.

Approximate the arc length of the curve \(y=\frac{1}{4}x^4\) over the interval \([1,2]\) using the trapezoidal rule and \(8\) intervals (i.e., \(T_{8}\)).
\(T_{8}=\)

10.

Find the exact area of each described region.
  1. The finite region between the curves \(x = y(y-2)\) and \(x=-(y-1)(y-3)\text{.}\)
  2. The region between the sine and cosine functions on the interval \([\frac{\pi}{4}, \frac{3\pi}{4}]\text{.}\)
  3. The finite region between \(x = y^2 - y - 2\) and \(y = 2x-1\text{.}\)
  4. The finite region between \(y = mx\) and \(y = x^2-1\text{,}\) where \(m\) is a positive constant.

11.

Let \(f(x) = 1-x^2\) and \(g(x) = ax^2 - a\text{,}\) where \(a\) is an unknown positive real number. For what value(s) of \(a\) is the area between the curves \(f\) and \(g\) equal to 2?

12.

Let \(f(x) = 2-x^2\text{.}\) Recall that the average value of any continuous function \(f\) on an interval \([a,b]\) is given by \(\frac{1}{b-a} \int_a^b f(x) \, dx\text{.}\)
  1. Find the average value of \(f(x) = 2-x^2\) on the interval \([0,\sqrt{2}]\text{.}\) Call this value \(r\text{.}\)
  2. Sketch a graph of \(y = f(x)\) and \(y = r\text{.}\) Find their intersection point(s).
  3. Show that on the interval \([0,\sqrt{2}]\text{,}\) the amount of area that lies below \(y = f(x)\) and above \(y = r\) is equal to the amount of area that lies below \(y = r\) and above \(y = f(x)\text{.}\)
  4. Will the result of (c) be true for any continuous function and its average value on any interval? Why?