Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Find the Average Value of a Function

The average of ff on [a,b][a, b] is the integral divided by the length of the interval: 1b−a∫abf(x) dx\frac{1}{b - a}\int_a^b f(x)\,dx. It is the height of the rectangle on [a,b][a, b] with the same area as the region under the curve.

Recognize the task

"Find the average value of ff on [a,b][a, b]", "mean temperature over the day", "average velocity from the velocity function", "find cc with f(c)f(c) equal to the average". Test: an average of a continuously varying quantity over an interval, not of a list of numbers.
Defined in Average Value of a Function in the definite integrals lesson; the formula is here.

Two ways to do it

Average valueusual choice
favg=1b−a∫abf(x) dxf_{\text{avg}} = \frac{1}{b - a}\int_a^b f(x)\,dx
Average value of a function: total divided by length.
Where the average is attainedMean Value Theorem for integrals
f(c)=favgfor some c∈[a,b]f(c) = f_{\text{avg}} \quad \text{for some } c \in [a, b]
Solve f(c)=favgf(c) = f_{\text{avg}} for cc. For a continuous ff a solution always exists, the integral version of the Mean Value Theorem.

Steps

StepOn f(x)=x2f(x) = x^2 over [0,3][0, 3]
1Write the formula with the endpoints. The factor in front is 1b−a\frac{1}{b - a}, one over the length of the interval.favg=13−0∫03x2 dxf_{\text{avg}} = \frac{1}{3 - 0}\int_0^3 x^2\,dx
2Evaluate the integral. Fundamental Theorem, Part 2.Power rule for integrals ↗∫03x2 dx=[x33]03=9\int_0^3 x^2\,dx = \Big[\frac{x^3}{3}\Big]_0^3 = 9
3Divide by the length of the interval. The average has the same units as ff.favg=93=3f_{\text{avg}} = \frac{9}{3} = 3
4If asked, find c with f(c) equal to the average. Solve the equation and keep only solutions inside [a,b][a, b].c2=3  ⇒  c=3≈1.73c^2 = 3 \;\Rightarrow\; c = \sqrt{3} \approx 1.73

Worked examples

Example 1 · a parabola

basic
f(x)=x2f(x) = x^2 on [0,3][0, 3]
favg=13∫03x2 dx=93=3f_{\text{avg}} = \frac{1}{3}\int_0^3 x^2\,dx = \frac{9}{3} = 3
attained at c=3c = \sqrt{3}

Example 2 · a sine arch

not the midpoint value
f(x)=sin⁡xf(x) = \sin x on [0,π][0, \pi]
favg=1π∫0πsin⁡x dx=2π≈0.64f_{\text{avg}} = \frac{1}{\pi}\int_0^\pi \sin x\,dx = \frac{2}{\pi} \approx 0.64
the peak is 11, the average is lower

Example 3 · average velocity from a velocity function

checks against distance / time
v(t)=3t2v(t) = 3t^2 m/s on [0,2][0, 2]
vavg=12∫023t2 dt=82=4v_{\text{avg}} = \frac{1}{2}\int_0^2 3t^2\,dt = \frac{8}{2} = 4 m/s
displacement 88 m over 22 s

See it happen

Pour the area under the curve into a rectangle on the same base: its height is the average value. Where the curve crosses that height is the point cc of the Mean Value Theorem for integrals.

Common mistakes

Forgetting to divide

✗ average =9= 9
✓ 93=3\frac{9}{3} = 3

Averaging the endpoint values

✗ f(0)+f(3)2=4.5\frac{f(0) + f(3)}{2} = 4.5
✓ integrate; that shortcut works only for linear functions

Dividing by b instead of b − a

✗ on [1,4][1, 4], dividing by 44
✓ divide by 4−1=34 - 1 = 3

Taking c to be the midpoint

✗ c=1.5c = 1.5 on [0,3][0, 3]
✓ solve f(c)=favgf(c) = f_{\text{avg}}: c=3c = \sqrt{3}