Calculus · Grade 12 and undergraduate

Average Value of a Function

Quick answer

The average value of f on [a, b] is its integral divided by the length of the interval: (1/(b − a)) ∫ₐᵇ f(x) dx. It extends the ordinary average of a list of numbers to the infinitely many values a function takes, and it is the height of the rectangle on [a, b] with the same area as the region under the curve. By the Mean Value Theorem for integrals, a continuous function equals its average value somewhere on the interval. The average value of a rate is the average rate of change.

What you'll learn

  • Compute the average value of a function on an interval
  • Interpret average value as the height of an equal-area rectangle
  • Apply the Mean Value Theorem for integrals
  • Connect the average value of a rate to the average rate of change

Averaging infinitely many values

The average of a list of numbers is their sum divided by how many there are. A function on [a,b][a, b] takes infinitely many values, so start with a sample. Split [a,b][a, b] into nn equal pieces of width Δx=b−an\Delta x = \tfrac{b - a}{n} and take one value f(xi)f(x_i) from each piece. Since 1n=Δxb−a\tfrac{1}{n} = \tfrac{\Delta x}{b - a}, the average of the sample is

f(x1)+f(x2)+⋯+f(xn)n=1b−a∑i=1nf(xi) Δx\frac{f(x_1) + f(x_2) + \cdots + f(x_n)}{n} = \frac{1}{b - a}\sum_{i=1}^{n} f(x_i)\,\Delta x

The sum on the right is a Riemann sum. As nn grows, the sample fills the interval, and the sum becomes an integral.

Definition

The average value of ff on [a,b][a, b] is

favg=1b−a∫abf(x) dxf_{\text{avg}} = \frac{1}{b - a}\int_a^b f(x)\,dx

Why the average value is a height

Multiply both sides of the definition by b−ab - a:

favg⋅(b−a)=∫abf(x) dxf_{\text{avg}} \cdot (b - a) = \int_a^b f(x)\,dx

The left side is the area of a rectangle with base [a,b][a, b] and height favgf_{\text{avg}}. The right side is the area under the curve. So the average value is the height of the rectangle whose area matches the region’s.

Think of the region as water in a tank, with a wavy surface. Let the water settle: the crests flow into the troughs, the amount stays the same, and the level surface ends at height favgf_{\text{avg}}. The average value is the level the region settles to when its area is spread evenly across the interval.

The region under y = x² and the rectangle with the same area The curve y = x squared from 0 to 3, with the area under it shaded, and a rectangle from 0 to 3 of height 3 drawn over it. The curve crosses the top of the rectangle at x = square root of 3, marked with a dot. The part of the region above the rectangle balances the part of the rectangle above the curve. 123246810xy c = √3
  • y = x²
The region under y = x² and the rectangle with the same area

For y=x2y = x^2 on [0,3][0, 3] the area is 99 and the width is 33, so the average value is 33. The piece of the region sticking out above the rectangle exactly fills the part of the rectangle the curve leaves empty; each has area 232\sqrt{3}.

The Mean Value Theorem for integrals

Mean Value Theorem for integrals

If ff is continuous on [a,b][a, b], then there is a number cc in [a,b][a, b] with

f(c)=1b−a∫abf(x) dxf(c) = \frac{1}{b - a}\int_a^b f(x)\,dx

A continuous function has a smallest value mm and a largest value MM on [a,b][a, b], so the region lies between the rectangles of heights mm and MM:

m(b−a)≤∫abf(x) dx≤M(b−a)⟹m≤favg≤Mm(b - a) \le \int_a^b f(x)\,dx \le M(b - a) \quad\Longrightarrow\quad m \le f_{\text{avg}} \le M

By the Intermediate Value Theorem, ff takes every value from mm to MM, so it takes favgf_{\text{avg}} somewhere. In the figure, that happens at c=3c = \sqrt{3}, where x2=3x^2 = 3.

The average value of a rate

When the function is a rate f′f', the Fundamental Theorem turns its average into something familiar:

1b−a∫abf′(x) dx=f(b)−f(a)b−a\frac{1}{b - a}\int_a^b f'(x)\,dx = \frac{f(b) - f(a)}{b - a}

The average value of a rate is the average rate of change. Average velocity, for instance, is displacement divided by time. Applied to a continuous rate f′f', the Mean Value Theorem for integrals becomes the Mean Value Theorem for derivatives: at some instant, the rate equals its average.

Worked examples

Common mistakes

