AP Calculus AB and BC

Average Value of a Function: Formula and Examples

The average value of a continuous function f on [a, b] is the integral of f from a to b divided by the interval length b - a. It is the height of the rectangle on [a, b] with the same area as the region under f. Average rate of change is a different quantity: (f(b) - f(a)) / (b - a), the slope of a secant line.

The formula and what it measures

The average value of a continuous function ff on the interval [a,b][a, b] is the definite integral of ff divided by the length of the interval. This is Topic 8.1, Finding the Average Value of a Function on an Interval.

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

Multiply both sides by b−ab - a to see the geometry: favg⋅(b−a)=∫abf(x) dxf_{\text{avg}} \cdot (b - a) = \int_a^b f(x)\,dx. A rectangle with base [a,b][a, b] and height favgf_{\text{avg}} has the same signed area as the region between the graph of ff and the xx-axis. The average value is the constant height that would produce the same integral.

The average value carries the same units as ff. If ff is a temperature in degrees, the average value is in degrees. The integral picks up the units of xx, and dividing by b−ab - a removes them again.

Where the formula comes from

To average a list of nn numbers, add them and divide by nn. A function on an interval has infinitely many values, so start with a sample. Split [a,b][a, b] into nn equal pieces of width Δx=b−an\Delta x = \frac{b - a}{n} and pick one value f(xi)f(x_i) from each piece. Since 1n=Δxb−a\frac{1}{n} = \frac{\Delta x}{b - a}, the sample average 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

The sum on the right is a Riemann sum. As nn grows, it approaches ∫abf(x) dx\int_a^b f(x)\,dx, and the sample average approaches the formula above. The average value is the limit of ordinary averages taken over more and more sample points.

Average value and average rate of change

These two phrases sound alike and use the same interval, so they are easy to swap by accident. They answer different questions and use different operations.

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}
Operationintegrate, then dividesubtract, then divide
Pictureheight of an equal-area rectangleslope of the secant line
Unitsunits of ffunits of ff per unit of xx
Usesevery value of ff on [a,b][a, b]only the two endpoint values

The two ideas connect through the Fundamental Theorem of Calculus. When f′f' is continuous, the average value of f′f' on [a,b][a, b] is 1b−a∫abf′(x) dx=f(b)−f(a)b−a\frac{1}{b - a}\int_a^b f'(x)\,dx = \frac{f(b) - f(a)}{b - a}, which is the average rate of change of ff. In motion terms, the average value of velocity over a time interval equals displacement divided by elapsed time. The average value vs average rate of change page puts the two side by side.

Read the question for the object

Ask which function you are averaging. 'Average velocity' when you are given v(t)v(t) is an average value: integrate vv and divide. 'Average velocity' when you are given position s(t)s(t) is an average rate of change of ss: subtract and divide. Both give the same number for the same motion.

Where the function equals its average

If ff is continuous on [a,b][a, b], then ff takes on its average value at least once in the interval. That is, there is at least one number cc in [a,b][a, b] with

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

This result is the Mean Value Theorem for Integrals. To find such a cc, compute the average value first, set f(c)f(c) equal to it, solve, and keep only solutions that lie in the interval. Continuity matters: a function with a jump can skip over its own average.

Common mistakes

  • Stopping after the integral. The integral is the total; the average value needs the division by b−ab - a.
  • Dividing by bb, or by the number of subintervals, in place of the interval length b−ab - a.
  • Computing f(b)−f(a)b−a\frac{f(b) - f(a)}{b - a} when the question asks for average value. That is average rate of change.
  • Averaging the two endpoint values, f(a)+f(b)2\frac{f(a) + f(b)}{2}. That matches the average value for linear functions and is generally wrong otherwise.
  • Wrong units. The average value of a rate in liters per hour is still in liters per hour.

When ff is given only by a table, estimate the integral with a Riemann or trapezoidal sum first, then divide by b−ab - a. The division step does not change.

Worked examples

Worked example

Average value of a polynomial

Find the average value of f(x)=3x2−2xf(x) = 3x^2 - 2x on [1,4][1, 4].

  1. Identify the interval length: b−a=4−1=3b - a = 4 - 1 = 3.
  2. Integrate: ∫14(3x2−2x) dx=[x3−x2]14=(64−16)−(1−1)=48\int_1^4 (3x^2 - 2x)\,dx = \left[x^3 - x^2\right]_1^4 = (64 - 16) - (1 - 1) = 48.
  3. Divide by the interval length: favg=483=16f_{\text{avg}} = \frac{48}{3} = 16.

