Rolle's theorem states that a continuous function , differentiable on with and , has for some . If is constant this is immediate. Otherwise the extreme value theorem supplies a maximum or minimum with value different from the common endpoint value, so one such extremum occurs in . At an interior maximum, the difference quotients for positive increments are nonpositive and those for negative increments are nonnegative. Their common limit, the derivative, must be zero. At a minimum the inequalities reverse, with the same conclusion. This proves Rolle's theorem.
For the two-function identity, write and , and set . This is a continuous function on the closed interval and is differentiable inside it. Its endpoint values agree:
They need not be zero, but Rolle's theorem only requires equality. At the resulting point ,
which proves the Cauchy mean value theorem identity
For the final endpoint limit, first state the denominator convention explicitly. In the usual zero-over-zero version of L'Hopital rule, on some whole interval ; this is understood if the displayed derivative quotient is to be a function defined throughout a deleted right neighborhood of zero. Define , making both functions continuous at zero. For , Rolle's theorem implies , since otherwise would have equal zero values at and and a zero derivative between them. Apply the proved Cauchy mean value theorem on to obtain with
Given , the hypothesis on the derivative quotient supplies such that its distance from is less than whenever . If then , so the same bound holds for . Therefore
No continuity of the derivatives is needed.
The PDF does not explicitly state the nonvanishing condition on . If “the limit exists” permits a limit only along the natural domain where , the assertion is false, even with everywhere. The distinction concerns derivative quotient limits on partial domains. Here is a concrete counterexample to that weaker reading. Put and for . On each interval , split off the plateau . On the plateau set
On the transition interval set
Extend for . The endpoints fit because , , while both and vanish at zero and one and also vanishes there. Thus are differentiable for all and tend to zero at zero. The derivative is nonzero exactly inside the transition intervals, where , so the derivative quotient has natural-domain limit zero. But , whereas . Hence has no limit. The preceding qualified proof is the intended valid form of L'Hopital rule.