The Mean Value Theorem

Download Maple Worksheet

Let f be an increasing function on [a, b] and c be a number in 

( a, b ), we have

0 <= (f(x)-f(c))/(x-c) for all x in [a, b] .

 

If f ' ( c ) exists then f ' ( c ) is nonnegative.

 

If f is a differentiable function on [a, b] , is the derivative of f always nonnegative ?

 

Here is another question : If a car travels 180 km in 1.5 hours, can we guarantee it will read 120 km/hr during the trip ?

 

At a first glance, these two questions seem to be irrelevant; however, they are a related to the following theorem :

 

The Mean Value Theorem  

If f is continuous on [a, b] and differentiable in (a, b), then there is a number c in (a, b) such that

f ' ( c ) = (f(b)-f(a))/(b-a)

Or equivalently,  f ( b ) - f ( a ) = f ' ( c ) ( x - a ).

The Mean Value Theorem says that " For a given differentiable function over a given interval, the average rate of change over the interval equals the instantaneous rate of Change at some point in that interval".

Geometrically, this is what Mean Value Theorem means :

[Maple Plot]

 

First, let's consider a special case for the Mean Value Theorem with f ( a ) = f ( b ) = 0.

 

Rolle's Theorem If f is continuous on [a, b] and differentiable in

(a, b) such that f ( a ) = f ( b ), then there is a number c in (a, b) such that f '( c ) = 0.

[Maple Plot]

 

If f is a constant then f ' ( x ) = 0, so c can be taken to be any number in ( a, b ).

Recall that if f ' ( c ) = 0 then c is a critical number of f . Hence, f ( c ) may be a local extrema.

Now it comes the question:

" If f is a inconstant function which is continuous on [a, b] and differentiable in (a, b) such that

f ( a ) = f ( b ),

is it true that f must have a local extrema in (a, b) ? "

By the extreme Value Theorem, f attains an absolute maximum and minimum values on [a, b] .

The fact that f ( a ) = f ( b ) implies one of the absolute extrema must occur at some number c in ( a, b ), that is, f ( c ) is a local extreme value of f

Since f '( c ) exists, by Fermat's Theorem, we get f ' ( c ) = 0.

 

The animation below illustrates the idea how to get the Mean Value Theorem from Rolle's Theorem.

[Maple Plot]

 

 

Proof of the Mean Value Theorem

Let's take a look at the following animation to see how we can pull the graph of f such that the secant line joining the two endpoints become horizontal.

[Maple Plot]

 



[Maple Plot]

Consider the function

g(x) = f(x)-(f(b)-f(a))/(b-a) ( x-a )

Note that g is is continuous on [a, b] and differentiable in 

( a, b ) such that g( a ) = g ( b ).    By Rolle's Theorem, we get that there is a number c in ( a, b ) such that g' ( c ) = 0. Since

g' ( x ) = f ' ( x ) - (f(b)-f(a))/(b-a) ,

we get

f ' ( c ) = (f(b)-f(a))/(b-a) .

 

Note:  If f does not satisfy the condition " f is continuous on [a, b] and differentiable in ( a, b ) ", then the conclusion in the Mean Value Theorem may not hold. Here are two examples :

 

(1)  Let f(x) = abs(x) on [-1, 1]

It's not hard to see that f ( -1 ) = f (1), but there does not exist c in [-1, 1] such that f ' ( c ) = 0.

 

[Maple Plot]

 

(2) Let g(x) = PIECEWISE([x+2, x < 1],[-x+3, 1 <= x]) on [0, 2]

Then

(g(2)-g(0))/(2-0) = 1/2 ,

whereas g' ( x ) = PIECEWISE([1, x < 1],[-1, 1 < x]) and g' (1) does not exist ( g is not continuous at 1).   We see that there does not exist c in [0, 2] such that

g' (c) = (g(2)-g(0))/(2-0) = 1/2 .

[Maple Plot]

 

Corollary:  If f , g are continuous on [a, b] and differentiable in 

( a, b ) such that  f ' ( x ) = g' ( x ) for all x in ( a, b ), 

then 

f ( x ) = g ( x ) + C where C is a constant.

 

Proof It suffices to show that if f ' ( x ) = 0 for all x in ( a, b ), then

f ( x ) = C for some constant C .

 

