Area Between Two Curves: Top Minus Bottom, Right Minus Left
Solver AI TeamPublished 13 min read
The area between two curves is the integral of the top curve minus the bottom curve between their intersection points. See how to find the limits, split the integral where the curves cross, switch to right minus left in y, and check the answer, with five worked examples and practice.
Frequently asked questions
How do you find the area between two curves?
Sketch both graphs, set the equations equal to find where they meet, and use those x-values as the limits. On each interval, decide which curve is on top and integrate top minus bottom. If the curves cross inside the region, split the integral at each crossing and add the pieces. The result is always positive.
When should you integrate with respect to y instead of x?
Switch to y when the region has one curve on the left and one on the right all the way up, but its top or bottom boundary changes partway across. Typical signs are a sideways parabola such as x = y², or equations that are easier to solve for x. Then integrate right minus left from the lowest to the highest intersection y-value.
Why did I get a negative area between curves?
A negative result means you subtracted in the wrong order on at least part of the interval: bottom minus top, or left minus right. Area cannot be negative. Check which curve is higher by plugging a test point between the limits into both equations, and split the integral if the order changes.
What if the curves cross more than once?
Find every intersection point between the limits, then integrate top minus bottom separately on each interval between neighbouring crossings, because the top curve swaps at each one. Add the positive pieces. Integrating once across a crossing lets the pieces cancel, and for y = x and y = x³ on [−1, 1] that wrongly gives 0 instead of 1/2.
Does it matter if the region is below the x-axis?
No. Top minus bottom works wherever the region sits, because the vertical distance between the curves is the same whether both are positive, both negative or one of each. For example, the area between y = 0 and y = x² − 4 is the integral of 0 − (x² − 4) from −2 to 2, which is 32/3.
To find the area between two curves, find where they meet, then integrate the top curve minus the bottom curve between those x-values: A = ∫ₐᵇ [f(x) − g(x)] dx. If the curves cross inside the region, split the integral at each crossing so every piece is top minus bottom. When one curve sits to the right of the other all the way up, integrate right minus left in y instead.
Below you'll find the method, a rule for choosing between x and y before you start, one region solved both ways, an applied problem where the curves are velocities, and a fast check for the final number.
The Rule: Area Between Two Curves
If f(x) ≥ g(x) on [a, b], the area between them is A = ∫ₐᵇ [f(x) − g(x)] dx (top minus bottom). If p(y) ≥ q(y) on [c, d], the area between x = p(y) and x = q(y) is A = ∫ [p(y) − q(y)] dy from y = c to y = d (right minus left). When the order changes, the general form is ∫ₐᵇ |f(x) − g(x)| dx, worked out by splitting at each crossing.
Why Top Minus Bottom Works
Picture the region cut into thin vertical strips, the same way a Riemann sum cuts the area under one curve. Each strip is Δx wide, and its height is the vertical gap between the curves at that x-value, f(x) − g(x). Add up the strips, let them get infinitely thin, and the sum becomes the integral of the gap.
That's why the formula doesn't care where the x-axis is. The gap between a curve at height 5 and a curve at height 2 is 3. The gap between heights −1 and −4 is also 3. Top minus bottom measures the distance between the curves, not the distance to the axis, so a region partly or wholly below the axis needs no special treatment.
It also explains the sign. The gap is positive only when you subtract the lower curve from the higher one. Reverse the order and every strip has a negative height, so the integral comes out negative. A negative area is always a sign that the subtraction is backwards somewhere.
A rough sketch shows the shape of the region, which curve is on top, and whether the curves cross. Ten seconds here saves most of the errors later.
Find the intersection points
Set the two equations equal and solve. These x-values are the limits when the problem doesn't give an interval. If it does give one, any crossing inside it is where you'll split.
Decide which curve is on top
Pick a test x-value strictly between two neighbouring limits and plug it into both equations. The bigger output is the top curve on that whole interval, because continuous curves can only swap order where they meet.
Set up one integral per interval
Write top minus bottom for each interval between neighbouring crossings, simplify the integrand, and integrate.
Add the pieces and check
Every piece must be positive. Then compare the total with a rough estimate (see the check section below).
Finding the Intersection Points
Intersections come from solving f(x) = g(x). Move everything to one side and you usually get a polynomial you can factor. For y = 2x and y = x², setting them equal gives x² − 2x = 0, so x(x − 2) = 0 and the curves meet at x = 0 and x = 2.
Two habits keep this step clean. First, never divide both sides by x (or anything else that could be zero): dividing x² = 2x by x gives only x = 2 and loses the crossing at 0. Factor instead.
Second, if the factored polynomial has three roots, there are three crossings and probably two pieces to integrate. If factoring is new territory, the guide on how to factor quadratic equations covers the patterns that come up here.
Example 1: A line and a parabola
Find the area of the region bounded by y = 2x and y = x².
Intersections: x² = 2x gives x(x − 2) = 0, so x = 0 and x = 2.
Test x = 1: the line gives 2, the parabola gives 1. The line is on top.
Set up: A = ∫₀² (2x − x²) dx = [x² − x³/3]₀².
Evaluate: (4 − 8/3) − 0 = 4/3.
AnswerA = 4/3 ≈ 1.33
Sanity check: the region fits inside a box 2 wide and 4 tall, area 8, and the sketch shows a thin sliver of it. An answer near 1 is believable; an answer near 6 would not be.
What If the Curves Cross?
When the curves cross between the limits, the top curve becomes the bottom curve. A single integral then adds positive strips on one side and negative strips on the other, and they cancel. The fix is to split at every crossing and make each piece top minus bottom.
Example 2: Curves that swap places
Find the area between y = x and y = x³ from x = −1 to x = 1.
Crossings: x³ = x gives x(x − 1)(x + 1) = 0, so x = −1, 0, 1. There's a crossing at 0, inside the interval.
On [−1, 0], test x = −0.5: x³ = −0.125 and x = −0.5, so the cubic is on top. Piece: ∫₋₁⁰ (x³ − x) dx = [x⁴/4 − x²/2]₋₁⁰ = 0 − (1/4 − 1/2) = 1/4.
On [0, 1], test x = 0.5: x = 0.5 and x³ = 0.125, so the line is on top. Piece: ∫₀¹ (x − x³) dx = [x²/2 − x⁴/4]₀¹ = 1/4.
Total: 1/4 + 1/4 = 1/2.
AnswerA = 1/2
Common Mistake
Integrating once across a crossing. Here ∫₋₁¹ (x − x³) dx = 0, because the two halves are equal and opposite. A zero, or an answer smaller than the sketch suggests, almost always means a missed crossing. Solve f(x) = g(x) even when the problem hands you the limits.
When to Integrate With Respect to y
Vertical strips work well when the region has one top curve and one bottom curve all the way across. Some regions don't. A sideways parabola like x = y² has two branches, y = √x and y = −√x, so the bottom boundary can change partway along. Horizontal strips can fix that: each strip runs from the left curve to the right curve, its length is right minus left, and you integrate in y between the lowest and highest intersection y-values.
What the region looks like
Better choice
Integrand and limits
Same top and bottom curve all the way across
Integrate in x
top − bottom, from left x to right x
Top or bottom boundary changes, but left and right stay the same
Integrate in y
right − left, from bottom y to top y
Curves given as x = … in terms of y
Usually y
No need to solve for y or split into branches
Both boundaries change
Either; split into pieces
Pick the variable with fewer pieces
The quick test: draw one vertical line and one horizontal line through the region in your sketch. If every vertical line enters through the same curve and leaves through the same curve, use x. If that's true for horizontal lines instead, use y.
One Region, Solved Both Ways
The region bounded by x = y² and y = x − 2 shows the difference clearly. Same region, same answer, but one setup needs two integrals and the other needs one.
Example 3: Integrating in y (right minus left)
Find the area bounded by x = y² and y = x − 2.
Write both as x in terms of y: the parabola is x = y² and the line is x = y + 2.
Intersections: y² = y + 2 gives y² − y − 2 = 0, so (y − 2)(y + 1) = 0 and y = −1 or y = 2. The points are (1, −1) and (4, 2).
Test y = 0: the line gives x = 2, the parabola gives x = 0. The line is on the right.
Set up: A = ∫₋₁² (y + 2 − y²) dy = [y²/2 + 2y − y³/3]₋₁².
Evaluate: at 2, 2 + 4 − 8/3 = 10/3; at −1, 1/2 − 2 + 1/3 = −7/6. So A = 10/3 + 7/6 = 27/6 = 9/2.
AnswerA = 9/2 = 4.5
Example 4: The same region in x
Now find the same area with vertical strips.
Solved for y, the parabola is two curves, y = √x and y = −√x, and the line is y = x − 2. The top is √x throughout, but the bottom is −√x from x = 0 to x = 1 and the line from x = 1 to x = 4.
Both routes give 9/2, which is also a free check: when you aren't sure of a setup, doing it the other way and getting the same number is strong evidence it's right. The y-version was one polynomial integral; the x-version needed a split, a square root and more arithmetic. That's the payoff of choosing the variable before you start.
An Applied Problem: the Gap Between Two Runners
Area between curves isn't only about shapes. When the curves are rates, the area between them is an accumulated difference: extra distance, extra water, extra cost. The fundamental theorem of calculus is what turns a rate into an amount here.
Example 5: Velocity curves
Two runners leave the same line at t = 0. Runner A holds a steady v_A = 6 m/s. Runner B starts from rest and speeds up with v_B = 2t m/s. How far ahead is A at the moment B is running just as fast, and when does B draw level?
Equal speeds: 2t = 6 gives t = 3 s. Before that, A is faster, so the gap grows.
Gap at 3 s: ∫₀³ (6 − 2t) dt = [6t − t²]₀³ = 18 − 9 = 9 m. That's the area between the velocity lines from 0 to 3.
After 3 s, B is faster and the gap shrinks. B draws level when the positions match: 6t = t², so t = 6 s (the other root, t = 0, is the start).
From 3 to 6 s, B gains ∫₃⁶ (2t − 6) dt = [t² − 6t]₃⁶ = 0 − (−9) = 9 m, exactly the lead A built.
AnswerA leads by 9 m at t = 3 s; B draws level at t = 6 s
This is the crossing idea from Example 2 with a physical meaning. The signed integral ∫₀⁶ (6 − 2t) dt = 0 says the runners end level. The total area between the curves on [0, 6], 9 + 9 = 18, says how much the gap changed in total. The lead at any time T is the signed integral from 0 to T; the total area between the curves adds the pieces as positive numbers.
Why it works
Each runner's distance is the integral of their velocity, so the difference in distance is the integral of the difference in velocity. Units confirm it: the integrand is in m/s, dt is in s, so the area is in metres.
How to Check Your Answer
Three checks catch nearly every setup error, and none takes more than a minute.
Sign. Every piece must be positive. A negative piece means the subtraction is reversed on that interval; a total of zero means a missed crossing.
Box estimate. Draw the smallest rectangle around the region. The area must be less than the box, and your sketch tells you roughly what fraction it fills. In Example 3 the box runs from x = 0 to 4 and y = −1 to 2, area 12, and the region fills roughly a third of it, so 4.5 is believable.
The other variable. For a tricky region, set it up in the other variable, as in Examples 3 and 4. Two different setups that agree are very unlikely to share the same mistake.
Once you've done the work by hand, you can check a definite integral with the integral calculator page. The Solver AI app on iPhone and iPad can also scan a printed or handwritten area problem and show step-by-step working, so you can compare each step against your own setup.
Common Mistake
Using x-limits in a y-integral. In Example 3 the curves meet at x = 1 and x = 4, but the integral in y runs from y = −1 to y = 2. The limits always belong to the variable after the d.
Practice Problems
Sketch first, find every crossing, then integrate. Each answer follows its problem.
Below the axis
Find the area between y = x² − 4 and the x-axis. Answer: the curves meet at x = ±2, and the axis is on top, so ∫₋₂² [0 − (x² − 4)] dx = 32/3 ≈ 10.67.
Trig curves that cross
Find the area between y = sin x and y = cos x from x = 0 to x = π/2. Answer: they cross at x = π/4; the two pieces are each √2 − 1, so A = 2√2 − 2 ≈ 0.828.
Choose the variable
Find the area bounded by x = y² and x = y + 6. Answer: integrate in y; the curves meet at y = −2 and y = 3, and ∫₋₂³ (y + 6 − y²) dy = 125/6 ≈ 20.83.
Three crossings (hardest)
Find the total area enclosed by y = x³ and y = 2x − x². Answer:x³ + x² − 2x = x(x + 2)(x − 1) = 0 gives x = −2, 0, 1. The cubic is on top on [−2, 0] (piece 8/3) and the parabola on [0, 1] (piece 5/12), so A = 37/12 ≈ 3.08. Integrating once from −2 to 1 gives 9/4, which is wrong because the second piece subtracts.
The Takeaway
Sketch, solve for every crossing, test which curve leads on each interval, and integrate top minus bottom (or right minus left) piece by piece. Choose the variable that gives fewer pieces, and trust a positive answer that fits inside your box estimate.