Skip to content
Family Table Math
Auto

Area Between Curves

You already know that ∫abf(x) dx\int_a^b f(x)\, dx gives the area under a curve (when f≥0f \ge 0). Now take two curves and ask for the area of the region between them. The idea is to slice the region into thin vertical strips, find the height of one strip, and let the integral add them all up. This “slice and add” thinking is also the starting point for volumes, later in this unit.

If f(x)≥g(x)f(x) \ge g(x) for every xx in [a,b][a, b], the area of the region between them is

A=∫ab(f(x)−g(x)) dx=∫ab(top−bottom) dxA = \int_a^b \big( f(x) - g(x) \big)\, dx = \int_a^b (\text{top} - \text{bottom})\, dx

Why: a thin vertical strip at position xx has height f(x)−g(x)f(x) - g(x) and width dxdx, so its area is about (f(x)−g(x)) dx\big(f(x) - g(x)\big)\,dx. The integral adds up all the strips from aa to bb.

This works even if one or both curves dip below the xx-axis: “top minus bottom” is always the height of the strip.

The region between y = x + 2 on top and y = x squared on the bottom, from x = -1 to x = 2, with one thin vertical slice whose height is top minus bottom. (−1, 1) (2, 4) y = x + 2 y = x² top bottom dx x y −2 −1 1 2 1 2 3 4 5
A representative vertical slice: height (x+2)−x2(x + 2) - x^2, width dxdx.
  1. Sketch both curves (or graph them on a calculator) so you can see the region.
  2. Find the intersection points by setting the functions equal. These are usually the limits of integration.
  3. Decide which curve is on top on each interval. Test a point if you’re not sure.
  4. Integrate top minus bottom.

If the curves cross inside the interval, the top and bottom curves swap. Then ∫(f−g) dx\int (f - g)\, dx would subtract one piece from another instead of adding. Split the integral at every crossing point and use (top − bottom) on each piece:

A=∫ac(f(x)−g(x)) dx+∫cb(g(x)−f(x)) dxA = \int_a^c \big( f(x) - g(x) \big)\, dx + \int_c^b \big( g(x) - f(x) \big)\, dx

One integral that does it all is A=∫ab∣f(x)−g(x)∣ dxA = \displaystyle\int_a^b \lvert f(x) - g(x) \rvert\, dx. That’s the easiest form on a calculator-active question; by hand, you still split at the crossings.

f(x) = x cubed - 3x and g(x) = x cross at x = -2, 0 and 2. On [-2, 0] f is on top; on [0, 2] g is on top. f on top g on top f(x) = x³ − 3x g(x) = x x y −2 −1 1 2 3 4 −3 −2 −1 1 2 3
Top and bottom swap at x=0x = 0, so the area must be split there.

On a test (AP, IB, or your class), the area setup usually earns marks on its own. Write the integral with the correct limits and integrand before you compute, especially when a calculator does the rest.

Find the area of the region bounded by y=x2y = x^2 and y=x+2y = x + 2.

Solution. Intersections: x2=x+2x^2 = x + 2, so x2−x−2=(x−2)(x+1)=0x^2 - x - 2 = (x - 2)(x + 1) = 0, and x=−1x = -1 or x=2x = 2.

Test x=0x = 0: the line gives 22 and the parabola gives 00, so the line is on top.

A=∫−12((x+2)−x2) dx=[x22+2x−x33]−12=(2+4−83)−(12−2+13)=103−(−76)=92\begin{aligned} A &= \int_{-1}^{2} \big( (x + 2) - x^2 \big)\, dx = \left[ \frac{x^2}{2} + 2x - \frac{x^3}{3} \right]_{-1}^{2} \\ &= \left( 2 + 4 - \frac{8}{3} \right) - \left( \frac{1}{2} - 2 + \frac{1}{3} \right) = \frac{10}{3} - \left( -\frac{7}{6} \right) = \frac{9}{2} \end{aligned}

Find the area between y=xy = \sqrt{x} and y=x2y = \dfrac{x}{2}.

Solution. x=x2\sqrt{x} = \dfrac{x}{2}. Square both sides: x=x24x = \dfrac{x^2}{4}, so x(x−4)=0x(x - 4) = 0 and x=0x = 0 or x=4x = 4. Both check in the original equation.

