Kim’s Math NotesCourse index

Finding the Average Value of a Function on an Interval

How does the average value of a function differ from its average rate of change?

Find the average value of a function on an interval as a steady height, find where the function reaches it, and keep it apart from the average rate of change.

A height, not a slope

Common mistake Average temperature over 0≤t≤6: T(6)−T(0)6=0.

Correction Average temperature: 16∫06T(t)dt=56 degrees. The 0 is the average rate of change.

Not the average of the two ends

Common mistake Average value of 3x2−2x on [1,3]: 1+212=11.

Correction 12∫13(3x2−2x)dx=12(18)=9.

One steady height

Here's the speed curve. The distance is the area under it, from zero to six. That's t cubed over three, from zero to six: six cubed over three, seventy-two feet. Now the cruise-control car: one steady speed s for all six seconds. On the graph, that's a flat line, a rectangle, s by six.

Same distance, same area: seventy-two. So s is twelve feet per second. So halfway, eighteen? No. The car spends more of those six seconds going slow than going fast. So the steady speed is the area divided by the width: one over six minus zero, times the integral from zero to six of v.

Seventy-two over six. Twelve.

Watch this part of the concept lesson

Read the rest of this scene

Now trade the car's numbers for letters. Zero becomes a, six becomes b, and v becomes any continuous function f. The same steps: one over b minus a, the width, times the integral from a to b of f. That steady height has a name: the average value of f on that interval. And notice the units.

Speed in, average speed out: twelve feet per second, the same units as v.

Where f hits its average

Here's a fair question: did the speedometer ever read exactly twelve? To answer it for any f, take an antiderivative, capital F, so F prime is f. For the car, F is its position. Then the integral from a to b of f is F of b minus F of a. So the average value is F of b minus F of a, over b minus a.

That's the slope of a secant line of F.

Watch this part of the concept lesson

Read the rest of this scene

Now the Mean Value Theorem, from Unit 5. F is differentiable, because F prime is f. So it's continuous too. Picture it with the car. F is the position, t cubed over three, and the yellow secant has slope seventy-two over six: twelve. So the theorem gives a tangent with that same slope, at least once, at some c between a and b.

And F prime of c is f of c. So f of c is that same slope. Back to the speed graph. The same twelve is a slope on the position graph and a height on the speed graph. So here's the theorem.

If f is continuous on the closed interval from a to b, then there's at least one c between a and b where f of c equals one over b minus a, times the integral from a to b of f. This is the Mean Value Theorem for Integrals: the same theorem from Unit 5, used on F. For the car, f of c is c squared, and it has to be twelve.

c is between zero and six, so it's positive. So c is two root three, root twelve, less than root thirty-six, which is six. Yes, it hits twelve between zero and six.

Average value vs. average rate of change

Same car. The average value of v is the yellow height, twelve. On the position graph, that was the secant slope of F: seventy-two minus zero, over six minus zero. The average rate of change of v is something else. It uses v itself, just its two ends: zero and thirty-six. Thirty-six minus zero, over six minus zero.

That's six, the slope of the pink line.

Watch this part of the concept lesson

Read the rest of this scene

That's six feet per second, per second, on average: how fast the speed itself grew over the six seconds. So both averages are slopes, but of different functions. The average value of f is a slope of F, the antiderivative. That's the twelve. The average rate of change of f is a slope of f itself. That's the six: the pink line, not the yellow height.

One more check. Speed and flow rate are already rates. Their average speed or average flow rate is still an average value: the integral, divided by the time. Take a slope only when the question asks for a rate of change.

Example 1: average temperature

Example one. The temperature, in degrees Fahrenheit, t hours after nine a.m., is T of t equals fifty, plus six t, minus t squared, for t from zero to six. Part a: find the average temperature over that interval. Part b: find the average rate of change of T over that interval. Part c: find every time t when T of t equals the average temperature. Here's T on a graph.

The plan. Part a asks for an average temperature.

Watch this part of the concept lesson

Read the rest of this scene

That's a height, so it's the integral over six. Part b asks for a rate of change. That's a slope, so just the two ends. Part a. Put the one sixth in front first: one sixth, times the integral from zero to six of T of t, d t. That's one sixth of fifty t, plus three t squared, minus t cubed over three, from zero to six.

Plug in six; the zero end just gives zero. Three hundred, plus one hundred eight, minus seventy-two, all over six. Three thirty-six over six: fifty-six degrees. That's the yellow height: the average temperature. Part b uses only the two ends: the pink line.