Practice problems

  1. Find the average value of f(x)=3x2f(x) = 3x^2 on [0,2][0, 2].

    Answer

    44

    Full solution

    12∫023x2 dx=12[x3]02=82=4\tfrac{1}{2}\int_0^2 3x^2\,dx = \tfrac{1}{2}\big[x^3\big]_0^2 = \tfrac{8}{2} = 4.

  2. Find the average value of f(x)=1xf(x) = \tfrac{1}{x} on [1,e][1, e].

    Answer

    1e−1≈0.582\tfrac{1}{e - 1} \approx 0.582

    Full solution

    ∫1e1x dx=ln⁡e−ln⁡1=1\int_1^e \tfrac{1}{x}\,dx = \ln e - \ln 1 = 1, and the interval has length e−1e - 1.

  3. Find the average value of cos⁡x\cos x on [0,π2]\left[0, \tfrac{\pi}{2}\right].

    Answer

    2π≈0.637\tfrac{2}{\pi} \approx 0.637

    Full solution

    ∫0π/2cos⁡x dx=sin⁡π2−sin⁡0=1\int_0^{\pi/2} \cos x\,dx = \sin\tfrac{\pi}{2} - \sin 0 = 1. Divide by π2\tfrac{\pi}{2} to get 2π\tfrac{2}{\pi}.

  4. Find the average value of f(x)=4−x2f(x) = 4 - x^2 on [−2,2][-2, 2].

    Answer

    83\tfrac{8}{3}

    Full solution

    ∫−22(4−x2) dx=[4x−x33]−22=(8−83)−(−8+83)=323\int_{-2}^{2} (4 - x^2)\,dx = \big[4x - \tfrac{x^3}{3}\big]_{-2}^{2} = \left(8 - \tfrac{8}{3}\right) - \left(-8 + \tfrac{8}{3}\right) = \tfrac{32}{3}. Divide by 44.

  5. Find the number cc guaranteed by the Mean Value Theorem for integrals for f(x)=x2f(x) = x^2 on [0,3][0, 3].

    Answer

    c=3≈1.73c = \sqrt{3} \approx 1.73

    Full solution

    The average value is 13⋅9=3\tfrac{1}{3} \cdot 9 = 3. Solve c2=3c^2 = 3 with cc in [0,3][0, 3].

  6. A car’s velocity is v(t)=6tv(t) = 6t meters per second for 0≤t≤100 \le t \le 10. Find its average velocity.

    Answer

    3030 m/s

    Full solution

    110∫0106t dt=110[3t2]010=30010=30\tfrac{1}{10}\int_0^{10} 6t\,dt = \tfrac{1}{10}\big[3t^2\big]_0^{10} = \tfrac{300}{10} = 30.

  7. The average value of ff on [2,6][2, 6] is 55. Find ∫26f(x) dx\int_2^6 f(x)\,dx.

    Answer

    2020

    Full solution

    The integral equals the average times the width: 5×4=205 \times 4 = 20.

  8. Find the average value of f(x)=e2xf(x) = e^{2x} on [0,ln⁡3][0, \ln 3].

    Answer

    4ln⁡3≈3.64\tfrac{4}{\ln 3} \approx 3.64

    Full solution

    ∫0ln⁡3e2x dx=[12e2x]0ln⁡3=9−12=4\int_0^{\ln 3} e^{2x}\,dx = \big[\tfrac{1}{2}e^{2x}\big]_0^{\ln 3} = \tfrac{9 - 1}{2} = 4, since e2ln⁡3=9e^{2\ln 3} = 9. Divide by ln⁡3\ln 3.

  9. A temperature is recorded every 22 hours: 5050, 5454, 6060, 6262 and 5858 degrees at t=0t = 0, 22, 44, 66 and 88. Use a trapezoidal sum to estimate the average temperature for 0≤t≤80 \le t \le 8.

    Answer

    About 57.557.5 degrees

    Full solution

    The trapezoidal sum is 22(50+2⋅54+2⋅60+2⋅62+58)=460\tfrac{2}{2}(50 + 2 \cdot 54 + 2 \cdot 60 + 2 \cdot 62 + 58) = 460 degree-hours. Divide by 88 hours.

  10. A student says the average value of x2x^2 on [0,4][0, 4] is 0+162=8\tfrac{0 + 16}{2} = 8. What went wrong, and what is the correct value?

    Hint

    Is x2x^2 a linear function?

    Answer

    The student averaged only the endpoint values. The average value is 163≈5.33\tfrac{16}{3} \approx 5.33.

    Full solution

    14∫04x2 dx=14⋅643=163\tfrac{1}{4}\int_0^4 x^2\,dx = \tfrac{1}{4} \cdot \tfrac{64}{3} = \tfrac{16}{3}.

    Averaging the endpoints works for a line, whose values rise evenly. The parabola stays low for most of the interval and climbs late, so its average sits below the midpoint of its endpoint values.

Frequently asked questions

What is the average value of a function?

The integral of the function over the interval divided by the interval's length: (1/(b − a)) times the integral from a to b of f(x) dx.

Is the average value the average of f(a) and f(b)?

Only for linear functions. In general every value on the interval counts, not only the two at the ends.

What does the Mean Value Theorem for integrals say?

A function continuous on [a, b] equals its average value at least once: f(c) = f_avg for some c in [a, b].

How is average value related to average rate of change?

The average value of f′ on [a, b] is (f(b) − f(a))/(b − a), which is the average rate of change of f.

Can an average value be negative?

Yes. The integral counts area below the x-axis as negative, so a function that is mostly negative has a negative average.

What to learn next