Unit 8 · Topic 8.1 Beta

Average Value of a Function

4 min read · freeNot practiced

You know how to average a list: add the numbers and divide by how many there are. A function on an interval has infinitely many values, so "add them up" becomes an integral and "how many" becomes the length of the interval. The result is the average value of a function, and it answers questions like "what was the average temperature this afternoon?" or "what was the average flow through this pipe during the storm?"

From a list to an integral

Split [a,b][a, b] into nn equal subintervals of width Δx=b−an\Delta x = \frac{b - a}{n} and sample ff once in each. The average of the samples 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,

because 1n=Δxb−a\frac{1}{n} = \frac{\Delta x}{b - a}. As nn grows, the sum becomes a Riemann sum for the definite integral, so the average of more and more samples settles on

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

The integrand is ff itself. Not f′f', not |f||f|: just ff.

The picture: an equal-area rectangle

Multiply both sides by b−ab - a: (b−a)⋅favg(b - a) \cdot f_{\text{avg}}=∫abf(x)dx= \int_a^b f(x)\,dx. The left side is the area of a rectangle with base b−ab - a and height favgf_{\text{avg}}. So the average value is the height of the rectangle that has the same (signed) area as the region under ff.

The parabola f(x) = 6x − x² on 0 ≤ x ≤ 6 with the area under it shaded in crimson, 36 square units. A dashed blue rectangle of width 6 and height 6 has the same area, so the average value of f on [0, 6] is 6. The curve meets the line y = 6 at x = 3 − √3 and x = 3 + √3, marked with blue points.
Figure 1. For f(x)=6x−x2f(x) = 6x - x^2 on [0,6][0, 6], the area under the curve is 36 and the rectangle of height 6 has the same area: favg=6f_{\text{avg}} = 6. The curve crosses height 6 at x=3±3x = 3 \pm \sqrt{3}. LevlPrep original diagram.

If ff is continuous on [a,b][a, b], it reaches its average value somewhere: the average lies between the minimum and maximum of ff (the Extreme Value Theorem gives them), and the Intermediate Value Theorem says a continuous ff takes every value in between. In the figure, that happens twice.

Worked example 1. Find the average value of f(x)=6x−x2f(x) = 6x - x^2 on [0,6][0, 6], and every cc where f(c)f(c) equals it.

Integrate: ∫06(6x−x2)dx\int_0^6 (6x - x^2)\,dx=[3x2−x33]06= \left[3x^2 - \frac{x^3}{3}\right]_0^6=108−72= 108 - 72=36= 36.

Divide by the length: favg=366−0=6f_{\text{avg}} = \frac{36}{6 - 0} = 6.

Solve 6c−c2=66c - c^2 = 6: c2−6c+6=0c^2 - 6c + 6 = 0, so c=3±3c = 3 \pm \sqrt{3}, both inside [0,6][0, 6].

Average value or average rate of change?

These two sound alike and are different numbers with different units. Keep them apart:

Average value of ffAverage rate of change of ff
Formula1b−a∫abf(x)dx\frac{1}{b - a}\int_a^b f(x)\,dxf(b)−f(a)b−a\frac{f(b) - f(a)}{b - a}
Pictureheight of the equal-area rectangleslope of the secant line
Usesevery value of ff on the intervaltwo values of ff
Units (temperature in °C, time in hours)°C°C per hour

There is a neat link between them. The average value of f′f' is 1b−a∫abf′(x)dx\frac{1}{b - a}\int_a^b f'(x)\,dx=f(b)−f(a)b−a= \frac{f(b) - f(a)}{b - a} by the Fundamental Theorem. So the average rate of change of ff is the average value of its derivative. If a question says "average value of f′f'", that is the formula to use.

Averages from graphs, tables and calculators

Worked example 2 (graph). ff is made of line segments through (0,2)(0, 2), (2,6)(2, 6), (4,6)(4, 6), (6,0)(6, 0) and (8,−2)(8, -2). Find its average value on [0,8][0, 8].

Use geometry: a trapezoid of area 8 on [0,2][0, 2], a rectangle of area 12 on [2,4][2, 4], a triangle of area 6 on [4,6][4, 6], and a triangle of area 2 below the axis on [6,8][6, 8], which counts as −2-2.

∫08f(x)dx\int_0^8 f(x)\,dx=8= 8+12+ 12+6−2+ 6 - 2=24= 24, so favg=248=3f_{\text{avg}} = \frac{24}{8} = 3.

From a table, estimate the integral with a Riemann or trapezoidal sum using the table's own widths, then divide by the length of the interval. With a formula that has no easy antiderivative, use the calculator's numerical integral and write the setup: "18∫614T(t)dt\frac{1}{8}\int_6^{14} T(t)\,dt≈19.297\approx 19.297 °C". Interpret the answer with the quantity, its units and the interval: "From 6 a.m. to 2 p.m. the average temperature was about 19.297 °C."

Common slips

  • Averaging two endpoint values, f(a)+f(b)2\frac{f(a) + f(b)}{2}, instead of integrating.
  • Forgetting to divide by b−ab - a, or dividing by bb when a≠0a \ne 0.
  • Counting area below the axis as positive.
  • Integrating f′f' when the question asks for the average value of ff.

Spot a mistake on this page?