The Mean Value Theorem

The Mean Value Theorem is one of the most important theorems in calculus. We look at some of its implications at the end of this section. First, let’s start with a special case of the Mean Value Theorem, called Rolle’s theorem.

Rolle’s Theorem

Informally, Rolle’s theorem states that if the outputs of a differentiable function f

are equal at the endpoints of an interval, then there must be an interior point c

where f(c)=0.

[link] illustrates this theorem.

The figure is divided into three parts labeled a, b, and c. Figure a shows the first quadrant with values a, c, and b marked on the x-axis. A downward-facing parabola is drawn such that its values at a and b are the same. The point c is the global maximum, and it is noted that f’(c) = 0. Figure b shows the first quadrant with values a, c, and b marked on the x-axis. An upward-facing parabola is drawn such that its values at a and b are the same. The point c is the global minimum, and it is noted that f’(c) = 0. Figure c shows the first quadrant with points a, c1, c2, and b marked on the x-axis. One period of a sine wave is drawn such that its values at a and b are equal. The point c1 is the global maximum, and it is noted that f’(c1) = 0. The point c2 is the global minimum, and it is noted that f’(c2) = 0.

Rolle’s Theorem

Let f

be a continuous function over the closed interval [a,b]

and differentiable over the open interval (a,b)

such that f(a)=f(b).

There then exists at least one c(a,b)

such that f(c)=0.

Proof

Let k=f(a)=f(b).

We consider three cases:

  1. f(x)=k

    for all

    x(a,b).
  2. There exists x(a,b)

    such that

    f(x)>k.
  3. There exists x(a,b)

    such that

    f(x)<k.

Case 1: If f(x)=0

for all x(a,b),

then f(x)=0

for all x(a,b).

Case 2: Since f

is a continuous function over the closed, bounded interval [a,b],

by the extreme value theorem, it has an absolute maximum. Also, since there is a point x(a,b)

such that f(x)>k,

the absolute maximum is greater than k.

Therefore, the absolute maximum does not occur at either endpoint. As a result, the absolute maximum must occur at an interior point c(a,b).

Because f

has a maximum at an interior point c,

and f

is differentiable at c,

by Fermat’s theorem, f(c)=0.

Case 3: The case when there exists a point x(a,b)

such that f(x)<k

is analogous to case 2, with maximum replaced by minimum.

An important point about Rolle’s theorem is that the differentiability of the function f

is critical. If f

is not differentiable, even at a single point, the result may not hold. For example, the function f(x)=\|x\|1

is continuous over [−1,1]

and f(−1)=0=f(1),

but f(c)0

for any c(−1,1)

as shown in the following figure.

