Last lesson you used a definite integral to find the area between one curve and the $x$-axis. Now we'll do the area between two curves — the region trapped between them.
Learning intentions
Find the area enclosed between two curves $y=f(x)$ and $y=g(x)$ by integrating top minus bottom
Find the limits of integration by solving $f(x)=g(x)$ for the intersection points
Handle regions where the upper curve changes — split at the cross-over point
Part 1 — The "top minus bottom" rule
AREA BETWEEN TWO CURVES
If $f(x) \ge g(x)$ for all $x$ in $[a,b]$, then the area enclosed between $y=f(x)$ and $y=g(x)$ from $x=a$ to $x=b$ is
$$A \;=\; \int_a^b \bigl[\,f(x) - g(x)\,\bigr]\,dx.$$
The "top minus bottom" automatically handles any negative regions — if the whole picture is below the $x$-axis, the answer is still positive because $f$ (the higher one) sits above $g$ (the lower one).
⚠️ Which one is on top? Test one $x$-value in the interval — e.g. the midpoint — and see which function is bigger there. If $f$ is bigger at that test point, $f$ is the "top" function on that interval.
📺 Walkthrough: $y=x+1$ above $y=x^2-x-2$ between their intersection points. The "top minus bottom" gives area $= \tfrac{32}{3}$.
Part 2 — Setting up the integral (4-step recipe)
RECIPE
Sketch the two curves to see the enclosed region.
Find intersection points — solve $f(x)=g(x)$. Those $x$-values are your limits.
Identify the top function — substitute a test value between the intersections.
If the upper curve swaps partway through (i.e. the curves cross at three or more points), you must split at every cross-over and treat each piece separately.
📺 Walkthrough: $y=x^3$ vs $y=x$ on $[-1,1]$. The cubic is above on $[-1,0]$ and below on $[0,1]$ — split at $x=0$ and add absolute values to get total area $=\tfrac{1}{2}$.
EXAMPLE 4 — Curves that swap
Find the total area enclosed between $y = x^3$ and $y = x$ on $-1 \le x \le 1$.
Intersections. $x^3 = x \Rightarrow x(x^2-1) = 0 \Rightarrow x = -1, 0, 1$.
Which is on top in each piece? Test $x=-\tfrac{1}{2}$: $x^3 = -\tfrac{1}{8}$, $x = -\tfrac{1}{2}$ — so the cubic is above (less negative). Test $x=\tfrac{1}{2}$: $x^3 = \tfrac{1}{8}$, $x = \tfrac{1}{2}$ — the line is above.
Total area $= \tfrac{1}{4} + \tfrac{1}{4} = \dfrac{1}{2}$ sq units (symmetry confirms!)
💡 Symmetry shortcut. If a region is symmetric about the origin (or the $y$-axis), you can integrate over half the region and double it. Always sanity-check the answer.
Part 4 — A transcendental example
EXAMPLE 5 — Exponential vs line
Find the exact area enclosed by $y = e^x$, the line $y = x$, the $y$-axis and the line $x = 1$.
Test $x = 0.5$: $e^{0.5} \approx 1.65$, $x = 0.5$. $e^x$ is on top.
(The region is bounded by $x=0$, $x=1$ — no need to solve for intersection; the limits are given.)