Skip to content
Family Table Math
Auto

Average Value of a Function

You know how to average a list of numbers: add them up and divide by how many there are. But what is the average temperature over a whole day, when the temperature changes every instant? A definite integral does the “adding up” for infinitely many values, and dividing by the length of the interval finishes the job. That’s the average value of a function.

The average value of a continuous function 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

Compare it with averaging a list: the integral plays the role of the sum, and the length b−ab - a plays the role of “how many.”

The picture: a rectangle with the same area

Section titled “The picture: a rectangle with the same area”

Multiply both sides by b−ab - a:

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

So favgf_{\text{avg}} is the height of the rectangle on [a,b][a, b] that has exactly the same (signed) area as the region under the curve. The parts of the curve above the rectangle “fill in” the parts below it.

The area under y = x squared from 0 to 3 equals the area of a rectangle of height 3 on the same base. The curve meets height 3 at x = root 3. c = √3 y = x² average = 3 x y 1 2 3 4 5 3 6 9
For y=x2y = x^2 on [0,3][0, 3], the area is 99, so the average value is 93=3\dfrac{9}{3} = 3. The curve reaches that height at x=3x = \sqrt{3}.

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

f(c)=favgf(c) = f_{\text{avg}}

This is sometimes called the Mean Value Theorem for integrals. It makes sense from the picture: a continuous curve can’t stay entirely above or entirely below the rectangle, so it has to cross the line y=favgy = f_{\text{avg}} somewhere. To find cc, set f(c)f(c) equal to the average and solve.

The average value has the same units as ff, not the units of the integral. If T(t)T(t) is a temperature in °C and tt is in hours, then ∫T dt\int T\, dt is in °C·hours, and dividing by the hours leaves °C.

These sound alike but answer different questions:

FormulaMeaning
Average value of ff1b−a∫abf(x) dx\dfrac{1}{b - a}\displaystyle\int_a^b f(x)\, dxthe typical height of ff
Average rate of change of fff(b)−f(a)b−a\dfrac{f(b) - f(a)}{b - a}the slope of the secant line

They connect nicely: the average value of f′f' on [a,b][a, b] is 1b−a∫abf′(x) dx=f(b)−f(a)b−a\dfrac{1}{b - a}\displaystyle\int_a^b f'(x)\, dx = \dfrac{f(b) - f(a)}{b - a}, the average rate of change of ff.

On the AP exam, average value shows up in both calculator and no-calculator questions. When a calculator is allowed, write the setup (the integral with its 1b−a\frac{1}{b - a}) before giving the number; graders award a point for the setup.

Find the average value of f(x)=x2f(x) = x^2 on [0,3][0, 3], and find every cc in the interval where f(c)f(c) equals that average.

Solution.

favg=13−0∫03x2 dx=13[x33]03=13(9)=3f_{\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 is in [0,3][0, 3].

Find the average value of f(x)=sin⁡xf(x) = \sin x on [0,π][0, \pi]. (Radians, as always in calculus.)

Solution.

favg=1π−0∫0πsin⁡x dx=1π[−cos⁡x]0π=1π(1−(−1))=2πf_{\text{avg}} = \frac{1}{\pi - 0} \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}

That’s about 0.6370.637, a little above 12\tfrac{1}{2}. Sensible: the arch is wide near its top, so it spends more of the interval high than low.

On a spring day, the temperature tt hours after 6 a.m. is modelled by T(t)=15+6sin⁡ ⁣(πt12)T(t) = 15 + 6\sin\!\left(\dfrac{\pi t}{12}\right) degrees Celsius. Find the average temperature from 6 a.m. to 6 p.m.

Solution. The interval is 0≤t≤120 \le t \le 12.

Tavg=112∫012(15+6sin⁡πt12)dt=112[15t−72πcos⁡πt12]012=112[(180+72π)−(0−72π)]=112(180+144π)=15+12π\begin{aligned} T_{\text{avg}} &= \frac{1}{12} \int_0^{12} \left( 15 + 6\sin\frac{\pi t}{12} \right) dt \\ &= \frac{1}{12} \left[ 15t - \frac{72}{\pi} \cos\frac{\pi t}{12} \right]_0^{12} \\ &= \frac{1}{12} \left[ \left( 180 + \frac{72}{\pi} \right) - \left( 0 - \frac{72}{\pi} \right) \right] \\ &= \frac{1}{12} \left( 180 + \frac{144}{\pi} \right) = 15 + \frac{12}{\pi} \end{aligned}

The average temperature is 15+12π≈18.82015 + \dfrac{12}{\pi} \approx 18.820 °C. (The units are °C, the same as TT.)

