Jump to content

Rolle's theorem – "Math for Non-Geeks"

From Wikibooks, open books for an open world

Motivation

[edit | edit source]
Rolle's theorem – illustration and explanation (YouTube video in German, by the channel "MJ Education")

We already know from the extreme value theorem that a continuous function f attains a maximum and a minimum on a closed interval [a,b]:

The function f is bounded and hence attains a maximum and a minimum
The function f is bounded and hence attains a maximum and a minimum

This is of course also true, if f(a)=f(b). In this case (if the function is not constant) there must be a maximum or minimum inside the domain of definition. In the following figure, both the maximum and the minimum are inside [a,b], i.e. within the open interval (a,b):

Special case of the extreme value theorem
Special case of the extreme value theorem

Let us now additionally assume that f is differentiable on (a,b). Let ξ be a maximum or minimum. If ξ is inside the domain of definition, i.e. if ξis∈(a,b), then f′(ξ)=0 according to the main criterion for extremes values of a differentiable function. This means that the tangent to f at ξ is horizontal. This is exactly what Rolle's theorem says: For every continuous function f:[a,b]→ℝ with f(a)=f(b), which is differentiable at (a,b), there is an argument ξ∈(a,b) with f′(ξ)=0.

Of course, f can also assume several (partly local) maxima and minima on (a,b) . Furthermore, it is possible that f attains only one maximum (and no minimum) or one minimum (and no maximum) on (a,b):

A special case is f being constant on [a,b]. In this case there is f′(x)=0 for all x∈(a,b):

Sketch of the special case of the extreme value theorem.
Sketch of the special case of the extreme value theorem.

This may also happen on a finite sub-interval of [a,b], i.e. on a "horizontal plateau".

No matter which case we looked at, there was always at least one point inside the domain of definition where the derivative of the function is zero.

Rolle's theorem

[edit | edit source]
Rolle's theorem. (YouTube video (in German) by the channel Quatematik)

The theorem named after Michel Rolle (1652-1719) represents a special case of the mean value theorem of differential calculus and reads as follows:

Theorem (Rolle's theorem)

Let f:[a,b]→ℝ be a continuous function with a<b and f(a)=f(b). Furthermore, f is assumed to be differentiable on the open interval (a,b). Then there exists a ξ∈(a,b) with f′(ξ)=0.

If f is differentiable on (a,b), then f is continuous on (a,b). Therefore, it is sufficient to prove the continuity of f at the boundary points a and b in order to check the requirements.

Example (Rolle's theorem)

Let us consider the function f:[0,2]→ℝ with f(x)=x2−2x−3. There is

  • f continuous as a polynomial on [0,2]
  • f(0)=−3=f(2)
  • f continuous as a polynomial on (0,2)

Rolle's theorem now asserts: there is at least one ξ∈(0,2) with f′(ξ)=0.

Question: What is a value ξ where the derivative of f in the above example is zero?
Graph of f and its derivative

The derivative of f is f′(x)=2x−2. We set f equal to 0 and get:

f′(ξ)=2ξ−2=0⟺ 2ξ=2⟺ ξ=1

At the position ξ=1 the derivative of f is zero. This value lies within the domain of definition [0,2] of f and is the only zero of the derivative. Thus ξ=1 is the value sought.

About conditions used in the theorem

[edit | edit source]

There are several necessary requirements in Rolle's theorem. We will show now that if we drop any one of them, the theorem is no longer true.

Condition 1: f is continuous on [a,b]

[edit | edit source]
Exercise (Condition: continuity)

Find a function f:[a,b]→ℝ, which is differentiable only on (a,b) and for which f(a)=f(b) holds, but for which the implication of Rolle's theorem does not hold.

The searched function f fulfils all requirements of the set of roles except continuity in the complete domain of definition. If we drop continuity on the endpoints, we run into trouble! The reason is that f may then diverge to infinity at the end points.

Solution (Condition: continuity)
Graph of the function f

f:[0,1]→ℝ with

f(x)={x if x≠1,0 if x=1,

is differentiable on (0,1) and there is f(0)=0=f(1). But since f′(x)=1 for all x∈(0,1), there is no ξ∈(0,1) with f′(ξ)=0.

Condition 2: f(a)=f(b):

[edit | edit source]
Exercise (Equality of function values)

Find a continuous function f:[a,b]→ℝ which is differentiable on (a,b) for which the implication of Rolle's theorem does not hold.

This task shows that the condition f(a)=f(b) is necessary for Rolle's theorem. Otherwise, we may "build a slight slope" between the end points, which has no maximum or minimum.

Solution (Equality of function values)
The identity function f defined on [0,1] with f(x)=x

Such a function is for example f:[0,1]→ℝ with f(x)=x. This function is continuous at [0,1] and also differentiable at (0,1). There is however f(0)=0≠1=f(1).

For this function, there is f′(x)=1 for all x∈(0,1). So there is no ξ∈(0,1) with f′(ξ)=0.

Condition 3: f is differentiable on (a,b):

[edit | edit source]
Exercise (Condition: differentiability)

Find a continuous function f:[a,b]→ℝ with f(a)=f(b), for which the implication of Rolle's theorem does not hold.

Solution (Condition: differentiability)
Plot of the function f

The function f:[0,1]→ℝ with

f(x)={x if x≤121−x if x>12

is continuous and there is f(0)=0=f(1). This function is only differentiable on the intervals [0,12) and (12,1]. The derivative function g:[a,b]→ℝ has the assignment rule:

g(x)={1x<12−1x>12

Hence, there is no ξ∈(0,1) with f′(ξ)=0.

Proof

[edit | edit source]
Summary of proof (Rolle's theorem)

We first consider the special case that f is a constant function. Here the derivative is zero everywhere. If f is not constant, we use the extreme value theorem to find a maximum or minimum within the domain of definition. At this extremum, the derivative vanishes according to the criterion for the existence of an extremum.

Proof (Rolle's theorem)

Let f:[a,b]→ℝ be continuous function with a<b, which is differentiable on (a,b) . Let further f(a)=f(b).

Case 1: f is constant.

Let f be constant. Then, there is f′(ξ)=0 for all ξ∈(a,b). So there is at least one ξ∈(a,b) with f′(ξ)=0 (any ξ can be chosen from (a,b)). Role's theorem is fulfilled in that simple case.

Case 2: f is not constant.

Let f now be non-constant. By the extreme value theorem, f attains both maximum and minimum on the compact interval [a,b]. The maximum or minimum of f must be different from f(a)=f(b), otherwise f would be constant. Thus (at least) one extremum is attained at a position ξ∈(a,b).

Since f is differentiable at (a,b), f is also differentiable at the extremum ξ. Here, according to the necessary criterion for extrema, there is f′(ξ)=0. Thus, there exists at least one ξ∈(a,b) where the derivative is zero. So the theorem of Rolle also gives the right implication in this case.

Exercise

[edit | edit source]
Exercise (Exercise)

Let k∈ℕ. Show with Rolle's theorem that the derivative function f′(x) of the function f:[0,kπ]→[−1,1] with f(x)=sin⁡(x) has at least k zeros.

Solution (Exercise)

The sine function is differentiable on all of ℝ, i.e. also continuous. Furthermore, there is sin⁡(lπ)=0 for all l∈ℤ. By Rolle's theorem, there is a ξ∈(lπ,(l+1)π) with f′(ξ)=0. For every l∈ℕ with 0≤l<k we find a ξ where the derivative is zero. Since there are k different natural numbers for l with 0≤l<k, we can also find k different zeroes ξ of the derivative function. The derivative of f must therefore have at least k distinct zeros.

Application: Zeros of functions

[edit | edit source]

Rolle's theorem can also be used in proofs of existence of zeros. And it can be used to show that a function has at most one zero on an interval. On the other hand, the intermediate value theorem can be used to show that a function has at least one zero on an interval. Together, the existence of exactly one zero can be implied.

Example (Zeros of a polynomial)

Let us consider the polynomial p(x)=x3+x+1 on the interval [−1,0]. Now,

  • p is continuous on [−1,0]. Furthermore, p(−1)=−1<0 and p(0)=1>0. According to the intermediate value theorem, the polynomial has at least one zero at [−1,0].
  • p is differentiable at (−1,0) with p′(x)=3x2+1. We now assume that p had two zeros on [−1,0] x1 and x2. Let without loss of generality be x1<x2. There is also p(x1)=0=p(x2). Since p is continuous on [x1,x2]⊆[−1,0] and differentiable on (x1,x2)⊆(−1,0), Rolle's theorem can be applied. Hence, there is a ξ∈(x1,x2) with p′(ξ)=3ξ2+1=0. But now p′ has no zeros because of p′(x)=3x2⏟≥0+1≥1. So on [−1,0], the polynomial p cannot have more than one zero.

From both points we get that p has exactly one zero on [−1,0].

Further exercise

[edit | edit source]
Exercise (Finding a unique zero)

Show that

f:[1,2]→ℝ:x↦2x4−x+1

has exactly one zero.

Summary of proof (Finding a unique zero)

First, use the intermediate value theorem to show that f has at least one zero. Then we show by Rolle's theorem that f has at most one zero. From both steps the assertion follows.

Proof (Finding a unique zero)

Proof step: f has at least one zero.

f is continuous as a composition of continuous functions. Further, there is f(1)=21−1+1=2>0 and f(2)=216−2+1=−78<0. By the intermediate value theorem the function has therefore at least one zero.

Proof step: f has at most one zero.

f is differentiable on (1,2) as it is a composition of differentiable functions. In particular, f′(x)=−42x5−1=−8x5−1. We now assume that on [1,2], the function f has two distinct zeros x1 and x2. Let us assume that x1<x2. There is therefore f(x1)=0=f(x2).

Now, f is continuous on [x1,x2]⊆[1,2] and differentiable on (x1,x2)⊆(1,2). According to Rolle's theorem, there hence is a ξ∈(x1,x2) with f′(ξ)=−8ξ5−1=0. But since

f′(x)=−8x5⏟≤−825=−14−1≤−54<0

f′ has no zeros. So f has at most one zero.

It follows from both steps of proof that f has exactly one zero.

Outlook: Rolle's theorem and the mean value theorem

[edit | edit source]

As mentioned above, Rolle's theorem is a special case of the mean value theorem. This is one of the most important theorems from real Analysis, as many other useful results can be derived from it. Conversely, we will show that the mean value theorem follows from Rolle's theorem. Both theorems are thus equivalent.