Educerie

Educerie · AP · Calculus AB and BC

AP Calculus AB and BC 8.1

Finding the Average Value of a Function on an Interval

How do we use definite integrals to measure a quantity that builds up over an interval: an average, a distance, an area, a volume, a length?

What you will learn

  • Understand that the average value of f on [a, b] is the integral of f divided by b - a
  • Know that the average value is the height of the rectangle with the same area as the region under the graph
  • Understand how an average value differs from an average rate of change
  • Know how to estimate an average value from a table

You must be able to

  1. Calculate the average value of a function by hand, including by substitution
  2. Calculate an average value with a calculator, showing the setup and units
  3. Estimate an average value from a table with trapezoids
  4. Distinguish average value from average rate of change
  5. Interpret an average value in a sentence with its unit
  6. Find where a function equals its average value

In the exam. Section I multiple choice: an average value from a formula (no calculator) or with a calculator, sometimes from a table or a graph. Section II free response: a model such as a rate of flow or a temperature, where you write the average value with its setup and units, or compare it with an average rate of change. This topic is the first in the unit and uses nothing beyond Unit 6.

1The formula

Average value of a continuous function ff on [a,b][a, b] = the integral of ff from aa to bb, divided by b−ab - a.

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

  • The integral ∫abf(x) dx\int_a^b f(x)\,dx is the accumulated total.
  • The length b−ab - a is how long the interval is.
  • The result has the same units as ff. If ff is in liters per minute, the average is in liters per minute.

The function must be continuous on [a,b][a, b], as the CED states, so that the integral exists.

Why this formula works. Start with the ordinary average of nn values of ff taken at evenly spaced points x1,…,xnx_1, \dots, x_n in [a,b][a, b].

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

  • The spacing between the points is Δx=b−an\Delta x = \frac{b - a}{n}, so 1n=Δxb−a\frac{1}{n} = \frac{\Delta x}{b - a}.
  • Put that in: the average is 1b−a[f(x1)Δx+f(x2)Δx+⋯+f(xn)Δx]\frac{1}{b - a}\bigl[f(x_1)\Delta x + f(x_2)\Delta x + \cdots + f(x_n)\Delta x\bigr].
  • The bracket is a Riemann sum. As nn grows, it becomes ∫abf(x) dx\int_a^b f(x)\,dx.

So the formula is the ordinary average, with more and more values.

2The picture: a rectangle of the same area

Rearrange the formula and it says

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

The left side is the area of a rectangle. Its width is b−ab - a and its height is the average value. The right side is the area under the graph.

So the average value is the height of the rectangle that has the same area as the region under the curve. Figure 1 shows this for f(x)=x2f(x) = x^2 on [0,3][0, 3].

Graph of y = x squared from 0 to 3. The area under the curve equals the area of a rectangle of the same width and height 3, which is the average value of the function on the interval 1 2 3 3 9 0 y x average value 3 f(x) = x2
Figure 1 · The area under y = x squared from 0 to 3 equals the area of the rectangle of height 3, so the average value is 3

Read Figure 1.

  • The part of the curve below the dashed line is a shortfall. The part above it is a surplus.
  • The surplus above the dashed line exactly fills the shortfall below it.
  • That is why the average sits between the smallest and the largest value of ff.

3Worked example: a polynomial

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

  1. The integral: ∫03x2 dx=[x33]03=9\displaystyle\int_0^3 x^2\,dx = \left[\frac{x^3}{3}\right]_0^3 = 9.
  2. The length: 3−0=33 - 0 = 3.
  3. The average: 13⋅9=3\dfrac{1}{3}\cdot 9 = 3.

Check with Figure 1. The values of ff run from 0 to 9, so an average of 3 is believable.

4Worked example: trig, and where the average is zero

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

1π−0∫0πsin⁡x dx=1π[−cos⁡x]0π=1π(1+1)=2π. \frac{1}{\pi - 0}\int_0^{\pi} \sin x\,dx = \frac{1}{\pi}\bigl[-\cos x\bigr]_0^{\pi} = \frac{1}{\pi}(1 + 1) = \frac{2}{\pi}.

Now take the whole period [0,2π][0, 2\pi]. The integral is 0, because the area above the axis cancels the area below. The average value is 0.

An average value can be zero or negative. It is a signed quantity, just like the integral.

5Worked example: substitution first

Find the average value of f(x)=xex2f(x) = x e^{x^2} on [0,1][0, 1].

Let u=x2u = x^2, so du=2x dxdu = 2x\,dx. The limits become u=0u = 0 and u=1u = 1.

