When two curves y=f(x) and y=g(x) intersect, they enclose a bounded region. The area of that region is the integral of the vertical gap between them, f−g, over the interval where they bound the region.
Setup
If f(x)≥g(x) on [a,b], the area between them is
A=∫ab[f(x)−g(x)]dx.
This formula works regardless of whether f and g are positive or negative , the key quantity is the difference, which is non-negative.
Two cases to keep separate:
Curves intersect at x=a and x=b. The limits are determined by the curves themselves; you solve f(x)=g(x) to find a and b.
Curves are bounded by extra vertical lines x=a and x=b. The limits come from those lines.
When the top curve switches
If f≥g on part of the interval and g≥f on another part, you must split at the crossover. On each piece, the integrand is the appropriate non-negative difference.
A=∫ac[f−g]dx+∫cb[g−f]dxif f=g at x=c.
In one stroke this is A=∫ab∣f(x)−g(x)∣dx.
Using horizontal slices
When curves are easier to describe as x=u(y) and x=v(y) (e.g. parabolas opening sideways), use horizontal slices:
A=∫cd[u(y)−v(y)]dywith u(y)≥v(y) (right of left).
Strategy
Sketch both curves.
Find intersections by solving f(x)=g(x) , these often become the limits.
Identify top and bottom on each sub-interval.
Set up the integral of (top − bottom).
Evaluate.
Worked examples
Example 1. Area enclosed by y=x2 and y=x.
Intersections: x2=x⇒x(x−1)=0, so x=0,1. On [0,1], x≥x2 (try x=1/2: 1/2>1/4). Area =∫01(x−x2)dx=21−31=61.
Example 2. Area enclosed by y=x2 and y=2x.
Intersections: x2=2x⇒x=0,2. On [0,2], 2x≥x2. Area =∫02(2x−x2)dx=[x2−3x3]02=4−38=34.
Example 3. Area enclosed by y2=x and y=x−2.
The parabola opens to the right; the line is straight. Use horizontal slices. Intersections in y-coords: y2=y+2⇒y2−y−2=0⇒(y−2)(y+1)=0⇒y=−1,2. At height y∈[−1,2], the line is at x=y+2 (right) and the parabola at x=y2 (left). Area =∫−12[(y+2)−y2]dy=[2y2+2y−3y3]−12=(2+4−8/3)−(1/2−2+1/3)=310−(−7/6)=627=29.
Example 4. Area enclosed by y=sinx and y=cosx on [0,π/2].
These cross at x=π/4. On [0,π/4], cosx≥sinx; on [π/4,π/2], sinx≥cosx.
A=∫0π/4(cosx−sinx)dx+∫π/4π/2(sinx−cosx)dx.
First: [sinx+cosx]0π/4=2−1. Second: [−cosx−sinx]π/4π/2=(−0−1)−(−22−22)=−1+2=2−1. Total: 2(2−1).
Example 5. Area enclosed by y=x and y=x3.
Intersections: x3=x⇒x(x2−1)=0⇒x=0,±1. The region splits into two: one in [−1,0] where x3≥x (check x=−0.5: −0.125>−0.5), one in [0,1] where x≥x3. By symmetry of ∣x−x3∣ (odd-odd inside absolute value), the two pieces are equal: each =∫01(x−x3)dx=21−41=41. Total: 21.
Example 6. Area enclosed by y=x2 and y=4−x2.
Intersections: x2=4−x2⇒x2=2⇒x=±2. On [−2,2], 4−x2≥x2. By symmetry: A=2∫02(4−2x2)dx=2[42−32⋅22]=2[42−342]=2⋅382=3162.
Try it yourself
Area enclosed by y=x2 and y=4.
Area enclosed by y=x2 and y=x+2.
Area enclosed by y2=4x and x2=4y.
Area enclosed by y=x2−4 and y=4−x2.
Area enclosed by y=x and y=x2.
Area enclosed by x=y2−2 and x=y.
Area enclosed by y=x, y=x2, and x=2.
Area enclosed by y=ex, y=e−x, and x=1.
Area enclosed by y=2x−x2 and y=x2.
Area enclosed by y=x2 and y=2−x2.
Area enclosed by y=lnx and y=x−1 on [1,e].
Area between y=sinx and y=sin2x on [0,π].
Area enclosed by y2=x and y=x2.
Area enclosed by ∣y∣=x and x2+y2=8 in the right half plane.
Pitfalls and tricks
Always identify which curve is on top on each sub-interval , a sign error here ruins the answer.
Solve for intersection points first; the limits often come from those.
Don't mix slice directions within one integral. Pick vertical or horizontal slices and stick with it.
Symmetry simplifies dramatically. If the region is symmetric about an axis, compute half.
For parabolas y2=4ax and similar, horizontal slices (dy) usually give cleaner limits.
Practice quiz
Quick check on this topic.
Quiz
Quick check : Area between two curves
6 questions · pick the best answer
Q1
Area enclosed by y=x2 and y=2x is
Q2
Curves intersect at x=−1 and x=3. To find enclosed area you integrate over
Q3
For ∫ab[f−g]dx to give positive area on [a,b], you need
Q4
Area enclosed by y=x and y=x2 is
Q5
Curves y=sinx and y=cosx on [0,π/2] enclose area
Q6
If f(x)=g(x) has roots α<β on [a,b], the area between them is