Math Core

Lesson 8.1 · Applications of Integration

Average value of a function

You already know how to average a list of numbers: add them up and divide by how many there are. But a function like a temperature over a day takes infinitely many values. The definite integral is exactly the tool that "adds up" a continuous quantity, so it gives you a way to find the average of a function over an interval. This is the first application in the unit, and it shows up on almost every AP exam.

From a finite average to an integral

Suppose you want the average value of a continuous function ff on [a,b][a, b]. A natural first attempt is to sample it. Split [a,b][a, b] into nn equal pieces of width Δx=b−an\Delta x = \dfrac{b - a}{n}, pick a point xix_i in each piece, and average the samples:

f(x1)+f(x2)+⋯+f(xn)n.\frac{f(x_1) + f(x_2) + \cdots + f(x_n)}{n}.

Since n=b−aΔxn = \dfrac{b - a}{\Delta x}, you can rewrite this average as

1b−a∑i=1nf(xi) Δx.\frac{1}{b - a}\sum_{i=1}^{n} f(x_i)\,\Delta x.

The sum is a Riemann sum. As you take more and more samples (n→∞n \to \infty), it approaches ∫abf(x) dx\displaystyle\int_a^b f(x)\,dx. That limit is the definition of the average value.

Definition

Average value of a function

If ff is continuous on [a,b][a, b], the average value of ff on [a,b][a, b] is

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

In words: take the total accumulated amount (the integral) and divide by the length of the interval.

A picture of the average

Think of the region between the graph of a positive function and the xx-axis as water in a tank seen from the side. If the water sloshed flat, its level would be the average value. The rectangle of height favgf_{\text{avg}} and width b−ab - a has exactly the same area as the region under the curve:

favg⋅(b−a)=∫abf(x) dx.f_{\text{avg}} \cdot (b - a) = \int_a^b f(x)\,dx.
The area under y = x² on [0, 3] is 9, the same as a rectangle of height 3 and width 3. The curve reaches the average height at x = √3.Open in grapher →

This equation is also handy in reverse: if you know the average value and the interval, you know the integral.

The Mean Value Theorem for integrals

Look at the graph above again. The curve starts below the average height and ends above it, so somewhere in between it must cross that height. That is always true for a continuous function.

Mean Value Theorem for integrals

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

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

A continuous function actually takes on its average value somewhere in the interval.

This is the Mean Value Theorem from differentiation in disguise. If FF is an antiderivative of ff, the ordinary MVT says there is a cc with F′(c)=F(b)−F(a)b−aF'(c) = \dfrac{F(b) - F(a)}{b - a}, and F′(c)=f(c)F'(c) = f(c) while F(b)−F(a)=∫abf(x) dxF(b) - F(a) = \int_a^b f(x)\,dx.

Average value versus average rate of change

These two phrases sound alike and are tested side by side on the AP exam.

You are asked forFormulaUses
Average value of ff on [a,b][a, b]1b−a∫abf(x) dx\dfrac{1}{b - a}\displaystyle\int_a^b f(x)\,dxan integral of ff
Average rate of change of ff on [a,b][a, b]f(b)−f(a)b−a\dfrac{f(b) - f(a)}{b - a}two values of ff

Here is how they connect. If v(t)v(t) is a velocity, the average value of vv on [a,b][a, b] is 1b−a∫abv(t) dt\dfrac{1}{b - a}\int_a^b v(t)\,dt, which equals s(b)−s(a)b−a\dfrac{s(b) - s(a)}{b - a} where ss is position. So the average value of a rate is the average rate of change of the amount.

Common mistake

Don't divide by the wrong thing, and don't forget to divide at all. The factor in front is 1b−a\dfrac{1}{b - a}, the reciprocal of the interval's length. Students often compute only ∫abf(x) dx\int_a^b f(x)\,dx, or divide by bb instead of b−ab - a when the interval doesn't start at 0.

Worked examples

Worked example: A polynomial

Find the average value of f(x)=x2f(x) = x^2 on [0,3][0, 3], and find every cc in [0,3][0, 3] guaranteed by the Mean Value Theorem for integrals.

Solution.

favg=13−0∫03x2 dx=13[x33]03=13(9)=3.f_{\text{avg}} = \frac{1}{3 - 0}\int_0^3 x^2\,dx = \frac{1}{3}\left[\frac{x^3}{3}\right]_0^3 = \frac{1}{3}(9) = 3.

Now solve f(c)=3f(c) = 3: c2=3c^2 = 3, so c=±3c = \pm\sqrt{3}. Only c=3≈1.732c = \sqrt{3} \approx 1.732 lies in [0,3][0, 3].

Worked example: A trigonometric function

Find the average value of g(x)=sin⁡xg(x) = \sin x on [0,π][0, \pi].

Solution.

gavg=1π∫0πsin⁡x dx=1π[−cos⁡x]0π=1π(1−(−1))=2π≈0.637.g_{\text{avg}} = \frac{1}{\pi}\int_0^\pi \sin x\,dx = \frac{1}{\pi}\Big[-\cos x\Big]_0^\pi = \frac{1}{\pi}\big(1 - (-1)\big) = \frac{2}{\pi} \approx 0.637.

The maximum of sin⁡x\sin x is 1, and the average is a bit less than two thirds of that, which matches the shape of one arch.

Worked example: Working backward

The average value of a continuous function hh on [2,8][2, 8] is 55, and ∫24h(x) dx=12\displaystyle\int_2^4 h(x)\,dx = 12. Find ∫48h(x) dx\displaystyle\int_4^8 h(x)\,dx.

Solution. The total integral is (average) ×\times (length):

∫28h(x) dx=5⋅(8−2)=30.\int_2^8 h(x)\,dx = 5 \cdot (8 - 2) = 30.

Split the interval: ∫48h(x) dx=30−12=18\displaystyle\int_4^8 h(x)\,dx = 30 - 12 = 18.

Tip

Sanity check every average value: it must lie between the minimum and maximum of ff on the interval. If ff ranges from 0 to 9 and you get 12, something went wrong.

Practice

Practice 1

Find the average value of f(x)=2x+1f(x) = 2x + 1 on the interval [1,5][1, 5].

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

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

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

What is the average value of cos⁡x\cos x on the interval [0,π2]\left[0, \dfrac{\pi}{2}\right]?

Practice 4

Let f(x)=xf(x) = \sqrt{x}. Find the value of cc in [0,9][0, 9] such that f(c)f(c) equals the average value of ff on [0,9][0, 9].

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

A continuous function ff satisfies ∫14f(x) dx=9\displaystyle\int_1^4 f(x)\,dx = 9 and ∫47f(x) dx=3\displaystyle\int_4^7 f(x)\,dx = 3. What is the average value of ff on [1,7][1, 7]?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

The temperature in a greenhouse is modeled by H(t)=50+10sin⁡(πt12)H(t) = 50 + 10\sin\left(\dfrac{\pi t}{12}\right) degrees Fahrenheit, where tt is hours after 6 a.m. Find the average temperature from t=0t = 0 to t=12t = 12. Round to the nearest hundredth.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

Let f(x)=x2−4xf(x) = x^2 - 4x. Which statement is true about ff on [0,3][0, 3]?

Practice 8

Find the average value of f(x)=1xf(x) = \dfrac{1}{x} on [1,e][1, e]. Round to the nearest thousandth.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.