AP Calculus AB · Topic 8.1 · Reading guide, about 5 min

The mean height of a function over an interval

Learn the average value of a function on an interval, how it differs from average rate of change, and how to find it.

In one minute

The average value of a function ff on [a,b][a, b] is the constant height that would give a rectangle with the same area as the region under the curve. Instead of averaging a handful of numbers, you are averaging every value the function takes, which is why an integral shows up.

This topic is short but easy to mix up with the average rate of change from earlier units. They look alike in a formula and mean different things, and exam questions like to test whether you know which one is being asked for.

Key terms

Average value
The number 1b−a∫abf(x) dx\frac{1}{b-a}\int_a^b f(x)\,dx, the mean height of ff over [a,b][a, b].
Average rate of change
The number f(b)−f(a)b−a\frac{f(b)-f(a)}{b-a}, the slope of the secant line through the endpoints.
Definite integral
The net accumulated area ∫abf(x) dx\int_a^b f(x)\,dx between the graph and the x-axis from aa to bb.
Interval length
The width b−ab-a of the interval, which you divide by to turn a total into an average.
Mean Value Theorem for Integrals
If ff is continuous on [a,b][a, b], there is a number cc in [a,b][a, b] with f(c)f(c) equal to the average value.
Equal-area rectangle
A rectangle of width b−ab-a and height equal to the average value; its area matches the integral.
Units of the average
The average value has the same units as the function itself, such as degrees or gallons per minute.
Trapezoidal estimate
A way to approximate the integral from table data, which you then divide by the interval length.

The formula and where it comes from

Suppose you record the temperature at many equally spaced moments and average the readings. The more readings you take, the closer you get to the true mean. In the limit, the sum of readings divided by their count becomes an integral divided by the length of time. That gives the formula favg=1b−a∫abf(x) dxf_{\text{avg}}=\frac{1}{b-a}\int_a^b f(x)\,dx.

Another way to read it: the integral is a total, and dividing a total by the width gives an average height. If ff is a rate, the integral is the net change, so the average value of the rate is net change divided by elapsed time. Average speed over a trip is the same idea, total distance over total time.

The answer always lies between the smallest and largest values of ff on the interval, which gives you a free reasonableness check. If you get an average of 40 for a function that never exceeds 12, an arithmetic slip happened.

Average value versus average rate of change

These two numbers answer different questions. The average value of ff describes how tall the graph is on average. The average rate of change describes how fast ff changes on average, using only the endpoint outputs: f(b)−f(a)b−a\frac{f(b)-f(a)}{b-a}. By the Fundamental Theorem, that equals the average value of the derivative f′f'.

So if a question gives you a function and asks for its average value, integrate that function. If it gives you a function and asks for its average rate of change, subtract endpoint values. If it gives you a rate such as R(t)R(t) and asks for the average of the rate, integrate RR.

Two averages from the same function
QuantityFormulaWhat it measures
Average value of ff1b−a∫abf(x) dx\frac{1}{b-a}\int_a^b f(x)\,dxTypical height of the graph
Average rate of change of fff(b)−f(a)b−a\frac{f(b)-f(a)}{b-a}Typical slope between the endpoints
Average value of f′f'1b−a∫abf′(x) dx\frac{1}{b-a}\int_a^b f'(x)\,dxEquals the average rate of change of f

A fully worked example

Let f(x)=3x2−2xf(x)=3x^2-2x on [1,3][1, 3]. Find the average value, the average rate of change, and the point where ff equals its average value.

Step 1, the integral. An antiderivative is x3−x2x^3-x^2. At x=3x=3 it equals 27−9=1827-9=18. At x=1x=1 it equals 1−1=01-1=0. So ∫13f(x) dx=18\int_1^3 f(x)\,dx=18.

Step 2, the average value. Divide by the width 3−1=23-1=2. The average value is 18/2=918/2=9.

Step 3, the average rate of change. Here f(3)=27−6=21f(3)=27-6=21 and f(1)=3−2=1f(1)=3-2=1, so the rate is (21−1)/2=10(21-1)/2=10. This is not 9, which shows the two averages are different quantities.

Step 4, where ff hits its average. Solve 3c2−2c=93c^2-2c=9, which rearranges to 3c2−2c−9=03c^2-2c-9=0. The quadratic formula gives c=2±4+1086=2±1126c=\frac{2\pm\sqrt{4+108}}{6}=\frac{2\pm\sqrt{112}}{6}. Since 112≈10.583\sqrt{112}\approx 10.583, the roots are about 2.0972.097 and −1.431-1.431. Only 2.0972.097 lies in [1,3][1, 3], so c≈2.097c\approx 2.097. Check: 3(2.097)2−2(2.097)≈13.19−4.19=9.003(2.097)^2-2(2.097)\approx 13.19-4.19=9.00.

The Mean Value Theorem for Integrals applies because ff is a polynomial and so continuous on [1,3][1, 3].

Tables and context

When a function is given as a table, estimate the integral first and then divide. Say a temperature in degrees is recorded at hours 0, 2, 4 and 6 as 10, 14, 16 and 12. With the trapezoidal rule and width 2, the pieces are 22(10+14)=24\frac{2}{2}(10+14)=24, 22(14+16)=30\frac{2}{2}(14+16)=30 and 22(16+12)=28\frac{2}{2}(16+12)=28. The sum is 82, and dividing by the length 6 gives about 13.67 degrees as the estimated average temperature.

Always attach units. An average of a rate in gallons per minute is in gallons per minute. Write a sentence such as "the average temperature over the first 6 hours is about 13.67 degrees". When the integrand has no elementary antiderivative, a graphing calculator can evaluate the definite integral numerically before you divide by b−ab-a.

How it connects

  • Back to 6.7: the integral in the formula is evaluated with an antiderivative, so this topic is a direct use of that skill.
  • Back to 5.1: the Mean Value Theorem for derivatives gives a point where the slope equals the average rate of change; the integral version gives a point where the height equals the average value.
  • Forward to 8.2: average velocity is displacement divided by time, a special case of the same pattern.

Common mistakes

  • **Forgetting the factor 1b−a\frac{1}{b-a}.** The integral alone is a total, not an average. Divide by the width of the interval.
  • Mixing up the two averages. Subtracting f(b)−f(a)f(b)-f(a) gives the average rate of change, not the average value. Check whether the question wants the height or the slope.
  • Dividing by the wrong number. Use b−ab-a, not the number of table entries and not bb alone.
  • Leaving out units or interpretation. A justification-style answer needs the number, the units, and the interval stated in words.

How it shows up on the exam

  • A function given by a formula, where you set up and evaluate the average value, often with a calculator when the integrand is not elementary.
  • A table or graph of a rate over time, where you estimate the integral with a rectangle or trapezoid sum and divide by the elapsed time.
  • A short explanation that interprets 1b−a∫abR(t) dt\frac{1}{b-a}\int_a^b R(t)\,dt in words, with units, or a question asking where a function equals its average value.

Check yourself

  1. Why must the average value of a continuous function lie between its minimum and maximum on the interval?
  2. In your own words, how do the average value of f and the average rate of change of f differ in what they measure?
  3. If a rate function is measured in liters per hour, what are the units of its average value over a day?
  4. What hypothesis must hold for the Mean Value Theorem for Integrals to apply?

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.