Average Value of a Function

We often need to find the average of a set of numbers, such as an average test grade. Suppose you received the following test scores in your algebra class: 89, 90, 56, 78, 100, and 69. Your semester grade is your average of test scores and you want to know what grade to expect. We can find the average by adding all the scores and dividing by the number of scores. In this case, there are six test scores. Thus,

\[\frac{89 + 90 + 56 + 78 + 100 + 69}{6} = \frac{482}{6} \approx 80.33 .\]

Therefore, your average test grade is approximately 80.33, which translates to a B− at most schools.

Suppose, however, that we have a function \(v \left(\right. t \left.\right)\) that gives us the speed of an object at any time t, and we want to find the object’s average speed. The function \(v \left(\right. t \left.\right)\) takes on an infinite number of values, so we can’t use the process just described. Fortunately, we can use a definite integral to find the average value of a function such as this.

Let \(f \left(\right. x \left.\right)\) be continuous over the interval \(\left[\right. a , b \left]\right.\) and let \(\left[\right. a , b \left]\right.\) be divided into n subintervals of width \(\Delta x = \left(\right. b - a \left.\right) / n .\) Choose a representative \(x_{i}^{\star}\) in each subinterval and calculate \(f \left(\right. x_{i}^{\star} \left.\right)\) for \(i = 1 , 2 ,\ldots, n .\) In other words, consider each \(f \left(\right. x_{i}^{\star} \left.\right)\) as a sampling of the function over each subinterval. The average value of the function may then be approximated as

\[\frac{f \left(\right. x_{1}^{\star} \left.\right) + f \left(\right. x_{2}^{\star} \left.\right) + ⋯ + f \left(\right. x_{n}^{\star} \left.\right)}{n} ,\]

which is basically the same expression used to calculate the average of discrete values.

But we know \(\Delta x = \frac{b - a}{n} ,\) so \(n = \frac{b - a}{\Delta x} ,\) and we get

\[\frac{f \left(\right. x_{1}^{\star} \left.\right) + f \left(\right. x_{2}^{\star} \left.\right) + ⋯ + f \left(\right. x_{n}^{\star} \left.\right)}{n} = \frac{f \left(\right. x_{1}^{\star} \left.\right) + f \left(\right. x_{2}^{\star} \left.\right) + ⋯ + f \left(\right. x_{n}^{\star} \left.\right)}{\frac{\left(\right. b - a \left.\right)}{\Delta x}} .\]

Following through with the algebra, the numerator is a sum that is represented as \(\sum_{i = 1}^{n} f \left(\right. x_{i}^{\star} \left.\right) ,\) and we are dividing by a fraction. To divide by a fraction, invert the denominator and multiply. Thus, an approximate value for the average value of the function is given by

\[\begin{aligned} \frac{\sum_{i = 1}^{n} f \left(\right. x_{i}^{\star} \left.\right)}{\frac{\left(\right. b - a \left.\right)}{\Delta x}} & = \left(\right. \frac{\Delta x}{b - a} \left.\right) \sum_{i = 1}^{n} f \left(\right. x_{i}^{\star} \left.\right) \\ \\ & = \left(\right. \frac{1}{b - a} \left.\right) \sum_{i = 1}^{n} f \left(\right. x_{i}^{\star} \left.\right) \Delta x . \end{aligned}\]

This is a Riemann sum. Then, to get the exact average value, take the limit as n goes to infinity. Thus, the average value of a function is given by

\[\frac{1}{b - a} \underset{n \rightarrow \infty}{\text{lim}} \sum_{i = 1}^{n} f \left(\right. x_{i} \left.\right) \Delta x = \frac{1}{b - a} \int_{a}^{b} f \left(\right. x \left.\right) d x .\]

Definition

Let \(f \left(\right. x \left.\right)\) be continuous over the interval \(\left[\right. a , b \left]\right. .\) Then, the average value of the function \(f \left(\right. x \left.\right)\) (or fave) on \(\left[\right. a , b \left]\right.\) is given by

\[f_{\text{ave}} = \frac{1}{b - a} \int_{a}^{b} f \left(\right. x \left.\right) d x .\]

Example 5.14

Finding the Average Value of a Linear Function

Find the average value of \(f \left(\right. x \left.\right) = x + 1\) over the interval \(\left[\right. 0 , 5 \left]\right. .\)

Solution

First, graph the function on the stated interval, as shown in Figure 5.25.

A graph in quadrant one showing the shaded area under the function f(x) = x + 1 over [0,5].
Figure 5.25 The graph shows the area under the function \(f \left(\right. x \left.\right) = x + 1\) over \(\left[\right. 0 , 5 \left]\right. .\)

The region is a trapezoid lying on its side, so we can use the area formula for a trapezoid \(A = \frac{1}{2} h \left(\right. a + b \left.\right) ,\) where h represents height, and a and b represent the two parallel sides. Then,

\[\begin{aligned} \int_{0}^{5} x + 1 d x & = \frac{1}{2} h \left(\right. a + b \left.\right) \\ & = \frac{1}{2} \cdot 5 \cdot \left(\right. 1 + 6 \left.\right) \\ & = \frac{35}{2} . \end{aligned}\]

Thus the average value of the function is

\[\frac{1}{5 - 0} \int_{0}^{5} x + 1 d x = \frac{1}{5} \cdot \frac{35}{2} = \frac{7}{2} .\]

Checkpoint 5.13

Find the average value of \(f \left(\right. x \left.\right) = 6 - 2 x\) over the interval \(\left[\right. 0 , 3 \left]\right. .\)

This lesson is part of:

Integration

View Full Tutorial

Track Your Learning Progress

Sign in to unlock unlimited practice exams, tutorial practice quizzes, personalized weak area practice, AI study assistance with Lexi, and detailed performance analytics.