Skip to main content

Section 6.2 Area Between Curves

We’re going to stick with our theme of thinking about a Riemann Sum, but this time we’ll get back to thinking about area. First, we’ll try to remind ourselves not just of what a Riemann sum is, but how we actually constructed it.

Subsection Remembering Riemann Sums

Activity 6.2.1. Remembering Riemann Sums.

Let’s start with the function \(f(x)\) on the interval \([a,b]\) with \(f(x) \gt 0\) on the interval. We will construct a Riemman sum to approximate the area under the curve on this interval, and then build that into the integral formula.
A graph of a positive curve, labeled f(x), from x=a to x=b. The region between the curve and the x-axis is shaded.
Figure 6.2.1.
(a)
Divide the interval \([a,b]\) into 4 equally-sized subintervals.
(b)
Pick an \(x_k^*\) for \(k=1,2,3,4\text{,}\) one for each subinterval. Then, plot the points \((x_1^*, f(x_1^*))\text{,}\) \((x_2^*, f(x_2^*))\text{,}\) \((x_3^*, f(x_3^*))\text{,}\) and \((x_4^*, f(x_4^*))\text{.}\)
Hint.
These points are just general ones, and you don’t have to come up with actual numbers for the \(x\)-values or the corresponding \(y\)-values. Instead, just draw them in on the curve, somewhere in each of the subintervals.
(c)
Use these 4 points to draw 4 rectangles. What are the dimensions of these rectangles (the height and width)?
Hint.
You won’t have any numbers to calculate here, really: instead, see if you can calculate the widths by thinking about the total width of your interval. Then calculate the heights by thinking about the points you created.
(d)
Find the area of each rectangle by multiplying the heights and widths for each rectangle.
(e)
Add up the areas to construct a Riemman sum. Is this sum very accurate? Why or why not?
Hint.
Try to think about the accuracy of your area approximation by looking at it visually. Are there any places where your approximation looks far away from the actual area we’re thinking about?
(f)
Now we will generalize a little more. Let’s say we divide this up into \(n\) equally-sized pieces (instead of 4). Instead of trying to pick an \(x_k^*\) for the unknown number of subintervals (since we don’t have a value for \(n\) yet), let’s just focus on one of these: the arbitrary \(k\)th subinterval.
The same graph of a positive curve, labeled f(x), from x=a to x=b. Now, though, there is a single rectangle sitting on the x-axis and spanning up to f(x). It is delta-x wide, and the top of the rectangle touches the graph at the point (x_k, f(x_k)).
Figure 6.2.2.
What are the dimensions of this \(k\)th rectangle?
Answer.
Height: \(f(x_k^*)\)
Width: \(\Delta x\)
(g)
Find \(A_k\text{,}\) the area of this \(k\)th rectangle.
Answer.
\(A_k = f(x_k^*)\Delta x\)
(h)
Add up the areas of \(A_k\) for \(k=1,2,3,...,n\) to approximate the total area, \(A\)
Hint.
You might want to use summation notation, starting with \(\sum_{k=1}^n\)
Answer.
\(\displaystyle A \approx \sum_{k=1}^n f(x_k^*)\Delta x\)
(i)
Apply a limit as \(n\to \infty\) to this Riemann sum in order to construct the integral formula for the area under the curve \(f(x)\) from \(x=a\) to \(x=b\text{.}\)
Answer.
\begin{align*} A \amp = \lim_{n\to\infty} \sum_{k=1}^n f(x_k^*)\Delta x \\ \amp = \int_{x=a}^{x=b} f(x)\;dx \end{align*}
Hopefully this is helpful. If you’d like more reminders on this, you can always revisit Section 5.2 Riemann Sums and Area Approximations. For now, though, we mainly want to think about the general process we’re using:
  1. We slice the region from \(x=a\) to \(x=b\) into \(n\) pieces, and, for convenience, we choose an equal width: \(\Delta x = \frac{b-a}{n}\text{.}\)
  2. From each of the slices, we select some \(x\)-value (called \(x_k^*\) from the \(k\)th slice). We use that to evaluate the function on each slice: \(f(x_k^*)\text{.}\)
  3. We multiply the function value, \(f(x_k^*)\text{,}\) by the width of the slice, \(\Delta x\text{,}\) to get the measured area of each slice, \(A_k = f(x_k^*)\Delta x\text{.}\)
  4. We can estimate the total measured area of the region by adding all of the areas of the slices together:
    \begin{equation*} A\approx \sum_{k=1}^n f(x_k^*)\Delta x\text{.} \end{equation*}
  5. If we keep adding more and more slices (that keep getting thinner and thinner), then we eventually (in the limit) evaluate the area exactly:
    \begin{equation*} A=\lim_{n\to\infty}\sum_{k=1}^n f(x_k^*)\Delta x\text{.} \end{equation*}