![The function f(x) = |x| − 1 is graphed. It is shown that f(1) = f(−1), but it is noted that there is no c such that f’(c) = 0.](../resources/CNX_Calc_Figure_04_04_002.jpg “Since f(x)= x −1 is not differentiable at x=0, the conditions of Rolle’s theorem are not satisfied. In fact, the conclusion does not hold here; there is no c∈(−1,1) such that f′(c)=0.”){: #CNX_Calc_Figure_04_04_002}

Let’s now consider functions that satisfy the conditions of Rolle’s theorem and calculate explicitly the points c

where f(c)=0.

Using Rolle’s Theorem

For each of the following functions, verify that the function satisfies the criteria stated in Rolle’s theorem and find all values c

in the given interval where f(c)=0.

  1. f(x)=x2+2x

    over

    [−2,0]
  2. f(x)=x34x

    over

    [−2,2]
  1. Since f

    is a polynomial, it is continuous and differentiable everywhere. In addition,

    f(−2)=0=f(0).

    Therefore,

    f

    satisfies the criteria of Rolle’s theorem. We conclude that there exists at least one value

    c(−2,0)

    such that

    f(c)=0.

    Since

    f(x)=2x+2=2(x+1),

    we see that

    f(c)=2(c+1)=0

    implies

    c=−1

    as shown in the following graph.


    The function f(x) = x2 +2x is graphed. It is shown that f(0) = f(−2), and a dashed horizontal line is drawn at the absolute minimum at (−1, −1).

  2. As in part a. f

    is a polynomial and therefore is continuous and differentiable everywhere. Also,

    f(−2)=0=f(2).

    That said,

    f

    satisfies the criteria of Rolle’s theorem. Differentiating, we find that

    f(x)=3x24.

    Therefore,

    f(c)=0

    when

    x=±23.

    Both points are in the interval

    [−2,2],

    and, therefore, both points satisfy the conclusion of Rolle’s theorem as shown in the following graph.


    The function f(x) = x3 – 4x is graphed. It is obvious that f(2) = f(−2) = f(0). Dashed horizontal lines are drawn at x = ±2/square root of 3, which are the local maximum and minimum.

Verify that the function f(x)=2x28x+6

defined over the interval [1,3]

satisfies the conditions of Rolle’s theorem. Find all points c

guaranteed by Rolle’s theorem.

c=2
Hint

Find all values c,

where f(c)=0.

The Mean Value Theorem and Its Meaning

Rolle’s theorem is a special case of the Mean Value Theorem. In Rolle’s theorem, we consider differentiable functions f

defined on a closed interval [a,b]

with f(a)=f(b)

. The Mean Value Theorem generalizes Rolle’s theorem by considering functions that do not necessarily have equal value at the endpoints. Consequently, we can view the Mean Value Theorem as a slanted version of Rolle’s theorem ([link]). The Mean Value Theorem states that if f

is continuous over the closed interval [a,b]

and differentiable over the open interval (a,b),

then there exists a point c(a,b)

such that the tangent line to the graph of f

at c

is parallel to the secant line connecting (a,f(a))

and (b,f(b)).

A vaguely sinusoidal function y = f(x) is drawn. On the x-axis, a, c1, c2, and b are marked. On the y-axis, f(a) and f(b) are marked. The function f(x) starts at (a, f(a)), decreases to c1, increases to c2, and then decreases to (b, f(b)). A secant line is drawn between (a, f(a)) and (b, f(b)), and it is noted that this line has slope (f(b) – f(a))/(b − a). The tangent lines at c1 and c2 are drawn, and these lines are parallel to the secant line. It is noted that the slopes of these tangent lines are f’(c1) and f’(c2), respectively.

Mean Value Theorem

Let f

be continuous over the closed interval [a,b]

and differentiable over the open interval (a,b).

Then, there exists at least one point c(a,b)

such that

f(c)=f(b)f(a)ba.

Proof

The proof follows from Rolle’s theorem by introducing an appropriate function that satisfies the criteria of Rolle’s theorem. Consider the line connecting (a,f(a))

and (b,f(b)).

Since the slope of that line is

f(b)f(a)ba

and the line passes through the point (a,f(a)),

the equation of that line can be written as

y=f(b)f(a)ba(xa)+f(a).

Let g(x)

denote the vertical difference between the point (x,f(x))

and the point (x,y)

on that line. Therefore,

g(x)=f(x)[f(b)f(a)ba(xa)+f(a)].

A vaguely sinusoidal function y = f(x) is drawn. On the x-axis, a and b are marked. On the y-axis, f(a) and f(b) are marked. The function f(x) starts at (a, f(a)), decreases, then increases, and then decreases to (b, f(b)). A secant line is drawn between (a, f(a)) and (b, f(b)), and it is noted that this line has equation y = ((f(b) – f(a))/(b − a)) (x − a) + f(x). A line is drawn between the maximum of f(x) and the secant line and it is marked g(x).

Since the graph of f

intersects the secant line when x=a

and x=b,

we see that g(a)=0=g(b).

Since f

is a differentiable function over (a,b),

g

is also a differentiable function over (a,b).

Furthermore, since f

is continuous over [a,b],

g

is also continuous over [a,b].

Therefore, g

satisfies the criteria of Rolle’s theorem. Consequently, there exists a point c(a,b)

such that g(c)=0.

Since

g(x)=f(x)f(b)f(a)ba,

we see that

g(c)=f(c)f(b)f(a)ba.

Since g(c)=0,

we conclude that

f(c)=f(b)f(a)ba.

In the next example, we show how the Mean Value Theorem can be applied to the function f(x)=x

over the interval [0,9].

The method is the same for other functions, although sometimes with more interesting consequences.

Verifying that the Mean Value Theorem Applies

For f(x)=x

over the interval [0,9],

show that f

satisfies the hypothesis of the Mean Value Theorem, and therefore there exists at least one value c(0,9)

such that f(c)

is equal to the slope of the line connecting (0,f(0))

and (9,f(9)).

Find these values c

guaranteed by the Mean Value Theorem.

We know that f(x)=x

is continuous over [0,9]

and differentiable over (0,9).

Therefore, f

satisfies the hypotheses of the Mean Value Theorem, and there must exist at least one value c(0,9)

such that f(c)

is equal to the slope of the line connecting (0,f(0))

and (9,f(9))

([link]). To determine which value(s) of c

are guaranteed, first calculate the derivative of f.

The derivative f(x)=1(2x).

The slope of the line connecting (0,f(0))

and (9,f(9))

is given by

f(9)f(0)90=9090=39=13.

We want to find c

such that f(c)=13.

That is, we want to find c

such that

12c=13.

Solving this equation for c,

we obtain c=94.

At this point, the slope of the tangent line equals the slope of the line joining the endpoints.

The function f(x) = the square root of x is graphed from (0, 0) to (9, 3). There is a secant line drawn from (0, 0) to (9, 3). At point (9/4, 3/2), there is a tangent line that is drawn, and this line is parallel to the secant line.

One application that helps illustrate the Mean Value Theorem involves velocity. For example, suppose we drive a car for 1 h down a straight road with an average velocity of 45 mph. Let s(t)

and v(t)

denote the position and velocity of the car, respectively, for 0t1

h. Assuming that the position function s(t)

is differentiable, we can apply the Mean Value Theorem to conclude that, at some time c(0,1),

the speed of the car was exactly

v(c)=s(c)=s(1)s(0)10=45mph.
Mean Value Theorem and Velocity

If a rock is dropped from a height of 100 ft, its position t

seconds after it is dropped until it hits the ground is given by the function s(t)=−16t2+100.

  1. Determine how long it takes before the rock hits the ground.
  2. Find the average velocity vavg

    of the rock for when the rock is released and the rock hits the ground.

  3. Find the time t

    guaranteed by the Mean Value Theorem when the instantaneous velocity of the rock is

    vavg.
  1. When the rock hits the ground, its position is s(t)=0.

    Solving the equation

    −16t2+100=0

    for

    t,

    we find that

    t=±52sec.

    Since we are only considering

    t0,

    the ball will hit the ground

    52

    sec after it is dropped.

  2. The average velocity is given by
    vavg=s(5/2)s(0)5/20=11005/2=−40ft/sec.
  3. The instantaneous velocity is given by the derivative of the position function. Therefore, we need to find a time t

    such that

    v(t)=s(t)=vavg=−40ft/sec.

    Since

    s(t)

    is continuous over the interval

    [0,5/2]

    and differentiable over the interval

    (0,5/2),

    by the Mean Value Theorem, there is guaranteed to be a point

    c(0,5/2)

    such that


    s(c)=s(5/2)s(0)5/20=−40.

    Taking the derivative of the position function

    s(t),

    we find that

    s(t)=−32t.

    Therefore, the equation reduces to

    s(c)=−32c=−40.

    Solving this equation for

    c,

    we have

    c=54.

    Therefore,

    54

    sec after the rock is dropped, the instantaneous velocity equals the average velocity of the rock during its free fall:

    −40

    ft/sec.


    The function s(t) = −16t2 + 100 is graphed from (0, 100) to (5/2, 0). There is a secant line drawn from (0, 100) to (5/2, 0). At the point corresponding to x = 5/4, there is a tangent line that is drawn, and this line is parallel to the secant line.

Suppose a ball is dropped from a height of 200 ft. Its position at time t

is s(t)=−16t2+200.

Find the time t

when the instantaneous velocity of the ball equals its average velocity.

522

sec

Hint

First, determine how long it takes for the ball to hit the ground. Then, find the average velocity of the ball from the time it is dropped until it hits the ground.

Corollaries of the Mean Value Theorem

Let’s now look at three corollaries of the Mean Value Theorem. These results have important consequences, which we use in upcoming sections.

At this point, we know the derivative of any constant function is zero. The Mean Value Theorem allows us to conclude that the converse is also true. In particular, if f(x)=0

for all x

in some interval I,

then f(x)

is constant over that interval. This result may seem intuitively obvious, but it has important implications that are not obvious, and we discuss them shortly.

Corollary 1: Functions with a Derivative of Zero

Let f

be differentiable over an interval I.

If f(x)=0

for all xI,

then f(x)=

constant for all xI.

Proof

Since f

is differentiable over I,

f

must be continuous over I.

Suppose f(x)

is not constant for all x

in I.

Then there exist a,bI,

where ab

and f(a)f(b).

Choose the notation so that a<b.

Therefore,

f(b)f(a)ba0.

Since f

is a differentiable function, by the Mean Value Theorem, there exists c(a,b)

such that

f(c)=f(b)f(a)ba.

Therefore, there exists cI

such that f(c)0,

which contradicts the assumption that f(x)=0

for all xI.

From [link], it follows that if two functions have the same derivative, they differ by, at most, a constant.

Corollary 2: Constant Difference Theorem

If f

and g

are differentiable over an interval I

and f(x)=g(x)

for all xI,

then f(x)=g(x)+C

for some constant C.

Proof

Let h(x)=f(x)g(x).

Then, h(x)=f(x)g(x)=0

for all xI.

By Corollary 1, there is a constant C

such that h(x)=C

for all xI.

Therefore, f(x)=g(x)+C

for all xI.

The third corollary of the Mean Value Theorem discusses when a function is increasing and when it is decreasing. Recall that a function f

is increasing over I

if f(x1)<f(x2)

whenever x1<x2,

whereas f

is decreasing over I

if f(x)1>f(x2)

whenever x1<x2.

Using the Mean Value Theorem, we can show that if the derivative of a function is positive, then the function is increasing; if the derivative is negative, then the function is decreasing ([link]). We make use of this fact in the next section, where we show how to use the derivative of a function to locate local maximum and minimum values of the function, and how to determine the shape of the graph.

This fact is important because it means that for a given function f,

if there exists a function F

such that F(x)=f(x);

then, the only other functions that have a derivative equal to f

are F(x)+C

for some constant C.

We discuss this result in more detail later in the chapter.

A vaguely sinusoidal function f(x) is graphed. It increases from somewhere in the second quadrant to (a, f(a)). In this section it is noted that f’ > 0. Then in decreases from (a, f(a)) to (b, f(b)). In this section it is noted that f’ < 0. Finally, it increases to the right of (b, f(b)) and it is noted in this section that f’ > 0.

Corollary 3: Increasing and Decreasing Functions

Let f

be continuous over the closed interval [a,b]

and differentiable over the open interval (a,b).

  1. If f(x)>0

    for all

    x(a,b),

    then

    f

    is an increasing function over

    [a,b].
  2. If f(x)<0

    for all

    x(a,b),

    then

    f

    is a decreasing function over

    [a,b].

Proof

We will prove i.; the proof of ii. is similar. Suppose f

is not an increasing function on I.

Then there exist a

and b

in I

such that a<b,

but f(a)f(b).

Since f

is a differentiable function over I,

by the Mean Value Theorem there exists c(a,b)

such that

f(c)=f(b)f(a)ba.

Since f(a)f(b),

we know that f(b)f(a)0.

Also, a<b

tells us that ba>0.

We conclude that

f(c)=f(b)f(a)ba0.

However, f(x)>0

for all xI.

This is a contradiction, and therefore f

must be an increasing function over I.

Key Concepts


This is the Mean Value Theorem.

Why do you need continuity to apply the Mean Value Theorem? Construct a counterexample.

Why do you need differentiability to apply the Mean Value Theorem? Find a counterexample.

One example is f(x)=\|x\|+3,−2x2

When are Rolle’s theorem and the Mean Value Theorem equivalent?

If you have a function with a discontinuity, is it still possible to have f(c)(ba)=f(b)f(a)?

Draw such an example or prove why not.

Yes, but the Mean Value Theorem still does not apply

For the following exercises, determine over what intervals (if any) the Mean Value Theorem applies. Justify your answer.

y=sin(πx)
y=1x3
(,0),(0,)
y=4x2
y=x24
(,−2),(2,)
y=ln(3x5)

For the following exercises, graph the functions on a calculator and draw the secant line that connects the endpoints. Estimate the number of points c

such that f(c)(ba)=f(b)f(a).

[T] y=3x3+2x+1

over [−1,1]

2 points

[T] y=tan(π4x)

over [32,32]

[T] y=x2cos(πx)

over [−2,2]

5 points

[T] y=x634x598x4+1516x3+332x2+316x+132

over [−1,1]

For the following exercises, use the Mean Value Theorem and find all points 0<c<2

such that f(2)f(0)=f(c)(20).

f(x)=x3
c=233
f(x)=sin(πx)
f(x)=cos(2πx)
c=12,1,32
f(x)=1+x+x2
f(x)=(x1)10
c=1
f(x)=(x1)9

For the following exercises, show there is no c

such that f(1)f(−1)=f(c)(2).

Explain why the Mean Value Theorem does not apply over the interval [−1,1].

f(x)=\|x12\|

Not differentiable

f(x)=1x2
f(x)=\|x\|

Not differentiable

f(x)=x

(Hint: This is called the floor function and it is defined so that f(x)

is the largest integer less than or equal to x.)

For the following exercises, determine whether the Mean Value Theorem applies for the functions over the given interval [a,b].

Justify your answer.

y=ex

over [0,1]

Yes

y=ln(2x+3)

over [32,0]

f(x)=tan(2πx)

over [0,2]

The Mean Value Theorem does not apply since the function is discontinuous at x=14,34,54,74.

y=9x2

over [−3,3]

y=1\|x+1\|

over [0,3]

Yes

y=x3+2x+1

over [0,6]

y=x2+3x+2x

over [−1,1]

The Mean Value Theorem does not apply; discontinuous at x=0.

y=xsin(πx)+1

over [0,1]

y=ln(x+1)

over [0,e1]

Yes

y=xsin(πx)

over [0,2]

y=5+\|x\|

over [−1,1]

The Mean Value Theorem does not apply; not differentiable at x=0.

For the following exercises, consider the roots of the equation.

Show that the equation y=x3+3x2+16

has exactly one real root. What is it?

Find the conditions for exactly one root (double root) for the equation y=x2+bx+c

b=±2c

Find the conditions for y=exb

to have one root. Is it possible to have more than one root?

For the following exercises, use a calculator to graph the function over the interval [a,b]

and graph the secant line from a

to b.

Use the calculator to estimate all values of c

as guaranteed by the Mean Value Theorem. Then, find the exact value of c,

if possible, or write the final equation and use a calculator to estimate to four digits.

[T] y=tan(πx)

over [14,14]

c=±1πcos−1(π2), c=±0.1533

[T] y=1x+1

over [0,3]

[T] y=\|x2+2x4\|

over [−4,0]

The Mean Value Theorem does not apply.

[T] y=x+1x

over [12,4]

[T] y=x+1+1x2

over [3,8]

12c+12c3=5212880; c=3.133,5.867

At 10:17 a.m., you pass a police car at 55 mph that is stopped on the freeway. You pass a second police car at 55 mph at 10:53 a.m., which is located 39 mi from the first police car. If the speed limit is 60 mph, can the police cite you for speeding?

Two cars drive from one spotlight to the next, leaving at the same time and arriving at the same time. Is there ever a time when they are going the same speed? Prove or disprove.

Yes

Show that y=sec2x

and y=tan2x

have the same derivative. What can you say about y=sec2xtan2x?

Show that y=csc2x

and y=cot2x

have the same derivative. What can you say about y=csc2xcot2x?

It is constant.

Glossary

mean value theorem
if f

is continuous over

[a,b]

and differentiable over

(a,b),

then there exists

c(a,b)

such that


f(c)=f(b)f(a)ba
rolle’s theorem
if f

is continuous over

[a,b]

and differentiable over

(a,b),

and if

f(a)=f(b),

then there exists

c(a,b)

such that

f(c)=0

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

You can also download for free at http://cnx.org/contents/9a1df55a-b167-4736-b5ad-15d996704270@5.1

Attribution: