## 4.4 The Mean Value Theorem

### Learning Objectives

• Explain the meaning of Rolle’s theorem.
• Describe the significance of the Mean Value Theorem.
• State three important consequences of the Mean Value Theorem.

The Mean Value Theorem is one of the most important theorems in calculus. We look at some of its implications at the end of this section. First, let’s start with a special case of the Mean Value Theorem, called Rolle’s theorem.

# Rolle’s Theorem

Informally, Rolle’s theorem states that if the outputs of a differentiable function $f$ are equal at the endpoints of an interval, then there must be an interior point $c$ where $f^{\prime}(c)=0$. (Figure) illustrates this theorem.

Figure 1. If a differentiable function f satisfies $f(a)=f(b)$, then its derivative must be zero at some point(s) between $a$ and $b$.

### Rolle’s Theorem

Let $f$ be a continuous function over the closed interval $[a,b]$ and differentiable over the open interval $(a,b)$ such that $f(a)=f(b)$. There then exists at least one $c \in (a,b)$ such that $f^{\prime}(c)=0$.

## Proof

Let $k=f(a)=f(b)$. We consider three cases:

1. $f(x)=k$ for all $x \in (a,b)$.
2. There exists $x \in (a,b)$ such that $f(x)>k$.
3. There exists $x \in (a,b)$ such that $f(x)<k$.

Case 1: If $f(x)=0$ for all $x \in (a,b)$, then $f^{\prime}(x)=0$ for all $x \in (a,b)$.

Case 2: Since $f$ is a continuous function over the closed, bounded interval $[a,b]$, by the extreme value theorem, it has an absolute maximum. Also, since there is a point $x \in (a,b)$ such that $f(x)>k$, the absolute maximum is greater than $k$. Therefore, the absolute maximum does not occur at either endpoint. As a result, the absolute maximum must occur at an interior point $c \in (a,b)$. Because $f$ has a maximum at an interior point $c$, and $f$ is differentiable at $c$, by Fermat’s theorem, $f^{\prime}(c)=0$.

Case 3: The case when there exists a point $x \in (a,b)$ such that $f(x)<k$ is analogous to case 2, with maximum replaced by minimum.

An important point about Rolle’s theorem is that the differentiability of the function $f$ is critical. If $f$ is not differentiable, even at a single point, the result may not hold. For example, the function $f(x)=|x|-1$ is continuous over $[-1,1]$ and $f(-1)=0=f(1)$, but $f^{\prime}(c) \ne 0$ for any $c \in (-1,1)$ as shown in the following figure.

Figure 2. Since $f(x)=|x|-1$ is not differentiable at $x=0$, the conditions of Rolle’s theorem are not satisfied. In fact, the conclusion does not hold here; there is no $c \in (-1,1)$ such that $f^{\prime}(c)=0$.

Let’s now consider functions that satisfy the conditions of Rolle’s theorem and calculate explicitly the points $c$ where $f^{\prime}(c)=0$.

### Using Rolle’s Theorem

For each of the following functions, verify that the function satisfies the criteria stated in Rolle’s theorem and find all values $c$ in the given interval where $f^{\prime}(c)=0$.

1. $f(x)=x^2+2x$ over $[-2,0]$
2. $f(x)=x^3-4x$ over $[-2,2]$

Verify that the function $f(x)=2x^2-8x+6$ defined over the interval $[1,3]$ satisfies the conditions of Rolle’s theorem. Find all points $c$ guaranteed by Rolle’s theorem.

#### Hint

Find all values $c$, where $f^{\prime}(c)=0$.

# The Mean Value Theorem and Its Meaning

Rolle’s theorem is a special case of the Mean Value Theorem. In Rolle’s theorem, we consider differentiable functions $f$ that are zero at the endpoints. The Mean Value Theorem generalizes Rolle’s theorem by considering functions that are not necessarily zero at the endpoints. Consequently, we can view the Mean Value Theorem as a slanted version of Rolle’s theorem ((Figure)). The Mean Value Theorem states that if $f$ is continuous over the closed interval $[a,b]$ and differentiable over the open interval $(a,b)$, then there exists a point $c \in (a,b)$ such that the tangent line to the graph of $f$ at $c$ is parallel to the secant line connecting $(a,f(a))$ and $(b,f(b))$.

Figure 5. The Mean Value Theorem says that for a function that meets its conditions, at some point the tangent line has the same slope as the secant line between the ends. For this function, there are two values $c_1$ and $c_2$ such that the tangent line to $f$ at $c_1$ and $c_2$ has the same slope as the secant line.

### Mean Value Theorem

Let $f$ be continuous over the closed interval $[a,b]$ and differentiable over the open interval $(a,b)$. Then, there exists at least one point $c \in (a,b)$ such that

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