At x=1x = 1: 1=1>12\sqrt{1} = 1 \gt \tfrac{1}{2}, so x\sqrt{x} is on top.

A=∫04(x−x2)dx=[23x3/2−x24]04=163−4=43A = \int_0^4 \left( \sqrt{x} - \frac{x}{2} \right) dx = \left[ \frac{2}{3}x^{3/2} - \frac{x^2}{4} \right]_0^4 = \frac{16}{3} - 4 = \frac{4}{3}

Find the total area enclosed by f(x)=x3−3xf(x) = x^3 - 3x and g(x)=xg(x) = x.

Solution. x3−3x=xx^3 - 3x = x gives x3−4x=x(x−2)(x+2)=0x^3 - 4x = x(x - 2)(x + 2) = 0, so x=−2,0,2x = -2, 0, 2.

On [−2,0][-2, 0], test x=−1x = -1: f(−1)=2f(-1) = 2 and g(−1)=−1g(-1) = -1, so ff is on top. On [0,2][0, 2], test x=1x = 1: f(1)=−2f(1) = -2 and g(1)=1g(1) = 1, so gg is on top.

A=∫−20((x3−3x)−x) dx+∫02(x−(x3−3x)) dx=∫−20(x3−4x) dx+∫02(4x−x3) dxA = \int_{-2}^{0} \big( (x^3 - 3x) - x \big)\, dx + \int_0^2 \big( x - (x^3 - 3x) \big)\, dx = \int_{-2}^{0} (x^3 - 4x)\, dx + \int_0^2 (4x - x^3)\, dx ∫−20(x3−4x) dx=[x44−2x2]−20=0−(4−8)=4,∫02(4x−x3) dx=[2x2−x44]02=8−4=4\int_{-2}^{0} (x^3 - 4x)\, dx = \Big[ \tfrac{x^4}{4} - 2x^2 \Big]_{-2}^{0} = 0 - (4 - 8) = 4, \qquad \int_0^2 (4x - x^3)\, dx = \Big[ 2x^2 - \tfrac{x^4}{4} \Big]_0^2 = 8 - 4 = 4

The total area is 4+4=84 + 4 = 8. (If you had integrated f−gf - g over [−2,2][-2, 2] in one go, you’d get 4−4=04 - 4 = 0, which is clearly not the area.)

Find the area of the region bounded by y=2cos⁡xy = 2\cos x and y=x2y = x^2. (Radians.)

Solution. The intersections can’t be found by algebra, so use a calculator: 2cos⁡x=x22\cos x = x^2 at x≈±1.022x \approx \pm 1.022. Store the positive value as rr to keep full accuracy. Between them, 2cos⁡x2\cos x is on top (at x=0x = 0: 2>02 \gt 0).

A=∫−rr(2cos⁡x−x2) dx≈2.701A = \int_{-r}^{r} \big( 2\cos x - x^2 \big)\, dx \approx 2.701

Subtracting in the wrong order. Bottom minus top gives a negative number. If you get a negative “area,” you’ve got the curves the wrong way round.

Using the x-axis as a boundary when it isn’t one. The region is bounded by the curves given. Only use y=0y = 0 if the question says the region is bounded by the xx-axis.

Not splitting at a crossing. When the curves cross inside the interval, one integral of f−gf - g lets pieces cancel. Split, or use ∣f−g∣\lvert f - g \rvert on a calculator.

Guessing the limits. The limits come from the intersection points (or the given vertical lines). Solve for them; don’t read rough values off a sketch.

Squaring both sides and keeping a fake solution. When you square to solve, check each solution in the original equation.

Rounding intersection points early. On a calculator question, store the intersection values. Using 1.021.02 instead of 1.0217…1.0217\ldots can change the third decimal of the area.

1. (Warm-up) Find the area between y=x+3y = x + 3 and y=1y = 1 from x=0x = 0 to x=2x = 2.

Solution

On [0,2][0, 2], x+3≥3>1x + 3 \ge 3 \gt 1, so the line y=x+3y = x + 3 is on top.

∫02((x+3)−1) dx=[x22+2x]02=2+4=6\int_0^2 \big( (x + 3) - 1 \big)\, dx = \Big[ \tfrac{x^2}{2} + 2x \Big]_0^2 = 2 + 4 = 6

2. (Warm-up) Find the area of the region bounded by y=xy = x and y=x2y = x^2.

Solution

