Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Area Between Curves

How to use
  1. Pick two curves in the Curves menu at the top. Learn more about the four pairs
  2. Drag left edge and right edge: the shaded region between the curves follows. Learn more about the edges
  3. Read the two numbers on the graph: the area, and the integral of f−gf - g with its sign. Learn more about the numbers
  4. The navy dots are the crossings. Put both edges on them for the region the curves enclose.
  5. The tabs Area and Signed integral explain each number for the current interval; Concepts explains the idea in general.


Area Between Curves
f(x)f(x)
g(x)g(x)
a=−1a = -1b=2b = 2area=4.5\text{area} = 4.5∫ab(f−g)=4.5\int_a^b (f - g) = 4.5
The area between the curves · Line and parabola
A=∫ab∣f(x)−g(x)∣ dx\displaystyle A = \int_a^b \big|f(x) - g(x)\big|\,dx
General

Cut the region into thin vertical strips. Each strip reaches from the lower curve to the upper one, so its height is the gap ∣f(x)−g(x)∣|f(x) - g(x)| and its area is that gap times its width. Adding the strips up, and letting them get thinner without end, gives the integral of the gap.

For these curves

Curves · f(x)=x+2f(x) = x + 2 (blue) and g(x)=x2g(x) = x^2 (amber)

They cross at · x=−1x = -1 and x=2x = 2

Set the edges on the crossings: the enclosed area is exactly 92\tfrac{9}{2}.

From x=−1x = -1 to x=2x = 2 · the shaded area is 4.54.5.

The blue curve stays on top across the whole interval, so the gap is f−gf - g and the area is ∫(f−g)=4.5\int (f - g) = 4.5.

a=−1a = -1
b=2b = 2
Speed




Key Terms

Area between curves— the size of the region between two graphs over an interval, ∫ab∣f(x)−g(x)∣ dx\int_a^b |f(x) - g(x)|\,dx
Gap— the vertical distance ∣f(x)−g(x)∣|f(x) - g(x)| between the curves at one xx
Crossing— a point where f(x)=g(x)f(x) = g(x); there the upper and lower curve swap
Signed integral— ∫ab(f−g) dx\int_a^b (f - g)\,dx, which counts stretches where gg is on top as negative
Enclosed region— the region closed off by the curves themselves, between two crossings


Getting Started

The tool opens on a line, f(x)=x+2f(x) = x + 2, and a parabola, g(x)=x2g(x) = x^2, with the region between them shaded from x=−1x = -1 to x=2x = 2, the two points where they cross.

Two numbers are shown on the graph: the area of the shaded region, and the integral of f−gf - g with its sign. Here they are equal, 4.54.5, because the line is on top across the whole interval.

Everything follows the two sliders, left edge and right edge.

The Four Pairs of Curves

DemoThe four pairs of curves
Step 0 of 3
    The Curves menu offers four pairs:

  • Line and parabola: x+2x + 2 and x2x^2, crossing at −1-1 and 22.
  • Two parabolas: 4−x24 - x^2 and x2−4x^2 - 4, crossing at −2-2 and 22 and enclosing a lens.
  • Line through the origin: 2x2x and x2x^2, crossing at 00 and 22.
  • Sine and cosine: crossing at π4\dfrac{\pi}{4} and 5π4\dfrac{5\pi}{4}.

  • The navy dots mark the crossings. The text beside the graph names the curves and where they meet.

The Left and Right Edge

DemoMoving an edge past a crossing
Step 0 of 3
The sliders set the interval. The shaded region always runs between the two dashed vertical lines, from the lower curve up to the upper one.

Set both edges on the navy dots to get the region enclosed by the two curves. Move an edge past a crossing and the shading continues on the other side, where the curves have swapped places.

It does not matter which slider holds the smaller number; the region is the same.

Reading the Two Numbers

  • Area is ∫∣f−g∣\int |f - g|: every strip counts as positive, whichever curve is on top.
  • ∫ab(f−g)\int_a^b (f - g) is the plain integral: a strip counts as negative where gg is above ff.

  • With no crossing inside the interval the two have the same size. With a crossing inside, the plain integral is smaller, because positive and negative strips cancel.

    The tab Area explains the first number for the current interval, and the tab Signed integral the second, as H(b)−H(a)H(b) - H(a) for an antiderivative HH of f−gf - g.

The Formula

The area of the region between the graphs of ff and gg from x=ax = a to x=bx = b is

A=∫ab∣f(x)−g(x)∣ dxA = \int_a^b \big|f(x) - g(x)\big|\,dx


When one curve stays on top, the absolute value can be dropped:

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


The reason is the same as for the area under one curve. A thin vertical strip between the curves has height top minus bottom and a small width; adding the strips gives the integral.

When the Curves Cross

If the curves cross inside the interval, the top curve changes, and one integral of f−gf - g is no longer the area.

1. Solve f(x)=g(x)f(x) = g(x) to find the crossings.
2. Cut the interval at each crossing that lies inside it.
3. On each piece, integrate top minus bottom.
4. Add the pieces.

For 2x2x and x2x^2 from 00 to 33: they cross at x=2x = 2. From 00 to 22 the line is on top, area 43\dfrac{4}{3}. From 22 to 33 the parabola is on top, area 43\dfrac{4}{3}. Total 83\dfrac{8}{3}, while the plain integral of 2x−x22x - x^2 from 00 to 33 is 00: the two pieces cancel exactly.
Between 00 and 22 the line is on top (blue region); from 22 to 33 the parabola is (amber region).

The Region Enclosed by Two Curves

Often no interval is given: the question is the area of the region enclosed by two curves. Then the crossings are the limits of integration.

For x+2x + 2 and x2x^2: solve x+2=x2x + 2 = x^2, so x=−1x = -1 or x=2x = 2. Between them the line is on top:

A=∫−12(x+2−x2) dx=[x22+2x−x33]−12=92A = \int_{-1}^{2} \big(x + 2 - x^2\big)\,dx = \left[\dfrac{x^2}{2} + 2x - \dfrac{x^3}{3}\right]_{-1}^{2} = \dfrac{9}{2}


The area does not depend on where the xx-axis is. A region partly below the axis is handled the same way, because only the gap between the curves matters.
The region enclosed by y=x+2y = x + 2 and y=x2y = x^2, of area 92\dfrac{9}{2}.

Common Mistakes

  • Subtracting in the wrong order. Bottom minus top gives the right size with a minus sign. An area is never negative.
  • Ignoring a crossing. One integral across a crossing lets the pieces cancel.
  • Using the xx-intercepts as limits. The limits are where the curves meet each other, not where they meet the axis.
  • Integrating each curve to the axis separately and adding. The areas must be subtracted, and only the gap counts.
  • Assuming the same curve is on top everywhere. Check with a test point on each piece.