We’re going to use this process (we’ll call it the slice-and-sum process) for other measurements! Let’s see how we can change this slightly to measure a different area.

Subsection Building an Integral Formula for the Area Between Curves

Activity 6.2.2. Area Between Curves.

Let’s start with our same function \(f(x)\) on the same interval \([a,b]\)m but also add the function \(g(x)\) on the same interval, with \(f(x) \gt g(x) \gt 0\) on the interval. We will construct a Riemann sum to approximate the area between these two curves on this interval, and then build that into the integral formula.
A graph of a positive curve and a less positive curve, g(x), labeled f(x), from x=a to x=b. The space between these curves is shaded.
Figure 6.2.3.
(a)
Divide the interval \([a,b]\) into 4 equally-sized subintervals.
(b)
Pick an \(x_k^*\) for \(k=1,2,3,4\text{,}\) one for each subinterval. Plot the points \((x_1^*, f(x_1^*))\text{,}\) \((x_2^*, f(x_2^*))\text{,}\) \((x_3^*, f(x_3^*))\text{,}\) and \((x_4^*, f(x_4^*))\text{.}\) Then plot the corresponding points on the \(g\) function: \((x_1^*, g(x_1^*))\text{,}\) \((x_2^*, g(x_2^*))\text{,}\) \((x_3^*, g(x_3^*))\text{,}\) and \((x_4^*, g(x_4^*))\text{.}\)
(c)
Use these 8 points to draw 4 rectangles, with the points on the \(f\) function defining the tops of the rectangles and the points on the \(g\) function defining the bottoms of the rectangles. What are the dimensions of these rectangles (the height and width)?
(d)
Find the area of each rectangle by multiplying the heights and widths for each rectangle.
(e)
Add up the areas to construct a Riemman sum.
(f)
Now we will generalize a little more. Let’s say we divide this up into \(n\) equally-sized pieces (instead of 4). Instead of trying to pick an \(x_k^*\) for the unknown number of subintervals (since we don’t have a value for \(n\) yet), let’s just focus on one of these: the arbitrary \(k\)th subinterval.
The same graph of the two curves f(x) and g(x) between x=a and x=b. Now, though, there is a single rectangle sitting on g(x) and spanning up to f(x). It is delta-x wide. The bottom of the rectangle touches the graph at the point (x_k, g(x_k)) and the top of the rectangle touches the graph at the point (x_k, f(x_k)).
Figure 6.2.4.
What are the dimensions of this \(k\)th rectangle?
Answer.
Height: \(f(x_k^*) - g(x_k^*)\)
Width: \(\Delta x\)
(g)
Find \(A_k\text{,}\) the area of this \(k\)th rectangle.
Answer.
\(A_k = \left(f(x_k^*) - g(x_k^*)\right)\Delta x\)
(h)
Add up the areas of \(A_k\) for \(k=1,2,3,...,n\) to approximate the total area, \(A\)
Hint.
You might want to use summation notation, starting with \(\sum_{k=1}^n\)
Answer.
\(\displaystyle A \approx \sum_{k=1}^n \left(f(x_k^*) - g(x_k^*)\right)\Delta x\)
(i)
Apply a limit as \(n\to \infty\) to this Riemann sum in order to construct the integral formula for the area between the curves \(f(x)\) and \(g(x)\) from \(x=a\) to \(x=b\text{.}\)
Answer.
\begin{align*} A \amp = \lim_{n\to\infty} \sum_{k=1}^n \left(f(x_k^*)-g(x_k^*)\right)\Delta x \\ \amp = \int_{x=a}^{x=b} \left(f(x)-g(x)\right)\;dx \end{align*}

