Tutorials › Real Analysis › Mean Value Theorem Preview

Differentiation · Tutorial 414 of 1000

Mean Value Theorem Preview

See how an auxiliary function and an interior extremum lead to the Mean Value Theorem and a useful test for constant functions.

Advanced 9 min read

What You'll Learn

  • State the hypotheses and conclusion of Rolle’s Theorem
  • Prove Rolle’s Theorem using continuity, compactness, and interior extrema
  • Derive the Mean Value Theorem from Rolle’s Theorem
  • Interpret the theorem as an exact match between a secant slope and a derivative
  • Apply the theorem to polynomial examples and check the interior-point condition
  • Use the theorem to prove that a function with zero derivative throughout an interval is constant

From Derivative Bounds to an Exact Slope

The previous tutorial showed how bounds on a derivative control the slopes between pairs of points. For example, if \(m\leq f'(t)\leq M\) throughout an interval, then every secant slope lies between \(m\) and \(M\). A natural next question is whether a secant slope must actually occur as a derivative somewhere between its two endpoints. The Mean Value Theorem answers yes.

Its conclusion is stronger than a bound: for two distinct points, it identifies an interior point at which the instantaneous rate of change exactly equals the average rate of change across the interval. We will first prove Rolle’s Theorem, the special case where the endpoint values agree, and then use it to prove the Mean Value Theorem. The argument relies on the Extreme Value Theorem and the one-sided derivative signs at a local extremum, justified directly below.

Rolle’s Theorem: Equal Endpoint Values

When the values at the ends of an interval agree, the graph either stays at that height or must rise above it or fall below it somewhere in between. In the latter cases, continuity ensures that an interior maximum or minimum is attained. At such an interior extremum, differentiability forces the derivative to be zero.

Theorem (Rolle’s Theorem): Let \(a<b\), and let \(f:[a,b]\to\mathbb{R}\) be 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\).

