2.1: Areas Between Curves
- Last updated
- Save as PDF
- Page ID
- 168405

- Roy Simpson
- Cosumnes River College
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\( \newcommand{\dsum}{\displaystyle\sum\limits} \)
\( \newcommand{\dint}{\displaystyle\int\limits} \)
\( \newcommand{\dlim}{\displaystyle\lim\limits} \)
\( \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{\longvect}{\overrightarrow}\)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)Section Preview
- Note to the Instructor (click to expand)
- This section only covers areas between curves (with a clarification of the difference between a direct integration problem and being requested to find areas). Focus should be on requiring graphing skills (algebraic, trigonometric, exponential, etc.).
Core Prerequisites (i.e., "Understanding the Lesson"): The following prerequisite topics (which have not already been listed as prerequisites in previous sections of this text) are required to understand the core concepts in this lesson.
- (click to expand)
-
- Sets and Numbers
- Intervals and Interval Notation — Every region and its limits of integration are stated as closed intervals (\([a,b]\), \([c,d]\), \([0,\pi]\)); the student must read this notation to know what region is being measured and where integration begins and ends.
- Geometry
- The Pythagorean Theorem, Distance Formula, and Midpoint Formula — The section's entire "measuring distances" framework (\(y_T - y_B\) vertically, \(x_R - x_L\) horizontally) is the Distance Formula specialized to vertical and horizontal segments; the text explicitly asks the student to recall it, making it the conceptual foundation of every area integral.
- Graphs
- The Cartesian Coordinate System and the Quadrants — Setting up and visualizing the bounded region requires fluency with the 2D coordinate plane and its sign conventions.
- An Overview of Functions
- The Definition of a Function — The boundaries of every region are given as functions (\(y=f(x)\) and, later, \(x=v(y)\)); understanding what a function is underlies identifying the top/bottom or left/right curve.
- The Domain and Range of a Function — Determining the interval a region spans, and re-expressing a curve as a function of \(y\) (e.g., \(x=v(y)=\sqrt{y}\)), both rely on understanding where a function is defined and what outputs it produces.
- Graphing Functions
- Intercepts and Base Graphs — Recognizing the parent shapes (lines, parabolas, \(\sqrt{x}\), trigonometric curves) is what lets a student quickly sketch each region and correctly assign the upper/lower or right/left roles before integrating.
- Absolute Value Functions
- The Concept of Absolute Value — The compound-region formula is \(A=\int_a^b|f(x)-g(x)|\,dx\), and the distance derivation rests on \(\sqrt{x^2}=|x|\); the section's Caution box explicitly insists the student understand the true meaning of \(|f(x)-g(x)|\).
- Trigonometry
- Base Graphs of the Trigonometric Functions — Visualizing regions bounded by sine and cosine (Example 3) requires knowing the shapes of the trigonometric graphs in order to see where one curve lies above the other.
- Sets and Numbers
Operational Prerequisites (i.e., "Completing the Homework"): The following prerequisite topics (which have not already been listed as prerequisites in previous sections of this text) are needed to complete the homework.
- (click to expand)
-
- Simplifying Expressions
- Multiplying Polynomials and the Distributive Property — Simplifying each integrand after forming \(f(x)-g(x)\) requires distributing the subtraction and expanding squares such as \(\left(\frac{x}{2}\right)^2\) (Examples 1, 2, and 4).
- Solving Equations
- Solving Linear Equations — One or Two-Steps — Locating intersection points that set the limits of integration requires solving \(f(x)=g(x)\) when the bounding curves are lines.
- Solving Quadratic Equations by Factoring — Example 2 finds the bounds by solving \(x^2-4x-12=0\) via \((x-6)(x+2)=0\), and Example 4 solves \(x^2=2-x\); factoring is the tool for these intersections.
- Solving Polynomial Equations — Higher-degree intersections (e.g., Checkpoint 2's \(x=x^4\), i.e., \(x^4-x=0\)) require the general polynomial-solving techniques to find the limits of integration.
- Solving Radical Equations — Intersections involving a square-root boundary (e.g., \(\sqrt{x}=\frac{3}{2}-\frac{x}{2}\) in Checkpoints 4 and 5) require isolating and squaring to solve.
- Graphs
- Ordered Pairs and Graphing Equations by Point-Plotting — Producing the required sketch for each example (every region is graphed before integrating) uses point-plotting to trace the curves and pin down where they cross.
- An Overview of Functions
- Evaluating Functions — Comparing which curve is on top, checking intersection coordinates, and the numerical right-endpoint approximation in Example 6 all require substituting values into \(f\) and \(g\).
- Trigonometry
- Evaluating Trigonometric Functions at Special Angles — Example 3 evaluates \(\sin\) and \(\cos\) at \(\frac{\pi}{4}\) (and the antiderivatives at \(0\) and \(\pi\)) to produce the exact result \(2\sqrt{2}\).
- Solving Basic Trigonometric Equations — Example 3 locates the crossing of \(\sin(x)\) and \(\cos(x)\) by solving \(\sin(x)=\cos(x)\) to get \(x=\frac{\pi}{4}\), which splits the compound region.
- Simplifying Expressions
The following is a list of learning objectives for this section.
- Learning Objectives (click to expand)
-
- 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. 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 follows:
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 critical as we move forward and we will use this language and notation of distances throughout the remainder of Calculus II.
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 follows:
The distance between any two points on a horizontal line is \(x_R - x_L\), where \(x_R = x_{\text{Right}} = \max\{x_1, x_2 \}\) and \(x_L = x_{\text{Left}} = \min\{x_1 , x_2 \}\).
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!
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}\).
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, \ldots ,n\), let \(P=\{x_i\}\) be a regular partition of \([a,b]\). Then, for \(i=1,2, \ldots ,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.
(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}\)
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
-
Graphing the requested region, depicted in the Figure \(\PageIndex{3}\), will be a requirement.
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\).
Checkpoint \(\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}\).
- 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}\)
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 Figure \(\PageIndex{4}\), and we can see that \(y_T = f(x)\) and \(y_B = g(x)\) over the entire region.
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-\left(\dfrac{x}{2}\right)^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\).
Interactive Element: The Representative Rectangle
The following Interactive Element might help you visualize how the height of a representative rectangle equals the vertical distance \(y_T - y_B = f(x) - g(x)\) between the two curves.
Interact: Drag the orange point along the \(x\)-axis.
Observation: The red segment always runs from \(g(x)\) up to \(f(x)\), so its height is exactly \(f(x)-g(x)\) — the integrand of \(\int_a^b [f(x)-g(x)]\,dx\).
Checkpoint \(\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}\).
- Answer
-
\(\frac{3}{10} \text{ units}^2\)
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 \(\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 function values are greater over a given part of the interval. We study this process in the following example.
Example \(\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 \([0, \pi ]\), find the area of region \(\textbf{R}\).
- Solution
-
The region is depicted in Figure \(\PageIndex{5}\).
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\).
Interactive Element: When the Curves Swap
The following Interactive Element might help you visualize why a compound region uses \(\left| f(x) - g(x) \right|\) and must be split where the curves cross.
Interact: Drag the orange point along the \(x\)-axis and watch the highlighted "top" marker.
Observation: The top marker jumps from \(\cos x\) to \(\sin x\) at \(x=\frac{\pi}{4}\); the roles of \(y_T\) and \(y_B\) switch, so the integral must be broken at the crossing.
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 5.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 \(\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}\).
- Answer
-
\(2+2\sqrt{2} \text{ units}^2\)
Example \(\PageIndex{4}\)
Consider the region depicted in Figure \(\PageIndex{6}\). Find the area of \(\textbf{R}\).
- 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\).
Checkpoint \(\PageIndex{4}\)
Consider the region depicted in Figure \(\PageIndex{7}\). Find the area of \(\textbf{R}\).
- 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}\). In fact, \( 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.
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{8}\).
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{9}\)(a) shows the rectangles when \(y^*_i\) is selected to be the lower endpoint of the interval and \(n=10\). Figure \(\PageIndex{9}\)(b) shows a representative rectangle in detail.
(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 by\[A=\int ^d_c[u(y)-v(y)]dy.\nonumber\]
Interactive Element: Slicing Horizontally
The following Interactive Element might help you visualize why treating the boundaries as functions of \(y\) lets you find this area with a single integral.
Interact: Drag the orange point up and down the \(y\)-axis.
Observation: Each horizontal slice runs from \(x_L=\sqrt{y}\) to \(x_R=2-y\); one left/right rule holds for the entire region, so no split is needed.
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{10}\). Find the area of \(\textbf{R}\) by integrating with respect to \(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\).
- 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{12}\) below.
Figure \(\PageIndex{12}\) 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\]
Interactive Element: More Rectangles, Closer Area
The following Interactive Element might help you visualize how a right-endpoint approximation of the area between two curves sharpens as the number of rectangles increases.
Interact: Drag the orange handle along its track to add rectangles.
Observation: Each rectangle has height \(f(x_i)-g(x_i)\); as \(n\) increases, \(R_n\) approaches the exact area \(2\sinh(2)\).
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 2.5 of the Differential Calculus textbook.