Definition 6.2.5. Area Between Curves.

If \(f(x)\) and \(g(x)\) are continuous functions with \(f(x)\geq g(x)\) on the interval \([a,b]\text{,}\) then the area bounded between the curves \(y=f(x)\) and \(y=g(x)\) between \(x=a\) and \(x=b\) is
\begin{equation*} A = \int_{x=a}^{x=b} \left(f(x)-g(x)\right)\;dx\text{.} \end{equation*}
When we’re applying this formula for the area between curves, we won’t need to recreate the process from Activity 6.2.2 to create the integral formula. We simply can identify the functions bounding the region and the end points of the interval, and set up the integral.
We’ll use the slice-and-sum process for two reasons:
  1. To justify these formulas that we continue to build! While this one isn’t that difficult (you could have just built the formula by thinking about the area between curves as a difference in areas under each curves), some of the formulas we play with in this chapter will not be as intuitive.
  2. To help us understand what a Riemann sum actually is. It’s a product of a function value from a subinterval multiplied by the width of that subinterval, summed up across some larger interval.

Example 6.2.6.

For each of the following regions, set up an integral expression representing the area of the region. We also can practice evaluating these integrals to actually calculate the areas.
For each of these described regions, the hint will reveal a visualization of the region (using Desmos). Feel free to use that to set up the integral expression!
(a)
The region bounded between the graphs \(y=x^3+1\) and \(y=1-x^2\) from \(x=0\) to \(x=2\text{.}\)
Hint.
Solution.
\begin{align*} \int_{x=0}^{x=2}\left(x^3+1\right) - \left(1-x^2\right)\;dx \amp = \int_{x=0}^{x=2}\left(x^3+x^2\right)\;dx\\ \amp = \frac{20}{3} \end{align*}
(b)
The region bounded between the graphs \(y=\sin(x)\) and \(y=\cos(x)\) from \(x=0\) to \(x=\pi\text{.}\)
Hint.
Solution.
Notice that the boundary functions intersect at \(x=\frac{\pi}{4}\text{,}\) and they switch order. We’ll need to split this region into two different regions in order to identify the "top" and "bottom" boundary functions.
\begin{align*} \int_{x=0}^{x=\pi/4} \cos(x)-\sin(x)\;dx + \int_{x=\pi/4}^{x=\pi} \sin(x)-\cos(x)\;dx \amp = \left(\sqrt{2}-1\right) + \left(1+\sqrt{2}\right) \\ \amp = 2\sqrt{2} \end{align*}
(c)
The region bounded between the curves \(y=x+6\) and \(y=x^3\) and the \(x\)-axis.
Hint.
Solution.
On the interval \(-6\leq x\leq 0\text{,}\) the region is bounded above by \(y=x+6\) and below by the \(x\)-axis (\(y=0\)). On the interval \(0\leq x\leq 2\text{,}\) the region is bounded above by \(y=x+6\) and below by \(y=x^3\text{.}\)
\begin{align*} \int_{x=-6}^{x=0}\left(x+6\right)-0\;dx + \int_{x=0}^{x=2} \left(x+6\right) - \left(x^3\right)\;dx \amp = \int_{x=-6}^{x=0} x+6\;dx + \int_{x=0}^{x=2} 6+x-x^3 \;dx\\ \amp = 18 + 10\\ \amp = 28 \end{align*}

Subsection Changing Perspective

This last example had two interesting regions: we had to split them into two pieces because the boundary functions changed order or, in the case of the last example, changed completely to different boundary functions.
We’re going to redo the last problem and work on trying to change our perspective a bit in order to get a single integral to evaluate the area.

Activity 6.2.3. Trying for a Single Integral.