Proof. By the Extreme Value Theorem, \(f\) attains a maximum and a minimum on the compact interval \([a,b]\). If \(f\) is constant, then \(f'(c)=0\) for every \(c\in(a,b)\), so the conclusion holds.

Now suppose \(f\) is not constant. Since \(f(a)=f(b)\), there must be some \(x_0\in(a,b)\) with \(f(x_0)\ne f(a)\). If \(f(x_0)>f(a)\), the maximum value of \(f\) is greater than the values at both endpoints. It is therefore attained at an interior point \(c\in(a,b)\). At this interior local maximum, for small \(h>0\), \((f(c+h)-f(c))/h\leq0\), while for small \(h<0\) the quotient is \(\geq0\). Since the two one-sided limits agree by differentiability, \(f'(c)=0\).

If instead \(f(x_0)<f(a)\), the minimum value is less than the values at both endpoints and is attained at an interior point \(c\in(a,b)\). The function \(-f\) has a local maximum at \(c\), so the same one-sided derivative result gives \((-f)'(c)=0\), and hence \(f'(c)=0\). In either case, the required point exists. \(\square\)

The hypotheses do distinct jobs: continuity on the closed interval guarantees that an extreme value is attained, while differentiability on the open interval lets us use the derivative at an interior extremum. No derivative at either endpoint is required.

Worked Example: A Cubic with Equal Endpoint Values

Let \(f(x)=x^3-x\) on \([-1,1]\). This polynomial is continuous on the closed interval and differentiable in its interior. Its endpoint values are

$$ f(-1)=(-1)^3-(-1)=-1+1=0,\qquad f(1)=1^3-1=0. $$

Rolle’s Theorem therefore guarantees a \(c\in(-1,1)\) with \(f'(c)=0\). Direct calculation confirms the point: \(f'(x)=3x^2-1\), so \(f'(c)=0\) when \(c^2=1/3\). Both \(c=1/\sqrt{3}\) and \(c=-1/\sqrt{3}\) lie strictly between \(-1\) and \(1\), and each gives \(3c^2-1=3(1/3)-1=0\). The theorem guarantees at least one such point; it does not say that the point is unique.

The Mean Value Theorem

To turn Rolle’s Theorem into a statement about a general secant slope, subtract the line joining the graph’s endpoint values. The difference between the function and that line has equal values at the endpoints. Rolle’s Theorem then supplies an interior point where the derivative of this difference is zero.

Theorem (Mean Value Theorem): Let \(a<b\), and let \(f:[a,b]\to\mathbb{R}\) be 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}. $$

Proof. Define the affine function \(L:[a,b]\to\mathbb{R}\) by

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

This line agrees with \(f\) at both endpoints: \(L(a)=f(a)\), and substituting \(x=b\) gives \(L(b)=f(a)+f(b)-f(a)=f(b)\). Set \(g(x)=f(x)-L(x)\). The function \(g\) is continuous on \([a,b]\) and differentiable on \((a,b)\), and its endpoint values satisfy \(g(a)=g(b)=0\). Rolle’s Theorem gives a point \(c\in(a,b)\) such that \(g'(c)=0\).

Since \(L'(x)=(f(b)-f(a))/(b-a)\), the Sum Rule gives

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

Rearranging yields the stated equality. \(\square\)

Geometrically, the theorem says that somewhere in the interior, the tangent slope equals the slope of the secant line joining the endpoints. The tangent and secant need not be the same line; the conclusion concerns their slopes. The proof makes this precise by subtracting the secant line and applying Rolle’s Theorem to the resulting function.

Worked Example: Finding a Mean Value Point for a Quadratic

Take \(f(x)=x^2+x\) on \([-1,2]\). The function is continuous on \([-1,2]\) and differentiable on \((-1,2)\). The endpoint values and secant slope are

$$ f(-1)=(-1)^2+(-1)=0,\qquad f(2)=2^2+2=6,\qquad \frac{f(2)-f(-1)}{2-(-1)}=\frac{6}{3}=2. $$

The derivative is \(f'(x)=2x+1\). Setting it equal to the secant slope gives \(2c+1=2\), so \(c=1/2\), which lies in \((-1,2)\). Indeed,

$$ f'(1/2)=2(1/2)+1=2 =\frac{f(2)-f(-1)}{2-(-1)}. $$

This verifies the theorem’s conclusion for this interval. The point is required to be interior; the theorem does not promise that either endpoint will work.

Worked Example: A Mean Value Point for a Quartic

Let \(f(x)=x^4\) on \([0,2]\). It is continuous on \([0,2]\) and differentiable on \((0,2)\). Its secant slope from \(0\) to \(2\) is

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

Since \(f'(x)=4x^3\), a point with the required derivative must satisfy \(4c^3=8\), or \(c=\sqrt[3]{2}\). This point lies in \((0,2)\): it is positive, and \(\sqrt[3]{2}<2\) because \(2<8=2^3\). Substitution verifies the equality:

$$ f'(\sqrt[3]{2}) =4(\sqrt[3]{2})^3 =4\cdot2 =8 =\frac{f(2)-f(0)}{2-0}. $$

Here the derivative matches the average slope at an interior point even though the derivative is not constant across the interval.

Worked Example: A Linear Function

Let \(f(x)=-3x+4\) on \([2,5]\). The function meets the continuity and differentiability hypotheses, and

$$ \frac{f(5)-f(2)}{5-2} =\frac{(-15+4)-(-6+4)}{3} =\frac{-11-(-2)}{3} =-3. $$

For every \(c\in(2,5)\), \(f'(c)=-3\). Thus every interior point satisfies the Mean Value Theorem equality in this example. This also illustrates why the theorem asserts existence, not uniqueness.

A Consequence: Zero Derivative Forces Constancy

The Mean Value Theorem also gives a useful conclusion in the opposite direction: if the derivative vanishes at every interior point, no two function values can differ. This consequence turns local derivative information into a global statement about the whole interval.

Corollary (Zero Derivative Implies Constancy): Let \(I\) be an interval, and suppose \(f:I\to\mathbb{R}\) is continuous on \(I\) and differentiable at every interior point of \(I\). If \(f'(t)=0\) at every interior point \(t\), then \(f\) is constant on \(I\).

Proof. Choose any \(x,y\in I\) with \(x<y\). The closed segment \([x,y]\) lies in \(I\). The function is continuous on that segment and differentiable on \((x,y)\), so the Mean Value Theorem gives some \(c\in(x,y)\) such that

$$ f(y)-f(x)=f'(c)(y-x). $$

By hypothesis \(f'(c)=0\), and therefore \(f(y)-f(x)=0\). Thus \(f(y)=f(x)\) for every ordered pair \(x<y\) in \(I\), which means that \(f\) is constant. \(\square\)

In particular, if \(f\) is differentiable on an open interval and \(f'\) is zero throughout it, then \(f\) is constant there. The interval condition matters: it ensures that the segment between any two points remains in the domain, so the Mean Value Theorem can be applied to that segment.

What the Theorem Does—and Does Not—Say

The Mean Value Theorem requires continuity at both endpoints of the chosen closed interval and differentiability at every interior point. It does not require differentiability at the endpoints. Conversely, having a derivative at most interior points is not enough if differentiability fails at even one point of the open interval: the theorem’s hypotheses must hold throughout the interval.

The conclusion is an existence statement. It guarantees at least one interior point with the specified derivative, but it may be difficult to identify that point explicitly, and there may be several. The quartic example found one point by solving an equation; the theorem itself guarantees existence without requiring a formula for that point.

Finally, the Mean Value Theorem is consistent with the derivative bounds from the previous tutorial. If the derivative stays between \(m\) and \(M\), the theorem identifies a derivative equal to the secant slope, so that slope must also lie between \(m\) and \(M\). The earlier derivative-bounds argument established the bound by comparing monotone auxiliary functions. The Mean Value Theorem offers a different viewpoint: it represents each secant slope as an actual derivative value. This preview establishes the theorem and its proof; later results will use it to draw further conclusions about derivatives and extrema.

Check Your Understanding

Use Rolle’s Theorem and the Mean Value Theorem to answer the following.

  1. What continuity and differentiability hypotheses are required for Rolle’s Theorem on \([a,b]\)?
  2. In the proof of the Mean Value Theorem, why do the function \(g=f-L\) and the affine function \(L\) have matching endpoint values?
  3. For \(f(x)=x^2\) on \([1,3]\), calculate the secant slope and find an interior point where the derivative equals it.
  4. Does the Mean Value Theorem assert that the point \(c\) is unique? Explain using an example from this tutorial.
  5. Why does a function with derivative zero throughout an interval have equal values at any two points of that interval?