Skip to main content
Mathematics LibreTexts

1.1: Areas Between Curves

  • Page ID
    128808
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

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

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

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

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    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.

    In Differential Calculus (also known as Calc I), we developed the concept of the definite integral 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 value is always greater than the other. We then look at cases when the graphs of the functions cross. Last, 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 (also known as Calc II), let's take a moment to discuss something simple and familiar - distance. Specifically, we need to recall the Distance Formula. The distance between any two points, \( P\left( x_1, y_1 \right) \) and \( Q\left( x_2,y_2 \right) \), in the Cartesian plane is

    \[ d\left( P,Q \right) = \sqrt{\left(x_1 - x_2\right)^2 + \left(y_1 - y_2\right)^2}. \label{DistanceFormula}\]

    If the two points share the same \( x \)-coordinate (i.e., they lie on the same vertical line), then Equation \( \ref{DistanceFormula} \) becomes

    \[ d\left( P,Q \right) = \sqrt{\left(y_1 - y_2\right)^2} = \left| y_1 - y_2 \right| = \begin{cases} y_1 - y_2 & \text{if} & y_1 \geq y_2 \\ y_2 - y_1 & \text{if} & y_1 \lt y_2 \\ \end{cases}. \nonumber \]

    This can be read as,

    "the distance between any two points on a vertical line is \( y_T - y_B \),"

    where \( y_T = y_{\text{Top}} = \max\{ y_1, y_2 \} \) and \( y_B = y_{\text{Bottom}} = \min\{ y_1, y_2 \} \). This interpretation will be incredibly important 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 \( \ref{DistanceFormula} \) becomes

    \[ d\left( P,Q \right) = \sqrt{\left(x_1 - x_2\right)^2} = \left| x_1 - x_2 \right| = \begin{cases} x_1 - x_2 & \text{if} & x_1 \geq x_2 \\ x_2 - x_1 & \text{if} & x_1 \lt x_2 \\ \end{cases}. \nonumber \]

    This can be read as,

    "the distance between any two points on a horizontal line is \( x_R - x_L \),"

    The two statements, that the distance between two points on a vertical line is \( y_{\text{Top}} - y_{\text{Bottom}} \) and the distance between two points on the horizontal line is \( x_{\text{Right}} - x_{\text{Left}} \), 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 \ge f(x) \) on the interval \( [a,b] \), then the vertical distance between \( y = L \) and the function \( f(x) \) is always going to be \( y_{\text{Top}} - y_{\text{Bottom}} = L - f(x) \), for all \( x \in [a,b] \). Likewise, if we know the function \( g(y) \) is always to the left of \( h(y) \) for \( y \in [c,d] \), then the horizontal distance between these two functions for any value of \( y \) in \( [c,d] \) is \( x_{\text{Right}} - x_{\text{Left}} = 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!

    Subsection Footnotes

    1 We will be using the language and notation of this mini-review of distances throughout the remainder of Calculus II.


    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)\ge g(x)\) on \( [a,b]\). We want to find the area between the graphs of the functions, as shown in Figure \(\PageIndex{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 \(\PageIndex{1}\): The area between the graphs of two functions, \( f(x)\) and \( g(x)\), on the interval \( [a,b]\)

    As we did before, we are going to 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=\{x_i\}\) be a regular partition of \( [a,b]\). Then, for \( i=1,2,…,n,\) choose a point \( x^∗_i \in [x_{i−1},x_i]\), and on each interval \( [x_{i−1},x_i]\) construct a rectangle that extends vertically from \( g(x^∗_i)\) to \( f(x^∗_i)\). Figure \(\PageIndex{2}\)(a) shows the rectangles when \( x^∗_i\) is selected to be the left endpoint of the interval and \( n=10\). Figure \(\PageIndex{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 \(\PageIndex{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 \( y_{T_i} - y_{B_i} = f(x^∗_i)−g(x^∗_i)\) and the width of each rectangle is \( \Delta x\). Adding the areas of all the rectangles, we see that the area between the curves is approximated by

    \[ A \approx \sum_{i=1}^n[y_{T_i} - y_{B_i}] \Delta x = \sum_{i=1}^n[f(x^∗_i)−g(x^∗_i)] \Delta x. \nonumber \]

    This is a Riemann sum, so we take the limit as \( n \to \infty\) and we get

    \[ A=\lim_{n \to \infty}\sum_{i=1}^n[f(x^∗_i)−g(x^∗_i)] \Delta x=\int ^b_a[f(x)−g(x)]dx. \nonumber \]

    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) \geq g(x)\) over an interval [\( a,b]\). Let \(\textbf{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 \(\textbf{R}\) is given by

    \[A=\int ^b_a[f(x)−g(x)]dx. \nonumber \]

    We apply this theorem in the following example.

    Example \(\PageIndex{1}\): Finding the Area of a Region between Two Curves I

    If \(\textbf{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−\frac{x}{2}\) over the interval \( [1,4]\), find the area of region \(\textbf{R}\).

    Solution

    It will be a requirement to always graph the requested region. The region is depicted in the following figure.

    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 \(\PageIndex{3}\): A region between two curves is shown where one curve is always greater than the other.

    We can see that the values of \( y_T \) are always "played by" \( f(x) \) and the values of \( y_B \) are always "played by" \( g(x) \). Therefore, we have

    \[ \begin{array}{rcl}
    A & = & \displaystyle \int ^b_a[y_T − y_B]\,dx \\
    & = & \displaystyle \int ^b_a[f(x)−g(x)]\,dx \\
    & = & \displaystyle \int ^4_1 \left[(x+4)−\left(3−\dfrac{x}{2}\right) \right]\,dx \\
    & = & \displaystyle \int ^4_1\left[\dfrac{3x}{2}+1\right]\,dx \\
    & = & \left[ \dfrac{3x^2}{4}+x \right]\bigg|^4_1 \\
    & = & \left(16−\dfrac{7}{4}\right) \\
    & = & \dfrac{57}{4}. \\
    \end{array} \nonumber \]

    The area of the region is \( \frac{57}{4} \text{ units}^2\).

    Exercise \(\PageIndex{1}\)

    If \(\textbf{R}\) is the region bounded by the graphs of the functions \( f(x)=\frac{x}{2}+5\) and \( g(x)=x+\frac{1}{2}\) over the interval \( [1,5]\), find the area of region \(\textbf{R}\).

    Hint

    Graph the functions to determine which function’s graph forms the upper bound and which forms the lower bound, then follow the process used in Example.

    Answer

    \( 12 \text{ units}^2\)

    In Example \(\PageIndex{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 \(\PageIndex{2}\): Finding the Area of a Region between Two Curves II

    If \(\textbf{R}\) is the region bounded above by the graph of the function \( f(x)=9−\left(\frac{x}{2}\right)^2\) and below by the graph of the function \( g(x)=6−x\), find the area of region \(\textbf{R}\).

    Solution

    The region is depicted in the following figure, and we can see that \( y_T = f(x) \) and \( y_B = 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 \(\PageIndex{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 get

    \[ \begin{array}{crcl}
    & f(x) &= & g(x) \\
    \implies & 9−\left(\dfrac{x}{2}\right)^2 & = & 6−x \\
    \implies & 9−\dfrac{x^2}{4} & = & 6−x \\
    \implies & 36−x^2 & = & 24−4x \\
    \implies & x^2−4x−12 & = & 0 \\
    \implies & (x−6)(x+2) & = & 0. \\
    \end{array} \nonumber \]

    The graphs of the functions intersect when \( x=6\) or \( x=−2,\) so we want to integrate from \( −2\) to \( 6\). Therefore,

    \[\begin{array}{rcl}
    A & = & \displaystyle \int^b_a[y_T−y_B]\,dx \\
    & = & \displaystyle \int^b_a[f(x)−g(x)]\,dx \\
    & = & \displaystyle \int ^6_{−2} \left[9−(\dfrac{x}{2})^2−(6−x)\right]\,dx \\
    & = & \displaystyle \int ^6_{−2}\left[3−\dfrac{x^2}{4}+x\right]\,dx \\
    & = & \left. \left[3x−\dfrac{x^3}{12}+\dfrac{x^2}{2}\right] \right|^6_{−2} \\
    & = & \dfrac{64}{3}. \\
    \end{array} \nonumber \]

    The area of the region is \( \frac{64}{3} \text{ units}^2\).

    Exercise \(\PageIndex{2}\)

    If \(\textbf{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)=x^4\), find the area of region \(\textbf{R}\).

    Hint

    Use the process from Example \(\PageIndex{2}\).

    Answer

    \( \frac{3}{10} \text{ units}^2\)


    Areas of Compound Regions

    What if we want to look at regions bounded by the graphs of functions that cross one another? In that case, we modify the process we just developed by using the absolute value function.

    Theorem \(\PageIndex{2}\): 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 \(\textbf{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 \(\textbf{R}\) is given by

    \[A=\int ^b_a|f(x)−g(x)|dx. \nonumber \]

    In practice, applying this theorem requires us to break up the interval \( [a,b]\) and evaluate several integrals, depending on which of the function values is greater over a given part of the interval. We study this process in the following example.

    Example \(\PageIndex{3}\): Finding the Area of a Region Bounded by Functions That Cross

    If \(\textbf{R}\) is the region between the graphs of the functions \( f(x)=\sin(x) \) and \( g(x)=\cos(x)\) over the interval \( [0, \pi ]\), find the area of region \(\textbf{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 \(\PageIndex{5}\): The region between two curves can be broken into two sub-regions.

    The graphs of the functions intersect at \( x = \frac{\pi}{4}\). Since the roles of \( y_T \) and \( y_B \) switch between regions \( \textbf{R}_1 \) and \( \textbf{R}_2 \), our notation for \( y_{\text{top}} \) and \( y_{\text{bottom}} \) needs to gain a little more complexity.

    For \( x \in \left[0, \frac{\pi}{4}\right]\),

    \[ |f(x)−g(x)| = y_{T_1} - y_{B_1} = \cos(x)−\sin(x) . \nonumber \]

    On the other hand, for \( x \in \left[ \frac{\pi}{4}, \pi \right]\),

    \[ |f(x)−g(x)| = y_{T_2} - y_{B_2} = \sin(x) −\cos(x). \nonumber \]

    Then

    \[ \begin{array}{rcl}
    A & = & \displaystyle \int ^b_a|f(x)−g(x)|dx \\
    & = & \displaystyle \int ^ \pi _0|\sin(x) −\cos(x)|dx \\
    & = & \displaystyle \int ^{ \pi /4}_0(y_{T_1} − y_{B_1} )dx+\int ^{ \pi }_{ \pi /4}(y_{T_2} −y_{B_2})dx \\
    & = & \displaystyle \int ^{ \pi /4}_0(\cos(x)−\sin(x) )dx+\int ^{ \pi }_{ \pi /4}(\sin(x) −\cos(x))dx \\
    & = & [\sin(x) +\cos(x)] \bigg|^{ \pi /4}_0+[−\cos(x)−\sin(x) ] \bigg|^ \pi _{ \pi /4} \\
    & = & (\sqrt{2}−1)+(1+\sqrt{2}) \\
    & = & 2\sqrt{2}. \\
    \end{array} \nonumber \]

    The area of the region is \( 2\sqrt{2} \text{ units}^2\).

    Caution

    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 Formulas (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 do 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.

    Exercise \(\PageIndex{3}\)

    If \(\textbf{R}\) is the region between the graphs of the functions \( f(x)=\sin(x) \) and \( g(x)=\cos(x)\) over the interval \( \left[ \frac{\pi}{2},2 \pi \right]\), find the area of region \(\textbf{R}\).

    Hint

    The two curves intersect at \( x= \frac{5 \pi}{4}.\)

    Answer

    \( 2+2\sqrt{2} \text{ units}^2\)

    Example \(\PageIndex{4}\): Finding the Area of a Complex Region

    Consider the region depicted in Figure \(\PageIndex{6}\). Find the area of \(\textbf{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 \(\PageIndex{6}\): Two integrals are required to calculate the area of this region.
    Solution

    As with Example \(\PageIndex{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 \( y_{T_1} = f(x) = x^2\) and below by \(y_{B_1} = 0\), which is the \(x\)-axis, so we have

    \[ A_1=\int ^1_0\left( y_{T_1} - y_{B_1} \right)dx=\int ^1_0(x^2 - 0)dx=\int ^1_0x^2 dx= \dfrac{x^3}{3} \bigg|^1_0=\dfrac{1}{3}. \nonumber \]

    Over the interval \( [1,2],\) the region is bounded above by \( y_{T_2} = g(x)=2−x\) and below by \( y_{B_2} = 0 \), which again is the \(x\)-axis, so we have

    \[ A_2=\int ^2_1\left( y_{T_2} - y_{B_2} \right)dx=\int ^2_1(2−x - 0)dx=\int ^2_1(2−x)dx=\left[2x−\dfrac{x^2}{2}\right]\bigg|^2_1=\dfrac{1}{2}. \nonumber \]

    Adding these areas together, we obtain

    \[ A=A_1+A_2=\dfrac{1}{3}+\dfrac{1}{2}=\dfrac{5}{6}.\nonumber \]

    The area of the region is \( \frac{5}{6} \text{ units}^2\).

    Exercise \(\PageIndex{4}\)

    Consider the region depicted in the following figure. Find the area of \(\textbf{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.

    Hint

    The two curves intersect at \(x=1\).

    Answer

    \( \frac{5}{3} \text{ units}^2\)


    Regions Defined with Respect to \(y\)

    In Example \(\PageIndex{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 \( \PageIndex{6} \). Note that the left graph, shown in red, is represented by the function \( y=f(x)=x^2\). 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 need to evaluate one integral only. 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,…,n\), let \( Q=\{y_i\}\) be a regular partition of \( [c,d]\). Then, for \( i=1,2,…,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 \(\PageIndex{3}\): 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 by

    \[A=\int ^d_c[u(y)−v(y)]dy. \nonumber \]

    Example \(\PageIndex{5}\): Integrating with Respect to y

    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

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

    Exercise \(\PageIndex{5}\)

    Let’s revisit the checkpoint associated with Example \(\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.

    Hint

    Follow the process from the previous example.

    Answer

    \( \frac{5}{3} \text{ units}^2\)

    Subsection Footnotes

    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.


    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}\): Approximating 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 area between these two curves exactly. 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 \]

    Caution

    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.


    Key Concepts

    • Just as definite integrals can be used to find the area under a curve, they can also be used to find the area between two curves.
    • To find the area between two curves defined by functions, integrate the difference of the functions.
    • If the graphs of the functions cross, or if the region is complex, use the absolute value of the difference of the functions. In this case, it may be necessary to evaluate two or more integrals and add the results to find the area of the region.
    • Sometimes it can be easier to integrate with respect to y to find the area. The principles are the same regardless of which variable is used as the variable of integration.

    Key Equations

    • Area between two curves, integrating on the x-axis

    \( A=\int ^b_a[f(x)−g(x)]dx\)

    • Area between two curves, integrating on the y-axis

    \( A=\int ^d_c[u(y)−v(y)]dy\)



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