Let’s consider the same setup as earlier: the region bounded between two curves, \(y=x+6\) and \(y=x^3\text{,}\) as well as the \(x\)-axis (the line \(y=0\)). We’ll need to name these functions, so let’s call them \(f(x) = x^3\) and \(g(x) = x+6\text{.}\) But this time, we’ll approach the region a bit differently: we’re going to try to find the area of the region using only a single integral.
A graph of the two curves y=x+6 and y=x^3 as well as the line y=0. The region trapped inside is shaded, and the intersection points (-6,0) and (2,8) are labelled.
Figure 6.2.7.
(a)
The range of \(y\)-values in this region span from \(y=0\) to \(y=8\text{.}\) Divide this interval evenly into 4 equally sized-subintervals. What is the height of each subinterval? We’ll call this \(\Delta y\text{.}\)
Hint.
\(\Delta y = \dfrac{8-0}{4}\)
(b)
Pick a \(y\)-value from each sub-interval. You can call these \(y_1^*\text{,}\) \(y_2^*\text{,}\) \(y_3^*\text{,}\) and \(y_4^*\text{.}\)
(c)
Find the corresponding \(x\)-values on the \(f(x)\) function for each of the \(y\)-values you selected. These will be \(f^{-1}(y_1^*)\text{,}\) \(f^{-1}(y_2^*)\text{,}\) \(f^{-1}(y_3^*)\text{,}\) and \(f^{-1}(y_4^*)\text{.}\)
Hint.
You’re really just putting your \(y\)-values into the equation \(y=x+6\) and solving for \(x\text{.}\) Or you can solve for \(f^{-1}(y)\) in general, by solving for \(x\) while leaving \(y\) as a variable.
(d)
Do the same thing for the \(g\) function. Now you have 8 points that you can plot: \(\left(f^{-1}(y_1^*), y_1^*\right)\text{,}\) \(\left(f^{-1}(y_2^*), y_2^*\right)\text{,}\) \(\left(f^{-1}(y_3^*), y_3^*\right)\text{,}\) and \(\left(f^{-1}(y_4^*), y_4^*\right)\) as well as \(\left(g^{-1}(y_1^*), y_1^*\right)\text{,}\) \(\left(g^{-1}(y_2^*), y_2^*\right)\text{,}\) \(\left(g^{-1}(y_3^*), y_3^*\right)\text{,}\) and \(\left(g^{-1}(y_4^*), y_4^*\right)\text{.}\) Plot them.
(e)
Use these points to draw 4 rectangles with points on \(f\) and \(g\text{,}\) determining the left and right ends of the rectangle. What are the dimensions of these rectangles (height and width)?
(f)
Find the area of each rectangle by multiplying the height and widths of each rectangle.
(g)
Add up the areas to construct a Riemann sum.
(h)
Again, we’ll generalize this and think about the \(k\)th rectangle, pictured below.
The same region, but this time with a horizontal rectangle spanning across it, with the height labeled delta y. The curves are relabeled x=y-6 and x = cuberoot(y).
Figure 6.2.8.
Which variable defines the location of the \(k\)th rectangle, here? That is, if you were to describe where in this graph the \(k\)th rectangle is laying, would you describe it with an \(x\) or \(y\) variable? This will act as our general input variable for the integral we’re ending with.
(i)
What are the dimensions of the \(k\)th rectangle?
Answer.
Height: \(\Delta y\)
Width: \(\sqrt[3]{y_k^*} - \left(y_k^*-6\right)\)
(j)
Find \(A_k\text{,}\) the area of this \(k\)th rectangle.
Answer.
\(A_k = \left(\sqrt[3]{y_k^*} - \left(y_k^*-6\right)\right)\Delta y\)
(k)
Add up the areas of \(A_k\) for \(k=1,2,3,...,n\) to approximate the total area, \(A\text{.}\)
Hint.
You might want to use summation notation, starting with \(\sum_{k=1}^n\)
Answer.
\(\displaystyle A\approx \sum_{k=1}^n \left(\sqrt[3]{y_k^*} - \left(y_k^*-6\right)\right)\Delta y\)
(l)
Apply a limit as \(n\to \infty\) to this Riemann sum in order to construct the integral formula for the area between the curves \(f(x)\) and \(g(x)\) from \(x=a\) to \(x=b\text{.}\)
Answer.
\begin{align*} A \amp = \lim_{n\to\infty} \sum_{k=1}^n \left(\sqrt[3]{y_k^*} - \left(y_k^*-6\right)\right)\Delta y\\ \amp = \int_{y=0}^{y=8} \left(\sqrt[3]{y} - (y-6)\right)\;dy \end{align*}
(m)
Now that you have an integral, evaluate it! Find the area of this region to compare with the work we did previously, where we used multiple integrals to measure the size of this same region.
Solution.
\begin{align*} \int_{y=0}^{y=8} \left(\sqrt[3]{y} - (y-6)\right)\;dy \amp = \int_{y=0}^{y=8} \left(y^{1/3} - y + 6\right)\;dy\\ \amp = 28 \end{align*}
We can rewrite our definition of the area between curves (Definition 6.2.5) to account for this change in perspective, by thinking about these same functions in terms of \(y\text{.}\)