## Proof

The proof follows from Rolle’s theorem by introducing an appropriate function that satisfies the criteria of Rolle’s theorem. Consider the line connecting $(a,f(a))$ and $(b,f(b))$. Since the slope of that line is

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

and the line passes through the point $(a,f(a))$, the equation of that line can be written as

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

Let $g(x)$ denote the vertical difference between the point $(x,f(x))$ and the point $(x,y)$ on that line. Therefore,

$g(x)=f(x)-[\frac{f(b)-f(a)}{b-a}(x-a)+f(a)]$.

Figure 6. The value $g(x)$ is the vertical difference between the point $(x,f(x))$ and the point $(x,y)$ on the secant line connecting $(a,f(a))$ and $(b,f(b)).$

Since the graph of $f$ intersects the secant line when $x=a$ and $x=b$, we see that $g(a)=0=g(b)$. Since $f$ is a differentiable function over $(a,b)$, $g$ is also a differentiable function over $(a,b)$. Furthermore, since $f$ is continuous over $[a,b]$, $g$ is also continuous over $[a,b]$. Therefore, $g$ satisfies the criteria of Rolle’s theorem. Consequently, there exists a point $c \in (a,b)$ such that $g^{\prime}(c)=0$. Since

$g^{\prime}(x)=f^{\prime}(x)-\frac{f(b)-f(a)}{b-a}$,

we see that

$g^{\prime}(c)=f^{\prime}(c)-\frac{f(b)-f(a)}{b-a}$.

Since $g^{\prime}(c)=0$, we conclude that

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

In the next example, we show how the Mean Value Theorem can be applied to the function $f(x)=\sqrt{x}$ over the interval $[0,9]$. The method is the same for other functions, although sometimes with more interesting consequences.

### Verifying that the Mean Value Theorem Applies

For $f(x)=\sqrt{x}$ over the interval $[0,9]$, show that $f$ satisfies the hypothesis of the Mean Value Theorem, and therefore there exists at least one value $c \in (0,9)$ such that $f^{\prime}(c)$ is equal to the slope of the line connecting $(0,f(0))$ and $(9,f(9))$. Find these values $c$ guaranteed by the Mean Value Theorem.

One application that helps illustrate the Mean Value Theorem involves velocity. For example, suppose we drive a car for 1 hr down a straight road with an average velocity of 45 mph. Let $s(t)$ and $v(t)$ denote the position and velocity of the car, respectively, for $0 \le t \le 1$ hr. Assuming that the position function $s(t)$ is differentiable, we can apply the Mean Value Theorem to conclude that, at some time $c \in (0,1)$, the speed of the car was exactly

$v(c)=s^{\prime}(c)=\frac{s(1)-s(0)}{1-0}=45$ mph.

### Mean Value Theorem and Velocity

If a rock is dropped from a height of 100 ft, its position $t$ seconds after it is dropped until it hits the ground is given by the function $s(t)=-16t^2+100$.

1. Determine how long it takes before the rock hits the ground.
2. Find the average velocity $v_{\text{avg}}$ of the rock for when the rock is released and the rock hits the ground.
3. Find the time $t$ guaranteed by the Mean Value Theorem when the instantaneous velocity of the rock is $v_{\text{avg}}$.

Suppose a ball is dropped from a height of 200 ft. Its position at time $t$ is $s(t)=-16t^2+200$. Find the time $t$ when the instantaneous velocity of the ball equals its average velocity.

#### Hint

First, determine how long it takes for the ball to hit the ground. Then, find the average velocity of the ball from the time it is dropped until it hits the ground.

# Corollaries of the Mean Value Theorem

Let’s now look at three corollaries of the Mean Value Theorem. These results have important consequences, which we use in upcoming sections.

At this point, we know the derivative of any constant function is zero. The Mean Value Theorem allows us to conclude that the converse is also true. In particular, if $f^{\prime}(x)=0$ for all $x$ in some interval $I$, then $f(x)$ is constant over that interval. This result may seem intuitively obvious, but it has important implications that are not obvious, and we discuss them shortly.

### Corollary 1: Functions with a Derivative of Zero

Let $f$ be differentiable over an interval $I$. If $f^{\prime}(x)=0$ for all $x \in I$, then $f(x)$ is constant for all $x \in I$.

## Proof

Since $f$ is differentiable over $I$, $f$ must be continuous over $I$. Suppose $f(x)$ is not constant for all $x$ in $I$. Then there exist $a,b \in I$, where $a \ne b$ and $f(a) \ne f(b)$. Choose the notation so that $a<b$. Therefore,

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

Since $f$ is a differentiable function, by the Mean Value Theorem, there exists $c \in (a,b)$ such that

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

