Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Find the Area Between Two Curves

The area between two graphs is the integral of top minus bottom over the interval where they enclose a region. Find where the curves cross, decide which is on top on each piece, and integrate the difference.

Recognize the task

"Find the area enclosed by y=x2y = x^2 and y=x+2y = x + 2", "the region bounded by …", two or more curves, sometimes with vertical lines x=ax = a, x=bx = b. Test: the answer is an area, and two functions bound it.
This is signed area applied to a difference of functions; the site has no separate lesson on applications of integration, so this page is where the method lives.

Two ways to do it

Vertical strips (integrate in x)usual choice
A=∫ab[ftop(x)−gbottom(x)] dxA = \int_a^b \big[f_{\text{top}}(x) - g_{\text{bottom}}(x)\big]\,dx
When both curves are given as yy in terms of xx and the same curve is on top across the interval.
Horizontal strips (integrate in y)curves given as x(y)
A=∫cd[xright(y)−xleft(y)] dyA = \int_c^d \big[x_{\text{right}}(y) - x_{\text{left}}(y)\big]\,dy
When the curves are easier to write as xx in terms of yy, or when the top function changes along the way.

Steps

StepOn y=x+2y = x + 2 and y=x2y = x^2
1Sketch the curves and find the intersections. Set the two formulas equal and solve. The solutions are the limits of integration.x2=x+2  ⇒  x=−1, 2x^2 = x + 2 \;\Rightarrow\; x = -1,\ 2
2Decide which curve is on top on each interval. Test one point inside the interval. If the curves cross between the limits, split there.at x=0x = 0: line 22, parabola 00: the line is on top
3Set up the integral of top minus bottom. One integral per interval on which the same curve is on top.A=∫−12[(x+2)−x2] dxA = \int_{-1}^2 \big[(x + 2) - x^2\big]\,dx
4Integrate and evaluate. Fundamental Theorem, Part 2. The result must be positive; a negative number means top and bottom were swapped.Sum and difference rule ↗[x22+2x−x33]−12=103−(−76)=92\Big[\frac{x^2}{2} + 2x - \frac{x^3}{3}\Big]_{-1}^2 = \frac{10}{3} - \Big(-\frac{7}{6}\Big) = \frac{9}{2}

Worked examples

Example 1 · line over a parabola

basic
y=x+2y = x + 2 and y=x2y = x^2 meet at x=−1,2x = -1, 2
solve x2=x+2x^2 = x + 2
A=∫−12(x+2−x2) dxA = \int_{-1}^2 (x + 2 - x^2)\,dx
line on top
=92= \frac{9}{2}

Example 2 · curves that cross

split at the crossing
y=sin⁡xy = \sin x, y=cos⁡xy = \cos x on [0,π2][0, \frac{\pi}{2}]
cross at x=π4x = \frac{\pi}{4}
A=∫0π/4(cos⁡x−sin⁡x) dx+∫π/4π/2(sin⁡x−cos⁡x) dxA = \int_0^{\pi/4}(\cos x - \sin x)\,dx + \int_{\pi/4}^{\pi/2}(\sin x - \cos x)\,dx
cosine on top first, then sine
=(2−1)+(2−1)=22−2= (\sqrt{2} - 1) + (\sqrt{2} - 1) = 2\sqrt{2} - 2

Example 3 · horizontal strips

integrate in y
x=y2x = y^2 and x=y+2x = y + 2
meet at y=−1,2y = -1, 2
A=∫−12[(y+2)−y2] dyA = \int_{-1}^2 \big[(y + 2) - y^2\big]\,dy
line on the right
=92= \frac{9}{2}
the first example reflected in y=xy = x

See it happen

Each thin vertical strip has height top minus bottom and width dxdx; the integral adds the strips up. Where the curves cross, top and bottom swap roles, and a single integral of f−gf - g across the crossing would subtract area instead of adding it.

Common mistakes

Integrating f − g across a crossing

✗ ∫0π/2(cos⁡x−sin⁡x) dx=0\int_0^{\pi/2}(\cos x - \sin x)\,dx = 0
✓ split at the crossing and keep each piece positive

Wrong curve on top

✗ ∫−12(x2−x−2) dx=−92\int_{-1}^2 (x^2 - x - 2)\,dx = -\frac{9}{2}
✓ a negative area means the order is reversed; test a point first

x-limits on a y-integral

✗ ∫−12… dy\int_{-1}^2 \ldots\,dy with the xx-values of the intersections
✓ the limits of a dydy integral are yy-values

Guessing the limits

✗ integrating from 00 to 22 "because the picture looks like that"
✓ solve f(x)=g(x)f(x) = g(x) for the exact intersections