Area Between Curves

Find the area of a region between two curves by computing the definite integral of their difference over a specified interval.

A=ab[f(x)g(x)]dxA = \int_a^b \big[f(x) - g(x)\big]\,dx

Solve a problem with Area Between Curves

Type the problem. The solver will use Area Between Curves where Area Between Curves is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Area Between Curves takes
AA
ff
gg
aa
bb
xx
Area Between Curves
SymbolMeaning
AAThe area enclosed between the two curves, measured in square units.
ffThe upper curve (the function whose graph is on top in the region of interest).
ggThe lower curve (the function whose graph is on the bottom in the region of interest).
aaThe left endpoint of the interval on the xx-axis; the region of interest begins here.
bbThe right endpoint of the interval on the xx-axis; the region of interest ends here.
xxThe variable of integration, representing position along the horizontal axis.

When to use it

When you need to find the area trapped between two curves over a given interval.

Level

Usually taught in: Calculus I · Appears on: AP Calculus

Worked examples

1. Find the area between a horizontal line and a parabola

Problem

Find the area between f(x)=4f(x) = 4 and g(x)=x2g(x) = x^2 from x=0x = 0 to x=2x = 2.
  1. A=02[4x2]dxA = \int_0^2 [4 - x^2]\,dx

    Set up the integral with the upper function f(x)=4f(x) = 4 minus the lower function g(x)=x2g(x) = x^2, integrated from 0 to 2.

  2. [4x2]dx=4xx33\int [4 - x^2]\,dx = 4x - \frac{x^3}{3}

    Integrate term by term using the power rule: 4dx=4x\int 4\,dx = 4x and x2dx=x33\int x^2\,dx = \frac{x^3}{3}.

  3. A=[4xx33]02=(883)(0)=883A = \left[4x - \frac{x^3}{3}\right]_0^2 = \left(8 - \frac{8}{3}\right) - (0) = 8 - \frac{8}{3}

    Evaluate the antiderivative at the bounds: substitute x=2x = 2 to get 8838 - \frac{8}{3}, and at x=0x = 0 to get 0.

  4. A=24383=163A = \frac{24}{3} - \frac{8}{3} = \frac{16}{3}

    Simplify by converting 8 to thirds, then combine fractions.

Answer: A=163 square unitsA = \frac{16}{3} \text{ square units}

Both functions are given explicitly, and the horizontal line is clearly above the parabola on [0,2][0, 2], so we subtract the lower from the upper and integrate.

2. Find the area between a line and a quadratic with negative bounds and fractions

Problem

Find the area between f(x)=x+3f(x) = x + 3 and g(x)=x21g(x) = x^2 - 1 from x=1x = -1 to x=2x = 2.
  1. A=12[(x+3)(x21)]dxA = \int_{-1}^2 [(x + 3) - (x^2 - 1)]\,dx

    Set up with f(x)=x+3f(x) = x + 3 (upper) minus g(x)=x21g(x) = x^2 - 1 (lower) over [1,2][-1, 2].

  2. A=12[x+3x2+1]dx=12[x2+x+4]dxA = \int_{-1}^2 [x + 3 - x^2 + 1]\,dx = \int_{-1}^2 [-x^2 + x + 4]\,dx

    Distribute the negative sign and combine like terms: 3+1=43 + 1 = 4 and 30t5t=25t30t - 5t = 25t.

  3. [x2+x+4]dx=x33+x22+4x\int [-x^2 + x + 4]\,dx = -\frac{x^3}{3} + \frac{x^2}{2} + 4x

    Integrate each term using the power rule.

  4. At x=2:83+42+8=83+2+8=8+303=223\text{At } x = 2: -\frac{8}{3} + \frac{4}{2} + 8 = -\frac{8}{3} + 2 + 8 = \frac{-8 + 30}{3} = \frac{22}{3}

    Substitute x=2x = 2; note that (2)3=8(2)^3 = 8 and (2)2=4(2)^2 = 4.

  5. At x=1:13+124=13+124=2+3246=196\text{At } x = -1: -\frac{-1}{3} + \frac{1}{2} - 4 = \frac{1}{3} + \frac{1}{2} - 4 = \frac{2 + 3 - 24}{6} = -\frac{19}{6}

    Substitute x=1x = -1; note that (1)3=1(-1)^3 = -1 so (1)33=13-\frac{(-1)^3}{3} = \frac{1}{3}; convert to sixths.

  6. A=223(196)=446+196=636=212A = \frac{22}{3} - \left(-\frac{19}{6}\right) = \frac{44}{6} + \frac{19}{6} = \frac{63}{6} = \frac{21}{2}

    Subtract: upper bound minus lower bound. Convert 223=446\frac{22}{3} = \frac{44}{6}; subtracting a negative becomes addition.

Answer: A=212=10.5 square unitsA = \frac{21}{2} = 10.5 \text{ square units}

Negative bounds and fractions invite sign errors. Always evaluate at the upper bound first, subtract the lower bound value, and watch for the double negative when subtracting a negative result.

3. Calculate total net profit from revenue and cost functions over a time interval

Problem

At a school bake sale, hourly revenue is R(t)=30tR(t) = 30t dollars and hourly costs are C(t)=t2+5tC(t) = t^2 + 5t dollars, where tt is hours worked. Find the total net profit from t=1t = 1 to t=4t = 4 hours.
  1. P=14[R(t)C(t)]dt=14[30t(t2+5t)]dtP = \int_1^4 [R(t) - C(t)]\,dt = \int_1^4 [30t - (t^2 + 5t)]\,dt

    Profit equals revenue minus cost; set up the integral over the time interval from 1 to 4 hours.

  2. P=14[30tt25t]dt=14[t2+25t]dtP = \int_1^4 [30t - t^2 - 5t]\,dt = \int_1^4 [-t^2 + 25t]\,dt

    Distribute the negative and combine like terms: 30t5t=25t30t - 5t = 25t.

  3. [t2+25t]dt=t33+25t22\int [-t^2 + 25t]\,dt = -\frac{t^3}{3} + \frac{25t^2}{2}

    Integrate term by term: t2dt=t33\int t^2\,dt = \frac{t^3}{3} and tdt=t22\int t\,dt = \frac{t^2}{2}.

  4. At t=4:643+25162=643+4002=643+200=64+6003=5363\text{At } t = 4: -\frac{64}{3} + \frac{25 \cdot 16}{2} = -\frac{64}{3} + \frac{400}{2} = -\frac{64}{3} + 200 = \frac{-64 + 600}{3} = \frac{536}{3}

    Substitute t=4t = 4: (4)3=64(4)^3 = 64 and (4)2=16(4)^2 = 16; convert 200 to thirds to combine.

  5. At t=1:13+252=2+756=736\text{At } t = 1: -\frac{1}{3} + \frac{25}{2} = \frac{-2 + 75}{6} = \frac{73}{6}

    Substitute t=1t = 1; convert to sixths to combine fractions.

  6. P=5363736=10726736=9996=166.5P = \frac{536}{3} - \frac{73}{6} = \frac{1072}{6} - \frac{73}{6} = \frac{999}{6} = 166.5

    Subtract by converting both fractions to sixths, then simplify.

Answer: P=166.5 dollarsP = 166.5 \text{ dollars}

In word problems, identify which quantity dominates (revenue over cost here) and set up the integral as (top function) minus (bottom function). The definite integral measures the total accumulated difference over the entire time period.

Common mistakes

Where Area Between Curves usually goes wrong
Answer came out wrong
Writing abf(x)dx+abg(x)dx\int_a^b f(x)\,dx + \int_a^b g(x)\,dx to find the area between curves.
Use A=ab[f(x)g(x)]dxA = \int_a^b [f(x) - g(x)]\,dx to subtract the lower function from the upper within a single integral.
Writing abf(x)g(x)dx\int_a^b f(x) - g(x)\,dx without brackets around the difference.
Always write ab[f(x)g(x)]dx\int_a^b [f(x) - g(x)]\,dx with brackets to keep the subtraction inside and ensure the region is properly defined.
Failing to check which function is on top, or ignoring curve intersections within the interval.
Verify f(x)g(x)f(x) \geq g(x) by testing a point. If curves intersect at x=cx = c, split the integral: A=ac[f(x)g(x)]dx+cb[g(x)f(x)]dxA = \int_a^c [f(x) - g(x)]\,dx + \int_c^b [g(x) - f(x)]\,dx or use absolute value.
The mistakeWhy it is wrongThe fix
Writing abf(x)dx+abg(x)dx\int_a^b f(x)\,dx + \int_a^b g(x)\,dx to find the area between curves.This adds the areas under both curves separately instead of finding the trapped region between them, yielding the wrong answer.Use A=ab[f(x)g(x)]dxA = \int_a^b [f(x) - g(x)]\,dx to subtract the lower function from the upper within a single integral.
Writing abf(x)g(x)dx\int_a^b f(x) - g(x)\,dx without brackets around the difference.Without brackets, the integral distributes as abf(x)dxabg(x)dx\int_a^b f(x)\,dx - \int_a^b g(x)\,dx (which is correct only by coincidence), and obscures the geometry of the region.Always write ab[f(x)g(x)]dx\int_a^b [f(x) - g(x)]\,dx with brackets to keep the subtraction inside and ensure the region is properly defined.
Failing to check which function is on top, or ignoring curve intersections within the interval.If g(x)>f(x)g(x) > f(x) the integral is negative (not an area), and if curves cross, positive and negative contributions cancel incorrectly, giving the wrong net result.Verify f(x)g(x)f(x) \geq g(x) by testing a point. If curves intersect at x=cx = c, split the integral: A=ac[f(x)g(x)]dx+cb[g(x)f(x)]dxA = \int_a^c [f(x) - g(x)]\,dx + \int_c^b [g(x) - f(x)]\,dx or use absolute value.

Tips and when to use something else

  • Always determine which function is above the other by testing a sample point in your interval, especially if the curves have not been graphed.
  • If the curves intersect within [a,b][a, b], find the intersection points and split the integral at those xx-values, adjusting which function is subtracted in each piece.
  • If the curves are given as x=f(y)x = f(y) instead of y=f(x)y = f(x) (rotated sideways), use A=cd[f(y)g(y)]dyA = \int_c^d [f(y) - g(y)]\,dy, integrating with respect to yy instead.
  • When the problem asks for the volume of a solid of revolution, use Volume by Disks or Volume by Shells instead of an area integral.

Frequently asked questions

Do I always integrate the top function minus the bottom function?
Yes, as long as the top function is always above the bottom on your entire interval. Always check by plugging in a test point. If one function is above in one part and below in another, split the integral at each intersection point.
What if I am not sure which function is on top?
Substitute any xx-value strictly between aa and bb into both functions and compare the outputs. The function with the larger value is on top. If you remain unsure, sketch both curves or test several points.
Can the area ever be negative?
No; area is always positive. A negative result means the functions are reversed (you subtracted top from bottom) or the curves intersect within your interval and you did not split at the intersection. Reverse the order or use absolute value in each piece to fix it.
What is the difference between the area between curves and the definite integral of one function?
The definite integral abf(x)dx\int_a^b f(x)\,dx gives the signed area between the curve and the xx-axis (negative if the curve dips below). The area between two curves ab[f(x)g(x)]dx\int_a^b [f(x) - g(x)]\,dx measures the region trapped between both and is always positive.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18