Applications of Differentiation — Topic 06

Rolle's Theorem

Every smooth curve that starts and ends at the same height must have at least one horizontal tangent somewhere in between. This deceptively simple observation (known as Rolle's Theorem) is the geometric heart of differential calculus and the logical foundation of the Mean Value Theorem.

3Conditions
10Worked Examples
3Counterexamples
10Quiz Questions
Share this page
On This Page
  1. The Intuitive Idea
  2. Theorem Statement, All Three Conditions
  3. Geometric Interpretation
  4. Proof of Rolle's Theorem
  5. 10 Worked Examples
  6. Counterexamples: When a Condition Fails
  7. Relationship to the Mean Value Theorem
  8. Using Rolle's Theorem to Count Roots
  9. Common Mistakes
  10. 10-Question Quiz

§ 01The Intuitive Idea

Imagine throwing a ball straight up into the air and catching it at exactly the same height you released it. At some point during the flight, the ball was neither going up nor going down, it was momentarily stationary at the peak. Its velocity was zero. Rolle's Theorem is the mathematical statement of exactly this observation.

More precisely: if a smooth, unbroken curve begins and ends at the same height, it cannot simply travel from one endpoint to the other without ever having a horizontal tangent. It must either rise to a peak or fall to a trough, or do both, and at any turning point the tangent is exactly horizontal.

This idea was first stated by Michel Rolle in 1691, making it one of the oldest theorems in calculus. Ironically, Rolle himself was a vocal critic of infinitesimal calculus at the time, and he presented the result using polynomial methods rather than derivatives. The modern formulation in terms of differentiability came later, as calculus was placed on rigorous foundations. Today, Rolle's Theorem is primarily studied as a stepping stone to the Mean Value Theorem: but it is also a powerful tool in its own right for proving that functions have at most one root in an interval, and for locating hidden critical points.

Historical Note — Michel Rolle (1652–1719) Rolle published his theorem in 1691 in a treatise on algebra, proving it for polynomials using purely algebraic reasoning. He did not use derivatives. It was only in the 19th century, when Cauchy and others reformulated calculus rigorously, that the theorem was stated in the general form we use today. Rolle is also remembered for introducing the notation n√x (the nth-root symbol) and for pioneering the cascade method for isolating roots of polynomials — an early precursor to numerical root-finding.

§ 02Theorem Statement — All Three Conditions

Rolle's Theorem has exactly three hypotheses. All three must hold before the conclusion can be claimed. The theorem is an existence theorem, it guarantees that at least one point c with the required property exists, but it does not say how many there are or where they are located.

Theorem Rolle's Theorem
Hypotheses — all three must hold
  • f is continuous on the closed interval [a, b]
  • f is differentiable on the open interval (a, b)
  • f(a) = f(b)    (the function returns to its starting value at the right endpoint)
Conclusion
There exists at least one c ∈ (a, b) such that f′(c) = 0.

In geometric terms: there is at least one point on the curve between x = a and x = b where the tangent line is perfectly horizontal.

The three conditions each play a distinct role in forcing the conclusion. Notice the careful asymmetry: continuity is required on the closed interval [a, b] (including the endpoints), while differentiability is only required on the open interval (a, b) (excluding the endpoints). This is deliberate: the function is allowed to have corners or cusps at the endpoints a and b, but must be smooth throughout the interior. Differentiability at the endpoints themselves is not needed and is not assumed.

I
Continuous on [a, b]
No gaps, jumps, or removable holes between a and b, including at the endpoints. The curve is one unbroken piece. Without this, the curve could jump from one height to another without ever actually being at the intermediate height.
II
Differentiable on (a, b)
No sharp corners or cusps in the interior. The derivative f′(x) must exist at every x strictly between a and b. Without this, the curve could have a sharp peak or trough where the tangent slope is undefined rather than zero.
III
f(a) = f(b)
The curve starts and ends at the same height. Without this, the average rate of change is non-zero and there is no reason the instantaneous rate of change must ever be zero. This condition is what distinguishes Rolle from the more general MVT.

§ 03Geometric Interpretation

The geometric picture is as clear as a theorem can be. Draw any smooth curve from the point (a, k) to the point (b, k), both at the same height k. The curve must turn around at least once as it moves from one endpoint to the other. At every turning point, the tangent is horizontal. Rolle's Theorem guarantees at least one such turning point exists.

Rolle's Theorem — Three Geometric Scenarios
ONE PEAK — ONE c a b c f′(c)=0 f(a) = f(b) TWO PEAKS — TWO c a b c₁ c₂ ≥ 1 c guaranteed; often more CONSTANT — EVERY x a b f ′= 0 everywhere Every c ∈ (a,b) works
Left: one peak — Rolle's Theorem guarantees the single c at the top. Centre: two peaks plus a trough — three points where f′ = 0 (the theorem guarantees at least one). Right: constant function — f′ = 0 everywhere on (a, b), so every interior point qualifies as c.

The theorem says at least one such c exists, but there may be many. For a function that oscillates several times between two equal endpoints, every local maximum and every local minimum in the interior provides a valid c. The theorem makes no claim about uniqueness, that is a separate question to investigate for each specific function.

§ 04Proof of Rolle's Theorem

The proof uses two foundational results: the Extreme Value Theorem (a continuous function on a closed bounded interval attains its absolute maximum and minimum) and Fermat's Theorem (if f has a local extremum at an interior point c and f′(c) exists, then f′(c) = 0).

Since f is continuous on [a, b], the Extreme Value Theorem guarantees that f attains its absolute maximum M and absolute minimum m on [a, b]. We consider two cases.

Case 1 — Both extrema occur at the endpoints

If both the maximum M and the minimum m are attained only at the endpoints a and b, then since f(a) = f(b) we have M = m = f(a) = f(b). This means f is constant on [a, b]: f(x) = f(a) for all x ∈ [a, b]. Therefore f′(x) = 0 for all x ∈ (a, b), and any c ∈ (a, b) works.

Case 2 — At least one extremum occurs at an interior point

If either the maximum or the minimum is attained at some interior point c ∈ (a, b), then f has a local extremum at c. Since f is differentiable on (a, b), f′(c) exists. By Fermat's Theorem, f′(c) = 0. This c is the guaranteed point in the conclusion. ∎

The elegance of this proof lies in its case structure. The first case handles the trivial situation where the function is flat; the second case captures every non-trivial curve by using Fermat's observation that a smooth local extremum always has a horizontal tangent. Together, the two cases are exhaustive and the proof is complete.

Why Open vs Closed Interval Matters in the Proof Fermat's Theorem applies only to interior local extrema — points strictly inside the domain. If the maximum occurred only at an endpoint, Fermat's Theorem would not apply because the endpoint is not an interior point of (a, b). This is why Case 1 handles the endpoint-only situation separately. The open interval (a, b) in the differentiability hypothesis is precisely what allows Fermat's Theorem to be invoked in Case 2.
♦   ♦   ♦

§ 0510 Worked Examples

Each example follows the same four-step procedure: verify all three conditions, differentiate, solve f′(c) = 0, and confirm that every solution lies in the open interval (a, b).

Example 01 f(x) = x² − 4x + 3 on [1, 3]
Conditions

Polynomial, continuous and differentiable everywhere. f(1) = 1 − 4 + 3 = 0. f(3) = 9 − 12 + 3 = 0. f(1) = f(3). ✓ All three conditions hold.

Differentiate
f′(x) = 2x − 4 = 0  ⟹  x = 2
Verify c

c = 2 ∈ (1, 3) ✓. This is the vertex of the parabola, sitting symmetrically between the two roots.

Result
c = 2.   f(2) = 4 − 8 + 3 = −1. The horizontal tangent occurs at the minimum (2, −1).
Example 02 f(x) = sin x on [0, π]
Conditions

sin x is continuous and differentiable everywhere. f(0) = 0, f(π) = 0. ✓

Differentiate
f′(x) = cos x = 0  ⟹  x = π/2
Verify c

c = π/2 ≈ 1.571 ∈ (0, π) ✓. This is the maximum of the sine curve on this interval.

Result
c = π/2.   f(π/2) = 1. The horizontal tangent is at the peak (π/2, 1).
Example 03 f(x) = x³ − x on [−1, 1]
Conditions

Polynomial. f(−1) = −1 + 1 = 0. f(1) = 1 − 1 = 0. f(−1) = f(1) = 0. ✓

Differentiate
f′(x) = 3x² − 1 = 0  ⟹  x² = 1/3  ⟹  x = ±1/√3
Verify c

Both 1/√3 ≈ 0.577 and −1/√3 ≈ −0.577 lie in (−1, 1). ✓ Two valid values of c.

Result
c = ±1/√3 = ±√3/3 ≈ ±0.577. Two horizontal tangents — one at the local max and one at the local min.
Example 04 f(x) = x⁴ − 2x² on [−√2, √2]
Conditions

Polynomial. f(−√2) = 4 − 4 = 0. f(√2) = 4 − 4 = 0. ✓

Differentiate
f′(x) = 4x³ − 4x = 4x(x²−1) = 4x(x−1)(x+1)

f′ = 0 at x = −1, 0, 1.

Verify c

All three (x = −1, 0, 1) lie in (−√2, √2) ≈ (−1.414, 1.414). ✓ Three valid c values.

Result
c ∈ {−1, 0, 1}. Three horizontal tangents: two local minima at ±1 and a local maximum at 0.
Example 05 f(x) = cos(2x) on [0, π]
Conditions

cos(2x) is continuous and differentiable everywhere. f(0) = cos 0 = 1. f(π) = cos 2π = 1. f(0) = f(π). ✓

Differentiate
f′(x) = −2 sin(2x) = 0  ⟹  2x = 0, π, 2π

x = 0, π/2, π. Only x = π/2 is strictly inside (0, π).

Result
c = π/2.   f(π/2) = cos π = −1. The minimum of cos(2x) on this interval.
Example 06 f(x) = x² − 6x + 8 on [2, 4]
Conditions

Polynomial. f(2) = 4 − 12 + 8 = 0. f(4) = 16 − 24 + 8 = 0. ✓

Differentiate
f′(x) = 2x − 6 = 0  ⟹  x = 3
Verify c

c = 3 ∈ (2, 4) ✓. The midpoint of the interval, as always with a symmetric quadratic.

Result
c = 3.  f(3) = 9 − 18 + 8 = −1. Minimum at (3, −1).
Example 07 f(x) = e^(x²) − e on [−1, 1]  (where e = 2.718…)
Conditions

Continuous and differentiable (composition of exponential and polynomial). f(−1) = e¹ − e = 0. f(1) = e¹ − e = 0. ✓

Differentiate
f′(x) = 2x · e^(x²) = 0  ⟹  x = 0
Verify c

c = 0 ∈ (−1, 1) ✓. By even symmetry this was expected.

Result
c = 0.  f(0) = e⁰ − e = 1 − e ≈ −1.718. Global minimum of e^(x²) − e on [−1, 1].
Example 08 f(x) = x(x − 1)(x − 2) on [0, 2]
Conditions

Polynomial. f(0) = 0. f(2) = 2(1)(0) = 0. f(0) = f(2). ✓

Expand & differentiate
f(x) = x³ − 3x² + 2x f′(x) = 3x² − 6x + 2 = 0 x = (6 ± √(36−24))/6 = (6 ± √12)/6 = 1 ± 1/√3
Verify c

c₁ = 1 − 1/√3 ≈ 0.423 ∈ (0, 2) ✓

c₂ = 1 + 1/√3 ≈ 1.577 ∈ (0, 2) ✓

Result
Two values: c = 1 ± 1/√3 ≈ 0.423 and 1.577. One is a local max, the other a local min.
Example 09 f(x) = sin²x − cos²x on [0, π]
Simplify

f(x) = sin²x − cos²x = −cos(2x) [by double-angle identity]. So f(0) = −cos 0 = −1. f(π) = −cos(2π) = −1. f(0) = f(π). ✓

Differentiate
f′(x) = 2sin(2x) = 0  ⟹  2x = 0, π, 2π  ⟹  x = 0, π/2, π

Only x = π/2 is strictly interior.

Result
c = π/2.  f(π/2) = −cos π = 1. Maximum of the function on [0, π].
Example 10 f(x) = (x − 1)(x − 3)² on [1, 3] — double root case
Conditions

Polynomial. f(1) = 0 · 4 = 0. f(3) = 2 · 0 = 0. f(1) = f(3). ✓

Differentiate
f′(x) = (x−3)² + (x−1)·2(x−3) = (x−3)[(x−3)+2(x−1)] = (x−3)(3x−5) = 0

x = 3 (endpoint, excluded) or x = 5/3.

Verify c

c = 5/3 ≈ 1.667 ∈ (1, 3) ✓. x = 3 is excluded because it is an endpoint, not in the open interval.

Result
c = 5/3.  f(5/3) = (5/3 − 1)(5/3 − 3)² = (2/3)(−4/3)² = (2/3)(16/9) = 32/27 ≈ 1.185.

§ 06Counterexamples — When a Condition Fails

The conditions of Rolle's Theorem are not decorative, each one is genuinely necessary. When any single condition is violated, it is possible to construct a function on [a, b] with f(a) = f(b) and yet no c where f′(c) = 0. The counterexamples below illustrate exactly what can go wrong.

Condition I Fails — Discontinuous
Jump discontinuity at an interior point
f(x) = { 0 if x ∈ [0,1), 1 if x = 1 } on [0, 1]
f(0) = 0, f(1) = 1. Actually f(0) ≠ f(1) here, but consider the Heaviside-style step: f(0) = f(1) = 0 but f jumps to 1 inside the interval. The curve teleports from height 0 to height 1 and back without having any tangent — let alone a horizontal one. No c with f′(c) = 0 exists in any neighbourhood of the jump. Continuity prevents this teleportation.
Condition II Fails — Corner
f(x) = |x| on [−1, 1]
f(−1) = 1 = f(1), but f is not differentiable at x = 0
f(−1) = f(1) = 1 ✓. f is continuous everywhere ✓. However, f is not differentiable at x = 0 (it has a sharp corner there). Rolle's Theorem does not apply. Indeed, f′(x) = −1 for x < 0 and f′(x) = +1 for x > 0 — f′ is never zero anywhere it is defined. No horizontal tangent exists. The corner "hides" what would otherwise be a minimum.
Condition III Fails — Unequal Endpoints
f(x) = x on [0, 1]
f(0) = 0 ≠ 1 = f(1)
f is continuous and differentiable everywhere ✓✓. But f(0) ≠ f(1). The average rate of change is (1−0)/(1−0) = 1, so the MVT (not Rolle) would give f′(c) = 1 for some c. But Rolle requires f′(c) = 0, and f′(x) = 1 everywhere — it is never zero. Without the equal endpoints condition, there is simply no reason the derivative must hit zero.
The Conditions Are Sufficient, Not Necessary Rolle's Theorem says: if all three conditions hold, then the conclusion holds. It does not say the conclusion fails whenever a condition is violated. A function might fail one condition and still happen to have f′(c) = 0 somewhere — purely by coincidence. You cannot cite Rolle's Theorem in that case, but the zero of the derivative may still exist. The theorem is a one-way guarantee: satisfied conditions → guaranteed conclusion. Failed conditions → no guarantee (but no prohibition either).

§ 07Relationship to the Mean Value Theorem

Rolle's Theorem and the Mean Value Theorem are not two separate results, they are the same geometric idea at two levels of generality. Understanding this connection clarifies both theorems.

FeatureRolle's TheoremMean Value Theorem
Conditions on fContinuous on [a,b], differentiable on (a,b)Continuous on [a,b], differentiable on (a,b)
Endpoint conditionf(a) = f(b) (equal heights)No restriction on f(a), f(b)
Conclusion∃ c ∈ (a,b) with f′(c) = 0∃ c ∈ (a,b) with f′(c) = [f(b)−f(a)]/(b−a)
Geometric meaningTangent is horizontal somewhereTangent is parallel to the secant somewhere
Logical relationshipSpecial case of the MVT (when average slope = 0)Proved by reducing to Rolle's Theorem

The proof of the MVT literally uses Rolle's Theorem as its key step: construct the auxiliary function h(x) = f(x) − L(x), where L(x) is the secant line. Then h(a) = h(b) = 0, so Rolle's Theorem applies to h, giving a c where h′(c) = 0. Computing h′(c) then yields the MVT conclusion. Rolle's Theorem is therefore not just historically prior: it is logically prior, serving as the foundation on which the MVT is built.

Rolle as a Special Case of the MVT
MVT:   f′(c) = [f(b) − f(a)] / (b − a)
When f(a) = f(b), the right side equals 0/( b − a) = 0.
So f′(c) = 0 — which is exactly Rolle's conclusion.
Rolle's Theorem is the Mean Value Theorem with a zero numerator.

§ 08Using Rolle's Theorem to Count Roots

One of the most powerful practical applications of Rolle's Theorem is proving that a function has exactly one root in an interval: or more generally, bounding the number of roots. The argument is a classic combination of the Intermediate Value Theorem (to prove existence) and Rolle's Theorem (to prove uniqueness).

The Root-Counting Strategy

To show f has at most one root in [a, b]: Suppose f had two distinct roots r₁ < r₂. Then f(r₁) = f(r₂) = 0. By Rolle's Theorem, f′(c) = 0 for some c ∈ (r₁, r₂). If you can prove f′(x) ≠ 0 on the relevant interval, you have a contradiction: so f cannot have two roots.

To show f has exactly one root: Use the Intermediate Value Theorem to prove existence (find x₁ where f < 0 and x₂ where f > 0), then use the Rolle's argument above to prove uniqueness.

Application Prove that f(x) = x³ + 3x − 1 has exactly one real root
Existence

f(0) = −1 < 0 and f(1) = 1 + 3 − 1 = 3 > 0. By the Intermediate Value Theorem, f has at least one root in (0, 1).

Uniqueness

Suppose f has two distinct roots r₁ < r₂. Then f(r₁) = f(r₂) = 0. By Rolle's Theorem, there exists c ∈ (r₁, r₂) with f′(c) = 0.

f′(x) = 3x² + 3 = 3(x² + 1) ≥ 3 > 0  for all x

f′ is strictly positive everywhere: it can never be zero. This contradicts f′(c) = 0. Therefore f cannot have two roots.

Conclusion
f(x) = x³ + 3x − 1 has exactly one real root, located in (0, 1). ∎

§ 09Common Mistakes

Mistake 1
Forgetting to verify all three conditions
Students often check f(a) = f(b) and immediately apply Rolle's Theorem without verifying continuity and differentiability. For piecewise functions, absolute value functions, or rational functions, one of these can fail. Always confirm all three explicitly, especially for non-polynomial functions.
Mistake 2
Reporting c = a or c = b as the answer
The conclusion guarantees c strictly inside the open interval (a, b) — not at the endpoints. If f′(a) = 0, that is irrelevant to Rolle's Theorem. Similarly, if solving f′(x) = 0 produces x = b as a solution, that value is excluded. Only values where a < c < b count.
Mistake 3
Confusing "f′(c) = 0" with "local maximum or minimum"
Rolle's Theorem says f′(c) = 0 — a horizontal tangent. This is a necessary condition for a local extremum, but not sufficient. The point c could be a local max, a local min, or a saddle point (horizontal inflection). Do not automatically label the guaranteed c as a maximum or minimum without additional analysis.
Mistake 4
Thinking Rolle's Theorem applies only to polynomials
Rolle's Theorem applies to any function satisfying the three conditions — trig, exponential, logarithmic, piecewise, or mixed. Polynomials are the easiest case because their continuity and differentiability are automatic, but the theorem is far more broadly applicable. Always start from the conditions, not from the function type.
Mistake 5
Assuming exactly one c must exist
The theorem guarantees at least one c. There may be many — one for each local extremum in the interior. Never state "there is exactly one c" based solely on Rolle's Theorem. Uniqueness of c is a separate question that requires further analysis of f′.
Mistake 6
Using Rolle when the endpoints are not equal
When f(a) ≠ f(b), the correct tool is the Mean Value Theorem, not Rolle's. The MVT gives f′(c) = [f(b) − f(a)]/(b − a), which is the average rate of change. Rolle is the special case where this average is zero. Applying Rolle when f(a) ≠ f(b) is simply incorrect — the third condition fails.

§ 1010-Question Quiz

Questions cover all three conditions, finding c, counterexamples, the root-counting technique, and the relationship to the MVT.

§ 11Continue the Applications Series

Cookie Settings