1.1: Areas Between Curves
( \newcommand{\kernel}{\mathrm{null}\,}\)
- Determine the area of a region between two curves by integrating with respect to the independent variable.
- Find the area of a compound region.
- Determine the area of a region between two curves by integrating with respect to the dependent variable.
A Review of Necessary Prerequisite Theory
The following video is an excellent place to start before your first class meeting. It contains a review of the necessary theory from Differential Calculus (a.k.a. Calculus I) to begin your pathway to success in this course.
In Differential Calculus, we developed the definite integral concept to calculate the area between a curve and an axis on a given interval. In this section, we expand that idea to calculate the area of more complex regions. We start by finding the area between two curves that are functions of x, beginning with the simple case in which one function is always greater than the other. We then look at instances where the graphs of the functions cross. Lastly, we consider how to calculate the area between two curves that are functions of y.
An Aside: Measuring Distances
Before we dive into Integral Calculus (a.k.a., Calculus II), let's take a moment to discuss something simple and familiar - distance.1 Specifically, we need to recall the Distance Formula. The distance between any two points, P(x1,y1) and Q(x2,y2), in the Cartesian plane isd(P,Q)=√(x1−x2)2+(y1−y2)2.If the two points share the same x-coordinate (i.e., they lie on the same vertical line), then Equation ??? becomesd(P,Q)=√(y1−y2)2=|y1−y2|={y1−y2ify1≥y2y2−y1ify1<y2.This can be read as follows:
The distance between any two points on a vertical line is yT−yB, where yT=yTop=max{y1,y2} and yB=yBottom=min{y1,y2}.
This interpretation will be critical as we move forward.
If we, instead, assume that the points P and Q lie on the same horizontal line (thereby having the same y-coordinates), then Equation ??? becomesd(P,Q)=√(x1−x2)2=|x1−x2|={x1−x2ifx1≥x2x2−x1ifx1<x2.This can be read as follows:
The distance between any two points on a horizontal line is xR−xL, where xR=xRight=max{x1,x2} and xL=xLeft=min{x1,x2}.
The two statements, that the distance between two points on a vertical line is yTop−yBottom and the distance between two points on the horizontal line is xRight−xLeft, are going to be used repeatedly in this course. For example, we will often need to determine the distance between a function, say f(x), and a horizontal line, say y=L. If we know that L≥f(x) on the interval [a,b], then the vertical distance between y=L and the function f(x) is always going to be yTop−yBottom=L−f(x), for all x∈[a,b]. Likewise, if we know the function g(y) is always to the left of h(y) for y∈[c,d], then the horizontal distance between these two functions for any value of y in [c,d] is xRight−xLeft=h(y)−g(y).
While the previous paragraph is (hopefully) simple to understand, the results are immensely helpful for us. It's now time to return to Calculus!
Area of a Region between Two Curves
Let f(x) and g(x) be continuous functions over an interval [a,b] such that f(x)≥g(x) on [a,b]. We want to find the area between the graphs of the functions, as shown in Figure 1.1.1.
Figure 1.1.1: The area between the graphs of two functions, f(x) and g(x), on the interval [a,b]
As we did before, we will partition the interval on the x-axis and approximate the area between the graphs of the functions with rectangles. So, for i=0,1,2,…,n, let P={xi} be a regular partition of [a,b]. Then, for i=1,2,…,n, choose a point x∗i∈[xi−1,xi], and on each interval [xi−1,xi] construct a rectangle that extends vertically from g(x∗i) to f(x∗i). Figure 1.1.2(a) shows the rectangles when x∗i is selected to be the left endpoint of the interval and n=10. Figure 1.1.2(b) shows a representative rectangle in detail.
Figure 1.1.2: (a) We can approximate the area between the graphs of two functions, f(x) and g(x), with rectangles. (b) The area of a typical rectangle goes from one curve to the other.
The height of each individual rectangle is yTi−yBi=f(x∗i)−g(x∗i) and the width of each rectangle is Δx. Adding the areas of all the rectangles, we see that the area between the curves is approximated byA≈n∑i=1[yTi−yBi]Δx=n∑i=1[f(x∗i)−g(x∗i)]Δx.This is a Riemann sum, so we take the limit as n→∞ and we getA=limn→∞n∑i=1[f(x∗i)−g(x∗i)]Δx=∫ba[f(x)−g(x)]dx.These findings are summarized in the following theorem.
Let f(x) and g(x) be continuous functions such that f(x)≥g(x) over an interval [a,b]. Let R denote the region bounded above by the graph of f(x), below by the graph of g(x), and on the left and right by the lines x=a and x=b, respectively. Then, the area of R is given byA=∫ba[f(x)−g(x)]dx.
We apply this theorem in the following example.
If R is the region bounded above by the graph of the function f(x)=x+4 and below by the graph of the function g(x)=3−x2 over the interval [1,4], find the area of region R.
- Solution
-
Graphing the requested region, depicted in the following figure, will be a requirement.
Figure 1.1.3: A region between two curves is shown where one curve is always greater than the other.We can see that the values of yT are always "played by" f(x) and the values of yB are always "played by" g(x). Therefore, we haveA=∫ba[yT−yB]dx=∫ba[f(x)−g(x)]dx=∫41[(x+4)−(3−x2)]dx=∫41[3x2+1]dx=[3x24+x]|41=(16−74)=574.The area of the region is 574 units2.
If R is the region bounded by the graphs of the functions f(x)=x2+5 and g(x)=x+12 over the interval [1,5], find the area of region R.
- Answer
-
12 units2
In Example 1.1.1, we defined the interval of interest as part of the problem statement. Quite often, though, we want to define our interval of interest based on where the graphs of the two functions intersect. This is illustrated in the following example.
If R is the region bounded above by the graph of the function f(x)=9−(x2)2 and below by the graph of the function g(x)=6−x, find the area of region R.
- Solution
-
The region is depicted in the following figure, and we can see that yT=f(x) and yB=g(x) over the entire region.
Figure 1.1.4: This graph shows the region below the graph of f(x) and above the graph of g(x).We first need to compute where the graphs of the functions intersect. Setting f(x)=g(x), we getf(x)=g(x)⟹9−(x2)2=6−x⟹9−x24=6−x⟹36−x2=24−4x⟹x2−4x−12=0⟹(x−6)(x+2)=0.The graphs of the functions intersect when x=6 or x=−2, so we want to integrate from −2 to 6. Therefore,A=∫ba[yT−yB]dx=∫ba[f(x)−g(x)]dx=∫6−2[9−(x2)2−(6−x)]dx=∫6−2[3−x24+x]dx=[3x−x312+x22]|6−2=643.The area of the region is 643 units2.
If R is the region bounded above by the graph of the function f(x)=x and below by the graph of the function g(x)=x4, find the area of region R.
- Answer
-
310 units2
Areas of Compound Regions
What if we want to examine regions bounded by graphs of functions that cross one another? In that case, we modify the process we just developed by using the absolute value function.
Let f(x) and g(x) be continuous functions over an interval [a,b]. Let R denote the region between the graphs of f(x) and g(x), and be bounded on the left and right by the lines x=a and x=b, respectively. Then, the area of R is given byA=∫ba|f(x)−g(x)|dx.
In practice, applying this theorem requires us to break up the interval [a,b] and evaluate several integrals, depending on which function values are greater over a given part of the interval. We study this process in the following example.
If R is the region between the graphs of the functions f(x)=sin(x) and g(x)=cos(x) over the interval [0,π], find the area of region R.
- Solution
-
The region is depicted in the following figure.
Figure 1.1.5: The region between two curves can be broken into two sub-regions.The graphs of the functions intersect at x=π4. Since the roles of yT and yB switch between regions R1 and R2, our notation for ytop and ybottom needs to gain a little more complexity.
For x∈[0,π4],|f(x)−g(x)|=yT1−yB1=cos(x)−sin(x).On the other hand, for x∈[π4,π],|f(x)−g(x)|=yT2−yB2=sin(x)−cos(x).ThenA=∫ba|f(x)−g(x)|dx=∫π0|sin(x)−cos(x)|dx=∫π/40(yT1−yB1)dx+∫ππ/4(yT2−yB2)dx=∫π/40(cos(x)−sin(x))dx+∫ππ/4(sin(x)−cos(x))dx=[sin(x)+cos(x)]|π/40+[−cos(x)−sin(x)]|ππ/4=(√2−1)+(1+√2)=2√2.The area of the region is 2√2 units2.
Your success in Calculus II will rely heavily on your mastery of concepts from Trigonometry. You will frequently need to recall, without any prompting, the following identities and theorems:
- Pythagorean Identities,
- Sum and Difference Formulas (for sine and cosine),
- Double-Angle Identities (for sine and cosine),
- Half-Angle Formulas (for sine and cosine) - these are also known as the Power Reduction Formulas, and
- the Even/Odd Identities.
Moreover, it is assumed you can perform each of the following skills without using technology for help:
- evaluate all trigonometric functions at special angles, or at angles having special angles as reference angles, as well as at axial angles,
- accurately graph transformations of trigonometric functions,
- solve trigonometric equations,
- evaluate inverse trigonometric functions,
- understand the domain and range restrictions of all base trigonometric functions, and
- understand the domain and range restrictions of all base inverse trigonometric functions.
If you need a quick review of your Trigonometry, please see Section 1.6 of the Differential Calculus textbook. If you need a deeper review, an entire course in Trigonometry (i.e., Math 373 at CRC) is a great choice.
If R is the region between the graphs of the functions f(x)=sin(x) and g(x)=cos(x) over the interval [π2,2π], find the area of region R.
- Answer
-
2+2√2 units2
Consider the region depicted in Figure 1.1.6. Find the area of R.
Figure 1.1.6: Two integrals are required to calculate the area of this region.
- Solution
-
As with Example 1.1.3, we need to divide the interval into two pieces. The graphs of the functions intersect at x=1 (set f(x)=g(x) and solve for x), so we evaluate two separate integrals: one over the interval [0,1] and one over the interval [1,2].
Over the interval [0,1], the region is bounded above by yT1=f(x)=x2 and below by yB1=0, which is the x-axis, so we haveA1=∫10(yT1−yB1)dx=∫10(x2−0)dx=∫10x2dx=x33|10=13.Over the interval [1,2], the region is bounded above by yT2=g(x)=2−x and below by yB2=0, which again is the x-axis, so we haveA2=∫21(yT2−yB2)dx=∫21(2−x−0)dx=∫21(2−x)dx=[2x−x22]|21=12.Adding these areas together, we obtainA=A1+A2=13+12=56.The area of the region is 56 units2.
Consider the region depicted in the following figure. Find the area of R.
- Answer
-
53 units2
Regions Defined with Respect to y
In Example 1.1.4, we had to evaluate two separate integrals to calculate the area of the region. However, there is another approach that requires only one integral. What if we treat the curves as functions of y instead of as functions of x? Review Figure 1.1.6. Note that the left graph, shown in red, is represented by the function y=f(x)=x2. We could just as easily solve this for x and represent the curve by the function of y , x=v(y)=\sqrt{y}.2 Similarly, the right graph is represented by the function y=g(x)=2−x, but could just as easily be represented by the function x=u(y)=2−y. When the graphs are represented as functions of y, we see the region is bounded on the left by the graph of one function and on the right by the graph of the other function. Therefore, if we integrate with respect to y, we only need to evaluate one integral. Let’s develop a formula for this type of integration.
Let u(y) and v(y) be continuous functions over an interval [c,d] such that u(y) \geq v(y) for all y \in [c,d]. We want to find the area between the graphs of the functions, as shown in Figure \PageIndex{7}.
Figure \PageIndex{7}: We can find the area between the graphs of two functions, u(y) and v(y).
This time, we are going to partition the interval on the y-axis and use horizontal rectangles to approximate the area between the functions. So, for i=0,1,2, \ldots ,n, let Q=\{y_i\} be a regular partition of [c,d]. Then, for i=1,2, \ldots ,n, choose a point y^∗_i \in [y_{i−1},y_i], then over each interval [y_{i−1},y_i] construct a rectangle that extends horizontally from v(y^∗_i) to u(y^∗_i). Figure \PageIndex{8}(a) shows the rectangles when y^∗_i is selected to be the lower endpoint of the interval and n=10. Figure \PageIndex{8}(b) shows a representative rectangle in detail.
Figure \PageIndex{8}: (a) Approximating the area between the graphs of two functions, u(y) and v(y), with rectangles. (b) The area of a typical rectangle.
The height of each individual rectangle is \Delta y and the width of each rectangle is x_{R_i} - x_{L_i} = u(y^∗_i)−v(y^∗_i). Therefore, the area between the curves is approximately A \approx \sum_{i=1}^n[x_{R_i} - x_{L_i}] \Delta y = \sum_{i=1}^n[u(y^∗_i)−v(y^∗_i)] \Delta y . \nonumber This is a Riemann sum, so we take the limit as n \to \infty, obtaining \begin{array}{rcl} A & = & \displaystyle \lim_{n \to \infty}\sum_{i=1}^n[x_{R_i} - x_{L_i}] \Delta y \\ \\ & = & \displaystyle \lim_{n \to \infty}\sum_{i=1}^n[u(y^∗_i)−v(y^∗_i)] \Delta y \\ \\ & = & \displaystyle \int ^d_c[u(y)−v(y)]dy. \\ \end{array} \nonumber These findings are summarized in the following theorem.
Let u(y) and v(y) be continuous functions such that u(y) \geq v(y) for all y \in [c,d]. Let \textbf{R} denote the region bounded on the right by the graph of u(y), on the left by the graph of v(y), and above and below by the lines y=d and y=c, respectively. Then, the area of \textbf{R} is given byA=\int ^d_c[u(y)−v(y)]dy. \nonumber
Let’s revisit Example \PageIndex{4}; only this time, let’s integrate with respect to y. Let \textbf{R} be the region depicted in Figure \PageIndex{9}. Find the area of \textbf{R} by integrating with respect to y.
Figure \PageIndex{9}: The area of region \textbf{R} can be calculated using one integral only when the curves are treated as functions of y.
- Solution
-
We must first express the graphs as functions of y. As we saw at the beginning of this section, the curve on the left can be represented by the function x_L=v(y)=\sqrt{y}, and the curve on the right can be represented by the function x_R=u(y)=2−y.
Now, we have to determine the limits of integration. The region is bounded below by the x-axis, so the lower limit of integration is y=0. The upper limit of integration is determined by the point where the two graphs intersect, which is the point (1,1), so the upper limit of integration is y=1. Thus, we have [c,d]=[0,1].
Calculating the area of the region, we get \begin{array}{rcl} A & = & \displaystyle \int ^d_c[x_R - x_L]dy \\ \\ & = & \displaystyle \int ^d_c[u(y)−v(y)]dy \\ \\ & = & \displaystyle \int ^1_0[(2−y)−\sqrt{y}]dy \\ \\ & = & \left[2y−\dfrac{y^2}{2}−\dfrac{2}{3}y^{3/2}\right] \bigg|^1_0\\ \\ & = & \dfrac{5}{6}. \\ \end{array} \nonumber The area of the region is \frac{5}{6} \text{ units}^2.
While the notations, y_T , y_B , x_R , and x_L are incredibly helpful in properly setting up integrals to determine areas between curves (and, later, for rotational volumes), you are not excused from understanding the true definition of \left| f(x) - g(x) \right| .
Let’s revisit Checkpoint \PageIndex{4}; only this time, let’s integrate with respect to y. Let \textbf{R} be the region depicted in the following figure. Find the area of \textbf{R} by integrating with respect to y.
- Answer
-
\frac{5}{3} \text{ units}^2
Approximating Areas Between Curves
We can combine concepts from Calculus I with our new knowledge to approximate the area between two curves.
Approximate the area between f(x) = \cosh(x) and g(x) = - \frac{x}{2x^2 + 1} on the interval [-2,2] using vertical slices and right endpoints with n = 8 .
- Solution
-
First, it is actually possible for us to compute the exact area between these two curves. Consider the Figure \PageIndex{10} below.
Figure \PageIndex{10}We can easily see that the area can be computed using the definite integral \begin{array}{rclr} A & = & \displaystyle \int_{-2}^{2} \left( y_T - y_B \right) dx & \\ \\ & = & \displaystyle \int_{-2}^{2} \left( f(x) - g(x) \right) dx & \\ \\ & = & \displaystyle \int_{-2}^{2} \left( \cosh(x) + \dfrac{x}{2x^2 + 1} \right) dx & \\ \\ & = & \displaystyle \int_{-2}^{2} \cosh(x) dx + \int_{-2}^{2} \dfrac{x}{2x^2 + 1} dx & \\ \\ & = & \displaystyle \int_{-2}^{2} \cosh(x) dx + 0 & \left( \dfrac{x}{2x^2 + 1} \text{ is an odd function being integrated over a symmetric interval.} \right) \\ \\ & = & 2 \displaystyle \int_{0}^{2} \cosh(x) dx & \left( \cosh(x) \text{ is an even function being integrated over a symmetric interval.} \right) \\ \\ & = & 2 \sinh(x) \bigg|_{0}^{2} & \\ \\ & = & 2 \sinh(2) - 2\sinh(0) & \\ \\ & = & 2 \sinh(2) - 0 & \\ \\ & = & 2 \sinh(2) & \\ \end{array} \nonumber However, we are being asked to approximate the value of this area, so let's practice our skills from Calculus I.
We are given n = 8 , which implies \Delta x = \frac{b - a}{n} = \frac{2 - (-2)}{8} = \frac{1}{2} and x_i = a + i \Delta x = -2 + \frac{1}{2}i . Therefore, \begin{array}{rcl} A & \approx & R_8 \\ \\ & = & \displaystyle \sum_{i = 1}^{8} \left( y_{T_i} - y_{B_i} \right) \Delta x \\ \\ & = & \displaystyle \sum_{i = 1}^{8} \left( f(x_i) - g(x_i) \right) \Delta x \\ \\ & = & \displaystyle \sum_{i = 1}^{8} \left( f\left(-2 + \dfrac{1}{2} i\right) - g\left(-2 + \dfrac{1}{2} i\right) \right) \dfrac{1}{2} \\ \\ & = & \dfrac{1}{2} \displaystyle \sum_{i = 1}^{8} \left( \cosh\left(-2 + \dfrac{1}{2} i\right) + \frac{-2 + \dfrac{1}{2} i}{2\left(-2 + \dfrac{1}{2} i\right)^2 + 1} \right) \\ \\ & = & \dfrac{1}{2} \left\{ \left[ \cosh\left( -\dfrac{3}{2} \right) + \dfrac{-\frac{3}{2}}{2 \left( -\frac{3}{2} \right)^2 + 1} \right] + \left[ \cosh\left( -1 \right) + \dfrac{-1}{2 \left( -1 \right)^2 + 1} \right] + \cdots + \left[ \cosh\left( 2 \right) + \dfrac{2}{2 \left( 2 \right)^2 + 1} \right] \right\} \\ \\ & \approx & 7.5153 \\ \end{array} \nonumber
The hyperbolic functions you learned from Calculus I will creep up at random points throughout Integral Calculus and Differential Equations. If your Calculus I instructor did not cover them, then you can always review the necessary concepts in Section 1.7 of the Differential Calculus textbook.
Footnotes
1 We will use the language and notation of this mini-review of distances throughout the remainder of Calculus II.
2 Note that x=−\sqrt{y} is also a valid representation of the function y=f(x)=x^2 as a function of y. However, based on the graph, it is clear we are interested in the positive square root.