Rolle's Theorem, Mean Value Theorem, Maxima and Minima

We have mentioned continuous functions before, but let us re-state the preliminary definition which we have used. Let f ( x ) be a function which is defined in an interval containing x 0 . Then we say that f ( x ) is continuous at x 0 if changing x only slightly from x 0 produces only a small change in the value of f ( x ) from its value f ( x 0 ) at x 0 . More briefly, if x is near x 0 , then f ( x ) is near f ( x 0 ) . observe that this definition is imprecise in that the words small and near have no exact meaning. For one man, .01 might be near enough, while another might consider a number as small until it is less than .00001 . The precise definition of continuity which we eventually shall give will satisfy both men and all others as well.

Now let f ( x ) be defined for all x such that a x b . A point x 0 of this interval is called a maximum of f ( x ) in the interval if f ( x 0 ) f ( x ) for all x such that a x b . x 1 is called a minimum of f ( x ) in the interval if f ( x 1 ) f ( x ) for a x b . Not all functions need have maxima or minima; for consider the function

\left\{ \begin{aligned} f(x) &= x, \quad 0 \le x < 1 \\ f(1) &= 0 \end{aligned} \right\}

Its graph is

Illustration for Rolle's Theorem, Mean Value Theorem, Maxima and Minima

where the oblique line has no right-hand endpoint. This function has no maximum in the interval 0 x 1 . For surely 1 cannot be a maximum since f ( 1 ) = 0 < f ( 1 / 2 ) . But if a < 1 were to be a maximum observe that

a < a + 1 2 < 1 .

Therefore

a = f ( a ) < f ( a + 1 2 ) = a + 1 2 ,

so that a cannot be a maximum. Note, however, that this function is not continuous at 1.

Later in the course, we shall prove the following theorem:

Theorem 1

Let f ( x ) be continuous at every point of the interval a x b . Then there is at least one x 0 , a x 0 b , such that x 0 is a maximum for f ( x ) in a x b .

Observe that it follows that f ( x ) has a minimum in a x b . For a minimum of f ( x ) is simply a maximum of f ( x ) . Now let f ( x ) have a maximum at x 0 , a < x 0 < b , so that x 0 is not an endpoint. Then consider the difference quotient

f ( x 0 + h ) f ( x 0 ) h .

For all h ,

f ( x 0 + h ) f ( x 0 ) 0 .

If h > 0 ,

f ( x 0 + h ) f ( x 0 ) h 0 .

If h < 0 ,

f ( x 0 + h ) f ( x 0 ) h 0 .

If f'(x_0) exists, these expressions approach the common limit f'(x_0) as h 0 . But if f'(x_0) > 0, the first one (for h > 0 ) could never get closer to f'(x_0) than the distance of f'(x_0) from 0. If f'(x_0) < 0, the second expression ( h < 0 ) could not approach it. Therefore we must have f'(x_0) = 0. Our conclusion is then:

Theorem 2

Let f ( x ) be defined for a x b and let x 0 be a point such that a < x 0 < b and such that x 0 is a maximum for f ( x ) in a x b . Then if f'(x_0) exists, we must have f'(x_0) = 0.

(We could equally well have used "minimum" instead of "maximum".)

Theorem 3. Rolle's Theorem

Let f ( x ) be continuous in the interval a x b . Let f ( x ) be differentiable for all x such that a < x < b . If f ( a ) = f ( b ) , then there is a ξ , a < ξ < b , such that f'(\xi) = 0.

For smooth-looking functions this seems evident, but we must still prove it. It follows quite quickly from the theorem on the existence of a maximum and our remarks on the derivative at a maximum.

Proof of Rolle's Theorem.

Since f ( x ) is continuous, f ( x ) has a maximum and a minimum in a x b . Now either f ( x ) is constant for a x b , or f ( x ) > f ( a ) = f ( b ) for some x , or f ( x ) < f ( a ) = f ( b ) for some x . In the first case, we have seen that f'(x) = 0 whenever a x b , and we can take ξ to be any point such that a < ξ < b . In the second case, any maximum x 0 of f ( x ) has a < x 0 < b , so f'(x_0) exists. But we have seen that then f'(x_0) = 0, and we can take ξ = x 0 . If the second case does not hold, and f ( x ) is not constant, then any minimum x 1 of f ( x ) has a < x 1 < b , and f'(x_1) = 0 as before. In this case we can take ξ = x 1 . Thus the theorem is proved.

Next we prove a consequence of Rolle's Theorem, called the Mean Value Theorem, which is perhaps the most useful result we have had to date.

Theorem 4. Mean Value Theorem

Let f ( x ) be continuous for a x b , differentiable for a < x < b . Then there exists a ξ , a < ξ < b , such that

f(b) - f(a) = f'(\xi)(b - a) .

We wish to form a new function g ( x ) which will satisfy the conditions of Rolle's Theorem and such that the conclusion of Rolle's Theorem for g ( x ) will imply the desired result. Therefore we try

g ( x ) = f ( x ) ( b a ) x ( f ( b ) f ( a ) ) .

Then g ( a ) = g ( b ) = f ( a ) b f ( b ) a , g ( x ) is continuous for a x b , because f ( x ) is, and

g'(x) = f'(x)(b - a) - (f(b) - f(a)), \quad a < x < b,

so that g ( x ) is differentiable for a < x < b . By Rolle's Theorem, there is a ξ , a < ξ < b , such that

g'(\xi) = 0 = f'(\xi)(b - a) - (f(b) - f(a)),

or

f(b) - f(a) = f'(\xi)(b - a),

as desired. Thus the Mean Value Theorem is proved.

Geometrically, the mean value theorem means that if we form a secant to the graph of a function satisfying the conditions, there is a point between the intersections of the secant with the graph where the tangent to the curve is parallel to this secant.

Illustration for Rolle's Theorem, Mean Value Theorem, Maxima and Minima
Geometrical meaning of the Mean Value Theorem

We shall say considerably more about the uses of the Mean Value Theorem as we go along; we shall likewise discuss questions of maxima and minima at greater length a little later. Let us outline at the moment the procedures we can use for determining maxima and minima of a function f ( x ) which is continuous for a x b , and is differentiable for a < x < b . We know that if f ( x ) has a maximum (or minimum) at x 0 , with a < x 0 < b , then f'(x_0) = 0. It is also conceivable that a maximum, minimum, or both might occur at the endpoints a and b . Therefore let x 1 , x 2 , , x n be all points within the interval where f'(x) = 0, and consider the numbers

f ( a ) , f ( b ) , f ( x 1 ) , f ( x 2 ) , , f ( x n ) .

Any value of x corresponding to the largest of these is a maximum; a value corresponding to the smallest is a minimum. It may be, therefore, that there are points x 0 with f'(x_0) = 0 which are neither maxima nor minima for f ( x ) .

Exercises

Exercise 1.

Find a maximum and a minimum for the following functions on the corresponding intervals:
a) f ( x ) = x 3 6 x , 0 x 7.
b) f ( x ) = x , 7 x 17.
c) f(x) = \left\{ \begin{aligned} x^2 \sin \frac{1}{x}, \quad x \neq 0 \\ 0 \quad \text{if } x = 0 \end{aligned} \right\}, \quad -\frac{2}{\pi} \le x \le \frac{2}{\pi} .