Extrema and Rolle's Theorem

Rolle's theorem

Statement of Rolle's theorem

Rolle's theorem. Let ff be a function continuous on [a ; b][a \,;\, b], differentiable on ]a ; b[\left]a \,;\, b\right[, with a<ba < b and f(a)=f(b)f(a) = f(b). Then there exists at least one real number cc in ]a ; b[\left]a \,;\, b\right[ such that f′(c)=0f'(c) = 0.

Graphically: if the curve comes back to the same height, it has a horizontal tangent somewhere. Michel Rolle stated this result in 1691, for polynomials; the general version is an achievement of the 19th century.

Notice the asymmetry of the hypotheses: continuity on the closed interval, differentiability only on the open one. This is what allows the theorem to be applied to x↦1−x2x \mapsto \sqrt{1 - x^2} on [−1 ; 1][-1 \,;\, 1], whose derivative blows up at the endpoints.

Proof

The function ff is continuous on the closed bounded interval [a ; b][a \,;\, b]: by the extreme value theorem, it has a maximum MM and a minimum mm there, both attained.

First case: M=mM = m. The function is constant, its derivative is zero everywhere, and any cc in ]a ; b[\left]a \,;\, b\right[ works.

Second case: M>mM > m. Since f(a)=f(b)f(a) = f(b), at least one of the two values MM and mm differs from f(a)f(a). Suppose for example M≠f(a)=f(b)M \neq f(a) = f(b). The maximum is attained at a point cc which is therefore neither aa nor bb: it is interior to the interval. The function ff is differentiable there, and Fermat's lemma gives f′(c)=0f'(c) = 0.

The reasoning is identical if it is the minimum that differs from f(a)f(a).

Every hypothesis matters

Hypothesis removed Counterexample on [0 ; 1][0 \,;\, 1] Conclusion
continuity on [a ; b][a \,;\, b] f(x)=xf(x) = x for x<1x < 1 and f(1)=0f(1) = 0 f′=1f' = 1 wherever it exists
differentiability on ]a ; b[\left]a \,;\, b\right[ f(x)=∣x−12∣f(x) = \left\lvert x - \tfrac{1}{2} \right\rvert f′f' never vanishes
f(a)=f(b)f(a) = f(b) f(x)=xf(x) = x f′=1f' = 1 everywhere

An immediate application: counting roots

Between two consecutive roots of ff, the derivative f′f' vanishes at least once — just apply Rolle with f(a)=f(b)=0f(a) = f(b) = 0.

Thus, if a polynomial of degree nn has nn distinct real roots, its derivative has at least n−1n - 1, hence exactly n−1n - 1 since it has degree n−1n - 1. This is the derivative version of the theorem, very useful for locating roots.

Classic pitfall

Concluding that the point cc is unique. The theorem only provides one, and there may be many: for f(x)=sin⁡xf(x) = \sin x on [0 ; 4π][0 \,;\, 4\pi], the derivative vanishes four times. Writing "the real number cc such that f′(c)=0f'(c) = 0" is a wording mistake; you must say "a real number cc".