Tutorials › AP Calculus › Rolle’s Theorem and Equal Endpoint Values

Mean and Extreme Value Theorems · Tutorial 334 of 999

Rolle's Theorem and Equal Endpoint Values

Use Rolle’s Theorem to show that a function with equal endpoint values has a horizontal tangent somewhere inside the interval.

Intermediate 9 min read

What You'll Learn

  • State the continuity, differentiability, and equal-endpoint conditions required by Rolle’s Theorem
  • Explain why an interior maximum or minimum leads to a zero derivative
  • Find all Rolle points in polynomial and trigonometric examples
  • Distinguish the theorem’s guarantee of at least one point from a claim of uniqueness
  • Recognize why equal endpoint values alone are not enough to apply the theorem

When Equal Endpoint Values Force a Horizontal Tangent

Suppose a function begins and ends at the same height over an interval. If its graph is continuous between those endpoints and differentiable at every interior point, then somewhere along the way its tangent must be horizontal. Rolle’s Theorem makes this intuitive idea precise.

The theorem is a special case of the relationship between a function’s overall change and its derivative. Its conclusion is an existence statement: at least one interior point has derivative zero. The hypotheses matter, and the conclusion does not promise that the point is unique.

Geometric idea: If a smooth, continuous graph starts and ends at the same height, then it must either remain level or reach an interior high or low point. At an interior differentiable extremum, the derivative is zero.

Statement of Rolle’s Theorem

Theorem: Let \(f\) be continuous on the closed interval \([a,b]\) and differentiable on the open interval \((a,b)\), where \(a<b\). If \(f(a)=f(b)\), then there is at least one number \(c\in(a,b)\) such that \(f'(c)=0\).

Each condition has a specific role. 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\). Finally, the endpoint values must be equal. When all three conditions hold, the conclusion concerns a point strictly inside the interval.

A value \(c\) satisfying \(f'(c)=0\) is often called a Rolle point for this function and interval. Since the derivative gives the tangent’s slope, \(f'(c)=0\) means the tangent line at \(x=c\) is horizontal.

Why the Theorem Is True

The proof uses two standard facts. The Extreme Value Theorem says that a function continuous on a closed, bounded interval attains an absolute maximum and an absolute minimum there. Fermat’s theorem says that if a function has a local maximum or minimum at an interior point and is differentiable there, its derivative at that point is zero.

Here is the reason for Fermat’s theorem. Suppose \(f\) has a local maximum at an interior point \(c\) and is differentiable there. For \(x\) sufficiently close to \(c\), \(f(x)\leq f(c)\). For \(x>c\), the difference quotient \(\frac{f(x)-f(c)}{x-c}\) is nonpositive. For \(x<c\), it is nonnegative. Since the derivative exists, the left- and right-hand limits of these quotients are equal. The common limit must therefore be both nonnegative and nonpositive, so it is zero. A local minimum follows by reversing the inequalities.

