Unit 5 · Topic 5.1

Use the mean value theorem

Builds on the average rate of change, tangent slopes and continuity on a closed interval. 14 minutes.

  1. Example 1Check when the theorem applies
  2. Example 2Find every matching point
  3. Example 3Use a graph or table to identify a guarantee
  4. Example 4Apply the theorem to a real situation
  5. Example 5Distinguish existence from uniqueness

The secant line of a function \(f\) on an interval \([a,b]\) passes through the points \((a,f(a))\) and \((b,f(b))\) of its graph. Its slope is the average rate of change of \(f\) on \([a,b]\):

\[m=\frac{f(b)-f(a)}{b-a}\]

The derivative \(\cy{f'(x)}\) is the instantaneous rate of change of \(f\) at \(x\), the slope of the tangent line there. This topic shows when the derivative at some input between \(a\) and \(b\) must equal the average rate, and how to find every such input.

A tangent parallel to the secant line

Top: a curve f on an interval from a to b that rises slowly, then steeply, then slowly again. A straight secant line joins its two end points. An orange point on the curve has its orange tangent, a dashed line parallel to the secant line, and an orange vertical segment from the secant line to the curve, and the label c appears under the point where the tangent is parallel to the secant line. Below: a second graph plots f prime, a single hump, with a dashed horizontal line at the slope m of the secant line and an orange bar up to f prime at the point. Buttons make the point of the curve farthest above the secant line a corner, where two red half-lines show its two slopes, or put a jump inside the interval.

Figure 1The orange point has its orange tangent, a dashed line parallel to the secant line, and an orange segment to the secant line. Red half-lines mark the two slopes at a corner, and the lower graph plots \(f'\) with a dashed line at height \(m\).

In Figure 1, the straight line through the dots at the two ends of the graph is the secant line of \(f\) on \([a,b]\). The tangent at the orange point \((x,f(x))\) is orange, and the dashed line through the point is parallel to the secant line. Drag the point. Where the tangent lies along the dashed line, its slope \(\cy{f'(x)}\) equals \(m\). The tangent and the secant line then have two small marks each, and the input is labeled \(\cy{c}\). The button Visit each parallel tangent moves the point to each such input.

The lower graph plots \(f'\), with a dashed line at height \(m\). The orange bar at \(x\) has height \(f'(x)\), so it reaches the dashed line at the same inputs.

To see why such an input must exist, measure the height of the curve above the secant line. The secant line passes through \((a,f(a))\) with slope \(m\), so its equation is \(y=f(a)+m(x-a)\), and this height, the gap, is

\[\cy{g(x)}=f(x)-f(a)-m(x-a)\]

It is the orange segment in Figure 1, and it is negative where the curve lies below the line. The line passes through both ends of the graph, so \(g(a)=g(b)=0\).

Suppose that \(f\) is continuous on the closed interval \([a,b]\) and differentiable on the open interval \((a,b)\). Then \(g\) is too, because it is \(f\) minus a linear function, and \(g'(x)=f'(x)-m\).

Suppose also that the curve rises above the secant line somewhere. The graph of \(g\) is unbroken on the closed interval, so it has a highest point, at some input \(c\). This property of continuous functions is called the Extreme Value Theorem, and the next topic, 5.2, studies it. Because \(g\) is positive somewhere, \(g(c)>0=g(a)=g(b)\), so \(c\) is not an end, and \(a<c<b\).

Because \(c\) lies inside the interval, \(g'(c)\) exists, and it is the limit of the difference quotient \(\frac{g(c+h)-g(c)}{h}\) as \(h\) approaches 0. Since \(g(c)\) is the largest value, \(g(c+h)\le g(c)\) whenever \(c+h\) lies in \([a,b]\), so

\[\begin{aligned}\frac{g(c+h)-g(c)}{h}&\le 0\ \ \text{if}\ h>0\\ \frac{g(c+h)-g(c)}{h}&\ge 0\ \ \text{if}\ h<0\end{aligned}\]

A quotient that is never positive cannot approach a positive number, so the limit from the right is at most 0. In the same way, the limit from the left is at least 0. Both limits equal \(g'(c)\), so \(g'(c)=0\), which means that \(\cy{f'(c)}=m\).

If the curve never rises above the secant line but dips below it, the argument works at the lowest point of \(g\) instead. The two inequalities then reverse. If the curve is the secant line itself, then \(g\) is 0 on \([a,b]\), so \(g'(x)=0\) for every \(x\) in \((a,b)\), and every \(c\) works.

This result is the Mean Value Theorem. Its special case \(f(a)=f(b)\), in which the secant line is horizontal and \(f'(c)=0\), is called Rolle's Theorem. In Figure 1, the curve rises above the line and dips below it. The argument then works at both the highest and the lowest point of \(g\), so it finds two inputs \(c\).

Each hypothesis enters the argument once. Continuity on \([a,b]\) gives the highest point of \(g\), and differentiability at \(c\) gives \(g'(c)=0\). The derivative at \(a\) or \(b\) is never used, because \(c\) is never an end.

Press Put a corner in f under Figure 1. The ends and the secant line stay, but the highest point of \(g\), where the curve is farthest above the line, is now a corner. There the graph has a different slope on each side, and two red half-lines show the two slopes. Because \(f\) is not differentiable at the corner, the step that uses differentiability fails. Every tangent to the left of the corner is steeper than the secant line. Every tangent to the right of it falls, so no tangent is parallel to the secant line. In the lower graph, \(f'\) jumps across the dashed line without meeting it.

Press Put a jump in f. Then \(f\) is not continuous on \([a,b]\). The secant line falls while every tangent rises, so again no tangent is parallel to it. Left of the jump, the curve rises toward an open ring, a point the graph leaves out, and the gap grows. At the jump, the gap drops, so \(g\) has no largest value, and the step that uses continuity fails.

Using the theorem

Before you use the theorem, check both hypotheses. Polynomials, \(\sin x\), \(\cos x\) and \(e^x\) are differentiable everywhere. A quotient fails them where its denominator is 0. A root may fail them where it is undefined, or where its graph has a sharp point or a vertical tangent. A function with pieces, such as \(|x|\), may also fail them at a join, an input where its formula changes. A failure of differentiability matters only strictly between \(a\) and \(b\), but continuity is needed at the ends too, from inside the interval.

A number \(c\) in \((a,b)\) with \(f'(c)=m\) is a matching point, because the tangent there has the slope of the secant line. The theorem guarantees at least one matching point but does not say where it is. To find every matching point, solve the equation \(f'(c)=m\). Then keep only the solutions strictly between \(a\) and \(b\). In the lower graph of Figure 1, they are the inputs where \(f'\) meets the dashed line.

The average rate uses the values of \(f\) at only two inputs, so the theorem also works with a table of values. A table cannot show that \(f\) is continuous or differentiable, because a graph with a jump between two listed inputs fits the same values. These hypotheses must come from the statement of the problem. If \(f\) is differentiable for all \(x\), it is also continuous (topic 2.4), so the theorem applies on every closed interval.

In a real situation, \(m\) is the average rate of change over a period of time, in units of the quantity per unit of time. The derivative \(f'(c)\) is the rate at the instant \(c\). If the quantity is a differentiable function of time, its rate equals the average rate at some instant inside the period.

The theorem promises at least one matching point, not exactly one, and Figure 1 has two. It can also show that an equation has only one solution. If \(f(p)=f(q)\) for numbers \(p<q\) in an interval where \(f\) is differentiable, Rolle's Theorem gives a number between \(p\) and \(q\) where \(f'\) is 0. A function whose derivative is never 0 on an interval therefore takes no value twice there. If the Intermediate Value Theorem (topic 1.16) also gives a solution of \(f(x)=0\) there, that solution is the only one.

Example 1

Check when the theorem applies

Let \(f(x)=x^{2/3}\). Does the Mean Value Theorem apply to \(f\) on the interval \([0,8]\)? Does it apply on \([-1,8]\)?

Solution

The function \(f(x)=\left(\sqrt[3]{x}\right)^2\) is continuous for every \(x\), because the cube root is. For \(x\neq 0\), the power rule gives

\[f'(x)=\frac23x^{-1/3}=\frac{2}{3\sqrt[3]{x}}\]

At 0, the difference quotient \(\frac{f(h)-f(0)}{h}=h^{-1/3}\) grows without bound in size as \(h\) approaches 0, so \(f'(0)\) does not exist. The graph comes to a sharp point at the origin, called a cusp.

On \([0,8]\), the cusp is at an end, and \(f'(x)\) exists at every \(x\) strictly between 0 and 8, so the theorem applies. On \([-1,8]\), the cusp lies inside the interval, so \(f\) is not differentiable on \((-1,8)\), and the theorem does not apply.

Example 2

Find every matching point

Let \(f(x)=x^3-4x^2+7x\). Find every value of \(c\) that satisfies the conclusion of the Mean Value Theorem for \(f\) on \([-2,3]\).

Solution

The function is a polynomial, so it is continuous and differentiable everywhere, and the theorem applies. The end values are \(f(-2)=-38\) and \(f(3)=12\), so the slope of the secant line is

\[m=\frac{12-(-38)}{3-(-2)}=\frac{50}{5}=10\]

The derivative is \(f'(x)=3x^2-8x+7\), so the equation \(f'(c)=10\) is a quadratic that factors:

\[\begin{aligned}3c^2-8c+7&=10\\ 3c^2-8c-3&=0\\ (3c+1)(c-3)&=0\end{aligned}\]

The solutions are \(c=-\frac13\) and \(c=3\). The theorem asks for \(c\) strictly between \(-2\) and 3, and 3 is the right end, so the only value is \(c=-\frac13\).

Example 3

Use a graph or table to identify a guarantee

The function \(k\) is differentiable for all \(x\), and the table gives some of its values. Must there be a number \(c\) in \((0,9)\) with \(k'(c)=2\)? Explain. \[\begin{array}{c|ccccc}x&0&1&4&6&9\\ \hline k(x)&15&7&13&11&10\end{array}\]

Solution

Because \(k\) is differentiable for all \(x\), it is also continuous (topic 2.4). The theorem therefore applies on every closed interval, including the interval between any two inputs of the table. The table alone could not show this.

The theorem needs an interval whose average rate is 2. Among the intervals between neighboring inputs, the one from 1 to 4 has this rate:

\[\frac{k(4)-k(1)}{4-1}=\frac{13-7}{3}=2\]

By the Mean Value Theorem, \(k'(c)=2\) for at least one \(c\) in \((1,4)\), and this \(c\) lies in \((0,9)\). The answer is yes, although the table does not say where \(c\) is.

Example 4

Apply the theorem to a real situation

The temperature of a cup of tea is \(T(t)=20+\dfrac{450}{t+9}\) degrees Celsius, \(t\) minutes after it is poured, for \(0\le t\le 16\). At what time is the instantaneous rate of change of the temperature equal to its average rate of change over the 16 minutes?

Solution

The denominator \(t+9\) is positive for \(t\ge 0\), so \(T\) is continuous on \([0,16]\) and differentiable on \((0,16)\), and the theorem guarantees such a time. The average rate of change, in degrees Celsius per minute, is

\[\frac{T(16)-T(0)}{16-0}=\frac{38-70}{16}=-2\]

The chain rule gives \(T'(t)=-\dfrac{450}{(t+9)^2}\). The time asked for solves \(T'(t)=-2\), and \(t+9\) is positive:

\[\begin{aligned}\frac{450}{(t+9)^2}&=2\\ (t+9)^2&=225\\ t+9&=15\\ t&=6\end{aligned}\]

At \(t=6\) minutes, the temperature falls at 2 degrees Celsius per minute, its average rate over the 16 minutes.

Example 5

Distinguish existence from uniqueness

Show that the equation \(2x+\cos x=0\) has exactly one real solution.

Solution

Let \(f(x)=2x+\cos x\), which is continuous and differentiable for every \(x\). Existence and uniqueness need two different arguments.

For existence, \(f\left(-\frac{\pi}{2}\right)=-\pi\) is negative and \(f(0)=1\) is positive. By the Intermediate Value Theorem, \(f(x)=0\) for at least one \(x\) in \(\left(-\frac{\pi}{2},0\right)\).

For uniqueness, suppose that \(f(p)=f(q)=0\) for two numbers \(p<q\). Rolle's Theorem then gives a number \(c\) between \(p\) and \(q\) with \(f'(c)=0\). But \(\sin x\le 1\) for every \(x\), so

\[f'(x)=2-\sin x>0\]

This contradiction shows that a second solution cannot exist, so the equation has exactly one real solution.

Each example is one of the five skills of topic 5.1 in Which & Why: AP Calculus.