Tutorials › Calculus I › Deriving the Mean Value Theorem from Rolle’s Theorem

Mean Value Theorems · Tutorial 681 of 1495

Deriving the Mean Value Theorem from Rolle’s Theorem

Learn how subtracting the secant line turns the Mean Value Theorem into an application of Rolle’s Theorem.

Advanced 9 min read

What You'll Learn

  • State the precise hypotheses and conclusion of the Mean Value Theorem
  • Construct the secant line joining a function’s endpoint values
  • Show why subtracting that line produces equal endpoint values
  • Derive the derivative relation that yields the Mean Value Theorem
  • Identify common errors in constructing the auxiliary function

From a Secant Slope to a Tangent Slope

A secant line records the average change of a function between two points. The Mean Value Theorem says that, under suitable conditions, this average rate of change is attained as an instantaneous rate of change somewhere between the endpoints. The geometric meaning is that at some interior point, the tangent line is parallel to the secant line.

Rolle’s Theorem handles a special case: when the two endpoint values of a function are equal, its derivative is zero at some interior point. To derive the Mean Value Theorem, the central task is to transform the original function into one whose endpoint values are equal, without losing the relationship to its derivative.

The Statement and the Construction

Theorem (Mean Value Theorem): Let \(a,b\in\mathbb{R}\) with \(a<b\). If \(f:[a,b]\to\mathbb{R}\) is continuous on \([a,b]\) and differentiable on \((a,b)\), then there exists \(c\in(a,b)\) such that
$$ f'(c)=\frac{f(b)-f(a)}{b-a}. $$

The quotient on the right is the slope of the secant line through \((a,f(a))\) and \((b,f(b))\). Denote this slope by \(m\). The equation of the line through those two points is \(L(x)=f(a)+m(x-a)\). Subtracting \(L\) from \(f\) gives an auxiliary function whose values at \(a\) and \(b\) agree.

$$ g(x)=f(x)-L(x) =f(x)-\left(f(a)+\frac{f(b)-f(a)}{b-a}(x-a)\right). $$

The construction is chosen for two linked reasons. First, the line passes through both endpoints of the graph, so subtracting it makes the auxiliary function zero at both endpoints. Second, the line has constant derivative \(m\), so the derivative of the auxiliary function is \(f'(x)-m\). Rolle’s Theorem can therefore force \(f'(x)-m\) to equal zero at an interior point.

Derivation from Rolle’s Theorem

We use Rolle’s Theorem in its standard form: if a function is continuous on \([a,b]\), differentiable on \((a,b)\), and has equal values at \(a\) and \(b\), then its derivative is zero at some \(c\in(a,b)\). The proof below constructs a function satisfying exactly these requirements.

1
Fix the secant slope.
Since \(a<b\), the denominator \(b-a\) is positive, so the number \(m=\frac{f(b)-f(a)}{b-a}\) is defined.
2
Subtract the secant line.
Define \(g(x)=f(x)-[f(a)+m(x-a)]\) for \(x\in[a,b]\). The function \(g\) is continuous on \([a,b]\) and differentiable on \((a,b)\), because \(f\) has those properties and the subtracted function is linear.
3
Check the endpoints.
At \(a\), \(g(a)=f(a)-f(a)=0\). At \(b\), \(g(b)=f(b)-f(a)-m(b-a)=0\), using \(m(b-a)=f(b)-f(a)\). Thus \(g(a)=g(b)\).
4
Apply Rolle’s Theorem.
There is a \(c\in(a,b)\) such that \(g'(c)=0\).
5
Translate back to \(f\).
Since \(g'(x)=f'(x)-m\), the equality \(g'(c)=0\) gives \(f'(c)=m=\frac{f(b)-f(a)}{b-a}\), as required.

This proves the Mean Value Theorem. The argument does not assume that \(f\) is linear, nor that the point \(c\) is unique. It establishes the existence of at least one interior point with the specified derivative.

Worked Examples of the Auxiliary Function

Worked Example: A Quadratic on an Interval

Let \(f(x)=x^2\) on \([1,3]\). The endpoint values are \(f(1)=1\) and \(f(3)=9\), so the secant slope is \(\frac{9-1}{3-1}=\frac{8}{2}=4\). The secant line through \((1,1)\) is \(L(x)=1+4(x-1)=4x-3\).

Subtract the line: \(g(x)=x^2-(4x-3)=x^2-4x+3=(x-1)(x-3)\). Thus \(g(1)=0\) and \(g(3)=0\). Since \(g\) is a polynomial, it is continuous on \([1,3]\) and differentiable on \((1,3)\). Rolle’s Theorem gives an interior \(c\) with \(g'(c)=0\).

Differentiate: \(g'(x)=2x-4\). Solving \(2c-4=0\) gives \(c=2\), which lies in \((1,3)\). Since \(g'(x)=f'(x)-4\), this gives \(f'(2)=4\). Directly, \(f'(x)=2x\), so \(f'(2)=2(2)=4\), matching the secant slope. The construction and conclusion agree.

Worked Example: A Linear Function

Let \(f(x)=3x+2\) on \([0,2]\). Its endpoint values are \(f(0)=2\) and \(f(2)=8\). The secant slope is \(\frac{8-2}{2-0}=\frac{6}{2}=3\), and the secant line is \(L(x)=2+3(x-0)=3x+2\).

The auxiliary function is \(g(x)=f(x)-L(x)=(3x+2)-(3x+2)=0\) for every \(x\in[0,2]\). Therefore \(g(0)=g(2)=0\), and \(g'(x)=0\) throughout \((0,2)\). Every \(c\in(0,2)\) satisfies the conclusion.

To check the Mean Value Theorem directly, \(f'(x)=3\) for every \(x\), while the secant slope is also \(3\). Hence \(f'(c)=\frac{f(2)-f(0)}{2-0}=3\) for any interior \(c\). This example shows that the auxiliary function need not have just one point where its derivative is zero.

Worked Example: A Cubic with Two Endpoint Zeros

Let \(f(x)=x^3\) on \([-1,2]\). We have \(f(-1)=-1\) and \(f(2)=8\). The secant slope is \(\frac{8-(-1)}{2-(-1)}=\frac{9}{3}=3\). The secant line through \((-1,-1)\) is \(L(x)=-1+3(x+1)=3x+2\).

Subtracting gives \(g(x)=x^3-(3x+2)=x^3-3x-2\). Factoring, \(g(x)=(x-2)(x+1)^2\). Consequently \(g(-1)=0\) and \(g(2)=0\). This polynomial is continuous on the closed interval and differentiable on its interior, so Rolle’s Theorem applies.

Differentiate \(g\): \(g'(x)=3x^2-3\). At \(c=1\), which lies in \((-1,2)\), \(g'(1)=3(1)^2-3=0\). Since \(f'(x)=3x^2\), we obtain \(f'(1)=3\), equal to the secant slope \(3\). The derivative relation also checks directly: \(g'(1)=f'(1)-3=3-3=0\).

Why the Line Must Be the Secant Line

Subtracting any line changes a function’s derivative by a constant, but the chosen line must also make the endpoint values of the difference equal. The secant line is precisely the line that meets the graph at both endpoints. Its slope is fixed by the endpoint data, and that slope is the quantity the Mean Value Theorem asserts will occur as a derivative.

For the auxiliary function \(g=f-L\), the two parts of the proof therefore fit together: the endpoint geometry gives \(g(a)=g(b)\), while the derivative calculation gives \(g'=f'-m\). Rolle’s Theorem supplies a point where the latter expression is zero. If the subtracted line had a different slope, a zero of \(g'\) would instead show that \(f'\) equals that different slope, which would not establish the theorem’s required conclusion.

Common Pitfall: Subtracting Only a Constant

A tempting but usually incorrect construction is \(g(x)=f(x)-f(a)\). It makes \(g(a)=0\), but does not generally make \(g(b)=0\). Equal endpoint values are essential before Rolle’s Theorem can be applied.

Worked Example: Correcting an Incomplete Construction

Take \(f(x)=x^2\) on \([1,3]\). Subtracting only \(f(1)=1\) gives \(q(x)=x^2-1\). Its endpoint values are \(q(1)=1-1=0\) and \(q(3)=9-1=8\). Since \(q(1)\ne q(3)\), Rolle’s Theorem does not apply to \(q\).

The correction is to subtract the whole secant line. The secant slope is \((9-1)/(3-1)=4\), so \(L(x)=1+4(x-1)=4x-3\). Now \(g(x)=x^2-(4x-3)=x^2-4x+3\), with \(g(1)=1-4+3=0\) and \(g(3)=9-12+3=0\). Thus the corrected auxiliary function has equal endpoint values, and its derivative \(g'(x)=2x-4\) gives the required relation \(g'(c)=f'(c)-4=0\).

Another error is to omit the derivative of the line. Because \(L'(x)=m\), differentiating \(f(x)-L(x)\) gives \(f'(x)-m\), not just \(f'(x)\). The subtraction is what converts the conclusion \(g'(c)=0\) into the specific equality \(f'(c)=m\).

What the Proof Establishes

The proof is a general mechanism: start with a function whose endpoint changes need not be zero, remove the linear change represented by its secant line, and apply Rolle’s Theorem to what remains. The continuity and differentiability assumptions pass from \(f\) to the auxiliary function because a linear function is continuous and differentiable everywhere. The endpoint equality follows by direct substitution, and the derivative conclusion follows by differentiation.

Each condition has a role in the argument. The inequality \(a<b\) ensures that the secant slope has a nonzero denominator. Continuity on the closed interval and differentiability on the open interval are the hypotheses needed to use Rolle’s Theorem on \(g\). The proof does not claim a value of \(c\) at either endpoint; Rolle’s Theorem locates it in \((a,b)\).

Key takeaway: The Mean Value Theorem follows from Rolle’s Theorem by defining \(g(x)=f(x)-L(x)\), where \(L\) is the secant line through the endpoint values. Then \(g(a)=g(b)\), and \(g'(x)=f'(x)-\frac{f(b)-f(a)}{b-a}\). Rolle’s Theorem forces this difference to be zero at some interior point.

Check Your Understanding

Answer each question using the construction and proof above.

  1. Why is the slope \(m=\frac{f(b)-f(a)}{b-a}\) defined when \(a<b\)?
  2. Write the equation of the secant line through \((a,f(a))\) and \((b,f(b))\).
  3. For \(g(x)=f(x)-[f(a)+m(x-a)]\), verify separately that \(g(a)=0\) and \(g(b)=0\).
  4. Why does \(g\) satisfy the continuity and differentiability requirements for Rolle’s Theorem?
  5. If Rolle’s Theorem gives \(g'(c)=0\), show how the derivative of the subtracted line yields the Mean Value Theorem’s conclusion.

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