Area Between Curves and Average Value
Find the area between two curves by integrating top minus bottom, split at crossings, integrate in y when easier, and compute average values.
Welcome back!
Step 1 of 12Learn
Top minus bottom
So far, area meant area between a curve and the x-axis. The same slicing idea handles the region between any two curves.
Picture a thin vertical strip at position x. Its height is the distance from the lower curve to the upper one, f(x) − g(x), and its width is dx. Add up the strips:
Area = ∫ from a to b of [f(x) − g(x)] dx, where f(x) ≥ g(x) on [a, b].
The x-axis case is just g(x) = 0.
Example. Find the area between y = x and y = x².
First, find where they meet: x² = x gives x = 0 and x = 1. Next, decide which is on top. Test x = 0.5: the line gives 0.5 and the parabola gives 0.25, so the line is on top. Then integrate:
∫ from 0 to 1 of (x − x²) dx = [x²/2 − x³/3] from 0 to 1 = 1/2 − 1/3 = 1/6.
Three steps every time: find the intersections, identify top and bottom, integrate the difference. The intersections usually give you the limits of integration, which is why skipping that step is so costly.
The formula works even when both curves are below the x-axis, because the difference f(x) − g(x) is still the strip's height. You don't need to treat negative regions separately as long as you subtract bottom from top.
Step 2 of 12Practice · Chart
y = x + 2 vs. y = x²
Tap the x where the vertical strip between the curves is tallest.
Tap the point that answers the question, then press Check.
| x | y = x + 2 (top) | y = x² (bottom) |
|---|---|---|
| −1 | 1 | 1 |
| −0.5 | 1.5 | 0.25 |
| 0 | 2 | 0 |
| 0.5 | 2.5 | 0.25 |
| 1 | 3 | 1 |
| 1.5 | 3.5 | 2.25 |
| 2 | 4 | 4 |
Step 3 of 12Practice · Work it out
Find the area of the region between y = x + 2 and y = x².
Step 4 of 12Learn
Crossings and horizontal strips
If the curves cross inside the interval, the top and bottom swap. A single integral of f − g would subtract the region where g is on top instead of adding it. Split the integral at every crossing and integrate (top − bottom) on each piece.
Example. Area between y = sin x and y = cos x on [0, π/2]. They cross at x = π/4. Cosine is on top on the left part, sine on the right:
∫ from 0 to π/4 of (cos x − sin x) dx + ∫ from π/4 to π/2 of (sin x − cos x) dx = (√2 − 1) + (√2 − 1) = 2√2 − 2 ≈ 0.828.
A single integral of (cos x − sin x) over [0, π/2] gives 0, a sure sign that something canceled.
Sometimes horizontal strips are easier. If the region is bounded by curves written as x in terms of y, use
Area = ∫ from c to d of [x_right(y) − x_left(y)] dy.
Example. The region between x = y² and the line y = x − 2. In terms of y, the line is x = y + 2, always to the right of the parabola between their intersections at y = −1 and y = 2:
∫ from −1 to 2 of (y + 2 − y²) dy = 4.5.
With vertical strips, this region would need two integrals, because the lower boundary changes from the bottom half of the parabola to the line at x = 1. Choosing the right direction for the strips can turn two integrals into one.
Step 5 of 12Explore
Area between y = kx and y = x²
The graph shows the strip height kx − x², the line minus the parabola. It is positive between the intersections at x = 0 and x = k. The area of the region is the area under this height curve, k³/6. Double k and see the area grow eightfold.
- Right intersection x = k
- 1
- Area between the curves k³/6
- 0.1667
Step 6 of 12Learn
Average value of a function
The average of n numbers is their sum divided by n. For a function on an interval, the sum becomes an integral and n becomes the length of the interval:
f_avg = (1/(b − a)) · ∫ from a to b of f(x) dx
Geometrically, f_avg is the height of the rectangle over [a, b] with the same area as the region under f. Some of the curve pokes above that rectangle and some dips below, and the two pieces balance.
Example. On a spring day, the temperature is modeled by T(t) = 60 + 10 sin(πt/12) degrees Fahrenheit, with t in hours after 6 a.m. What's the average temperature from 6 a.m. to 6 p.m. (t = 0 to 12)?
∫ from 0 to 12 of sin(πt/12) dt = [−(12/π) cos(πt/12)] from 0 to 12 = (12/π)(1 + 1) = 24/π.
So T_avg = (1/12)(60·12 + 10·24/π) = 60 + 20/π ≈ 66.4°F.
That's not the midpoint of the minimum and maximum (60 and 70), because the temperature spends more time near its peak than a simple average of extremes suggests.
The Mean Value Theorem for integrals guarantees that a continuous function actually hits its average value somewhere: there is a c in [a, b] with f(c) = f_avg. Somewhere between 6 a.m. and 6 p.m., the thermometer read exactly 66.4°F.
Step 7 of 12Practice · Chart
Average temperature over a day
The average value is the constant height that would give the same area under the curve over the whole day.
Tap a reading that is above the day's average value.
Tap the point that answers the question, then press Check.
| Item | Temperature | Average value |
|---|---|---|
| 0 h | 12 °C | 16.7 °C |
| 4 h | 10 °C | 16.7 °C |
| 8 h | 14 °C | 16.7 °C |
| 12 h | 22 °C | 16.7 °C |
| 16 h | 24 °C | 16.7 °C |
| 20 h | 18 °C | 16.7 °C |
| 24 h | 12 °C | 16.7 °C |
Step 8 of 12Practice · Work it out
What is the average value of f(x) = x² on [0, 3]?
Step 9 of 12Note
Step 10 of 12Learn
Areas that mean something
The region between two curves often has a real-world meaning: it is the accumulated difference between two rates.
Suppose a startup's revenue flows in at R(t) = 50 + 6t thousand dollars per month and its costs run at C(t) = 80 + t thousand dollars per month, with t in months. At first costs exceed revenue. The rates are equal when 50 + 6t = 80 + t, at t = 6 months. After that the company makes money.
The total loss over the first six months is the area between the curves on [0, 6], with the cost curve on top:
∫ from 0 to 6 of (30 − 5t) dt = 180 − 90 = 90 thousand dollars.
To recover that loss, the company needs an equal area with revenue on top. From t = 6 to t = T, the gain is ∫ (5t − 30) dt = (5/2)(T − 6)². Setting that equal to 90 gives (T − 6)² = 36, so T = 12 months to break even overall.
The same reasoning appears in medicine (drug absorption minus elimination), ecology (births minus deaths) and economics (consumer surplus, the area between a demand curve and a price line). Whenever two rates compete, the area between their graphs tells you the net amount that accumulated.
Step 11 of 12Practice · Choose one
Which setup gives the area between y = sin x and y = cos x on [0, π/2]?
Step 12 of 12Practice · True or false
The average value of a continuous function on [a, b] always equals (f(a) + f(b))/2.
Lesson complete!