Tutorials › Calculus I › Proof Problems Using Rolle’s Theorem

Mean Value Theorems · Tutorial 709 of 1495

Proof Problems Using Rolle’s Theorem

Use carefully chosen intervals and Rolle’s Theorem to prove results about derivative zeros, root counts, and constant functions.

Advanced 12 min read

What You'll Learn

  • State the continuity and differentiability conditions required for Rolle’s Theorem.
  • Prove Rolle’s Theorem using the extreme value theorem and Fermat’s theorem.
  • Find a derivative zero between equal-valued endpoints.
  • Use distinct roots to guarantee distinct zeros of the derivative.
  • Prove uniqueness of a root when the derivative has no zeros.
  • Use Rolle’s Theorem to show that a function with zero derivative throughout an interval is constant.

Why Rolle’s Theorem Is Useful in Proofs

Rolle’s Theorem gives a precise connection between the values of a function at two endpoints and the derivative somewhere between them. If the endpoint values agree, and the function behaves regularly throughout the interval, then its graph must have a horizontal tangent at an interior point.

That conclusion is useful well beyond locating a single derivative value. By choosing intervals between roots, we can force derivative zeros and obtain limits on how many roots a function can have. By applying the theorem to a suitably adjusted function, we can also prove that a function whose derivative vanishes everywhere must be constant.

Statement of Rolle’s Theorem

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

The hypotheses have separate roles. Continuity on the closed interval ensures that the function attains a maximum and a minimum. Differentiability is required at interior points, where the derivative conclusion is made. Equality of the endpoint values ensures that an interior extremum can be found unless the function is constant.

The theorem guarantees at least one such \(c\), not necessarily exactly one. It also does not say that every point in the interval has derivative zero.

Why the Theorem Holds

Here is a proof using two standard facts from calculus: a continuous function on a closed bounded interval attains a maximum and a minimum, and a differentiable function has derivative zero at an interior local maximum or minimum.

1
Check the constant case.
If \(f\) is constant on \([a,b]\), then \(f'(x)=0\) for every \(x\in(a,b)\). Since \(a<b\), the interval has interior points, so the conclusion holds.
2
Find attained extrema.
If \(f\) is not constant, the extreme value theorem gives points in \([a,b]\) where \(f\) attains its maximum and minimum. At least one of these values differs from the common endpoint value \(f(a)=f(b)\).
3
Locate an interior extremum.
If the maximum differs from the endpoint value, it cannot occur at either endpoint, since both endpoints have the same value. If instead the minimum differs from the endpoint value, it cannot occur at either endpoint. Thus, in either case, an extremum is attained at some \(c\in(a,b)\).
4
Apply Fermat’s theorem.
The function is differentiable at this interior extremum. Fermat’s theorem therefore gives \(f'(c)=0\), as required.

This proof also explains the theorem’s structure: equality at the endpoints alone is not enough. Continuity and differentiability are what allow the endpoint information to lead to an interior derivative conclusion.

Worked Example: Finding a Derivative Zero Between Equal Values

Worked Example: Finding a Derivative Zero Between Equal Values

Let \(f(x)=x^2-4\) on \([-2,2]\). Use Rolle’s Theorem to find a point where \(f'\) is zero, and verify the result.

First, \(f\) is a polynomial, so it is continuous on \([-2,2]\) and differentiable on \((-2,2)\). Its endpoint values are

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

The hypotheses of Rolle’s Theorem hold, so some \(c\in(-2,2)\) must satisfy \(f'(c)=0\). Differentiate:

$$ f'(x)=2x. $$

Solving \(2c=0\) gives \(c=0\). This point lies in the required open interval, since \(-2<0<2\). To check the conclusion, substitute it into the derivative:

$$ f'(0)=2(0)=0. $$

Thus \(c=0\) is the guaranteed interior derivative zero.

Using Roots to Force Derivative Zeros

A root of \(f\) is a point \(r\) where \(f(r)=0\). If \(f\) has two distinct roots \(r_1<r_2\), then its values at the endpoints of \([r_1,r_2]\) agree: both are zero. Provided \(f\) is continuous on this closed interval and differentiable on its interior, Rolle’s Theorem gives a derivative zero strictly between those roots.

Theorem: Suppose \(f\) is continuous on \([r_1,r_n]\) and differentiable on \((r_1,r_n)\), where \(r_1<r_2<\cdots<r_n\) are \(n\) distinct roots of \(f\). Then \(f'\) has at least \(n-1\) distinct zeros, one in each interval \((r_i,r_{i+1})\), for \(i=1,\ldots,n-1\).

For each adjacent pair of roots, Rolle’s Theorem applies because the function values at both endpoints are zero. The resulting derivative zero lies inside that particular interval. These intervals are disjoint, so the zeros obtained from different intervals must be distinct. This is why choosing intervals carefully matters.

Worked Example: Three Roots Force Two Derivative Zeros

Consider \(f(x)=x(x-1)(x-2)\). Find its roots and use Rolle’s Theorem to locate the zeros of \(f'\) between them.

The factors show that the roots are \(0\), \(1\), and \(2\). Since \(f\) is a polynomial, it is continuous and differentiable everywhere. Expand before differentiating:

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

Rolle’s Theorem guarantees one zero of \(f'\) in \((0,1)\) and another in \((1,2)\). To find them explicitly, solve the quadratic equation:

$$ 3x^2-6x+2=0, \qquad x=\frac{6\pm\sqrt{36-24}}{6} =1\pm\frac{\sqrt{3}}{3}. $$

Because \(0<\frac{\sqrt{3}}{3}<1\), the value \(1-\frac{\sqrt{3}}{3}\) lies in \((0,1)\), while \(1+\frac{\sqrt{3}}{3}\) lies in \((1,2)\). Check each by substitution. Writing \(s=\frac{\sqrt{3}}{3}\), we have \(s^2=\frac{1}{3}\), so

$$ f'(1\pm s) =3(1\pm s)^2-6(1\pm s)+2 =3(1\pm2s+s^2)-6\mp6s+2 =3+1+2-6\pm6s\mp6s =0. $$

The two computed derivative zeros are distinct and lie in the two separate intervals required by Rolle’s Theorem.

Root Counts and Uniqueness

The root-count result can be used in reverse as a contradiction argument. If a function has no derivative zeros in an interval, it cannot have two distinct roots there: two roots would force a derivative zero between them. More generally, if \(f'\) has at most \(m\) distinct zeros, then \(f\) has at most \(m+1\) distinct roots, provided the relevant continuity and differentiability conditions hold.

Worked Example: Proving a Root Is Unique

Show that \(f(x)=x^3+x-2\) has at most one real root, and check that \(x=1\) is its root.

Differentiate:

$$ f'(x)=3x^2+1. $$

For every real \(x\), \(x^2\ge 0\), so \(3x^2+1\ge 1>0\). Thus \(f'\) has no zeros. Suppose, for contradiction, that \(f\) had two distinct real roots \(r_1<r_2\). The polynomial is continuous on \([r_1,r_2]\), differentiable on \((r_1,r_2)\), and satisfies \(f(r_1)=f(r_2)=0\). Rolle’s Theorem would then give a point \(c\in(r_1,r_2)\) with \(f'(c)=0\), contradicting \(f'(x)>0\) for every real \(x\). Therefore \(f\) has at most one real root.

To verify the stated root, substitute \(x=1\):

$$ f(1)=1^3+1-2=1+1-2=0. $$

So \(1\) is a root, and the at-most-one result shows that it is the unique real root.

Proving a Function Is Constant

A particularly useful consequence of Rolle’s Theorem is that a function with zero derivative throughout an interval must be constant there. To prove it, compare the function values at any two points \(a<b\) in the interval. If those values differed, subtract the line joining the two endpoint values. The adjusted function would have equal endpoint values, so Rolle’s Theorem would force its derivative to vanish somewhere. That would force the original derivative to equal the nonzero slope between the two values, contradicting the assumption that the derivative is always zero.

Theorem: Let \(I\) be an interval, and let \(f\) be continuous on every closed subinterval of \(I\) and differentiable at every interior point of each such subinterval. If \(f'(x)=0\) for every interior point in \(I\), then \(f\) is constant on \(I\).

Worked Example: Zero Derivative Forces Equal Values

Suppose \(f\) is continuous on \([0,3]\), differentiable on \((0,3)\), and \(f'(x)=0\) for every \(x\in(0,3)\). Prove that \(f(0)=f(3)\).

Assume instead that \(f(0)\ne f(3)\). Define the slope between the endpoint values by

$$ m=\frac{f(3)-f(0)}{3-0} =\frac{f(3)-f(0)}{3}. $$

The assumption \(f(0)\ne f(3)\) implies \(m\ne 0\). Now define \(g(x)=f(x)-mx\) on \([0,3]\). This function is continuous on \([0,3]\) and differentiable on \((0,3)\), and its endpoint values agree:

$$ g(3)-g(0) =\bigl(f(3)-3m\bigr)-f(0) =f(3)-f(0)-3\left(\frac{f(3)-f(0)}{3}\right) =0. $$

Rolle’s Theorem gives some \(c\in(0,3)\) such that \(g'(c)=0\). But differentiating \(g(x)=f(x)-mx\) gives \(g'(x)=f'(x)-m\), and hence

$$ 0=g'(c)=f'(c)-m=0-m=-m. $$

This implies \(m=0\), contradicting \(m\ne 0\). Therefore the assumption \(f(0)\ne f(3)\) is false, and \(f(0)=f(3)\).

A Common Pitfall: Equal Endpoints Are Not Enough

A frequent error is to check \(f(a)=f(b)\) and immediately invoke Rolle’s Theorem. The theorem also requires continuity on the entire closed interval and differentiability on its interior. Here is an example that shows why endpoint equality alone does not justify the conclusion.

Worked Example: Checking the Hypotheses Before Applying Rolle

Define \(f\) on \([-1,1]\) by \(f(x)=1\) for \(x\ne 0\), and \(f(0)=0\). The endpoint values agree:

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

A tempting but invalid argument is: “The endpoint values are equal, so Rolle’s Theorem guarantees a point \(c\in(-1,1)\) with \(f'(c)=0\).” The hypothesis of continuity on \([-1,1]\) fails, because \(f(0)=0\) while \(f(x)=1\) for every \(x\ne0\). Thus Rolle’s Theorem cannot be applied. In this particular example \(f'(x)=0\) for \(x\ne0\), so its conclusion happens to hold; that does not make the attempted application valid.

For a sharper illustration, define \(h(x)=x\) when \(x<0\), and \(h(x)=x-2\) when \(x\ge0\), again on \([-1,1]\). Then

$$ h(-1)=-1, \qquad h(1)=1-2=-1. $$

The function is discontinuous at \(0\). At every interior point other than \(0\), its derivative is \(1\), and at \(0\) its derivative does not exist. There is therefore no interior point where its derivative is zero. Equal endpoint values, without the required regularity, do not guarantee Rolle’s conclusion.

A Reliable Proof Strategy

When a problem asks for a derivative zero, a root-count bound, or a constant-function conclusion, first identify the points that should be the endpoints of the interval. Then check the theorem’s hypotheses on that interval, rather than assuming they hold.

1
Choose the interval.
For a pair of roots or equal function values, use those points as endpoints. For a root-count argument, use adjacent roots to obtain disjoint intervals.
2
Verify the conditions.
Check continuity on the closed interval, differentiability on its interior, and equality of the endpoint values.
3
State the forced conclusion.
Write that Rolle’s Theorem gives a point strictly inside the chosen interval where the derivative is zero.
4
Use the conclusion.
Compare the forced derivative zero with the derivative information in the problem. A contradiction can establish uniqueness or rule out unequal function values.

The key is to make the interval do the work. Correctly chosen endpoints turn equality of function values into a guaranteed interior derivative zero; repeated across disjoint intervals, that simple step yields useful conclusions about roots and constant functions.

Check Your Understanding

For each question, identify the interval and the hypotheses that make the conclusion valid.

  1. If \(f\) is continuous on \([a,b]\), differentiable on \((a,b)\), and \(f(a)=f(b)\), what does Rolle’s Theorem guarantee?
  2. If a function has four distinct roots and satisfies the relevant regularity conditions between them, how many distinct derivative zeros are guaranteed?
  3. Why does the absence of derivative zeros imply that a function can have at most one root on an interval where Rolle’s Theorem applies?
  4. In the constant-function argument, why is it useful to subtract the line with slope \(\frac{f(b)-f(a)}{b-a}\)?
  5. For the function that equals \(1\) except at \(0\), where it equals \(0\), which hypothesis of Rolle’s Theorem fails on \([-1,1]\)?

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