1
Find an absolute extremum.
Continuity on \([a,b]\) means the Extreme Value Theorem guarantees that \(f\) attains both an absolute maximum and an absolute minimum on that interval.
2
Handle the constant case.
If \(f\) is constant on \([a,b]\), its derivative is zero at every point of \((a,b)\), so the conclusion holds.
3
Locate an interior extremum.
If \(f\) is not constant, there is some point where its value differs from the common endpoint value. If that value is larger, an absolute maximum occurs in the interior; if it is smaller, an absolute minimum occurs in the interior.
4
Use the zero-derivative condition.
At the interior extremum, \(f\) is differentiable, so Fermat’s theorem gives \(f'(c)=0\) for an interior point \(c\).

This proves Rolle’s Theorem. In the nonconstant case, the key point is that the common endpoint value cannot be both the absolute maximum and the absolute minimum: the function takes some other value inside the interval. An extremum with that more extreme value cannot occur at either endpoint, so it must occur inside.

Finding a Rolle Point for a Quadratic

Worked Example: A Quadratic with Equal Endpoint Values

Apply Rolle’s Theorem to \(f(x)=x^2-4x+3\) on \([0,4]\), and find the point or points it guarantees.

First check continuity and differentiability. A polynomial is continuous and differentiable for every real \(x\), so the required conditions hold on \([0,4]\) and \((0,4)\).

Now evaluate the endpoints:

$$ f(0)=0^2-4(0)+3=3, \qquad f(4)=4^2-4(4)+3=16-16+3=3. $$

The endpoint values are equal, so Rolle’s Theorem guarantees at least one \(c\in(0,4)\) with \(f'(c)=0\). Differentiate and solve:

$$ f'(x)=2x-4, \qquad 2c-4=0, \qquad 2c=4, \qquad c=2. $$

The value \(2\) is in \((0,4)\). Check the derivative and the endpoint values:

$$ f'(2)=2(2)-4=0, \qquad f(0)=f(4)=3. $$

Thus the Rolle point is \(c=2\). In this example the derivative equation has just one solution in the interval, but the theorem itself guarantees at least one, not exactly one.

Finding a Rolle Point for a Trigonometric Function

Worked Example: Sine on a Half-Cycle

Apply Rolle’s Theorem to \(f(x)=\sin x\) on \([0,\pi]\).

The sine function is continuous on \([0,\pi]\) and differentiable on \((0,\pi)\). Its endpoint values are

$$ f(0)=\sin 0=0, \qquad f(\pi)=\sin \pi=0. $$

Since the endpoints have equal values, Rolle’s Theorem guarantees an interior point \(c\) such that \(f'(c)=0\). Differentiate and solve:

$$ f'(x)=\cos x, \qquad \cos c=0. $$

The solutions of \(\cos c=0\) in \((0,\pi)\) give \(c=\frac{\pi}{2}\). This value is strictly between the endpoints. Check:

$$ f'\left(\frac{\pi}{2}\right) = \cos\left(\frac{\pi}{2}\right)=0, \qquad f(0)=f(\pi)=0. $$

Therefore \(c=\frac{\pi}{2}\) is the Rolle point in this interval.

Solving for More Than One Rolle Point

Worked Example: A Cubic with Two Interior Points

Apply Rolle’s Theorem to \(f(x)=x^3-3x^2+2x\) on \([0,2]\), and find all points in \((0,2)\) where the derivative is zero.

As a polynomial, \(f\) is continuous on \([0,2]\) and differentiable on \((0,2)\). Evaluate both endpoints:

$$ f(0)=0^3-3(0)^2+2(0)=0, \qquad f(2)=2^3-3(2)^2+2(2)=8-12+4=0. $$

The hypotheses hold, so the theorem guarantees at least one zero of the derivative inside \((0,2)\). Differentiate and solve the derivative equation:

$$ f'(x)=3x^2-6x+2, \qquad 3c^2-6c+2=0. $$

Using the quadratic formula,

$$ c=\frac{6\pm\sqrt{(-6)^2-4(3)(2)}}{2(3)} =\frac{6\pm\sqrt{36-24}}{6} =\frac{6\pm\sqrt{12}}{6} =1\pm\frac{\sqrt{3}}{3}. $$

Both solutions lie in \((0,2)\): since \(0<\frac{\sqrt{3}}{3}<1\), the smaller is between \(0\) and \(1\), and the larger is between \(1\) and \(2\). Check that each makes the derivative zero. Write \(c=1\pm\frac{1}{\sqrt{3}}\):

$$ \begin{aligned} f'(c) &=3\left(1\pm\frac{1}{\sqrt{3}}\right)^2 -6\left(1\pm\frac{1}{\sqrt{3}}\right)+2\\ &=3\left(1\pm\frac{2}{\sqrt{3}}+\frac{1}{3}\right) -6\mp\frac{6}{\sqrt{3}}+2\\ &=3\pm\frac{6}{\sqrt{3}}+1-6\mp\frac{6}{\sqrt{3}}+2\\ &=0. \end{aligned} $$

Thus both \(1-\frac{\sqrt{3}}{3}\) and \(1+\frac{\sqrt{3}}{3}\) are Rolle points. This example shows why it is important to solve the derivative equation fully: the theorem’s guarantee need not correspond to only one point.

What the Conclusion Does—and Does Not—Say

The equation \(f'(c)=0\) identifies an interior point where the graph has a horizontal tangent. It does not say that the function is zero at \(c\). For example, in the quadratic example, \(f(2)=-1\), even though \(f'(2)=0\). The theorem concerns the derivative, not the function’s value at the interior point.

Nor does the conclusion say that the function is constant or that the horizontal tangent occurs at the midpoint. Its location depends on the function. To find candidate points in a particular problem, differentiate and solve \(f'(x)=0\), then retain only solutions in the open interval \((a,b)\).

Rolle’s Theorem is useful because it turns information about endpoint values into a conclusion about an interior rate of change. Equal endpoint values mean the total change across the interval is zero; under the theorem’s smoothness conditions, the derivative must be zero somewhere inside.

A Common Pitfall: Equal Endpoints Are Not Enough

Worked Example: Why Differentiability Matters

Consider \(f(x)=|x|\) on \([-1,1]\). Its endpoint values are equal:

$$ f(-1)=1, \qquad f(1)=1. $$

It would be incorrect to conclude from these equal values alone that Rolle’s Theorem applies. The function is continuous on \([-1,1]\), but it is not differentiable at \(x=0\), which lies inside the interval.

In fact, for \(x<0\), \(f'(x)=-1\), and for \(x>0\), \(f'(x)=1\). At zero, the left-hand difference quotient is \(-1\) and the right-hand difference quotient is \(1\), so \(f'(0)\) does not exist. There is no interior point where the derivative is zero.

The correction is to check every hypothesis before applying the theorem. Equal endpoint values and continuity do not replace the requirement of differentiability throughout the open interval.

Check Your Understanding

For each question, check the hypotheses before using the theorem, and give exact values where possible.

  1. State all three hypotheses of Rolle’s Theorem and its conclusion.
  2. For \(f(x)=x^2-6x+8\) on \([2,4]\), verify the endpoint condition and find the Rolle point.
  3. For \(f(x)=\cos x\) on \([-\pi,\pi]\), find the point or points in the open interval where the derivative is zero.
  4. Why does \(f(x)=|x|\) on \([-1,1]\) not satisfy all the hypotheses, even though its endpoint values agree?
  5. Does Rolle’s Theorem guarantee exactly one point with derivative zero? Explain what it guarantees instead.

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: 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