Therefore, there exists $c \in I$ such that $f^{\prime}(c) \ne 0$, which contradicts the assumption that $f^{\prime}(x)=0$ for all $x \in I$.

From (Figure), it follows that if two functions have the same derivative, they differ by, at most, a constant.

### Corollary 2: Constant Difference Theorem

If $f$ and $g$ are differentiable over an interval $I$ and $f^{\prime}(x)=g^{\prime}(x)$ for all $x \in I$, then $f(x)=g(x)+C$ for some constant $C$.

## Proof

Let $h(x)=f(x)-g(x)$. Then, $h^{\prime}(x)=f^{\prime}(x)-g^{\prime}(x)=0$ for all $x \in I$. By Corollary 1, there is a constant $C$ such that $h(x)=C$ for all $x \in I$. Therefore, $f(x)=g(x)+C$ for all $x \in I$.

The third corollary of the Mean Value Theorem discusses when a function is increasing and when it is decreasing. Recall that a function $f$ is increasing over $I$ if $f(x_1)<f(x_2)$ whenever $x_1<x_2$, whereas $f$ is decreasing over $I$ if $f(x_1)>f(x_2)$ whenever $x_1<x_2$. Using the Mean Value Theorem, we can show that if the derivative of a function is positive, then the function is increasing; if the derivative is negative, then the function is decreasing ((Figure)). We make use of this fact in the next section, where we show how to use the derivative of a function to locate local maximum and minimum values of the function, and how to determine the shape of the graph.

This fact is important because it means that for a given function $f$, if there exists a function $F$ such that $F^{\prime}(x)=f(x)$; then, the only other functions that have a derivative equal to $f$ are $F(x)+C$ for some constant $C$. We discuss this result in more detail later in the chapter.

Figure 9. If a function has a positive derivative over some interval $I$, then the function increases over that interval $I$; if the derivative is negative over some interval $I$, then the function decreases over that interval $I$.

### Corollary 3: Increasing and Decreasing Functions

Let $f$ be continuous over the closed interval $[a,b]$ and differentiable over the open interval $(a,b)$.

1. If $f^{\prime}(x)>0$ for all $x \in (a,b)$, then $f$ is an increasing function over $[a,b]$.
2. If $f^{\prime}(x)<0$ for all $x \in (a,b)$, then $f$ is a decreasing function over $[a,b]$.

## Proof

We will prove 1.; the proof of 2. is similar. Suppose $f$ is not an increasing function on $I$. Then there exist $a$ and $b$ in $I$ such that $a<b$, but $f(a) \ge f(b)$. Since $f$ is a differentiable function over $I$, by the Mean Value Theorem there exists $c \in (a,b)$ such that

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

Since $f(a) \ge f(b)$, we know that $f(b)-f(a) \le 0$. Also, $a<b$ tells us that $b-a>0$. We conclude that

$f^{\prime}(c)=\frac{f(b)-f(a)}{b-a} \le 0$.

However, $f^{\prime}(x)>0$ for all $x \in I$. This is a contradiction, and therefore $f$ must be an increasing function over $I$.

### Key Concepts

• If $f$ is continuous over $[a,b]$ and differentiable over $(a,b)$ and $f(a)=0=f(b)$, then there exists a point $c \in (a,b)$ such that $f^{\prime}(c)=0$. This is Rolle’s theorem.
• If $f$ is continuous over $[a,b]$ and differentiable over $(a,b)$, then there exists a point $c \in (a,b)$ such that
$f^{\prime}(c)=\frac{f(b)-f(a)}{b-a}$.

This is the Mean Value Theorem.

• If $f^{\prime}(x)=0$ over an interval $I$, then $f$ is constant over $I$.
• If two differentiable functions $f$ and $g$ satisfy $f^{\prime}(x)=g^{\prime}(x)$ over $I$, then $f(x)=g(x)+C$ for some constant $C$.
• If $f^{\prime}(x)>0$ over an interval $I$, then $f$ is increasing over $I$. If $f^{\prime}(x)<0$ over $I$, then $f$ is decreasing over $I$.

1. Why do you need continuity to apply the Mean Value Theorem? Construct a counterexample.

2. Why do you need differentiability to apply the Mean Value Theorem? Find a counterexample.

3. When are Rolle’s theorem and the Mean Value Theorem equivalent?

4. If you have a function with a discontinuity, is it still possible to have $f^{\prime}(c)(b-a)=f(b)-f(a)$? Draw such an example or prove why not.

For the following exercises, determine over what intervals (if any) the Mean Value Theorem applies. Justify your answer.

5. $y= \sin (\pi x)$

6. $y=\frac{1}{x^3}$

7. $y=\sqrt{4-x^2}$

8. $y=\sqrt{x^2-4}$

9. $y=\ln (3x-5)$