For each x in (a, b], the Mean Value Theorem implies that there is a c in [a, x] such that

f ( x ) - f ( a ) = f ' ( c ) ( x - a ).

 

Since f ' ( x ) = 0 for all x in (a, b), f ( x ) = f ( a ). Therefore,

f ( x ) = f ( a ) for all x in [a, b] .

 

We have seen that d/(d*x)( arcsin( x ) + arccos( x )) = 0 for all x in 

( -1, 1 ) and arcsin( x ) + arccos( x ) is continuous on [-1, 1]

The Corollary above implies that

arcsin( x ) + arccos( x ) = C for some constant C .

 

Since

arcsin(0)+arccos(0) = Pi/2 ,

then C = pi/2 . Therefore,

arcsin(x)+arccos(x) = Pi/2 for all x in [-1, 1] .

The significance of the Mean Value Theorem is that it enables us to obtain information about a function from information about its derivative. The following examples provide instances of this principle.

 

Example Suppose that f (0) = -3 and f ' ( x ) [Maple OLE 2.0 Object] 5 for all values of x

How large can f (2) be ?

 

We are given that f is differentiable everywhere and therefore f is continuous everywhere. We can apply the Mean Value Theorem on [0, 2] . There exists a number c that

f (2) - f (0) = f ' ( c ) (2 - 0)

So

f (2) = f (0) +2 f ' ( c ) [Maple OLE 2.0 Object] -3+2 (5) = 7

 

The largest possible value for f (2) is 7.

 

Example Determine the number of roots of f(x) = x^7+4*x^5+3*x+5 .

First we notice that

f(-1) = -3 < 0 and f(0) = 5 > 0.

 

By the Intermediate Value Theorem, we see that there exists a number c in [-1, 0] such that f(c) = 0 .

The derivative of f(x) = x^7+4*x^5+3*x+5 is

f ' ( x ) = 7*x^6+20*x^4+3 .

Hence, f ' ( x ) > 3 for all x .

 

Using the Mean Value Theorem, we get if x > 0, then

 

f(x)-f(0) = f ' ( c[1] ) ( x-0 ) for some c[1] between 0 and x .

Hence,

f ( x ) > f (0) + f ' ( c[1] ) ( x-0 ) > 5 for all x > 0.

Similarly, if x < -1 , then

f(-1) = f(x) + f ' ( c[2] ) ( -1-x ) for some c[2] between -1 and x,

and so

f(x) < f(-1) < 0.

 

These say that f has no root outside [-1, 0] .

 

Can f have more than one roots in [-1, 0] ? If there exists a , b in [-1, 0] such that

f( a ) = f( b ) = 0

By Rolle's Theorem, there exists a number c in ( -1, 0 ) such that 

f ' ( c ) = 0.  But f ' ( x ) > 3 for all x, we get a contradiction.

 

Therefore, f has exactly one root and the root is between -1 and 0.

 

Example (Racetrack Principle) Let f and g be differentiable for all x in [a, b] and suppose f(a) = g(a) .

If f ' ( x ) [Maple OLE 2.0 Object] g ' ( x ) for all x in [a, b] then f(x) <= g(x)  

for all x in [a, b] .

 

Let h(x) = f(x)-g(x) , then h is differentiable for all x in [a, b] , h(a) = 0 and h ' ( x ) [Maple OLE 2.0 Object] 0.

 

For each x in (a, b], by applying the Mean Value Theorem to h on [a, x], we get

h(x) = h(0) + h' (c) ( x-0 ) [Maple OLE 2.0 Object] 0.

Therefore f(x) <= g(x) for all x in [a, b] .

Here are some problem to think about :

 

(1). If f ' ( x ) [Maple OLE 2.0 Object] M for a <= x , is it always true that f(x) <= f(a)+M*(x-a) ?

 

(2). Is it true that x <= exp(x) for all x ?

 

(3). How do we know that 3^(1/sqrt(2)) <= 1+sqrt(2) ?

(4). Consider the functions

f(x) = 1/(x^2) for x <> 0 and g(x) = PIECEWISE([1/(x^2)-1, x < 0],[1/(x^2)+1, 0 <...

 

f ' ( x ) = g ' ( x ) for all x <> 0 , yet f and g do not differ by a constant. Does this contradict to what we have discussed here ?


Download Maple Worksheet