The area between two curves is the integral of top minus bottom, A=∫(f(x)−g(x)) dx from a to b, where f(x)≥g(x) on [a,b]. Find a and b where the curves intersect, and test a point to see which curve is on top. If the curves cross inside the interval, split the integral at each crossing so every piece is positive.
A garden bed runs from x=0 to x=4 meters. Its back edge follows the line y=x+3, and its front edge follows the line y=1. How much ground does it cover?
One way subtracts. The area under the back edge is a trapezoid with parallel sides 3 and 7, so it is (3+7)/2⋅4=20 m2. The area under the front edge is a rectangle, 1⋅4=4 m2. The bed is what lies between them, 20−4=16 m2.
The other way measures the gap. At each x the bed is (x+3)−1=x+2 meters deep, from 2 m at the left end to 6 m at the right. Those depths make a trapezoid of their own, (2+6)/2⋅4=16 m2. The table lists the gap at each meter.
Only the gap matters. Lower both edges by 5 m, to y=x−2 and y=−4, and the bed sits partly below the x-axis. Every gap, and the 16 m2, stays the same.
23+7⋅4−1⋅4=22+6⋅4=16
23+7⋅4−1⋅4=22+6⋅4=16
The depth of the bed at each meter
x(m)
Back edge, x+3
Front edge, 1
Gap (m)
0
3
1
2
1
4
1
3
2
5
1
4
3
6
1
5
4
7
1
6
The rule
Top minus bottom
Let f and g be continuous on [a,b], with f(x)≥g(x) for every x there. The curve y=f(x) is the top and y=g(x) the bottom. The area of the region between them, from x=a to x=b, is the integral of the gap f(x)−g(x).
When the curves enclose a region, a and b are not given. They are the x-values where the curves meet, the solutions of f(x)=g(x).
A=∫ab(f(x)−g(x))dx,f(x)≥g(x)
A=∫ab(f(x)−g(x))dxf(x)≥g(x) on [a,b]
When the curves cross
If the curves swap places inside [a,b], the gap changes sign. The area is then the integral of the absolute value of the gap. In practice, split [a,b] at each crossing and integrate top minus bottom on each piece, so that every piece is positive.
A=∫ab∣f(x)−g(x)∣dx
Why it works
Why the gap integrates to the area
Slice the region into n thin vertical strips of width Δx. A strip at x is about f(x)−g(x) tall, so its area is about (f(x)−g(x))Δx. Adding the strips gives a Riemann sum for f−g, and as the strips narrow the sum becomes the integral.
Subtracting signed areas gives the same answer. The integral of f from a to b counts the area under f, with any part below the axis negative, and the integral of g does the same for g. Their difference is the integral of f−g. A stretch below the axis subtracts the same amount from both and cancels. For the lowered garden bed, the back edge has signed area 0 and the front edge −16, and 0−(−16)=16.
A≈i=1∑n(f(xi∗)−g(xi∗))Δxn→∞∫ab(f(x)−g(x))dx
A≈i=1∑n(f(xi∗)−g(xi∗))Δxn→∞∫ab(f(x)−g(x))dx
The method
The method in six steps
The table finds the area enclosed by y=6−x and y=x2. Simplify the gap before integrating, and keep the bracket around the bottom curve while you do.
∫−32(6−x−x2)dx=322+227=6125
∫−32(6−x−x2)dx=322+227=6125
The area between y=6−x and y=x2
Step
What to do
For y=6−x and y=x2
1
Sketch the curves, or test a point, to see the region
A line crossing a parabola that opens upward
2
Solve f(x)=g(x) for the limits
6−x=x2 gives x=−3 or x=2
3
Decide which curve is on top
At x=0 the line gives 6 and the parabola 0
4
Write top minus bottom
(6−x)−x2=6−x−x2
5
Integrate and evaluate
(12−2−8/3)−(−18−9/2+9)=22/3+27/2
6
State the area with its units
125/6≈20.83 square units
Strips in the other direction
Some regions are easier to slice sideways. The region between x=y2 and x=y+2 has the parabola on its left and the line on its right. A vertical strip would end on the parabola at both ends in part of the region and on the line in the rest, which needs two integrals. A horizontal strip at height y always runs from x=y2 to x=y+2.
Integrate right minus left with respect to y. The curves meet where y2=y+2, at y=−1 and y=2, and the area is 9/2.
∫−12((y+2)−y2)dy=310+67=29
∫−12((y+2)−y2)dy=310+67=29
Where it breaks
Where it breaks
Top minus bottom holds only where the top stays on top. For y=x3 and y=x on [−1,1], the integral of x−x3 is 0, though the curves enclose two loops of area 1/4 each. Integrating straight across a crossing gives a net difference, which can be 0 or even negative. It is an area only when the gap keeps one sign.
The x-axis is a boundary only when it is one of the curves. Between y=4−x2 and y=x+2 the axis plays no part. Adding the area under each curve, or splitting the region at the axis, gives a different and wrong number.
The limits need every intersection. A cubic and a line can meet three times, and each crossing is a place to split.
A region that runs off to infinity, such as the one between y=1/x2 and the x-axis for x≥1, needs an improper integral. Its area turns out to be finite, exactly 1.
∫−11(x−x3)dx=0,∫−11∣∣x−x3∣∣dx=21
∫−11(x−x3)dx=0∫−11∣∣x−x3∣∣dx=21
Check your answer
Check your answer
An area has a sign and a size you can predict before you integrate.
Look at the sign. An area is positive. A negative answer means the curves were subtracted bottom minus top, and a zero means the gap changed sign somewhere inside.
Draw a bounding rectangle. The area is less than the width times the largest gap. For y=4−x2 and y=x+2 the width is 3 and the largest gap is 9/4, at x=−1/2, so the area must be under 6.75. The answer 9/2 is.
Count strips. In Riemann Sums, six midpoint strips for the same region give 4.5625, close to the exact 4.5.
To have Chalk check the work, write it in a Math box. Put the equation f(x)=g(x) on the first row and its solutions on the next, such as x=−2 or x=1. Then write the integral of top minus bottom with its evaluation on one row. The Checker marks each row ✓ or ✗, including an integrand left unsimplified, such as (4−x2)−(x+2). A row that names the area, A=∫…=9/2, as courses write it, is checked like the integral alone. It reads ✓ when the value is right and ✗ when it is not, and its sign and bounding rectangle are still worth a look.
The region between x=y2 and x=y+12 can be cut into vertical or horizontal strips. Which way takes one integral?
Horizontal strips. For each yfrom −3 to 4, the right edge is x=y+12 and the left edge is x=y2. The area is ∫−34 (y+12−y2) dy=343/6. In vertical strips the bottom edge changes at (9,−3), from the parabola’s lower half to the line, so that way needs two integrals.
Archimedes, and where the strips go next
Long before calculus, Archimedes found the area between a parabola and a straight chord across it. It is 2/3 of the rectangle with the same width whose height is the largest gap. For y=4−x2 and y=x+2 that is 2/3⋅3⋅9/4=9/2, the integral’s answer. The rule holds for every parabola and chord. The gap is a quadratic k(x−a)(b−x), whose integral is k(b−a)3/6 and whose largest value, at the midpoint, is k(b−a)2/4.
The strip idea reaches further. Turn the region about an axis and each strip sweeps out a washer, which gives a volume of revolution. In economics, the area between a demand curve and a price line is the consumer surplus.
∫abk(x−a)(b−x)dx=6k(b−a)3=32(b−a)⋅4k(b−a)2
∫abk(x−a)(b−x)dx=6k(b−a)3=32(b−a)⋅4k(b−a)2
Common mistakes
Subtracting in the wrong order. With y=4−x2 above y=x+2 on [−2,1], integrating (x+2)−(4−x2)gives −9/2. An area is never negative, so subtract top minus bottom and the area is 9/2.
Integrating straight across a crossing. For y=x3 and y=x on [−1,1], the integral of x−x3 is 0 because the two loops cancel. Split at x=0 and add the pieces, 1/4+1/4=1/2.
Bringing in the x-axis when it is not a boundary. The region between y=4−x2 and y=x+2 is bounded by those two curves alone. Its area is the integral of top minus bottom, with no area under either curve on its own.
Keeping only one intersection. x2+x−2=0 has two roots, −2 and 1, and both are limits. Integrating from 0 to 1 instead of from −2 to 1 finds only 7/6 of the 9/2.
Dropping the bracket around the bottom curve. (4−x2)−(x+2) is 2−x−x2. Writing 4−x2−x+2 subtracts x but adds 2, which makes every strip 4 units too tall.
Key terms
Area between curves
The area of a region bounded by two graphs, found by integrating the upper curve minus the lower curve: A=∫ab (f(x)−g(x)) dx where f≥g. Where the curves cross, the interval is split so each piece is positive.
Definite integral
∫abf(x) dx: the signed area between the graph of f and the x-axis from a to b, defined as the limit of Riemann sums. Area below the axis counts as negative.
Signed area
Area counted with a sign: regions above the x-axis count as positive and regions below as negative, so they can cancel. Total area counts every region as positive.
Antiderivative
A function whose derivative is the given function, such as x3 for 3x2. Any two antiderivatives on one interval differ by a constant, which is why answers carry +C.
Work through an example
Find the area of the region enclosed by y=4−x2 and y=x+2.