impera Open Impera

AP Calculus AB · Applications of integration

Average value of a function

1The formula

To average a list of numbers, add them and divide by how many there are. To average a continuous function over an interval, we integrate and divide by the interval's length:

$$f_{\text{avg}} = \frac{1}{b - a}\int_a^b f(x)\,dx$$

Why this works: a Riemann sum average $\frac{1}{n}\sum f(x_i)$ equals $\frac{1}{b - a}\sum f(x_i)\Delta x$, since $\Delta x = \frac{b - a}{n}$. Letting $n \to \infty$ gives the integral.

Example

the average value of $f(x) = x^2$ on $[0, 3]$ is $\frac{1}{3}\int_0^3 x^2\,dx = \frac{1}{3} \cdot 9 = 3$.

Check yourself

The average value of f on [a, b] is:

  • (1/(b − a)) ∫ₐᵇ f(x) dx

  • ∫ₐᵇ f(x) dx

  • (f(a) + f(b))/2

  • (f(b) − f(a))/(b − a)

Show the answer

(1/(b − a)) ∫ₐᵇ f(x) dx

Integrate, then divide by the length.

2Geometric meaning

The average value is the height of a rectangle on $[a, b]$ with the same area as the region under the curve. Area above the average line balances area below it.

The average value of x² on [0, 3] is the height of the rectangle with the same area

Check yourself

Geometrically, the average value of f on [a, b] is:

  • The height of the highest point of the graph of f on [a, b]

  • The midpoint of the two endpoint values f(a) and f(b)

  • The height of the rectangle on [a, b] with the same area as under f

  • The slope of the secant line from a to b

Show the answer

The height of the rectangle on [a, b] with the same area as under f

Area under f = average × width.

3Mean value theorem for integrals

If $f$ is continuous on $[a, b]$, then $f$ actually equals its average value at least once: there is a $c$ in $[a, b]$ with

$$f(c) = \frac{1}{b - a}\int_a^b f(x)\,dx$$

Worked example

for $x^2$ on $[0, 3]$, the average is 3, so $c^2 = 3$ and $c = \sqrt{3}$.

This is the integral version of the MVT: it follows from applying the MVT to $F(x) = \int_a^x f(t)\,dt$.

Check yourself

For f(x) = 2x on [0, 4], at which c does f equal its average value?

  • c = 4

  • c = 2

  • c = 1

  • c = 8

Show the answer

c = 2

Average = (1/4)(16) = 4, and 2c = 4.

4Average value versus average rate of change

Do not confuse these two:

  • Average value of $f$ on $[a, b]$: $\frac{1}{b - a}\int_a^b f(x)\,dx$.
  • Average rate of change of $f$ on $[a, b]$: $\frac{f(b) - f(a)}{b - a}$.

They connect through the FTC: the average value of $f'$ equals the average rate of change of $f$, since $\frac{1}{b - a}\int_a^b f'(x)\,dx = \frac{f(b) - f(a)}{b - a}$.

Example

if $v(t)$ is velocity, the average velocity on $[a, b]$ is $\frac{1}{b - a}\int_a^b v(t)\,dt$, which equals $\frac{s(b) - s(a)}{b - a}$.

Check yourself

The average value of v(t) on [0, 10] equals:

  • s(10)/10 always

  • v(5)

  • (s(10) − s(0))/10

  • (v(10) − v(0))/10

Show the answer

(s(10) − s(0))/10

Average velocity = displacement ÷ time.

5Average value from data

With a table, estimate the integral with a Riemann or trapezoidal sum, then divide by the length.

Worked example

temperatures (°C) at $t = 0, 2, 4, 6$ hours are $10, 14, 18, 16$.

  1. Trapezoidal sum: $\frac{2}{2}[10 + 2(14) + 2(18) + 16] = 90$.
  2. Average temperature $\approx \frac{90}{6} = 15$ °C.
Check yourself

A trapezoidal sum for ∫₀⁸ T(t) dt is 160. The average value of T on [0, 8] is about:

  • 160

  • 1280

  • 8

  • 20

Show the answer

20

160/8.

6Going deeper: computing it, interpreting it, and not confusing it with average rate of change

The average value of a continuous function f on [a, b] is

$$f_{\text{avg}} = \frac{1}{b - a}\int_a^b f(x)\,dx$$