x=x2x = x^2 at x=0x = 0 and x=1x = 1. At x=12x = \tfrac{1}{2}, x>x2x \gt x^2, so y=xy = x is on top.

∫01(x−x2) dx=12−13=16\int_0^1 (x - x^2)\, dx = \frac{1}{2} - \frac{1}{3} = \frac{1}{6}

3. (Warm-up) Find the area of the region bounded by y=x2y = x^2 and y=4y = 4.

Solution

x2=4x^2 = 4 at x=±2x = \pm 2, and y=4y = 4 is on top.

∫−22(4−x2) dx=[4x−x33]−22=(8−83)−(−8+83)=323\int_{-2}^{2} (4 - x^2)\, dx = \Big[ 4x - \tfrac{x^3}{3} \Big]_{-2}^{2} = \left( 8 - \tfrac{8}{3} \right) - \left( -8 + \tfrac{8}{3} \right) = \frac{32}{3}

4. (Core) Find the area of the region bounded by y=6−x2y = 6 - x^2 and y=xy = x.

Solution

6−x2=x6 - x^2 = x gives x2+x−6=(x+3)(x−2)=0x^2 + x - 6 = (x + 3)(x - 2) = 0, so x=−3x = -3 or x=2x = 2. At x=0x = 0, the parabola (66) is above the line (00).

A=∫−32(6−x2−x) dx=[6x−x33−x22]−32=(12−83−2)−(−18+9−92)=223+272=1256\begin{aligned} A &= \int_{-3}^{2} (6 - x^2 - x)\, dx = \left[ 6x - \frac{x^3}{3} - \frac{x^2}{2} \right]_{-3}^{2} \\ &= \left( 12 - \frac{8}{3} - 2 \right) - \left( -18 + 9 - \frac{9}{2} \right) = \frac{22}{3} + \frac{27}{2} = \frac{125}{6} \end{aligned}

5. (Core) Find the total area between y=sin⁡xy = \sin x and y=cos⁡xy = \cos x from x=0x = 0 to x=πx = \pi (radians).

Solution

They cross where sin⁡x=cos⁡x\sin x = \cos x, at x=π4x = \dfrac{\pi}{4} in this interval. On [0,π4]\left[0, \tfrac{\pi}{4}\right], cos⁡x\cos x is on top; on [π4,π]\left[\tfrac{\pi}{4}, \pi\right], sin⁡x\sin x is on top.

∫0π/4(cos⁡x−sin⁡x) dx=[sin⁡x+cos⁡x]0π/4=2−1\int_0^{\pi/4} (\cos x - \sin x)\, dx = \Big[ \sin x + \cos x \Big]_0^{\pi/4} = \sqrt{2} - 1∫π/4π(sin⁡x−cos⁡x) dx=[−cos⁡x−sin⁡x]π/4π=(1−0)−(−2)=1+2\int_{\pi/4}^{\pi} (\sin x - \cos x)\, dx = \Big[ -\cos x - \sin x \Big]_{\pi/4}^{\pi} = (1 - 0) - \left( -\sqrt{2} \right) = 1 + \sqrt{2}

Total: (2−1)+(1+2)=22≈2.828(\sqrt{2} - 1) + (1 + \sqrt{2}) = 2\sqrt{2} \approx 2.828.

6. (Core) Find the total area enclosed by y=x3y = x^3 and y=xy = x.

Solution

x3=xx^3 = x gives x(x−1)(x+1)=0x(x - 1)(x + 1) = 0, so x=−1,0,1x = -1, 0, 1.

On [−1,0][-1, 0], x3x^3 is on top (at x=−12x = -\tfrac{1}{2}: −18>−12-\tfrac{1}{8} \gt -\tfrac{1}{2}). On [0,1][0, 1], xx is on top.

∫−10(x3−x) dx=0−(14−12)=14,∫01(x−x3) dx=12−14=14\int_{-1}^{0} (x^3 - x)\, dx = 0 - \left( \tfrac{1}{4} - \tfrac{1}{2} \right) = \frac{1}{4}, \qquad \int_0^1 (x - x^3)\, dx = \frac{1}{2} - \frac{1}{4} = \frac{1}{4}

Total area =12= \dfrac{1}{2}.

7. (Core) Find the area of the region bounded by y=exy = e^x, y=1y = 1, and x=2x = 2.

Solution

ex=1e^x = 1 at x=0x = 0, so the region runs from x=0x = 0 to x=2x = 2, with exe^x on top.

∫02(ex−1) dx=[ex−x]02=(e2−2)−1=e2−3≈4.389\int_0^2 (e^x - 1)\, dx = \Big[ e^x - x \Big]_0^2 = (e^2 - 2) - 1 = e^2 - 3 \approx 4.389

8. (Challenge) Find the area of the region in the first quadrant bounded by y=xy = x, y=x4y = \dfrac{x}{4}, and y=1xy = \dfrac{1}{x}.

Solution

Sketch it: both lines start at the origin; the curve y=1xy = \dfrac{1}{x} closes the region off.

  • y=xy = x meets y=1xy = \dfrac{1}{x} at x=1x = 1.
  • y=x4y = \dfrac{x}{4} meets y=1xy = \dfrac{1}{x} at x2=4x^2 = 4, so x=2x = 2.

The bottom is always y=x4y = \dfrac{x}{4}, but the top changes at x=1x = 1: it’s y=xy = x on [0,1][0, 1] and y=1xy = \dfrac{1}{x} on [1,2][1, 2].

A=∫01(x−x4)dx+∫12(1x−x4)dx=38+(ln⁡2−38)=ln⁡2≈0.693A = \int_0^1 \left( x - \frac{x}{4} \right) dx + \int_1^2 \left( \frac{1}{x} - \frac{x}{4} \right) dx = \frac{3}{8} + \left( \ln 2 - \frac{3}{8} \right) = \ln 2 \approx 0.693

(Second integral: [ln⁡x−x28]12=(ln⁡2−12)−(0−18)=ln⁡2−38\Big[ \ln x - \tfrac{x^2}{8} \Big]_1^2 = \left( \ln 2 - \tfrac{1}{2} \right) - \left( 0 - \tfrac{1}{8} \right) = \ln 2 - \tfrac{3}{8}.)

9. (Challenge) For a>0a \gt 0, the region between y=x2y = x^2 and y=axy = ax has area 3636. Find aa.

Solution

x2=axx^2 = ax at x=0x = 0 and x=ax = a, with the line on top in between.

∫0a(ax−x2) dx=a32−a33=a36\int_0^a (ax - x^2)\, dx = \frac{a^3}{2} - \frac{a^3}{3} = \frac{a^3}{6}

Set a36=36\dfrac{a^3}{6} = 36: a3=216a^3 = 216, so a=6a = 6.

Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site. Sketch the boundaries and identify which curve is on top on every interval you use. Trigonometric inputs are in radians.

H1. (Foundations) Find the area between y=x−4y=x-4 and y=x−7y=x-7 from x=−1x=-1 to x=2x=2. Explain why both curves being below the axis causes no problem.

H2. (Foundations) Find the enclosed area between y=3xy=3x and y=x2y=x^2. Solve for the intersections.

H3. (Core) Find the area bounded by y=5−x2y=5-x^2 and y=1y=1.

H4. (Core) Find the area bounded by y=e2xy=e^{2x}, y=1y=1, and x=ln⁡2x=\ln2.

H5. (Core) Find the area enclosed by y=xy=\sqrt x and y=x/3y=x/3. Check both candidate intersections in the original equation after squaring.

H6. (Core) Find the total area enclosed by y=x3y=x^3 and y=9xy=9x. Show why a single signed integral over the full interval would fail.

H7. (Challenge) Find the total area between y=sin⁡(2x)y=\sin(2x) and the xx-axis for 0≤x≤π0\le x\le\pi. Compare it with the signed integral and find all required split points.

H8. (Challenge) Find the area of the first-quadrant region bounded by y=2xy=2x, y=x/2y=x/2, and y=4/xy=4/x. Identify the point where the top boundary changes.

H9. (Challenge) For a>0a\gt0, the area bounded by y=a−x2y=a-x^2 and the xx-axis is 3636. Find aa exactly and justify that there is only one positive answer.

H10. (Challenge) A student claims the area between f(x)=x2−1f(x)=x^2-1 and g(x)=x−1g(x)=x-1 on −1≤x≤2-1\le x\le2 is ∣∫−12(f−g) dx∣\left\lvert\int_{-1}^2(f-g)\,dx\right\rvert. Find this claimed value and the actual area. Explain why placing the absolute value outside the integral fails.