Tutorials › Calculus I › Why Rolle’s Theorem Holds

Mean Value Theorems · Tutorial 678 of 1495

Why Rolle’s Theorem Holds

See how the Extreme Value Theorem and the derivative test at an interior extremum combine to guarantee a point where the derivative is zero.

Advanced 9 min read

What You'll Learn

  • State the continuity, differentiability, and endpoint conditions in Rolle’s Theorem.
  • Explain how the Extreme Value Theorem guarantees a maximum and a minimum on a closed interval.
  • Prove that a differentiable function has derivative zero at an interior local extremum.
  • Separate the constant-function case from the nonconstant case in the proof of Rolle’s Theorem.
  • Apply the argument to polynomial and trigonometric examples.
  • Identify why a one-sided difference quotient does not prove the derivative is zero.

Why a Guaranteed Point Exists

Rolle’s Theorem makes a specific promise: if a function begins and ends at the same height, and it is continuous and differentiable in the required places, then its graph has at least one interior point where the tangent is horizontal. The theorem is more than an observation about how a graph might look. Its guarantee follows from two precise facts: a continuous function attains its extreme values on a closed interval, and at an interior extremum a derivative, if it exists, must be zero.

The proof connects these facts. Equal endpoint values alone do not tell us where an interior point can be found. The Extreme Value Theorem supplies an attained maximum or minimum; the endpoint condition ensures that, unless the function is constant, at least one such extreme occurs inside the interval. Differentiability then forces the derivative there to vanish.

The Theorem and Its Conditions

Theorem (Rolle’s Theorem): Let \(a,b\in\mathbb{R}\) with \(a<b\). Suppose \(f:[a,b]\to\mathbb{R}\) is continuous on \([a,b]\), differentiable on \((a,b)\), and \(f(a)=f(b)\). Then there exists \(c\in(a,b)\) such that \(f'(c)=0\).

The locations in the hypotheses matter. Continuity is required on the entire closed interval, including its endpoints. Differentiability is required at every point strictly between the endpoints; the theorem does not require derivatives at \(a\) or \(b\). The conclusion is an existence statement: it promises at least one such \(c\), not necessarily exactly one.

The Extreme Value Theorem states that a real-valued function continuous on a closed, bounded interval \([a,b]\) attains both a maximum and a minimum there. In other words, there are points \(x_{\max},x_{\min}\in[a,b]\) such that \(f(x_{\max})\geq f(x)\) and \(f(x_{\min})\leq f(x)\) for every \(x\in[a,b]\). Attaining matters: the maximum and minimum are values of the function at points in the interval, not merely bounds the function approaches.

Why an Interior Extremum Has Derivative Zero

A point \(c\) is a local maximum of \(f\) if there is a positive distance around \(c\) such that \(f(x)\leq f(c)\) for all domain points \(x\) within that distance. A local minimum is defined by reversing the inequality. A local maximum or local minimum is called a local extremum. The following fact applies when the point is interior and the function is differentiable there.

Lemma: If \(f\) is differentiable at an interior point \(c\) and has a local maximum or local minimum at \(c\), then \(f'(c)=0\).

Here is a proof for a local maximum. For every sufficiently small nonzero \(h\), the point \(c+h\) is in the domain and \(f(c+h)\leq f(c)\). If \(h>0\), division by \(h\) preserves the inequality:

$$ \frac{f(c+h)-f(c)}{h}\leq 0. $$

If \(h<0\), division reverses the inequality:

$$ \frac{f(c+h)-f(c)}{h}\geq 0. $$

Because \(f\) is differentiable at \(c\), the difference quotient has a single two-sided limit as \(h\to 0\), namely \(f'(c)\). The quotients approaching from the right are nonpositive, so their limit is nonpositive. The quotients approaching from the left are nonnegative, so their limit is nonnegative. The same derivative must satisfy both conclusions. Therefore \(f'(c)\leq 0\) and \(f'(c)\geq 0\), which together give \(f'(c)=0\). For a local minimum, the inequalities reverse: right-hand quotients are nonnegative and left-hand quotients are nonpositive. Their common limit is again zero. This proves the lemma for either type of local extremum.

Proof of Rolle’s Theorem

Set \(k=f(a)=f(b)\). There are two cases. Keeping them separate is useful: the constant case already gives the conclusion, while the nonconstant case is where the Extreme Value Theorem identifies an interior extremum.

1
Handle the constant case.
If \(f(x)=k\) for every \(x\in[a,b]\), then \(f'(x)=0\) at every \(x\in(a,b)\). Since \(a<b\), the open interval contains points, so there is a point \(c\in(a,b)\) with \(f'(c)=0\).
2
Find an interior extreme in the nonconstant case.
If \(f\) is not constant, there is some \(x_0\in[a,b]\) for which \(f(x_0)\neq k\). Since the endpoint values both equal \(k\), this \(x_0\) must lie in \((a,b)\). If \(f(x_0)>k\), the attained global maximum is greater than \(k\), so it cannot occur at either endpoint. If \(f(x_0)<k\), the attained global minimum is less than \(k\), so it cannot occur at either endpoint. In either situation, an extreme occurs at some \(c\in(a,b)\).
3
Use differentiability at that point.
A global maximum or minimum on \([a,b]\) is also a local extremum at the interior point \(c\). The function is differentiable there by hypothesis. The lemma therefore gives \(f'(c)=0\).

The Extreme Value Theorem is applicable in the second step because \(f\) is continuous on \([a,b]\), and the interval is closed and bounded. The resulting extremum is interior because its value is strictly above or below the common endpoint value. This completes the proof in both cases.

Worked Example: A Minimum Between Equal Endpoint Values

Worked Example: A Minimum Between Equal Endpoint Values

Consider \(f(x)=(x-2)^2-1\) on \([1,3]\). First check the endpoint values:

$$ f(1)=(1-2)^2-1=1-1=0, \qquad f(3)=(3-2)^2-1=1-1=0. $$

The function is a polynomial, so it is continuous on \([1,3]\) and differentiable on \((1,3)\). The equal-endpoint condition holds. At the interior point \(x=2\),

$$ f(2)=(2-2)^2-1=-1, \qquad f'(x)=2(x-2), \qquad f'(2)=2(2-2)=0. $$

The point \(2\) is a minimum because \((x-2)^2\geq 0\), so \(f(x)\geq -1=f(2)\) for every \(x\). As a check, the derivative calculation directly gives the required zero, and the endpoint substitutions confirm the theorem’s equal-value condition.

Worked Example: A Maximum Above the Endpoint Values

Worked Example: A Maximum Above the Endpoint Values

Let \(g(x)=-(x-1)(x-3)\) on \([1,3]\). The endpoint values are

$$ g(1)=-(1-1)(1-3)=0, \qquad g(3)=-(3-1)(3-3)=0. $$

The function is a polynomial, so it satisfies the continuity and differentiability conditions. To identify an interior maximum, expand and complete the square:

$$ g(x)=-(x^2-4x+3) =-x^2+4x-3 =1-(x-2)^2. $$

Since \((x-2)^2\geq 0\), \(g(x)\leq 1\), with equality at \(x=2\). Thus \(x=2\) is an interior maximum. Differentiating and evaluating gives

$$ g'(x)=-2x+4, \qquad g'(2)=-2(2)+4=0. $$

Substitution into the original expression also checks the value: \(g(2)=-(2-1)(2-3)=1\). The maximum is strictly greater than the two endpoint values, and the derivative at its interior location is zero, as the proof predicts.

Worked Example: The Constant Case

Worked Example: The Constant Case

Take \(h(x)=5\) on \([-2,4]\). Its endpoint values agree:

$$ h(-2)=5, \qquad h(4)=5. $$

The function is continuous on the closed interval and differentiable on its interior. Its derivative is

$$ h'(x)=0 \qquad\text{for every }x\in(-2,4). $$

For example, choose the interior point \(c=0\). Then \(-2<0<4\) and \(h'(0)=0\). Direct substitution confirms the constant value \(h(0)=5\); differentiating confirms the zero derivative. This case explains why the proof must allow for a function with no single special interior maximum or minimum: every interior point is both a maximum and a minimum.

A Common Proof Error: Using Only One Side

The derivative at an interior extremum is a two-sided limit. Looking only at difference quotients from the right can establish at most a one-sided restriction; it cannot by itself show that the derivative equals zero. For example, \(q(x)=-x^2\) has a local maximum at \(x=0\), and

$$ \frac{q(h)-q(0)}{h} =\frac{-h^2-0}{h} =-h. $$

For \(h>0\), this quotient is negative. A mistaken argument might stop there and conclude that the derivative is negative. But as \(h\to 0^+\), \(-h\to 0\), not to a negative number. More importantly, for \(h<0\), the quotient \(-h\) is positive, and it also tends to zero. The two-sided limit is therefore

$$ q'(0)=\lim_{h\to 0}(-h)=0. $$

The correction is to use both signs of \(h\), as in the lemma’s proof. The interior condition matters for the same reason: both positive and negative small increments must remain in the domain around the point.

Why the Argument Matters

The proof identifies the distinct work done by each hypothesis. Continuity on the closed interval lets the Extreme Value Theorem produce an attained extreme. Equal endpoint values ensure that a nonconstant function must rise above or fall below that shared value somewhere in the interval, pushing an appropriate extreme into the interior. Differentiability at that interior point then turns the extremum into a zero derivative.

If any link in this chain is omitted, the conclusion has not yet been justified. In particular, the proof does not claim that every function with equal endpoint values has a horizontal tangent merely because its endpoints match. It establishes the guarantee under the stated continuity and differentiability conditions, and shows precisely how those conditions lead to the interior point.

Check Your Understanding

Use the proof’s cases and the interior-extremum lemma to answer these questions.

  1. Why does the Extreme Value Theorem apply to a function continuous on \([a,b]\)?
  2. In the nonconstant case, why must a point \(x_0\) with \(f(x_0)\neq f(a)\) lie in the open interval?
  3. Why does an attained maximum above the common endpoint value have to occur in the interior?
  4. For a differentiable function with a local maximum at \(c\), what sign does the difference quotient have when \(h>0\), and what sign does it have when \(h<0\)?
  5. Why is it not sufficient to use only the right-hand difference quotients to conclude that \(f'(c)=0\)?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon