Mean Value Theorem PDF
Mean Value Theorem PDF
RASUL SHAFIKOV
First we recall the following inequality from trigonometry: for 0 < x < π/2,
(1.1) sin x < x < tan x.
If we divide sin x by the three terms in the above inequality we obtain
sin x sin x sin x sin x
> > ⇒ 1> > cos x.
sin x x tan x x
From this we conclude that
sin x x x
0<1− < 1 − cos x = 2 sin2 < 2 sin < x,
x 2 2
where in the last step we again used inequality (1.1). It follows that
sin x
x − 1 < |x|.
Using the ǫ − δ definition this can be stated as follows: given ǫ > 0, there exists δ > 0 such that
whenever |x − x0 | < δ we have |f (x) − f (x0 )| < ǫ.
1
2 RASUL SHAFIKOV
Example 1.2. Let f : R → R be defined as f (x) = x. Let x0 be any real number. Then f (x) is
continuous at x0 . Indeed, using the ǫ − δ definition we have |f (x) − f (x0 )| = |x − x0 | < ǫ. This
inequality can be ensured by taking δ = ǫ. ⋄
Theorem 1.3. If f and g are continuous functions on a domain D, then so are the functions f +g,
f · g, and c · f , where c is any constant. The function f /g is continuous at all points of D where
g 6= 0. Further, if g is a function defined on the range of f , then the function g ◦ f = g(f (x)) is
continuous on D.
Using the above theorem and the fact that f (x) = x is a continuous function as shown in
Example 1.2, we conclude that any polynomial is a continuous function, and any rational function
(the quotient of two polynomials) is continuous at all points where the denominator does not vanish.
√
Example 1.3. Let f (x) = x. We will use the ǫ − δ definition to show that this function is
continuous at any point x0 > 0. Observer that
√ √ √ √
√ √ (| x − x0 )( x + x0 )| |x − x0 | |x − x0 |
| x − x0 | = √ √ =√ √ < √
x + x0 x + x0 x0
√
Now, let ǫ > 0 be arbitrary. We choose δ = ǫ x0 (x0 is a fixed number!). Then for |x − x0 | < δ,
we have √
√ √ |x − x0 | ǫ x0
| x − x0 | < √ < √ = ǫ,
x0 x0
which proves the continuity. ⋄
Example 1.4. Let (
0, x 6= 0,
f (x) =
1, x = 0.
Then limx→0 f (x) exists and equals zero, but it differs from the value of f at the origin since
f (0) = 1. Therefore, equation (1.2) does not hold, and f (x) is not continuous at the origin.
However, letting f (0) = 0 will make this function continuous everywhere. ⋄
Example 1.5 (Dirichlet’s function). Recall that a rational number is the quotient of two integers.
The set of all rational numbers is denoted by Q. All real numbers that are not rational are called
irrational. They form a set R \ Q. Define
(
1, x ∈ Q,
d(x) =
0, x ∈ R \ Q.
This function is discontinuous at all points. Indeed, let x0 be any real number, say x0 is rational.
Then for any δ > 0, the interval (x0 − δ, x0 + δ) necessarily contains an irrational number x, and
then, |d(x) − d(x0 )| = 1. Thus, for ǫ < 1, no choice of δ will satisfy the condition of Definition 1.2.
A similar argument will work if x0 is irrational. ⋄
Example 1.6. Let
(
sin x1 , x 6= 0,
(1.3) f (x) =
0, x = 0.
The function f (see Fig. 1) is defined for all x. It is continuous for all x 6= 0 because it is a
composition of a continuous functions 1/x and sin x. But f (x) does not have a limit as x → 0
(why?), and therefore f (x) is not continuous at the origin. Note that there is no choice of f (0)
that will make this function continuous at the origin. ⋄
CALC LECTURE NOTES 3
Definition 1.4. Let f (x) be defined on an interval D ⊂ R. Let x0 ∈ D. We say that f (x) is
differentiable at x0 if the limit
f (x0 + h) − f (x0 )
(1.4) lim
h→0 h
′
exists. The value of the limit is defined to be f (x0 ), the derivative of f at x0 .
Example 1.8. Let us apply the above definition to the function f (x) = x2 . The expression under
the limit in equation (1.4) becomes
(x0 + h)2 − x20 x2 + 2x0 h + h2 − x20
= 0 = 2x0 + h.
h h
Clearly, the limit of the above expression equals 2x0 , as h → 0. Thus, we proved that f (x) = x2 is
differentiable at every point, and (x2 )′ = 2x. ⋄
Example 1.9. Let (
x sin x1 , x 6= 0
f (x) = .
0, x=0
This function is continuous but not differentiable at the origin. The continuity was shown in
Example 1.7. As for nondifferentiability, we have
f (0 + h) − f (0) h sin h1 1
lim = lim = lim sin ,
h→0 h h→0 h h→0 h
which does not exist. ⋄
Example 1.10. Let (
x2 sin x1 , x 6= 0
f (x) = .
0, x=0
This function (see Fig. 3) is continuous everywhere because it is the product of continuous
functions x and x sin 1/x (as discussed in Example 1.7). To prove differentiability of this function
at the origin let us compute the corresponding limit in (1.4).
f (0 + h) − f (0) h2 sin h1 1
lim = lim = lim h sin .
h→0 h h→0 h h→0 h
CALC 1301 LECTURE NOTES 5
1This is a modern formulation of the theorem. It captures the essence of Fermat’s method for finding maximal
and minimal values of a function. The notion of derivative was not yet developed at Fermat’s time.
6 RASUL SHAFIKOV
Proof. We will assume that c is a maximum of f (x), the case when c is a minimum can be treated
in a similar way. Arguing by contradiction, suppose that f ′ (c) 6= 0. Then either f ′ (c) > 0 or
f ′ (c) < 0. If f ′ (c) > 0, then Lemma 1.8 implies that f (x) > f (c) for x > c with x sufficiently close
to c. Similarly, if f ′ (c) < 0, then f (x) > f (c) for x < c. In both cases we see that f (c) cannot be
the maximum value of the function f . This contradiction proves the theorem.
Geometrically, Fermat’s theorem states that at extreme points the tangent line to the graph of
the function f is horizontal, which should be intuitively clear. Also note, that if a maximal or a
minimum value is attained at the end point of the interval [a, b], then Fermat’s theorem need not
to hold.
Definition 1.10. A point c is called a critical point of a differentiable function f (x) if f ′ (c) = 0.
Fermat’s theorem now can be stated as follows: if c is a local maximum or minimum of a function
f (x), then c is a critical point of f . The converse to this statement is false: if f ′ (c) = 0, then it
does not follow in general that c is a local maximum or a local minimum of f (x). For example, if
f (x) = x3 , then f ′ (0) = 0, but the origin is not an extreme point of x3 .
Theorem 1.11 (Rolle’s Theorem). 2 Suppose f (x) is continuous on the interval [a, b], differentiable
on (a, b), and f (a) = f (b). Then there exists a number c ∈ (a, b) such that f ′ (c) = 0.
Proof. By Theorem 1.6, a continuous function on a closed interval [a, b] attains its maximum value,
say, M , and its minimum value, say, m. Consider two cases:
1. Suppose M = m. Then f (x) on [a, b] is a constant function, since m ≤ f (x) ≤ M = m for all
x ∈ [a, b]. Therefore, f ′ (x) = 0 for all x.
2. Suppose M > m. Since f (a) = f (b), we know that either M or m is attained at some point
c inside the interval (a, b), (i.e., not at the end points of the interval). In this case, it follows from
Fermat’s theorem that f ′ (c) must be zero.
Geometrically, Rolle’s theorem states that if f (a) = f (b), then there is a point c between a and
b such that the tangent line to the graph of f at point c is horizontal. This occurs at a local
maximum or a local minimum of f (x).
Theorem 1.12 (Mean Value Theorem). Suppose that f (x) is continuous on [a, b] and differentiable
on (a, b). Then there exists a point c ∈ (a, b) such that
f (b) − f (a)
= f ′ (c).
b−a
Proof. Define an auxiliary function
f (b) − f (a)
F (x) = f (x) − f (a) − (x − a).
b−a
This function satisfies the conditions of Rolle’s theorem. Indeed, it is continuous on [a, b], because
it is a difference of a continuous function f (x) and a linear (hence continuous!) function
f (b) − f (a)
f (a) − (x − a).
b−a
On the interval (a, b), we have
f (b) − f (a)
F ′ (x) = f ′ (x) − .
b−a
2Despite the name, Michel Rolle only suggested this result for polynomials in 1691.
CALC 1301 LECTURE NOTES 7
f (b)−f (a)
Finally, F (a) = f (a) − f (a) = 0, and F (b) = f (b) − f (a) − (b − a)
= f (b) − f (a) − (f (b) −
b−a
f (a)) = 0, and so F (a) = F (b).
Therefore, we may apply Rolle’s theorem to the function F (x), and so there exists a point
c ∈ (a, b) such that F ′ (c) = 0. This means that
f (b) − f (a)
f ′ (c) − = 0.
b−a
Hence,
f (b) − f (a)
f ′ (c) = ,
b−a
which is exactly what we wanted to prove.
Using the Mean Value Theorem we can now prove that only constant functions have everywhere
vanishing derivatives.
Corollary 1.13. Suppose f (x) is a differentiable functions such that f ′ (x) = 0 for all x. Then
f (x) is a constant function.
Proof. Choose any two points a and b in the domain of f (x), say, a < b. By the Mean Value
Theorem, there exists a point c ∈ (a, b) such that
f (b) − f (a)
= f ′ (c) = 0.
b−a
It follows then that f (b) = f (a). But this means that f (x) is a constant function.
1.3. Proving inequalities. The Mean Value Theorem can be used for proving inequalities.
Example 1.12. Prove that if x > 0, then
ln(1 + x) < x.
1 x
Solution. Let a = 0, b = x, and f (x) = ln(1 + x) − x. Then f ′ (x) = 1+x − 1 = − 1+x . By the
Mean Value Theorem applied to the function f on the interval [a, b] = [0, x], there exists a point
c ∈ (0, x) such that
f (x) − f (0)
f ′ (c) = ,
x−0
or
c ln(1 + x) − x
(1.5) − = .
1+c x
c
Note that c > 0, and therefore, − 1+c < 0. Therefore, equation (1.5) implies
ln(1 + x) − x
< 0.
x
Since x > 0, the numerator in the above inequality must be negative, i.e.,
ln(1 + x) − x < 0,
which is what we had to prove. ⋄
8 RASUL SHAFIKOV
Exercises
1·1. Use a similar strategy as in Example 1.3 to show that the following functions are continuous
on the specified domain:
(a) f (x) = 2x + 1, for x0 ∈ R,
(b) f (x) = x2 , for x0 ∈ R,
(c) f (x) = 1/x for x0 6= 0.
1·2. Prove, using the definition, that the function f (x) = x3 is differentiable at all points.
1·3. Negate the ǫ − δ definition of the limit to write what it means that a function f (x) defined
for x 6= 0 does not have a limit as x approaches the origin. Use this to prove that the
function (
1, x > 0,
f (x) =
0, x < 0.
does not have a limit at zero.
1·4. Show that the function given by (1.3) is not continuous at the origin.
1·5. Show that the function in Example 1.10 does not have the second order derivative at x = 0.
1·6. Formulate and prove a statement similar to Lemma 1.8 for the case when f ′ (x0 ) < 0.
1·7. Give an example of a function which is defined on the closed interval [0, 1] but is not
bounded there.
1·8. Give an example of a function which is continuous on the interval (−∞, 0] but does not
attain a global maximum and a global minimum.
1·9. Prove that if a polynomial p(x) vanishes at two points a and b, then there exists a point c
between a and b such that p′ (c) = 0.
1·10. Prove that if a polynomial p(x) of degree 3 has 3 pairwise different (real) roots, then p′ (x)
has exactly two (real) roots.
1·11. On the interval (0, 1) find a point c such that the tangent line to the graph of the function
y = x3 at the point (c, c3 ) is parallel to the straight line passing through the points (0, 0)
and (1, 1).
1·12. Prove that if a nonconstant function f (x) satisfies the conditions of Rolle’s theorem on the
interval [a, b], then there exist points x1 and x2 on the interval (a, b) such that f ′ (x1 ) < 0
and f ′ (x2 ) > 0.
CALC 1301 LECTURE NOTES 9
1·13. Prove that if f (x) is a 3 times differentiable function on x ≥ 0, and f (0) =f ′ (0)
= f ′′ (0)
=
0, and f ′′′ (x) > 0 for x > 0, then also f (x) > 0 for x > 0.
1·14. (Cauchy’s Theorem) If the functions x = φ(t) and y = ψ(t) are continuous on the interval
[a, b] and differentiable on (a, b) with φ′ (t) =6 0 for a < t < b, then there exists a point
ξ ∈ (a, b) such that
ψ(b) − ψ(a) ψ ′ (ξ)
(1.7) = ′ .
φ(b) − φ(a) φ (ξ)
Hint: Consider an auxiliary function h(x) = (ψ(b) − ψ(a))φ(x) − (φ(b) − φ(a))ψ(x).
1·15. Suppose that f (x) is a continuous function on [0, ∞), differentiable on (0, ∞), f (0) = 0, and
f (x)
f ′ (x) is an increasing function for x > 0. Prove that the function is also increasing
x
for x > 0.
In the next problems prove the given inequality using the Mean Value Theorem.
√ 1
1·16. 2 x > 3 − , for x > 1.
x
1·17. sin x < x, for x > 0.
x2
1·18. cos x > 1 − , for x > 0.
2
x3
1·19. sin x > x − , for x > 0.
6
1·20. tan x > x, for 0 < x < π2 .
1·21. ex > 1 + x, for x > 0.
x2
1·22. ex > 1 + x + , for x > 0.
2
x2 xn
1·23. ex > 1 + x + + ··· + , for x > 0. (Hint: use the mathematical induction)
2 n!