Step 26: Area Between Curves and Average Value
- The average value of \( f \) on \( [a, b] \) is \( \dfrac{1}{b-a}\displaystyle\int_a^b f(x)\,dx \): the height of the rectangle with the same area as the region under the curve. A continuous \( f \) actually reaches that height somewhere.
- Integrating a rate gives a change: \( \displaystyle\int_a^b v(t)\,dt \) is displacement, \( \displaystyle\int_a^b |v(t)|\,dt \) is total distance, and amount now \( = \) amount at the start \( + \displaystyle\int \) (rate in \(-\) rate out).
- The area between two curves is \( \displaystyle\int_a^b (\text{top}-\text{bottom})\,dx \). If the curves cross, split at every crossing. For some regions, horizontal strips are easier: \( \displaystyle\int_c^d (\text{right}-\text{left})\,dy \).
- Exam point: an area is never negative or zero. Find every intersection first, test a point in each piece, and say what an integral means in context, with units.
The average value of a function
What was the average temperature yesterday? You could average 24 hourly readings, but temperature changes continuously, so no finite list captures it. The integral does. Take \( n \) equally spaced readings \( f(x_1), \ldots, f(x_n) \) on \( [a, b] \), with spacing \( \Delta x = \tfrac{b-a}{n} \). Their ordinary average is
As \( n \to \infty \) this tends to
because the sum is a Riemann sum (Step 20). So the average value of a function is its integral divided by the length of the interval.
Find the average value of \( f(x) = 4x-x^2 \) on \( [0, 3] \), and every value of \( c \) in \( [0, 3] \) at which \( f(c) \) equals that average.
Both values lie in \( [0, 3] \). The theorem promises at least one; here there are two. In Figure 1 the rectangle of height 3 has area 9, the same as the region under the curve.
An economics example: an average price. A share price, in dollars, \( t \) months after listing is \( P(t) = 20 + 3\sqrt{t} \). Its average over the first four months is \( \tfrac{1}{4}\displaystyle\int_0^4 (20 + 3t^{1/2})\,dt = \tfrac{1}{4}\left[20t + 2t^{3/2}\right]_0^4 = \tfrac{1}{4}(80 + 16) = 24 \) dollars. Average cost, average inventory and average revenue over a period are all found the same way.
Motion: displacement and total distance
In Step 15 you differentiated position to get velocity. Now run it backwards. Velocity is the rate of change of position, so the integral of velocity is the change in position:
The integral on its own, \( \displaystyle\int_a^b v(t)\,dt \), is the displacement. The total distance travelled is \( \displaystyle\int_a^b |v(t)|\,dt \).
Why does distance need the modulus? Over a short time \( dt \) the particle moves \( v\,dt \). When \( v < 0 \) that is a movement backwards, and the integral counts it as negative, cancelling earlier forward movement. Displacement wants exactly that: it asks where you ended up. Distance does not: walking 3 m forward and 3 m back is 6 m of walking. On a velocity–time graph, displacement is the area above the axis minus the area below; distance is the two added.
A particle moves along a line with velocity \( v(t) = t^2-5t + 4 \) m/s for \( 0 \le t \le 5 \), and \( s(0) = 1 \) m. Find (a) the displacement, (b) the total distance travelled, (c) the position at \( t = 5 \).
The particle travels more than 8 m but finishes less than 1 m from where it started.
Accumulation: rate in, rate out
Motion is one case of a general rule, the net change theorem: if you know the rate at which a quantity changes, the integral of the rate is the change in the quantity.
Start with what you had, add what flowed in, subtract what flowed out. The units of the integral are the rate’s units times time: litres per hour times hours gives litres.
A tank holds 200 litres at \( t = 0 \). Water flows in at a steady 48 litres per hour and drains out at \( O(t) = 3t^2 \) litres per hour, for \( 0 \le t \le 6 \). (a) How much water drains out in the 6 hours? (b) How much is in the tank at \( t = 6 \)? (c) When is the amount greatest, and what is it?
The tank holds most water, 328 litres, at \( t = 4 \) hours: the moment the outflow rate catches up with the inflow rate.
An economics example: stocks, flows and present value. Economists separate stocks, measured at a moment (capital, inventories, debt), from flows, measured per unit of time (investment, production, borrowing). A flow is the rate of change of a stock, so a stock is accumulated flow. The same slicing values a stream of income. Income of \( R(t) \) dollars per year earned between \( t \) and \( t + dt \) is worth \( R(t)e^{-rt}\,dt \) today, so the present value of the whole stream is \( PV = \displaystyle\int_0^T R(t)e^{-rt}\,dt \). For $2000 a year for 10 years at \( r = 0.04 \): \( PV = 50{,}000\left(1-e^{-0.4}\right) \), about $16,484, against $20,000 undiscounted.
The area between two curves
Slice the region into thin vertical strips. A strip at \( x \) has height (top curve) minus (bottom curve) and width \( dx \). Add the strips:
Here \( f(x) \ge g(x) \) on \( [a, b] \), so \( f \) is the top curve.
This works even when both curves are below the \( x \)-axis. The height of a strip is a difference of \( y \)-values, and a difference does not care where the axis is: a strip from \( y = -5 \) up to \( y = -1 \) is 4 units tall.
Find the area of the region enclosed by \( y = 2x \) and \( y = x^2-3 \).
The area is \( \tfrac{32}{3} \approx 10.7 \) square units.
When the curves cross more than once, the one on top changes. Split at every crossing and make each piece top minus bottom.
Find the total area enclosed between \( y = x^3 \) and \( y = x^2 + 2x \).
Total area \( = \tfrac{5}{12} + \tfrac{8}{3} = \tfrac{37}{12} \approx 3.08 \) square units.
An economics example: consumer and producer surplus. Demand is \( P = 120-2Q^2 \) and supply is \( P = 30 + 8Q \). They meet where \( 2Q^2 + 8Q-90 = 0 \), that is \( (Q + 9)(Q-5) = 0 \), so \( Q_0 = 5 \) and \( P_0 = 70 \) dollars. Consumer surplus is the area between the demand curve and the price line: \( \displaystyle\int_0^5 \big(120-2Q^2-70\big)\,dQ = 250-\tfrac{250}{3} = \tfrac{500}{3} \), about $166.67. Producer surplus is the area between the price line and supply: \( \displaystyle\int_0^5 (70-30-8Q)\,dQ = 100 \) dollars. Both are areas between curves, with the horizontal line \( P = P_0 \) as one of them.
Integrating with respect to \( y \)
Some regions are awkward to slice vertically, because the curve at the top or bottom of a strip changes part-way across. Slice horizontally instead. A strip at height \( y \) has length (right curve) minus (left curve) and thickness \( dy \):
Find the area enclosed by the parabola \( x = y^2-4 \) and the line \( x = y + 2 \).
With vertical strips you would need two integrals, because to the left of \( x = 0 \) every strip runs between the two halves of the parabola, while to the right it runs from the line up to the parabola.
Practise: 6 questions
Try each one on paper first, then check the worked answer.
EasyQ1. Find the average value of \( f(x) = 3x^2 \) on \( [1, 3] \). Show worked answer
Divide by \( 3-1 = 2 \): \( f_{\text{avg}} = 13 \).
EasyQ2. Find the area of the region enclosed by \( y = x^2 \) and \( y = 4 \). Show worked answer
\( A = \displaystyle\int_{-2}^{2} (4-x^2)\,dx = \left[4x-\frac{x^3}{3}\right]_{-2}^{2} = \tfrac{16}{3}-\left(-\tfrac{16}{3}\right) = \tfrac{32}{3} \).
MediumQ3. A particle has velocity \( v(t) = 3t^2-12t + 9 \) m/s for \( 0 \le t \le 4 \). Find its displacement and the total distance it travels. Show worked answer
\( F(t) = t^3-6t^2 + 9t \): \( F(0) = 0 \), \( F(1) = 4 \), \( F(3) = 0 \), \( F(4) = 4 \).
Displacement \( = F(4)-F(0) = 4 \) m.
Pieces: \( 4 \), \( 0-4 = -4 \), \( 4-0 = 4 \). Distance \( = 4 + 4 + 4 = 12 \) m.
MediumQ4. Find the total area between \( y = \sin x \) and \( y = \cos x \) for \( 0 \le x \le \pi \). Show worked answer
\( \displaystyle\int_0^{\pi/4} (\cos x-\sin x)\,dx = \big[\sin x + \cos x\big]_0^{\pi/4} = \sqrt{2}-1 \).
\( \displaystyle\int_{\pi/4}^{\pi} (\sin x-\cos x)\,dx = \big[-\cos x-\sin x\big]_{\pi/4}^{\pi} = 1 + \sqrt{2} \).
Total \( = 2\sqrt{2} \approx 2.83 \).
MediumQ5. Find the area of the region bounded by \( y = \sqrt{x} \), the \( y \)-axis and the line \( y = 3 \). Show worked answer
\( A = \displaystyle\int_0^3 y^2\,dy = \left[\frac{y^3}{3}\right]_0^3 = 9 \).
Check: the rectangle \( 0 \le x \le 9 \), \( 0 \le y \le 3 \) has area 27, and the area under \( y = \sqrt{x} \) is \( \displaystyle\int_0^9 \sqrt{x}\,dx = 18 \); \( 27-18 = 9 \).
ExamQ6. (AP style, no calculator) A museum has 1000 visitors inside at \( t = 0 \). For \( 0 \le t \le 6 \) hours, visitors arrive at a constant 300 per hour and leave at \( L(t) = 30t^2 + 30 \) per hour. (a) How many visitors leave in the first 2 hours? [2] (b) Is the number inside increasing or decreasing at \( t = 4 \)? Give a reason. [2] (c) Find the greatest number of visitors inside during \( 0 \le t \le 6 \). Justify your answer. [3] (d) Find the average rate at which visitors leave over \( 0 \le t \le 6 \). [2] Show worked answer
(b) Net rate at \( t = 4 \): \( 300-L(4) = 300-510 = -210 \). [M1] This is negative, so the number inside is decreasing. [A1]
(c) \( N(t) = 1000 + \displaystyle\int_0^t (270-30u^2)\,du = 1000 + 270t-10t^3 \). \( N'(t) = 0 \) when \( 30t^2 = 270 \), so \( t = 3 \). [M1]
Candidates: \( N(0) = 1000 \), \( N(3) = 1540 \), \( N(6) = 460 \). [M1]
Greatest number: 1540 visitors, at \( t = 3 \). [A1]
(d) \( \dfrac{1}{6}\displaystyle\int_0^6 (30t^2 + 30)\,dt = \dfrac{1}{6}(2160 + 180) \) [M1] \( = 390 \) visitors per hour. [A1]
Total: 9 marks.
Check yourself
1. What is the average value of \( f(x) = x \) on \( [0, 4] \)?
2. A particle has \( v(t) = t-2 \) for \( 0 \le t \le 4 \). What are its displacement and total distance?
3. What is the area enclosed by \( y = x \) and \( y = x^2 \)?
Your score: 0 out of 3
The short version
- Average value: \( f_{\text{avg}} = \dfrac{1}{b-a}\displaystyle\int_a^b f(x)\,dx \). A continuous function takes its average value at least once (the Mean Value Theorem for integrals).
- Displacement \( = \displaystyle\int_a^b v\,dt \); distance \( = \displaystyle\int_a^b |v|\,dt \), found by splitting where \( v \) changes sign.
- Accumulation: amount \( = \) starting amount \( + \displaystyle\int \) (rate in \(-\) rate out). The maximum is where rate in \( = \) rate out, but compare with the end points too.
- Area between curves: \( \displaystyle\int (\text{top}-\text{bottom})\,dx \), split at every crossing; or \( \displaystyle\int (\text{right}-\text{left})\,dy \) with \( y \)-limits.
- Consumer and producer surplus are areas between a demand or supply curve and the price line.
- The full chapter in Mathematics Made Simple has many more worked examples and a full set of practice questions with a complete answer key.
Further reading on EconTutorials
Related in-depth articles from our blog:
