## Average Value of a Function

### Learning Outcomes

• Calculate the 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,

$\dfrac{89+90+56+78+100+69}{6}=\dfrac{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(t)$ 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(t)$ 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(x)$ be continuous over the interval $[a,b]$ and let $[a,b]$ be divided into $n$ subintervals of width $\Delta x=\frac{(b-a)}{n}$. Choose a representative $x_i^*$ in each subinterval and calculate $f(x_i^*)$ for $i=1,2, \cdots , n$. In other words, consider each $f(x_i^*)$ as a sampling of the function over each subinterval. The average value of the function may then be approximated as

$\dfrac{f(x_1^*)+f(x_2^*)+ \cdots +f(x_n^*)}{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

$\dfrac{f(x_1^*)+f(x_2^*)+ \cdots +f(x_n^*)}{n}=\dfrac{f(x_1^*)+f(x_2^*)+ \cdots +f(x_n^*)}{\dfrac{(b-a)}{\Delta x}}$.

Following through with the algebra, the numerator is a sum that is represented as $\displaystyle\sum_{i=1}^{n} f(x_i^*)$, 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{array}{ll}\frac{\displaystyle\sum_{i=1}^{n} f(x_i^*)}{\dfrac{\left(b-a\right)}{\Delta x}} & =\left(\dfrac{\Delta x}{b-a}\right)\displaystyle\sum_{i=1}^{n} f(x_i^*) \\ & =\left(\dfrac{1}{b-a}\right)\displaystyle\sum_{i=1}^{n} f(x_i^*) \Delta x \end{array}$

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

$\dfrac{1}{b-a}\underset{n\to \infty }{\lim}\displaystyle\sum_{i=1}^{n} f(x_i) \Delta x=\dfrac{1}{b-a} \displaystyle\int_a^b f(x) dx$.

### Definition

Let $f(x)$ be continuous over the interval $[a,b]$. Then, the average value of the function $f(x)$ (or $f_{\text{ave}}$) on $[a,b]$ is given by

$f_{\text{ave}}=\dfrac{1}{b-a} \displaystyle\int_a^b f(x) dx$.

### Example: Finding the Average Value of a Linear Function

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

Watch the following video to see the worked solution to Example: Finding the Average Value of a Linear Function.

### Try It

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