T of six minus T of zero, over six minus zero. Fifty minus fifty, over six: zero. Zero degrees per hour: the pink line is flat. It started and ended at fifty, so on average it didn't change. And the average of the two ends, fifty, is not the average temperature either.

The warm afternoon pulls it up to fifty-six. Part c asks where the curve meets that yellow height. Pause the video, and try it before I do. Part c: when does T hit its average? The plan: set T of t equal to fifty-six, and solve for t.

Fifty plus six t minus t squared equals fifty-six. Move everything to one side: t squared minus six t plus six equals zero. It doesn't factor nicely, so use the quadratic formula. Under the root: six squared minus four times six, thirty-six minus twenty-four. That's twelve, so t equals six, plus or minus root twelve, over two.

Root twelve is two root three, so t is three plus or minus root three. Two yellow dots on the curve. So t equals three plus or minus root three. Are both inside zero to six? Root three is less than three, so yes, both.

More of these are in your workbook. Get the height first, then find where the function hits it. Try them before you look at the solutions.

Two traps in part (a)

Before the next example, look at part a of example one again. It has two traps. This is where people lose points. Trap one, a wrong line: the integral from zero to six of T equals three thirty-six over six, equals fifty-six. It looks fine at a glance.

But the integral is three thirty-six, not three thirty-six over six.

Watch this part of the concept lesson

Read the rest of this scene

That first equals sign is false. Trap two, also wrong: the average temperature equals T of six minus T of zero, over six. That's the slope of T itself, its average rate of change. It's not T's average height. The fix is one true line: one sixth, times the integral from zero to six of T of t, d t, equals fifty-six.

An average value is a height, so it needs the integral. This happened on a real AP exam. On a twenty twenty-three free-response question, the average-value part was worth two points, and an answer that linked its steps with a false equals sign earned only one. Several lines are fine too, as long as every equals sign is true. The cleanest habit: write one over b minus a in front of the integral, right from the start.

Example 2: average value from a graph

Example two. The graph of f is line segments on zero to six, through the four points listed. What is the average value of f on zero to six? Here's the graph of f. The plan: find the signed area, piece by piece, then divide by the width, six. Area below the axis counts as negative.

Above the axis first.

Watch this part of the concept lesson

Read the rest of this scene

From zero to two, a triangle: one half, times two, times four. Four. Now below the axis. From two to four, a triangle under it: negative one half, times two, times two. Negative two. One more below. From four to six, a rectangle, two by two. Negative four. Now divide by the width, in one true line.

One sixth of the integral is one sixth times the whole sum: four, minus two, minus four. Negative one third. So the answer is B: negative one third. That's the yellow line at negative one third. An average height can sit below the axis too.

And the traps. Choice A, negative two, is the area: the division by six got skipped. Choice D, five thirds, counts the area below the axis as positive. The graph problems in your workbook go the same way: signed area, then divide by the width. A table works the same: estimate the integral with a Riemann or trapezoidal sum, like in 6.2, then divide by the width.

Worked examples

Example 1

The temperature, in °F, t hours after 9 a.m. is T(t)=50+6t−t2 for 0≤t≤6.
(a) Find the average temperature over 0≤t≤6.
(b) Find the average rate of change of T over 0≤t≤6.
(c) Find all t with T(t) equal to the average temperature.
Hint

The average temperature is a height: the integral over the width. The average rate of change is a slope.

Answer and solution
  1. 56 degrees Fahrenheit
  2. 0 degrees Fahrenheit per hour
  3. t=3−3 and t=3+3
  1. 16∫06(50+6t−t2)dt=16[50t+3t2−t33]06=3366=56
  2. T(6)−T(0)6−0=50−506=0
  3. 50+6t−t2=56⇒t2−6t+6=0⇒t=3±3
  4. (a) 56 degrees Fahrenheit, a height. (b) 0 degrees per hour, a slope. (c) Both roots are in [0, 6].

Example 2

The graph of f on [0,6] is made of segments: (0,4)→(2,0)→(4,−2)→(6,−2).
What is the average value of f on [0,6]?
xy123456-2-11234
Graph
  1. −2
  2. −13
  3. 13
  4. 53
Hint

Signed areas: above the axis counts plus, below counts minus. Then divide by the width 6.

Answer and solution

Answer B. −13

  1. ∫06f(x)dx=4−2−4=−2
  2. 16−0∫06f(x)dx=−26=−13
  3. Answer B. (D) 5/3 adds the areas below the axis as positive.

Workbook

Problem 1

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

Integral over the width. Not the average of f(1) and f(3).

Answer and solution

Answer 9

  1. 13−1∫13(3x2−2x)dx=12[x3−x2]13=12(18−0)=9
  2. The average of the two ends, (1 + 21)/2 = 11, is not the average value.

Common mistake Averaging the two ends: (f(1) + f(3))/2 = 11.

Watch the worked solution to Problem 1

Problem 2

What is the average value of g(x)=cosx on [0,π2]?
  1. 0
  2. 2π
  3. 1
  4. π2
Hint

The width is π2: divide the integral by it.

Answer and solution

Answer B. 2π

  1. 1π/2∫0π/2cosxdx=2π[sinx]0π/2=2π
  2. Answer B. (C) 1 is the integral before dividing by the width.

Common mistake Stopping at the integral, 1, without dividing by the width.

Watch the worked solution to Problem 2

Problem 3

The graph of f on [0,4] is the upper half of the circle with center (2,0) and radius 2. Find the average value of f on [0,4].
Hint

The integral is the area of a half circle of radius 2.

Answer and solution

Answer π2

  1. ∫04f(x)dx=12π⋅22=2π
  2. 14−0∫04f(x)dx=2π4=π2

Common mistake Using the full circle, 4 pi, or forgetting to divide by the width 4.

Watch the worked solution to Problem 3

Problem 4

Let f(x)=x2+1. Find the value of c in [0,3] such that f(c) equals the average value of f on [0,3].
Hint

Average value first. Then solve f(c)= that height, and keep the c in [0,3].

Answer and solution

Answer c=3

  1. 13∫03(x2+1)dx=13(9+3)=4
  2. c2+1=4⇒c=±3
  3. Only c = sqrt(3) is in [0, 3].

Common mistake Keeping c = -sqrt(3), which is outside [0, 3].

Watch the worked solution to Problem 4

Problem 5

f is continuous on [1,5] and ∫15f(x)dx=12.
  1. Find the average value of f on [1,5].
  2. Find the average value of 2f(x)+1 on [1,5].
  3. Must there be a value c in [1,5] such that f(c)=3? Explain.
Hint

In (b), the +1 is integrated over the width 4 too.

Answer and solution
  1. 3
  2. 7
  3. yes: f is continuous on [1,5], so it reaches its average value 3 at least once
  1. 15−1∫15f(x)dx=124=3
  2. 14∫15(2f(x)+1)dx=2⋅12+44=7
  3. (c) Yes. f is continuous on [1, 5], so f(c) equals its average value 3 for at least one c.

Common mistake In (b), adding 1 to the integral instead of integrating 1 over the width: (24 + 1)/4.

Watch the worked solution to Problem 5

Problem 6

The average value of f(x)=x3 on [0,b] is 16. Find b>0.
Hint

Write the average value with b in it: the width is b.

Answer and solution

Answer b=4

  1. 1b∫0bx3dx=1b⋅b44=b34
  2. b34=16⇒b3=64⇒b=4

Common mistake Forgetting to divide by the width b: b^4/4 = 16.

Watch the worked solution to Problem 6

Problem 7

The temperature T(t), in degrees Fahrenheit, is recorded at the times t, in hours after noon, given in the table.
t (hours)0236
T(t) (^∘F)48566054
  1. Use a trapezoidal sum with the three subintervals to estimate the average value of T over 0≤t≤6. Include units.
  2. Find the average rate of change of T over the same interval. Include units.
Hint

The subintervals have widths 2, 1, and 3. An average value divides an integral by the width; an average rate of change uses only the two ends.

Answer and solution
  1. 55.5 degrees Fahrenheit
  2. 1 degree Fahrenheit per hour
  1. ∫06T(t)dt≈2⋅48+562+1⋅56+602+3⋅60+542=104+58+171=333
  2. 16∫06T(t)dt≈3336=55.5
  3. T(6)−T(0)6−0=54−486=1
  4. (a) About 55.5 degrees Fahrenheit, a height. (b) 1 degree Fahrenheit per hour, a slope.

Common mistake Using equal widths for the trapezoids, or answering (a) with the slope (54 - 48)/6.

Watch the worked solution to Problem 7