Check: the antiderivative of sin⁡πt12\sin\dfrac{\pi t}{12} is −12πcos⁡πt12-\dfrac{12}{\pi}\cos\dfrac{\pi t}{12}, and 6⋅12π=72π6 \cdot \dfrac{12}{\pi} = \dfrac{72}{\pi}.

The average value of f(x)=6x2f(x) = 6x^2 on [0,k][0, k] is 88. Find k>0k \gt 0.

Solution.

1k∫0k6x2 dx=1k[2x3]0k=2k3k=2k2\frac{1}{k} \int_0^k 6x^2\, dx = \frac{1}{k} \Big[ 2x^3 \Big]_0^k = \frac{2k^3}{k} = 2k^2

Set 2k2=82k^2 = 8, so k2=4k^2 = 4 and k=2k = 2 (since k>0k \gt 0).

Forgetting to divide by b − a. The integral alone is the area (or total), not the average. In Example 1, ∫03x2 dx=9\int_0^3 x^2\, dx = 9, but the average value is 33.

Dividing by the wrong length. It’s b−ab - a, the length of the interval, not bb. On [2,6][2, 6] you divide by 44, not 66.

Mixing up average value and average rate of change. “Average value of ff” uses an integral of ff. “Average rate of change of ff” uses f(b)−f(a)b−a\dfrac{f(b) - f(a)}{b - a}. Read the question carefully.

Giving the wrong units. The average value has the units of ff. The average of a velocity in m/s is in m/s, not metres.

Averaging just the endpoints. f(a)+f(b)2\dfrac{f(a) + f(b)}{2} is the average of two numbers, not the average value of the function. For x2x^2 on [0,3][0, 3] it gives 4.54.5, not 33.

Keeping a c outside the interval. When you solve f(c)=favgf(c) = f_{\text{avg}}, throw away solutions outside [a,b][a, b].

1. (Warm-up) Find the average value of f(x)=4xf(x) = 4x on [0,5][0, 5].

Solution15∫054x dx=15[2x2]05=15(50)=10\frac{1}{5} \int_0^5 4x\, dx = \frac{1}{5} \Big[ 2x^2 \Big]_0^5 = \frac{1}{5}(50) = 10

Check: ff is linear, so its average is the average of its endpoint values, 0+202=10\dfrac{0 + 20}{2} = 10. (This shortcut works only for linear functions.)

2. (Warm-up) You are told that ∫15g(x) dx=12\displaystyle\int_1^5 g(x)\, dx = 12. What is the average value of gg on [1,5][1, 5]?

Solutiongavg=15−1(12)=3g_{\text{avg}} = \frac{1}{5 - 1}(12) = 3

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

Solution12∫02x3 dx=12[x44]02=12(4)=2\frac{1}{2} \int_0^2 x^3\, dx = \frac{1}{2} \left[ \frac{x^4}{4} \right]_0^2 = \frac{1}{2}(4) = 2

4. (Core) Find the average value of f(x)=1xf(x) = \dfrac{1}{x} on [1,e][1, e]. Give the exact value and a decimal to 3 places.

Solution1e−1∫1e1x dx=1e−1[ln⁡x]1e=1e−1(1−0)=1e−1≈0.582\frac{1}{e - 1} \int_1^e \frac{1}{x}\, dx = \frac{1}{e - 1} \Big[ \ln x \Big]_1^e = \frac{1}{e - 1}(1 - 0) = \frac{1}{e - 1} \approx 0.582

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

Solution∫0ln⁡3e2x dx=[e2x2]0ln⁡3=e2ln⁡3−12=9−12=4\int_0^{\ln 3} e^{2x}\, dx = \left[ \frac{e^{2x}}{2} \right]_0^{\ln 3} = \frac{e^{2\ln 3} - 1}{2} = \frac{9 - 1}{2} = 4

(Remember e2ln⁡3=(eln⁡3)2=9e^{2\ln 3} = \left(e^{\ln 3}\right)^2 = 9.) So

favg=4ln⁡3≈3.641f_{\text{avg}} = \frac{4}{\ln 3} \approx 3.641

6. (Core) Find the average value of f(x)=sec⁡2xf(x) = \sec^2 x on [0,π4]\left[0, \dfrac{\pi}{4}\right] (radians).

Solution1π/4∫0π/4sec⁡2x dx=4π[tan⁡x]0π/4=4π(1−0)=4π≈1.273\frac{1}{\pi/4} \int_0^{\pi/4} \sec^2 x\, dx = \frac{4}{\pi} \Big[ \tan x \Big]_0^{\pi/4} = \frac{4}{\pi}(1 - 0) = \frac{4}{\pi} \approx 1.273

7. (Core) A cyclist’s velocity is v(t)=t2+2v(t) = t^2 + 2 metres per second for 0≤t≤40 \le t \le 4 seconds. Find her average velocity over these 44 seconds, with units.

Solutionvavg=14∫04(t2+2) dt=14[t33+2t]04=14(643+8)=14⋅883=223v_{\text{avg}} = \frac{1}{4} \int_0^4 (t^2 + 2)\, dt = \frac{1}{4} \left[ \frac{t^3}{3} + 2t \right]_0^4 = \frac{1}{4} \left( \frac{64}{3} + 8 \right) = \frac{1}{4} \cdot \frac{88}{3} = \frac{22}{3}

The average velocity is 223≈7.333\dfrac{22}{3} \approx 7.333 m/s.

8. (Challenge) Let f(x)=x2−4x+5f(x) = x^2 - 4x + 5. Find the average value of ff on [0,3][0, 3], then find every cc in [0,3][0, 3] where f(c)f(c) equals that average.

Solution∫03(x2−4x+5) dx=[x33−2x2+5x]03=9−18+15=6\int_0^3 (x^2 - 4x + 5)\, dx = \left[ \frac{x^3}{3} - 2x^2 + 5x \right]_0^3 = 9 - 18 + 15 = 6

So favg=63=2f_{\text{avg}} = \dfrac{6}{3} = 2.

Solve c2−4c+5=2c^2 - 4c + 5 = 2: c2−4c+3=0c^2 - 4c + 3 = 0, so (c−1)(c−3)=0(c - 1)(c - 3) = 0 and c=1c = 1 or c=3c = 3. Both are in [0,3][0, 3], so both count.

9. (Challenge) The average value of a continuous function ff on [0,6][0, 6] is 55, and its average value on [0,2][0, 2] is 88. Find the average value of ff on [2,6][2, 6].

Solution

Turn each average back into an integral by multiplying by the length:

∫06f(x) dx=6(5)=30,∫02f(x) dx=2(8)=16\int_0^6 f(x)\, dx = 6(5) = 30, \qquad \int_0^2 f(x)\, dx = 2(8) = 16

So ∫26f(x) dx=30−16=14\displaystyle\int_2^6 f(x)\, dx = 30 - 16 = 14, and the average on [2,6][2, 6] is 146−2=3.5\dfrac{14}{6 - 2} = 3.5.

Notice you can’t just “subtract the averages”: the intervals have different lengths.

Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site. H1. (Foundations) If ∫28f(x) dx=21\int_2^8 f(x)\,dx=21, find the average value of ff. Explain why you divide by 6 rather than 8.

H2. (Foundations) Find the average value of f(x)=3x−2f(x)=3x-2 for 1≤x≤51\le x\le5, using an integral and then an endpoint check.

H3. (Core) Find the average value of f(x)=x2+1f(x)=x^2+1 for −2≤x≤2-2\le x\le2 and every input in that interval where it is attained.

H4. (Core) Find the average value of exe^x for 0≤x≤ln⁡40\le x\le\ln4. Show why averaging only the endpoint heights gives a different answer.

H5. (Core) Find the average value of cos⁡x\cos x for −π/3≤x≤π/3-\pi/3\le x\le\pi/3. All trigonometric inputs in this homework are in radians.

H6. (Core) A room’s temperature is modelled by T(t)=18+4sin⁡(πt/8)T(t)=18+4\sin(\pi t/8) °C for 0≤t≤80\le t\le8 hours. Find its average temperature exactly. Explain the units of the integral and the average.

H7. (Challenge) The averages of a continuous function on 1≤x≤91\le x\le9 and 1≤x≤41\le x\le4 are 6 and 10, respectively. Find its average on 4≤x≤94\le x\le9. Explain why simply subtracting 10 from 6 fails.

H8. (Challenge) Find every b>1b\gt1 such that the average value of 3x23x^2 on 1≤x≤b1\le x\le b is 13. Check your answer and reject any inadmissible algebraic roots.

H9. (Challenge) For f(x)=x3−3xf(x)=x^3-3x on −2≤x≤2-2\le x\le2, find its average value, average rate of change, and every input where it reaches its average value. Explain why the first two quantities differ.

H10. (Challenge) For v(t)=2t−4v(t)=2t-4 m/s on 0≤t≤50\le t\le5 seconds, find the average velocity and average speed. Find every time when each equals the corresponding instantaneous velocity or speed. Explain how direction changes affect the two averages.