For the following exercises, graph the functions on a calculator and draw the secant line that connects the endpoints. Estimate the number of points $c$ such that $f^{\prime}(c)(b-a)=f(b)-f(a)$.

10. [T] $y=3x^3+2x+1$ over $[-1,1]$

11. [T] $y= \tan (\frac{\pi}{4}x)$ over $[-\frac{3}{2},\frac{3}{2}]$

12. [T] $y=x^2 \cos (\pi x)$ over $[-2,2]$

13. [T] $y=x^6-\frac{3}{4}x^5-\frac{9}{8}x^4+\frac{15}{16}x^3+\frac{3}{32}x^2+\frac{3}{16}x+\frac{1}{32}$ over $[-1,1]$

For the following exercises, use the Mean Value Theorem and find all points $0<c<2$ such that $f(2)-f(0)=f^{\prime}(c)(2-0)$.

14. $f(x)=x^3$

15. $f(x)= \sin (\pi x)$

16. $f(x)= \cos (2\pi x)$

17. $f(x)=1+x+x^2$

18. $f(x)=(x-1)^{10}$

19. $f(x)=(x-1)^9$

For the following exercises, show there is no $c$ such that $f(1)-f(-1)=f^{\prime}(c)(2)$. Explain why the Mean Value Theorem does not apply over the interval $[-1,1]$

20. $f(x)=|x-\frac{1}{2}|$

21. $f(x)=\frac{1}{x^2}$

22. $f(x)=\sqrt{|x|}$

23. $f(x)=⌊x⌋$ (Hint: This is called the floor function and it is defined so that $f(x)$ is the largest integer less than or equal to $x$.)

For the following exercises, determine whether the Mean Value Theorem applies for the functions over the given interval $[a,b]$. Justify your answer.

24. $y=e^x$ over $[0,1]$

25. $y=\ln (2x+3)$ over $[-\frac{3}{2},0]$

26. $f(x)= \tan (2\pi x)$ over $[0,2]$

27. $y=\sqrt{9-x^2}$ over $[-3,3]$

28. $y=\frac{1}{|x+1|}$ over $[0,3]$

29. $y=x^3+2x+1$ over $[0,6]$

30. $y=\frac{x^2+3x+2}{x}$ over $[-1,1]$

31. $y=\frac{x}{ \sin (\pi x)+1}$ over $[0,1]$

32. $y=\ln (x+1)$ over $[0,e-1]$

33. $y=x \sin (\pi x)$ over $[0,2]$

34. $y=5+|x|$ over $[-1,1]$

For the following exercises, consider the roots of the equation.

35. Show that the equation $y=x^3+3x^2+16$ has exactly one real root. What is it?

36. Find the conditions for exactly one root (double root) for the equation $y=x^2+bx+c$

37. Find the conditions for $y=e^x-b$ to have one root. Is it possible to have more than one root?

For the following exercises, use a calculator to graph the function over the interval $[a,b]$ and graph the secant line from $a$ to $b$. Use the calculator to estimate all values of $c$ as guaranteed by the Mean Value Theorem. Then, find the exact value of $c$, if possible, or write the final equation and use a calculator to estimate to four digits.

38. [T] $y= \tan (\pi x)$ over $[-\frac{1}{4},\frac{1}{4}]$

39. [T] $y=\frac{1}{\sqrt{x+1}}$ over $[0,3]$

40. [T] $y=|x^2+2x-4|$ over $[-4,0]$

41. [T] $y=x+\frac{1}{x}$ over $[\frac{1}{2},4]$

42. [T] $y=\sqrt{x+1}+\frac{1}{x^2}$ over $[3,8]$

43. At 10:17 a.m., you pass a police car at 55 mph that is stopped on the freeway. You pass a second police car at 55 mph at 10:53 a.m., which is located 39 mi from the first police car. If the speed limit is 60 mph, can the police cite you for speeding?

44. Two cars drive from one spotlight to the next, leaving at the same time and arriving at the same time. Is there ever a time when they are going the same speed? Prove or disprove.

45. Show that $y= \sec^2 x$ and $y= \tan^2 x$ have the same derivative. What can you say about $y= \sec^2 x - \tan^2 x$?

46. Show that $y= \csc^2 x$ and $y= \cot^2 x$ have the same derivative. What can you say about $y= \csc^2 x - \cot^2 x$?

## Glossary

mean value theorem
if $f$ is continuous over $[a,b]$ and differentiable over $(a,b)$, then there exists $c \in (a,b)$ such that

$f^{\prime}(c)=\frac{f(b)-f(a)}{b-a}$
rolle’s theorem
if $f$ is continuous over $[a,b]$ and differentiable over $(a,b)$, and if $f(a)=f(b)$, then there exists $c \in (a,b)$ such that $f^{\prime}(c)=0$