Geometrically: the height of the rectangle on [a, b] with the same area as the region under f.

Worked example

$f(x) = x^2$ on [0, 3].

  1. $\int_0^3 x^2\,dx = 9$.
  2. Average value = $\frac{9}{3}$ = 3.

Mean value theorem for integrals: a continuous function attains its average value at some c in [a, b].

  • Here: c² = 3, so $c = \sqrt{3} \approx 1.73$.

Worked example (trigonometric): the temperature is $T(t) = 20 + 5\sin\left(\frac{\pi t}{12}\right)$ °C for 0 ≤ t ≤ 12 hours.

  1. $\int_0^{12} T\,dt = 240 + 5\cdot\frac{12}{\pi}\left[-\cos\left(\frac{\pi t}{12}\right)\right]_0^{12} = 240 + \frac{60}{\pi}(2)$.
  2. $= 240 + \frac{120}{\pi}$.
  3. Average = $20 + \frac{10}{\pi} \approx$ 23.2°C.

Units: the average value has the same units as f.

Do not confuse three "averages"

  • Average value of f on [a, b]: $\frac{1}{b - a}\int_a^b f(x)\,dx$.
  • Average rate of change of f on [a, b]: $\frac{f(b) - f(a)}{b - a}$.
  • These are connected: the average rate of change of f is the average value of f′.

Worked example (motion): v(t) = 3t² (m/s) on [0, 2].

  1. Average velocity = average value of v = $\frac{1}{2}\int_0^2 3t^2\,dt = \frac{8}{2} = 4$ m/s. (Equivalently, displacement ÷ time.)
  2. Average acceleration = average rate of change of v = $\frac{v(2) - v(0)}{2} = \frac{12}{2} = 6$ m/s².

Read the question carefully: "average velocity" needs an integral if you are given v; "average acceleration" needs only the endpoint values of v.

Average speed: $\frac{1}{b - a}\int_a^b |v(t)|\,dt$.

From a table: approximate the integral with a Riemann or trapezoidal sum, then divide by the length of the interval.

Worked example

t = 0, 2, 5, 9 and r(t) = 10, 14, 20, 18. Estimate the average value of r on [0, 9].

  1. Trapezoidal sum: 2(12) + 3(17) + 4(19) = 151.
  2. Average ≈ $\frac{151}{9} = 16.8$.

From a graph: find the area with geometry, then divide by the width.

Worked example

f is a semicircle of radius 2 above [−2, 2].

  1. Area = $\frac{1}{2}\pi(4) = 2\pi$.
  2. Average value = $\frac{2\pi}{4} = \frac{\pi}{2} \approx 1.57$.

Working backward: if the average value of f on [1, 5] is 6, then $\int_1^5 f(x)\,dx = 24$.

Symmetry: the average value of an odd function on [−a, a] is 0; for sin x over a full period it is 0, and for sin² x it is ½.

In context: average value answers questions such as "What was the average amount of water in the tank over the first 8 hours?" or "What constant rate would deliver the same total?"

Common mistakes

  • Forgetting to divide by (b − a).
  • Computing $\frac{f(a) + f(b)}{2}$.
  • Using the average-rate-of-change formula.
  • Averaging table entries when the intervals are unequal.
  • Wrong units (giving units of the integral).
Check yourself

The average value of a function f on the interval [2, 8] is 5. What is the value of the integral of f from 2 to 8?

  • 40

  • 5

  • 30

  • 0.83

Show the answer

30

The integral equals the average value multiplied by the length of the interval.

7For top marks

  • Write the full expression $\frac{1}{b - a}\int_a^b f(x)\,dx$ before evaluating.
  • Use units: the average value has the same units as $f$ (°C, m/s, litres per hour).
  • Interpret in context: "the average temperature over the 6 hours was about 15 °C."
  • Distinguish average value from average rate of change.
Example

"The average velocity from $t = 0$ to $t = 4$ is $\frac{1}{4}\int_0^4 v(t)\,dt = \frac{1}{4}(20) = 5$ m/s."

Check yourself

The units of the average value of a rate in litres per minute are:

  • Minutes

  • Litres times minutes

  • Litres per minute

  • Litres

Show the answer

Litres per minute

Same units as the function.

Now test yourself

This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.

Practise in Impera