favg=16f_{\text{avg}} = 16

Worked example

Average temperature over twelve hours

The temperature in a greenhouse is modeled by T(t)=60+10sin⁡(πt12)T(t) = 60 + 10\sin\left(\frac{\pi t}{12}\right) degrees Fahrenheit, where tt is in hours and 0≤t≤120 \le t \le 12. Find the average temperature over the 1212 hours.

  1. Set up the average value: Tavg=112−0∫012(60+10sin⁡(πt12))dtT_{\text{avg}} = \frac{1}{12 - 0}\int_0^{12} \left(60 + 10\sin\left(\frac{\pi t}{12}\right)\right)dt.
  2. Find an antiderivative. The constant integrates to 60t60t. For the sine term, an antiderivative of sin⁡(πt12)\sin\left(\frac{\pi t}{12}\right) is −12πcos⁡(πt12)-\frac{12}{\pi}\cos\left(\frac{\pi t}{12}\right), so the full antiderivative is 60t−120πcos⁡(πt12)60t - \frac{120}{\pi}\cos\left(\frac{\pi t}{12}\right).
  3. Evaluate from 00 to 1212: at t=12t = 12 the value is 720−120πcos⁡(π)=720+120π720 - \frac{120}{\pi}\cos(\pi) = 720 + \frac{120}{\pi}, and at t=0t = 0 it is 0−120πcos⁡(0)=−120π0 - \frac{120}{\pi}\cos(0) = -\frac{120}{\pi}. The difference is 720+240π720 + \frac{240}{\pi}.
  4. Divide by 1212: Tavg=60+20π≈66.37T_{\text{avg}} = 60 + \frac{20}{\pi} \approx 66.37.

The average temperature is 60+20π≈66.3760 + \frac{20}{\pi} \approx 66.37 degrees Fahrenheit.

Worked example

Average value, average rate of change, and the point c

For f(x)=xf(x) = \sqrt{x} on [0,4][0, 4], find (a) the average value of ff, (b) the average rate of change of ff, and (c) the value of cc in [0,4][0, 4] where f(c)f(c) equals the average value.

  1. Part (a). Integrate: ∫04x dx=[23x3/2]04=23(8)=163\int_0^4 \sqrt{x}\,dx = \left[\frac{2}{3}x^{3/2}\right]_0^4 = \frac{2}{3}(8) = \frac{16}{3}. Divide by the length 44: favg=163⋅14=43f_{\text{avg}} = \frac{16}{3} \cdot \frac{1}{4} = \frac{4}{3}.
  2. Part (b). Use the endpoint values only: f(4)−f(0)4−0=2−04=12\frac{f(4) - f(0)}{4 - 0} = \frac{2 - 0}{4} = \frac{1}{2}.
  3. Compare. The average value 43\frac{4}{3} is a typical height of the graph. The average rate of change 12\frac{1}{2} is the slope of the secant line from (0,0)(0, 0) to (4,2)(4, 2). They are different numbers with different meanings.
  4. Part (c). Set f(c)=43f(c) = \frac{4}{3}: c=43\sqrt{c} = \frac{4}{3}, so c=169c = \frac{16}{9}. Since 169≈1.78\frac{16}{9} \approx 1.78 lies in [0,4][0, 4], it is the required value.

(a) 43\frac{4}{3}, (b) 12\frac{1}{2}, (c) c=169c = \frac{16}{9}

Frequently asked questions

What is the difference between average value and average rate of change?

Average value is 1b−a∫abf(x) dx\frac{1}{b - a}\int_a^b f(x)\,dx, a typical height of ff with the same units as ff. Average rate of change is f(b)−f(a)b−a\frac{f(b) - f(a)}{b - a}, the slope between the endpoints, with units of ff per unit of xx. The first needs an integral and the second needs only two function values.

Is the average value just the average of f(a)f(a) and f(b)f(b)?

Not in general. It always matches for linear functions, and for other functions it matches only by coincidence. The average value depends on every value of ff across the interval. For f(x)=xf(x) = \sqrt{x} on [0,4][0, 4] the endpoint average is 11, while the average value is 43\frac{4}{3}.

Can the average value of a function be negative?

Yes. The integral counts area below the xx-axis as negative, so if the function is below the axis for enough of the interval, the integral and the average value are both negative.