Definition 6.2.9. Area Between Curves (in terms of \(y\)).

If \(f(y)\) and \(g(y)\) are continuous functions with \(f(y) \geq g(y)\) on the interval of \(y\)-values \([c,d]\text{,}\) then the area bounded between the curves \(x=f(y)\) and \(x=g(y)\) from \(y=c\) to \(y=d\) is
\begin{equation*} A = \int_{y=c}^{y=d} \left( f(y) - g(y)\right)\;dy\text{.} \end{equation*}
This strategy of inverting our functions to change the variable that we integrate with regard to is useful, but a tricky part of this is deciding when to change variables.
Something that we can look for is intersection points in the region we’re working with. If, in our plan for setting up an integral, we would stack rectangles that would pass through an intersection point, then this indicates that we would need to split our region up to set up the integrals (since the boundary functions are changing). If we change the orientation of the rectangles, would they still pass through an intersection point? Are the functions that we’re working with relatively easy to invert? Can we antidifferentiate these functions, or their inverted versions?
These are some of the things we’ll consider as we make these decisions.
To finish things up, let’s look at a nice little interactive graph that can help show the differences between finding area with regard to \(x\) (using \(\Delta x\) in our rectangles and \(dx\) in our integrals) and finding area with regard to \(y\) (using \(\Delta y\) in our rectangles and \(dy\) in our integrals).

Practice Problems Practice Problems

1.

Explain how we use the "slice and sum" method to build an integral formula for the area bounded between curves. Give some details, enough to make sure you understand how the Riemann sums are constructed and how they turn into our integral formula.

2.

What are some changes/considerations that we need to make when we decide to set up our integral in terms of \(y\) instead of \(x\text{?}\)

3.

Set up (and practice evaluating) an integral expression representing the area of each of the regions described below.
The hint for each problem will open a graph of the region.
(a)
The region bounded by the curves \(y=x^2+1\) and \(y=4x+1\) between \(x=0\) and \(x=2\text{.}\)
Hint.
Solution.
\begin{equation*} \int_{x=0}^{x=2} (4x+1)-(x^2+1)\;dx = \frac{16}{3} \end{equation*}
(b)
The region bounded by the curves \(y=x\) and \(y=4-x\) between \(x=0\) and \(x=2\)
Hint.
Solution.
\begin{equation*} \int_{x=0}^{x=2} (4-x)-(x)\;dx = 4 \end{equation*}
(c)
The region bounded by the curves \(y=\sqrt{x}+2\) and \(y=x\) and the line \(x=0\text{.}\)
Hint.
Solution.
\begin{equation*} \int_{x=0}^{x=4}(\sqrt{x}+2) - (x)\;dx = \frac{16}{3} \end{equation*}
(d)
The region bounded by the curves \(y=\dfrac{2}{x^2+1}\) and \(y=x^2\text{.}\)
Hint.
Solution.
This one has annoying limits of integration, and so evaluating the integral is more annoying than it is worth.
\begin{equation*} \int_{x=-\sqrt{\frac{\sqrt{5}-1}{2}}}^{x=\sqrt{\frac{\sqrt{5}-1}{2}}}\left(\frac{1}{x^2+1}\right)-(x^2)\;dx \end{equation*}

