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

Mean and Extreme Value Theorems · Tutorial 335 of 999

Deriving the Mean Value Theorem from Rolle's Theorem

Learn how a carefully chosen auxiliary function turns Rolle’s Theorem into the Mean Value Theorem, and why the secant line’s intercept gives zero endpoint values.

Intermediate 10 min read

What You'll Learn

  • State the hypotheses and conclusion of the Mean Value Theorem
  • Construct the secant line through the endpoints of a function’s graph
  • Use Rolle’s Theorem to derive the Mean Value Theorem
  • Explain why subtracting the secant line gives equal, specifically zero, endpoint values
  • Verify Mean Value Theorem points in polynomial and radical examples
  • Recognize why a parallel line with a different intercept still permits Rolle’s Theorem

From a Secant Slope to a Derivative

A secant line through two points on a function’s graph records the function’s average rate of change between those points. The Mean Value Theorem says that, under suitable conditions, the graph has an interior point where its tangent slope equals that secant slope.

Rolle’s Theorem is a special case in which a function has equal values at the two endpoints and therefore has a horizontal tangent somewhere between them. The key to deriving the Mean Value Theorem is to subtract the secant line from the original function. The difference has equal endpoint values, so Rolle’s Theorem applies.

Central idea: Subtracting the secant line changes the question “Where does the function’s derivative equal the secant slope?” into the question “Where does an auxiliary function have derivative zero?” Rolle’s Theorem answers the second question.

The Mean Value Theorem

Let \(f\) be a function defined on the closed interval \([a,b]\), where \(a<b\). Its secant slope between the endpoints is

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

This quotient is the average rate of change of \(f\) over \([a,b]\). The Mean Value Theorem guarantees that this average rate is attained as an instantaneous rate at some interior point, provided \(f\) is continuous on the closed interval and differentiable on the open interval.

Theorem (Mean Value Theorem): If \(f\) is continuous on \([a,b]\) and differentiable on \((a,b)\), where \(a<b\), then there is at least one number \(c\in(a,b)\) such that $$ f'(c)=\frac{f(b)-f(a)}{b-a}. $$

The conclusion concerns a point strictly inside the interval. The theorem does not say that every interior point has this derivative, nor does it require the derivative to equal the average rate at an endpoint.

Constructing the Auxiliary Function

The straight line through the points \((a,f(a))\) and \((b,f(b))\) has slope \(\frac{f(b)-f(a)}{b-a}\). Writing it in point-slope form gives the secant line

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

Now define the difference between the function and this line:

$$ g(x)=f(x)-L(x). $$

At both endpoints, the function and its secant line have the same values. Therefore \(g(a)=g(b)=0\). Also, subtracting a line preserves continuity and differentiability wherever \(f\) has those properties. Thus \(g\) is continuous on \([a,b]\) and differentiable on \((a,b)\).

Rolle’s Theorem applies to \(g\): there is some \(c\in(a,b)\) such that \(g'(c)=0\). Differentiating the definition of \(g\) then gives the Mean Value Theorem’s conclusion.

Derivation from Rolle’s Theorem

Here is the complete argument. The only theorem needed for the key existence step is Rolle’s Theorem: if a function is continuous on \([a,b]\), differentiable on \((a,b)\), and has equal endpoint values, then its derivative is zero at some point of \((a,b)\).

1
Write the secant line.
Set \(m=\frac{f(b)-f(a)}{b-a}\), and define \(L(x)=f(a)+m(x-a)\). This line passes through \((a,f(a))\) and \((b,f(b))\).
2
Subtract it from the function.
Define \(g(x)=f(x)-L(x)\). Since \(L(a)=f(a)\), \(g(a)=0\). Since \(L(b)=f(a)+m(b-a)=f(b)\), \(g(b)=0\).
3
Apply Rolle’s Theorem.
The assumptions on \(f\) imply that \(g\) is continuous on \([a,b]\) and differentiable on \((a,b)\). Because \(g(a)=g(b)\), Rolle’s Theorem gives a \(c\in(a,b)\) with \(g'(c)=0\).
4
Translate back to \(f\).
Since \(L'(x)=m\), differentiating \(g=f-L\) yields \(g'(x)=f'(x)-m\). Hence \(0=g'(c)=f'(c)-m\), so \(f'(c)=\frac{f(b)-f(a)}{b-a}\), as required.

Every condition has a role in this argument. Continuity on the closed interval and differentiability on the open interval are needed to use Rolle’s Theorem on \(g\). The condition \(a<b\) ensures that the secant slope is defined and that there is an open interval in which the point \(c\) can lie.

Why the Secant Line Is the Natural Choice

The secant line makes the auxiliary function vanish at both endpoints, which makes the application of Rolle’s Theorem especially transparent. Its slope is also exactly the target value in the Mean Value Theorem. Indeed, differentiating \(g=f-L\) subtracts that slope from \(f'\), so a point where \(g'=0\) is precisely a point where \(f'\) equals the secant slope.

The intercept matters for making the endpoint values zero, but it is important to be precise about what the proof requires. Any line with the same slope as the secant line produces an auxiliary function with equal endpoint values; the two values need not be zero. Rolle’s Theorem requires equal endpoint values, not zero endpoint values. The secant line is chosen because it gives the convenient values \(g(a)=g(b)=0\).

$$ \begin{aligned} P(x)&=mx+k,\\ h(x)&=f(x)-P(x),\\ h(b)-h(a)&=f(b)-f(a)-m(b-a)=0, \end{aligned} $$

Here \(m=\frac{f(b)-f(a)}{b-a}\), while \(k\) can be any constant. Thus \(h(a)=h(b)\) for every such parallel line. Taking \(k=f(a)-ma\) makes \(P\) the secant line and gives \(h(a)=h(b)=0\).

Worked Examples

Worked Example: Deriving the Mean Value Point for a Quadratic

Let \(f(x)=x^2\) on \([1,3]\). Find the secant line, construct the auxiliary function, and verify the point supplied by the derivation.

First check the conditions: a polynomial is continuous and differentiable for every real \(x\), so \(f\) is continuous on \([1,3]\) and differentiable on \((1,3)\).

The endpoint values are \(f(1)=1\) and \(f(3)=9\). The secant slope is

$$ m=\frac{f(3)-f(1)}{3-1} =\frac{9-1}{2} =4. $$

The secant line through \((1,1)\) with slope \(4\) is \(L(x)=1+4(x-1)=4x-3\). Therefore

$$ g(x)=x^2-(4x-3)=x^2-4x+3. $$

Check the endpoint values: \(g(1)=1-4+3=0\), and \(g(3)=9-12+3=0\). Differentiating gives \(g'(x)=2x-4\). Setting \(g'(c)=0\) gives \(2c-4=0\), so \(c=2\), which lies in \((1,3)\).

Finally, check the Mean Value Theorem equation directly: \(f'(x)=2x\), so \(f'(2)=4\), equal to the secant slope \(4\). The constructed function also checks: \(g'(2)=2(2)-4=0\).

Worked Example: A Cubic with Equal Endpoint Values After Subtraction

Let \(f(x)=x^3\) on \([-1,2]\). Use the secant-line construction to find an interior point where the derivative equals the average rate of change.

Because \(f\) is a polynomial, it is continuous on \([-1,2]\) and differentiable on \((-1,2)\). Its endpoint values are \(f(-1)=-1\) and \(f(2)=8\). Thus the secant slope is

$$ m=\frac{8-(-1)}{2-(-1)} =\frac{9}{3} =3. $$

The line through \((-1,-1)\) with slope \(3\) is \(L(x)=-1+3(x+1)=3x+2\). Subtracting it gives

$$ g(x)=x^3-(3x+2)=x^3-3x-2. $$

At the endpoints, \(g(-1)=-1+3-2=0\) and \(g(2)=8-6-2=0\). Differentiate: \(g'(x)=3x^2-3\). Solving \(g'(c)=0\) gives \(3c^2-3=0\), so \(c^2=1\), and \(c=-1\) or \(c=1\). Only \(c=1\) is in the open interval \((-1,2)\).

Check the answer using \(f'(x)=3x^2\): \(f'(1)=3\), which equals the secant slope. Also \(g'(1)=3-3=0\), confirming the Rolle point in the auxiliary function.

Worked Example: Applying the Construction to a Radical Function

Let \(f(x)=\sqrt{x}\) on \([0,4]\). Find the point given by the Mean Value Theorem and check it.

The square-root function is continuous on \([0,4]\). For every \(x\in(0,4)\), it is differentiable, with \(f'(x)=\frac{1}{2\sqrt{x}}\). Therefore the theorem’s hypotheses hold.

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

$$ m=\frac{2-0}{4-0}=\frac{1}{2}. $$

The secant line through \((0,0)\) with slope \(\frac12\) is \(L(x)=\frac{x}{2}\). The difference function is \(g(x)=\sqrt{x}-\frac{x}{2}\). Its endpoints are \(g(0)=0-\frac{0}{2}=0\) and \(g(4)=2-\frac{4}{2}=0\).

For \(x\in(0,4)\), differentiate to obtain

$$ g'(x)=\frac{1}{2\sqrt{x}}-\frac{1}{2}. $$

Set this equal to zero: \(\frac{1}{2\sqrt{c}}-\frac12=0\), so \(\frac{1}{2\sqrt{c}}=\frac12\), then \(\sqrt{c}=1\), and \(c=1\). This value lies in \((0,4)\). Checking directly, \(f'(1)=\frac{1}{2\sqrt{1}}=\frac12\), exactly the secant slope; also \(g'(1)=\frac12-\frac12=0\).

Common Pitfall: Confusing Equal Values with Zero Values

Consider \(f(x)=x^2\) on \([1,3]\), whose secant slope is \(4\). The secant line is \(4x-3\), so subtracting it gives endpoint values of zero. But suppose instead we subtract the parallel line \(P(x)=4x+5\). Then

$$ h(x)=x^2-(4x+5)=x^2-4x-5. $$

Here \(h(1)=1-4-5=-8\), while \(h(3)=9-12-5=-8\). A mistaken conclusion would be: “The endpoint values are not zero, so Rolle’s Theorem cannot be used.” That is incorrect. Rolle’s Theorem requires \(h(1)=h(3)\), and both values are \(-8\). The function \(h\) is continuous on \([1,3]\) and differentiable on \((1,3)\), so Rolle’s Theorem applies. Indeed, \(h'(x)=2x-4\), and \(h'(2)=0\). Since \(h'=f'-4\), this gives \(f'(2)=4\), the secant slope.

Takeaway: The secant line gives zero at both endpoints, but zero is not required. A line with the same slope and a different intercept still gives equal endpoint values, so Rolle’s Theorem can still be applied.

Why This Derivation Matters

The proof is more than an algebraic trick. It shows how an existence statement about a horizontal tangent can establish an existence statement about a tangent with any specified slope. Subtracting the secant line removes the slope being targeted: a tangent to \(f\) parallel to the secant line becomes a horizontal tangent to \(g=f-L\).

The construction also clarifies the logic of the theorem. The secant line sets the target slope, matching endpoint values let Rolle’s Theorem apply, and differentiating the difference converts the zero derivative into the required equality for \(f'\). Each part depends on the stated continuity and differentiability hypotheses; without them, this derivation cannot invoke Rolle’s Theorem as written.

Check Your Understanding

For each question, focus on how the auxiliary function connects the secant slope to Rolle’s Theorem.

  1. Write the secant line through \((a,f(a))\) and \((b,f(b))\) using point-slope form.
  2. For \(g(x)=f(x)-L(x)\), explain why \(g(a)=g(b)=0\) when \(L\) is the secant line.
  3. If \(f\) is continuous on \([a,b]\) and differentiable on \((a,b)\), which hypotheses allow Rolle’s Theorem to be applied to \(g\)?
  4. Why does \(g'(c)=0\) imply \(f'(c)=\frac{f(b)-f(a)}{b-a}\)?
  5. If a line has the secant slope but a different intercept, must the corresponding difference function have zero endpoint values? What endpoint property does it still have?

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