Processing math: 75%
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

1.1: Areas Between Curves

( \newcommand{\kernel}{\mathrm{null}\,}\)

Learning Objectives
  • 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)=(x1x2)2+(y1y2)2.If the two points share the same x-coordinate (i.e., they lie on the same vertical line), then Equation ??? becomesd(P,Q)=(y1y2)2=|y1y2|={y1y2ify1y2y2y1ify1<y2.This can be read as follows:

The distance between any two points on a vertical line is yTyB, 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)=(x1x2)2=|x1x2|={x1x2ifx1x2x2x1ifx1<x2.This can be read as follows:

The distance between any two points on a horizontal line is xRxL, 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 yTopyBottom and the distance between two points on the horizontal line is xRightxLeft, 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 Lf(x) on the interval [a,b], then the vertical distance between y=L and the function f(x) is always going to be yTopyBottom=Lf(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 xRightxLeft=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.

This figure is a graph in the first quadrant. There are two curves on the graph. The higher curve is labeled “f(x)” and the lower curve is labeled “g(x)”. There are two boundaries on the x-axis labeled a and b. There is shaded area between the two curves bounded by lines at x=a and x=b.
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 xi[xi1,xi], and on each interval [xi1,xi] construct a rectangle that extends vertically from g(xi) to f(xi). Figure 1.1.2(a) shows the rectangles when xi is selected to be the left endpoint of the interval and n=10. Figure 1.1.2(b) shows a representative rectangle in detail.

This figure has three graphs. The first graph has two curves, one over the other. In between the curves is a rectangle. The top of the rectangle is on the upper curve labeled “f(x*)” and the bottom of the rectangle is on the lower curve and labeled “g(x*)”. The second graph, labeled “(a)”, has two curves on the graph. The higher curve is labeled “f(x)” and the lower curve is labeled “g(x)”. There are two boundaries on the x-axis labeled a and b. There is shaded area between the two curves bounded by lines at x=a and x=b. The third graph, labeled “(b)” has two curves one over the other. The first curve is labeled “f(x*)” and the lower curve is labeled “g(x*)”. There is a shaded rectangle between the two. The width of the rectangle is labeled as “delta x”.
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 yTiyBi=f(xi)g(xi) 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 byAni=1[yTiyBi]Δx=ni=1[f(xi)g(xi)]Δx.This is a Riemann sum, so we take the limit as n and we getA=limnni=1[f(xi)g(xi)]Δx=ba[f(x)g(x)]dx.These findings are summarized in the following theorem.

Theorem: Area between Two Curves

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.

Example 1.1.1

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)=3x2 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.

This figure is has two linear graphs in the first quadrant. They are the functions f(x) = x+4 and g(x)= 3-x/2. In between these lines is a shaded region, bounded above by f(x) and below by g(x). The shaded area is between x=1 and x=4.
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[yTyB]dx=ba[f(x)g(x)]dx=41[(x+4)(3x2)]dx=41[3x2+1]dx=[3x24+x]|41=(1674)=574.The area of the region is 574 units2.

Checkpoint 1.1.1

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.

Example 1.1.2

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)=6x, 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.

This figure is has two graphs in the first quadrant. They are the functions f(x) = 9-(x/2)^2 and g(x)= 6-x. In between these graphs, an upside down parabola and a line, is a shaded region, bounded above by f(x) and below by g(x).
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=6x9x24=6x36x2=244xx24x12=0(x6)(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[yTyB]dx=ba[f(x)g(x)]dx=62[9(x2)2(6x)]dx=62[3x24+x]dx=[3xx312+x22]|62=643.The area of the region is 643 units2.

Checkpoint 1.1.2

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.

Theorem: Finding the Area of a Region between Curves That Cross

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.

Example 1.1.3

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.

This figure is has two graphs. They are the functions f(x) = sinx and g(x)= cosx. They are both periodic functions that resemble waves. There are two shaded areas between the graphs. The first shaded area is labeled “R1” and has g(x) above f(x). This region begins at the y-axis and stops where the curves intersect. The second region is labeled “R2” and begins at the intersection with f(x) above g(x). The shaded region stops at x=pi.
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)|=yT1yB1=cos(x)sin(x).On the other hand, for x[π4,π],|f(x)g(x)|=yT2yB2=sin(x)cos(x).ThenA=ba|f(x)g(x)|dx=π0|sin(x)cos(x)|dx=π/40(yT1yB1)dx+ππ/4(yT2yB2)dx=π/40(cos(x)sin(x))dx+ππ/4(sin(x)cos(x))dx=[sin(x)+cos(x)]|π/40+[cos(x)sin(x)]|ππ/4=(21)+(1+2)=22.The area of the region is 22 units2.

Caution: Mastery of Trigonometry is required in this course

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.

Checkpoint 1.1.3

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+22 units2

Example 1.1.4

Consider the region depicted in Figure 1.1.6. Find the area of R.

This figure is has two graphs in the first quadrant. They are the functions f(x) = x^2 and g(x)= 2-x. In between these graphs is a shaded region, bounded to the left by f(x) and to the right by g(x). All of which is above the x-axis. The region is labeled R. The shaded area is between x=0 and x=2.
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(yT1yB1)dx=10(x20)dx=10x2dx=x33|10=13.Over the interval [1,2], the region is bounded above by yT2=g(x)=2x and below by yB2=0, which again is the x-axis, so we haveA2=21(yT2yB2)dx=21(2x0)dx=21(2x)dx=[2xx22]|21=12.Adding these areas together, we obtainA=A1+A2=13+12=56.The area of the region is 56 units2.

Checkpoint 1.1.4

Consider the region depicted in the following figure. Find the area of R.

This figure is has two graphs in the first quadrant. They are the functions f(x) = squareroot of x and g(x)= 3/2 – x/2. In between these graphs is a shaded region, bounded to the left by f(x) and to the right by g(x). All of which is above the x-axis. The shaded area is between x=0 and x=3.

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}.

This figure is has two graphs in the first quadrant. They are the functions v(y) and u(y). In between these graphs is a shaded region, bounded to the left by v(y) and to the right by u(y). The region is labeled R. The shaded area is between the horizontal boundaries of y=c and y=d.
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.

This figure is has three graphs. The first figure has two curves. They are the functions v(y*) and u(y*). In between these curves is a horizontal rectangle. The second figure labeled “(a)”, is a shaded region, bounded to the left by v(y) and to the right by u(y). The shaded area is between the horizontal boundaries of y=c and y=d. This shaded area is broken into rectangles between the curves. The third figure, labeled “(b)”, is the two curves v(y*) and u(y*). In between the curves is a horizontal rectangle with width delta y.
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.

Theorem: Finding the Area between Two Curves, Integrating along the y-axis

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

Example \PageIndex{5}

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.

This figure is has two graphs in the first quadrant. They are the functions f(x) = x^2 and g(x)= 2-x. In between these graphs is a shaded region, bounded to the left by f(x) and to the right by g(x). All of which is above the x-axis. The region is labeled R. The shaded area is between x=0 and x=2.
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.

Caution: Understand the meaning of  \left| f(x) - g(x) \right|

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| .

Checkpoint \PageIndex{5}

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.

This figure is has two graphs in the first quadrant. They are the functions f(x) = squareroot of x and g(x)= 3/2 – x/2. In between these graphs is a shaded region, bounded to the left by f(x) and to the right by g(x). All of which is above the x-axis. The shaded area is between x=0 and x=3.

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.

Example \PageIndex{6}

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.

Math 401 1.1 Ex 6.png
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

Advice: Review hyperbolic functions

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.


This page titled 1.1: Areas Between Curves is shared under a CC BY-NC 4.0 license and was authored, remixed, and/or curated by Roy Simpson.

Support Center

How can we help?