4.

Set up and evaluate an integral representing the area of each of the regions described below. Explain whether you chose to integrate with respect to \(x\) or \(y\text{,}\) and why you made that choice.
(a)
The region bounded by the curves \(y=\sin(x)\) and \(y=\cos(x)\) and the line \(y=0\) between \(x=0\) and \(x=\frac{\pi}{2}\text{.}\)
Hint.
Solution.
\begin{equation*} \int_{x=0}^{x=\frac{\pi}{4}} \sin(x)\;dx + \int_{x=\frac{\pi}{4}}^{x=\frac{\pi}{2}}\cos(x)\;dx \end{equation*}
Or, alternatively:
\begin{equation*} \int_{y=0}^{y=\frac{\sqrt{2}}{2}} \cos^{-1}(y)-\sin^{-1}(y)\;dy\text{.} \end{equation*}
Admittedly, it is annoying to evaluate this in terms of \(y\text{,}\) even though it is satisfying to have only a single integral.
The area itself is \(2-\sqrt{2}\text{.}\)
(b)
The region bounded by the curves \(y=x\) and \(y=x^2-2\) and the line \(y=0\) in the first quadrant.
Hint.
Solution.
\begin{equation*} \int_{x=0}^{x=\sqrt{2}} x\;dx + \int_{x=\sqrt{2}}^{x=2} x-(x^2-2)\;dx \end{equation*}
Or alternatively:
\begin{equation*} \int_{y=0}^{y=2}\sqrt{y+2}-y\;dy\text{.} \end{equation*}
In either case, the area is \(\dfrac{10-4\sqrt{2}}{3}\text{.}\)
(c)
The region bounded by the curves \(y=x\) and \(y=x^2-2\) and the line \(y=0\) in the third quadrant.
Hint.
Solution.
\begin{equation*} \int_{x=-\sqrt{2}}^{x=-1} 0-(x^2-2)\;dx + \int_{x=-1}^{x=0} 0-(x)\;dx \end{equation*}
Or, alternatively:
\begin{equation*} \int_{y=-1}^{y=0} y-\sqrt{y+2}\;dy \text{.} \end{equation*}
In either case, the area is \(\dfrac{4\sqrt{2}}{3}-\dfrac{7}{6}\text{.}\)
(d)
The region bounded by the curves \(y=3x\text{,}\) \(y=4-x^2\text{,}\) and \(y=x^2\) in the first quadrant with \(0\leq x \leq \sqrt{2}\text{.}\)
Hint.
Solution.
\begin{equation*} \int_{x=0}^{x=1} (3x)-(x^2)\;dx + \int_{x=1}^{x=\sqrt{2}} (4-x^2)-(x^2)\;dx \end{equation*}
Or, alternatively:
\begin{equation*} \int_{y=0}^{y=2} \sqrt{y}-\left(\frac{y}{3}\right)\;dy + \int_{y=2}^{y=3}\sqrt{4-y} - \left(\frac{y}{3}\right)\;dy\text{.} \end{equation*}
In either case, the area is \(\dfrac{8\sqrt{2}}{3} - \dfrac{13}{6}\text{.}\)
(e)
The region bounded by the curves \(y=\sqrt{32x}\text{,}\) \(y=2x^2\text{,}\) and \(y=-4x+6\) in the first quadrant.
Hint.
(f)
The other region bounded by the curves \(y=\sqrt{32x}\text{,}\) \(y=2x^2\text{,}\) and \(y=-4x+6\) in the first quadrant.
Hint.
(g)
The region bounded by the curves \(x=2y\) and \(x=y^2-3\text{.}\)
Hint.
(h)
The region(s) bounded by the curves \(y=x^3\) and \(y=x\text{.}\)
Hint.