Tutorials › Calculus I › Counterexamples When Theorem Hypotheses Fail

Mean Value Theorems · Tutorial 686 of 1495

Counterexamples When Theorem Hypotheses Fail

See why the continuity and differentiability hypotheses matter by testing what can happen when one of them fails.

Advanced 9 min read

What You'll Learn

  • State the hypotheses and conclusions of Rolle’s Theorem and the Mean Value Theorem.
  • Test endpoint and interior discontinuities against the conclusions of each theorem.
  • Check how a corner can prevent either theorem’s conclusion from holding.
  • Verify counterexamples by computing endpoint values, secant slopes, and derivatives.
  • Distinguish a failed hypothesis from a conclusion that must fail.

Why Test What Happens When a Hypothesis Fails?

Rolle’s Theorem and the Mean Value Theorem guarantee that a derivative takes a specified value somewhere inside an interval. Their hypotheses are essential to those guarantees: continuity on the closed interval and differentiability on its interior are what allow the conclusions to be established.

A useful way to understand a theorem’s conditions is to remove one condition and look for a function whose conclusion fails. Such a function is a counterexample to the claim that the conclusion follows without that condition. It does not show that the theorem is false; it shows why the theorem cannot be applied when a required hypothesis is missing.

Key distinction: If a hypothesis fails, the theorem gives no guarantee. The conclusion may still happen to hold, but it need not hold. A counterexample demonstrates a case where it does not.

The Guarantees Being Tested

Rolle’s Theorem states that if \(f\) is continuous on \([a,b]\), differentiable on \((a,b)\), and \(f(a)=f(b)\), then there is some \(c\in(a,b)\) such that \(f'(c)=0\).

The Mean Value Theorem states that if \(f\) is continuous on \([a,b]\) and differentiable on \((a,b)\), then there is some \(c\in(a,b)\) such that

$$ f'(c)=\frac{f(b)-f(a)}{b-a}. $$

For the Mean Value Theorem, the right-hand side is the slope of the secant line through the endpoint values. For Rolle’s Theorem, the endpoint values agree, so that secant slope is zero. The examples below check whether the conclusion actually occurs after one of the required conditions is removed.

Why the Hypotheses Enter the Argument

The link between the two theorems can be seen by subtracting the secant line from \(f\). Suppose first that \(f\) satisfies the Mean Value Theorem’s hypotheses, and define

$$ m=\frac{f(b)-f(a)}{b-a}, \qquad g(x)=f(x)-\bigl(f(a)+m(x-a)\bigr). $$

The subtracted expression is the line through \((a,f(a))\) and \((b,f(b))\). Substitution gives \(g(a)=0\). Also,

$$ g(b)=f(b)-\bigl(f(a)+m(b-a)\bigr) =f(b)-\bigl(f(a)+f(b)-f(a)\bigr)=0. $$

Since \(f\) is continuous on \([a,b]\) and differentiable on \((a,b)\), so is \(g\). Rolle’s Theorem therefore gives an interior point \(c\) with \(g'(c)=0\). Differentiating the definition of \(g\) yields \(g'(x)=f'(x)-m\), so \(f'(c)=m\). This derivation shows where the conditions are used: without continuity or differentiability, the Rolle step may not be available.

When an Endpoint Is Discontinuous

Worked Example: Equal Endpoint Values but No Zero Derivative

Define \(f\) on \([0,1]\) by

$$ f(0)=1, \qquad f(x)=x\quad\text{for }0<x\leq 1. $$

The endpoint values are \(f(0)=1\) and \(f(1)=1\), so the equal-endpoint condition in Rolle’s Theorem is satisfied. For every \(x\in(0,1)\), the function is \(f(x)=x\), and hence \(f'(x)=1\). There is no \(c\in(0,1)\) for which \(f'(c)=0\).

The missing hypothesis is continuity at the left endpoint. In fact, \(\lim_{x\to 0^+}f(x)=0\), whereas \(f(0)=1\). Thus \(f\) is not continuous on \([0,1]\). The equal endpoint values alone do not guarantee a point with zero derivative.

Check: the endpoint values are both \(1\), and the derivative at every interior point is \(1\), so the claimed Rolle conclusion really does fail.

Worked Example: The Mean Value Conclusion Fails at an Endpoint Discontinuity

Define \(f\) on \([0,1]\) by

$$ f(0)=2, \qquad f(x)=x\quad\text{for }0<x\leq 1. $$

The secant slope calculated from the assigned endpoint values is

$$ \frac{f(1)-f(0)}{1-0} =\frac{1-2}{1} =-1. $$

For every \(x\in(0,1)\), \(f'(x)=1\). Therefore there is no interior point \(c\) with \(f'(c)=-1\), as the Mean Value Theorem’s conclusion would require. Here, too, continuity fails at \(0\): the right-hand limit is \(0\), not the assigned value \(2\).

Check: the secant slope is \(-1\), while every interior derivative is \(1\). The discrepancy is exactly the failure the theorem’s conclusion would rule out under its hypotheses.

When the Discontinuity Is Inside the Interval

Worked Example: An Interior Jump with the Wrong Secant Slope

Define \(f\) on \([0,1]\) by

$$ f(x)= \begin{cases} x, & 0\leq x<\frac12,\\ x+1, & \frac12\leq x\leq 1. \end{cases} $$

The endpoint values are \(f(0)=0\) and \(f(1)=2\), so the secant slope is

$$ \frac{f(1)-f(0)}{1-0}=\frac{2-0}{1}=2. $$

On the open interval to the left of \(1/2\), \(f'(x)=1\). On the open interval to the right, differentiating \(x+1\) also gives \(f'(x)=1\). At \(x=1/2\), the left-hand limit is \(1/2\), but the function value and right-hand limit are \(3/2\). Thus \(f\) is discontinuous there, and its derivative is not defined there. At every point where the derivative exists in \((0,1)\), it equals \(1\), never the secant slope \(2\).

Check: the only interior point not covered by the two derivative calculations is the jump itself, where differentiability fails. Consequently, no interior point satisfies the Mean Value Theorem equation.

An interior jump can also defeat Rolle’s conclusion. For example, set \(q(x)=x\) for \(0\leq x<1/2\) and \(q(x)=x-1\) for \(1/2\leq x\leq1\). Then \(q(0)=q(1)=0\). Away from \(1/2\), \(q'(x)=1\), and at \(1/2\) the function is discontinuous. There is no interior point where the derivative is zero. The equal endpoint values do not compensate for the missing continuity.

When a Corner Prevents Differentiability

Worked Example: A Corner with Equal Endpoint Values

Consider \(f(x)=|x|\) on \([-1,1]\). This function is continuous, and its endpoint values agree:

$$ f(-1)=1=f(1). $$

For \(x<0\), \(|x|=-x\), so \(f'(x)=-1\). For \(x>0\), \(|x|=x\), so \(f'(x)=1\). At \(x=0\), the difference quotient is

$$ \frac{f(h)-f(0)}{h} =\frac{|h|}{h} = \begin{cases} -1, & h<0,\\ 1, & h>0. \end{cases} $$

The two one-sided limits differ, so \(f'(0)\) does not exist. At every point in \((-1,1)\) where \(f'\) exists, its value is either \(-1\) or \(1\), never \(0\). Rolle’s conclusion therefore fails because differentiability on the entire open interval is missing at the corner.

The Mean Value Theorem conclusion fails on this same interval as well. Its secant slope is \((1-1)/(1-(-1))=0\), but no differentiable interior point has derivative \(0\). The function is continuous on the closed interval; the absent condition is differentiability at the interior corner.

A Common Mistake: Treating a Missing Hypothesis as Automatic

A common error is to calculate the secant slope and then assume that some derivative must equal it, even when the function is discontinuous or has a corner. For the jump-function example, one might write, “The secant slope is \(2\), so \(f'(c)=2\) for some \(c\).” That last step is not a calculation: it is precisely the Mean Value Theorem’s conclusion, and the theorem cannot be applied because continuity fails at \(1/2\). Direct differentiation shows instead that \(f'(x)=1\) wherever the derivative exists in the interior.

A related mistake is to assign a derivative at a corner by choosing one of the one-sided slopes. For \(|x|\) at \(0\), the left-hand slope is \(-1\) and the right-hand slope is \(1\). Since these are unequal, there is no derivative at \(0\); neither value can be substituted as \(f'(0)\).

Practical check: Before looking for a Mean Value Point or applying Rolle’s Theorem, check continuity at every point of the closed interval and differentiability at every interior point. If a check fails, do not infer that the conclusion is false automatically; instead, test it directly.

What Counterexamples Establish

The examples isolate three different failures: a discontinuity at an endpoint, a jump inside the interval, and a nondifferentiable interior corner. In each case, endpoint values and derivatives can be computed explicitly, and the required conclusion can be checked rather than guessed.

These examples do not say that a conclusion can never hold when a hypothesis fails. They show that the hypotheses cannot simply be discarded while keeping the guarantee. For instance, a function with a discontinuity can still have a zero derivative somewhere for other reasons. The logical point is that a theorem provides a dependable conclusion only when its stated conditions are met.

Check Your Understanding

For each question, identify the relevant hypothesis and explain what the function’s endpoint values or derivatives show.

  1. For the first example, which Rolle hypothesis fails, and what is \(f'(x)\) at every interior point?
  2. For the endpoint-discontinuous Mean Value example, calculate the secant slope and compare it with the derivative on \((0,1)\).
  3. In the interior-jump example, why can the point \(x=1/2\) not serve as the Mean Value Point?
  4. For \(f(x)=|x|\) on \([-1,1]\), what are the left- and right-hand difference-quotient limits at \(0\)?
  5. Does a failed hypothesis prove that a theorem’s conclusion is false for every such function? Explain the distinction.

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