1 Applications of Differentiation: 1.1 Maximum and Minimum Values of Functions
1 Applications of Differentiation: 1.1 Maximum and Minimum Values of Functions
iii) local extremum point for f if x0 is either a local minimum or a local maximum point for f .
iv) If the above inequalities hold for any x ∈ A, then x0 is called an absolute minimum / maximum /
extremum point for f .
Remark 2 a) “for all x near x0 ” means for all x in and interval containing x0 (i.e. for all x ∈ (x0 − ε, x0 + ε)∩A,
for some ε > 0).
b) If the above inequalities are strict (for x 6= x0 ) we say that x0 is a strict local minimum / local
maximum / local extremum point for f .
c) if x0 is a local/absolute maximum/minimum point of f , then f (x0 ) is called local/absolute maxi-
mum/minimum value of f .
Example 1 Consider the function f : [−2, 3] → R having the graph below. We see that x = −2, x = −0, 5 and
x = 2 are relative minimum points of f , x = −1, 5, x = 1 and x = 3 are relative maximum points of f , x = 3 is the
absolute minimum point for f and x = 3 is the absolute maximum point for f .
y = f (x)
−0, 5 2
−2 −1, 5 1 3 x
Exercise 1 Indicate the absolute/local extrema (maxima or minima) of the given functions.
a) f (x) = cos x b) f (x) = x2 c) f (x) = x3 d) f : [−1, 4] → R, f (x) = 3x4 − 16x3 + 18x2
Theorem 3 (Extreme value theorem - Weierstrass’s theorem) If f is continuous on a closed interval [a, b],
then f attains its absolute maximum and absolute maximum values in [a, b] (i.e. there are points x0 , x1 ∈ [a, b]
such that f (x0 ) ≤ f (x) ≤ f (x1 ) for all x ∈ [a, b]).
Remark 4 In other words, the theorem says that the function has at least one absolute minimum and minimum
point in [a, b] (there could be more!).
Remark 5 Without the hypothesis that f is continuous, or that the interval [a, b] is closed, the theorem might be
false. Draw some examples so show it!
1
Proof. Under the hypotheses, f must have a horizontal tangent at x0 , so its slope m = f 0 (x0 ) = 0.
Example 2 Consider the function f : [1, 2] → R defined by f (x) = x. Note that x0 = 1 is a local minimum point
for f and x0 = 2 is a local maximum point for f , but f 0 (x) = 1 never vanishes. Does this contradict Fermat’s
theorem?
Remark 7 The converse of Fermat’s theorem is not true: it is possible that f 0 (x0 ) = 0 and x0 is not a local
extremum of f . For example, if f (x) = x3 and x0 = 0, we have f 0 (0) = 0, but x0 = 0 is not a local maximum or a
local minimum!
Definition 8 A point x0 in the domain of f is called a critical point if f 0 (x0 ) does not exist or if f 0 (x0 ) = 0.
Remark 9 We can rephrase Fermat’s theorem by saying that if f has a local extremum at an interior point x0 of
the domain, then x0 is a critical point (“interior local extrema are among critical points”).
To find the absolute extrema of a function f on a closed interval [a, b], we first find the critical points of f in
[a, b], Next, we evaluate f at the critical points, and also at a and b (why?). The largest/smallest value gives the
absolute maximum/minimum value of f on [a, b].
Exercise 2 Find the absolute maximum and absolute minimum values of the function f : − 12 , 4 → R, f (x) =
x3 − 3x2 + 1.
Proof. Since f is continuous on [a, b], by Weierstrass’s theorem there exist xm , xM ∈ [a, b] such that
If f (xm ) = f (xM ) then f is constant on [a, b], so f 0 is identically zero on [a, b], and we can choose any c ∈ (a, b)
in this case.
If f (xm ) 6= f (xM ), then xm , xM cannot be both endpoints of [a, b] (since f (a) = f (b)). Therefore at least
one of xm or xM is an interior point of [a, b], say xm is an interior point of [a, b].
By Fermat’s theorem it follows that f 0 (xm ) = 0, so we can choose c = xm ∈ (a, b) and conclude the proof.
Example 3 The position function of a moving object is given by f (t), and we assume that f is continuous on [a, b],
differentiable on (a, b). If f (a) = f (b) (the object is in the same position at times t = a and t = b), then Rolle’s
theorem shows that there is a time c ∈ (a, b) such that f 0 (c) = 0 (its velocity at time t = c was zero). Compare with
the situation of a ball thrown upward.
Example 4 Show that the equation x3 + x − 1 = 0 has exactly one real root (Hint: IVT shows there is at least
one root, Rolle’s theorem can help you to show that there cannot be more that one root).
2
Theorem 11 (Mean value theorem - Lagrange’s theorem) If f : [a, b] → R is continuous on [a, b] and dif-
ferentiable on (a, b), then there exists c ∈ (a, b) such that
f (b) − f (a)
f 0 (c) = . (3)
b−a
f (b) − f (a)
Proof. Apply Rolle’s theorem to the function F : [a, b] → R defined by F (x) = f (x) − (x − a) .
b−a
Remark 12 Geometrically, the theorem shows that there is point c ∈ (a, b) where the tangent is parallel to the line
through the points (a, f (a)) and (b, f (b)).
Another interpretation of the theorem is that the average speed (if we think f (t) being the position function)
equals the instantaneous speed at some point.
From Lagrange’s theorem, we obtain the following useful test in the study of functions.
Remark 14 As a corollary of part iii) of the above proposition we have: if f 0 (x) = g 0 (x) for x ∈ (a, b), then f = g
on (a, b).
What can you conclude if f 0 (x) ≶ g 0 (x) for x ∈ (a, b) (and f (a) ≶ g (a))?
Theorem 15 (Cauchy’s theorem) Let f, g : [a, b] → R and assume that f and g are continuous on [a, b], diffe-
rentiable on (a, b) and g 0 (x) 6= 0 for x ∈ (a, b).
Then g (b) − g (a) 6= 0 and there exists c ∈ (a, b) such that
f (b) − f (a)
Proof. Apply Rolle’s theorem to the function F (x) = f (x) − (g (x) − g (a)), x ∈ [a, b].
g (b) − g (a)
We can now prove l’Hôpital’s rule (which helps us to deal with the case “ 00 ” when computing limits).
Theorem 16 (L’Hôpital’s rule) Let f, g : [a, b] → R and x0 ∈ [a, b]. If f and g are continuous on [a, b] and
differentiable on (a, b) − {x0 }, g 0 (x) 6= 0 for x ∈ (a, b) − {x0 } and f (x0 ) = g (x0 ) = 0, then
f (x) f 0 (x)
lim = lim 0 , (5)
x→x0 g (x) x→x0 g (x)
3
Remark 17 (Extensions’s of L’Hôpital’s rule) L’Hôpital’s rule also holds
The limit is again of the type 00 , and applying L’Hôpital’s rule again, we obtain
0
1 + x − ex 1 − ex l 0 H (1 − ex ) −ex 1
lim 2
= lim = lim 0 = lim =− .
x→0 x x→0 2x x→0 (2x) x→0 2 2
Remark: when applying L’Hôpital’s rule, it is essential to check that the limit “on the right” exists, otherwise
applying L’Hôpital’s rule may lead to erroneous conclusions, as shown in the example below.
x + sin x
Example 7 Compute limit lim .
x→∞ x
It is not difficult to see that
x−1 x + sin x x+1
≤ ≤ , x > 0,
x x x
and therefore
x−1 x + sin x x+1
1 = lim ≤ lim ≤ lim = 1,
x→∞ x x→∞ x x→∞ x
which shows that
x + sin x
lim = 1.
x
x→∞
which “shows” that the given limit does not exist (we proved above that the limit is in fact 1).
4
1.4 Derivatives of inverse functions and logarithmic differentiation
Suppose that f is a bijective function with inverse function f −1 . It can be shown that if f is continuous on
an interval, then so is f −1 . Moreover, if f is differentiable at x0 and f 0 (x0 ) 6= 0, then f −1 is differentiable at
y0 = f (x0 ), and we have
0 1
f −1 (y0 ) = 0 .
f (x0 )
Remark 18 To help you remember the above, just write f −1 (f (x)) = x and differentiate (use chain rule).
d
Example 8 Find the derivative dx (ex ).
The natural logarithm ln x : (0, ∞) → R is a bijective function and its inverse is ex : R → (0, ∞). We have
ln (ex ) = x,
d
and differentiating (recall that dx (ln x) = x1 ) we have
1 d x
· (e ) = 1,
ex dx
d
or dx(ex ) = ex .
d
The same idea can be used to find dx (ax ):
ln (ax ) = x ln a,
The idea in the previous example can be used to compute derivatives of “complicated” functions (prod-
ucts/fractions). Take the logarithms of both sides, then differentiate (this is called logarithmic differentiation).
3/4
√
2
Example 9 Differentiate y = x (3x+2)
x +1
5 .
We will use logarithmic differentiation:
3 1
ln x + ln x2 + 1 − 5 ln (3x + 2) ,
ln y =
4 2
and differentiating we have
1 0 3 1 1 2x 3
·y = + −5
y 4 x 2 x2 + 1 3x + 2
or √
x3/4 x2 + 1 3
0 3 x 15 x 15
y =y + 2 − = 5 + − .
4x x + 1 3x + 2 (3x + 2) 4x x2 + 1 3x + 2
Exercise 7 Use logarithmic differentiation to help you find the derivatives of the given functions.
4
(x3 +1) sin2 x
4
q
2 4 4 (x−5)3
a) y = x2 + 2 x +4 b) y = (x+1)
(x−3)8
c) y = xx−1
4 +1 d) y = x1/3
.
5
1.5 Derivatives and shapes of graphs
The role of the first derivative in the study of the graph of a function is contained in the following.
a) f 0 ≥ 0 on an (open) interval, then f is increasing on that interval;
b) f 0 ≤ 0 on an (open) interval, then f is decreasing on that interval;
c) f 0 = 0 on an (open) interval, then f is constant on that interval.
Exercise 10 Find the intervals on which f (x) = 3x4 − 4x3 − 12x2 + 5 is increasing/decreasing.
The first derivative is also helpfull in deciding if a critical point is a local maximum / local minimum / neither
of them.
Proposition 19 (First derivative test) If c is a critical point of a continuous function f , then
a) if f 0 changes sign from positive to negative at c, then c is a local maximum point;
b) if f 0 changes sign from negative to positive at c, then c is a local minimum point;
c) if f 0 doesn’t change sign at c, then c is not a local extremum point of f .
Exercise 11 Find the local maximum and local minimum points of the function in the previous exercise.
Definition 20 We say that a function is concave upward on an interval if its graph lies above its tangent lines
on that interval (“holds water”). If the graph lies below its tangent line on an interval (“doesn’t hold water”), we
say that the function is concave downward on that interval.
A point where a (continuous) function changes concavity is called an inflection point.
The role of the second derivative in studying the graph of a function is contained in the following.
a) f 00 ≥ 0 on an (open) interval, then f is concave upward on that interval;
b) f 00 ≤ 0 on an (open) interval, then f is concave downward on that interval.
Exercise 12 Sketch the graph of a function satisfying the following conditions:
a) f 0 (x) > 0 on (−∞, 1), f 0 (x) < 0 on (1, ∞)
b) f 00 (x) > 0 on (−∞, −2) ∪ (2, ∞), f 00 (x) < 0 on (−2, 2)
c) limx→−∞ f (x) = −2, limx→∞ f (x) = 0.
The second derivative is also helpfull in deciding if a critical point is a local maximum / local minimum / neither
of them.
Proposition 21 (Second derivative test) If c is a critical point of a continuous function f , and f 00 is continuous
near c, then
a) if f 00 (c) > 0, then c is a local minimum point;
b) if f 00 (c) < 0, then c is a local maximum point.
Remark 22 When f 00 (c) = 0 the above test is inconclusive (use the first derivative test).
Exercise 13 Consider the function f (x) = x4 − 4x3 . Where is the function concave upward/downward? Where is
the function increasing/decreasing? What are the inflection points? What are the maxima/minima of the function?
Use this information to help you sketch the graph.
1/3
Exercise 14 Sketch the graph of the function f (x) = x2/3 (6 − x) .
6
1.6 Curve sketching
To sketch the graph of a function f “by hand”, use the following steps.
A. Read the problem carefully (draw a picture to help you understand it better)
B. Introduce the notation (pay attention to the measurement units, and to the eventual conditions imposed in the
problem)
C. Write the quantity to be optimized as a function of one variable (pay attention to the domain of the function)
D. Use the first derivative to help you find the extremum of function. Finally, answer the question of the problem.
Exercise 16 A farmer has 2400 feet of fencing and wants to fence off a rectangular field that borders a straight
river. He needs no fence along the river. What are the dimensions of the field that has the largest area?
Exercise 17 A cylindrical can is to be made to hold 1 liter of oil. Find the dimensions that will minimize the cost
of the metal to manufacture the can.
Exercise 18 Find the point on the parabola y 2 = 2x that is closest to the point (1, 4).
Exercise 19 Find the area of the largest rectangle that can be inscribed in a semicircle of radius r.