∫01xex2 dx=12∫01eu du=12(e−1). \int_0^1 x e^{x^2}\,dx = \frac{1}{2}\int_0^1 e^u\,du = \frac{1}{2}(e - 1).

The length of the interval is 1, so the average value is e−12\dfrac{e - 1}{2}.

Do the integral with the new limits, and divide once at the end.

6With a calculator

When the integral has no simple antiderivative, or the question allows a calculator, enter the definite integral. You must still write the setup.

Example (invented): the temperature in a greenhouse is T(t)=18+6sin⁡ ⁣(πt12)T(t) = 18 + 6\sin\!\left(\frac{\pi t}{12}\right) degrees Celsius, where tt is hours after 06:00. Find the average temperature for 0≤t≤120 \le t \le 12.

112−0∫012(18+6sin⁡πt12)dt≈21.820 degrees Celsius. \frac{1}{12 - 0}\int_0^{12}\left(18 + 6\sin\frac{\pi t}{12}\right)dt \approx 21.820 \text{ degrees Celsius.}

  • Write the integral and the 112\frac{1}{12}, not only the answer.
  • Give three decimal places.
  • Give the unit.

7From a table

A table gives values of ff at some inputs, so you cannot integrate. You estimate the integral with a sum, then divide by the length of the interval.

Example (invented): a cyclist's speed v(t)v(t), in meters per second, is recorded.

tt (seconds)0259
v(t)v(t)3586

The intervals have different widths, so use a trapezoid for each.

  • From 0 to 2: 12(3+5)(2)=8\tfrac{1}{2}(3 + 5)(2) = 8.
  • From 2 to 5: 12(5+8)(3)=19.5\tfrac{1}{2}(5 + 8)(3) = 19.5.
  • From 5 to 9: 12(8+6)(4)=28\tfrac{1}{2}(8 + 6)(4) = 28.

The integral is about 55.555.5 meters. The average speed is about 55.59≈6.17\dfrac{55.5}{9} \approx 6.17 meters per second.

Do not average the four values in the table. The values are not evenly spread in time, so that gives 3+5+8+64=5.5\frac{3+5+8+6}{4} = 5.5, which is wrong.

8Average value or average rate of change?

These two are easy to mix up.

  • Average value of ff uses ff inside the integral: 1b−a∫abf(x) dx\dfrac{1}{b-a}\displaystyle\int_a^b f(x)\,dx.
  • Average rate of change of ff uses the endpoints: f(b)−f(a)b−a\dfrac{f(b) - f(a)}{b - a}.

The Fundamental Theorem links them. The average rate of change of ff is the average value of the derivative f′f':

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}.

Example: f(x)=x3f(x) = x^3 on [0,2][0, 2].

  • Average value of ff: 12∫02x3 dx=12⋅4=2\frac{1}{2}\int_0^2 x^3\,dx = \frac{1}{2}\cdot 4 = 2.
  • Average rate of change of ff: 8−02=4\frac{8 - 0}{2} = 4.
  • Average value of f′(x)=3x2f'(x) = 3x^2: 12∫023x2 dx=12⋅8=4\frac{1}{2}\int_0^2 3x^2\,dx = \frac{1}{2}\cdot 8 = 4. It matches the average rate of change.

The slip the exam keeps catching is putting f′f' in the integral when the question asks for the average value of ff.

9Beyond the exam: where does ff equal its average?

This section goes beyond the CED. The CED does not name the theorem below, and the exam does not test it.

A continuous function takes its average value somewhere on the interval. This is the Mean Value Theorem for Integrals. A question can still ask you to find an xx-value where ff equals a given number. That is only an equation to solve.

To find it, set f(c)f(c) equal to the average and solve.

Example: f(x)=x2f(x) = x^2 on [0,3][0, 3] has average value 3. Solve c2=3c^2 = 3. Only c=3c = \sqrt{3} lies in [0,3][0, 3]. Figure 1 shows it: the curve crosses the dashed line at about x=1.73x = 1.73.

10Saying what it means

Answer in a sentence with the quantity, the interval and the unit.

Example (invented): water flows into a tank at R(t)R(t) liters per minute. If the average value of RR on [0,6][0, 6] is 5, say: "The average rate of flow from t=0t = 0 to t=6t = 6 minutes is 5 liters per minute."

You can go one step further. The total that flowed in is 5×6=305 \times 6 = 30 liters. That is the integral, so average value times length gives the total.

Practice questions

30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.