Example
Integrate top minus bottom to compute the exact area between curves.
highlighted = computed this step
Step 1 — Set up
Set up the interval from -1 to 2.
[−1,2]f(x)=x+2g(x)=x2
Step 2 — Identify top and bottom
Identify x plus 2 as top and x squared as bottom.
top=x+2bottom=x2
Step 3 — Subtract curves
Subtract top minus bottom for the integrand.
top−bottom=x+2−x2
Step 4 — Antiderivative
Find an antiderivative of the difference.
F(x)=2x2+2x−3x3
Step 5 — Evaluate upper bound
Evaluate F at 2 to get 10 over 3.
F(2)=310
Step 6 — Evaluate lower bound
Evaluate F at -1 to get -7 over 6.
F(−1)=6−7
Step 7 — Area
Subtract 10 over 3 minus -7 over 6 to get 9 over 2.
310−6−7=29
area-between-curves
The area between curves f (top) and g (bottom) on [a, b] equals ∫_a^b [f(x) - g(x)] dx = F(b) - F(a), where F is an antiderivative of the integrand f - g. The endpoints a, b are where the curves intersect.