Local and Absolute Extremum: y FX FC
Local and Absolute Extremum: y FX FC
Local and Absolute Extremum: y FX FC
Absolute maximum
Local maxima
Local minima
Absolute minimum
Terms used:
• Extremum – a general word for either maximum or minimum
• Extrema – the plural form of extremum
• Maxima/minima – the plural form of maximum/minimum
y = f(x)
Tangent lines
x
0 c
x<c x>c
Observation:
• When x < c, the tangent line has a negative slope.
• When x > c, the tangent line has a positive slope
• At exactly x = c, the tangent line has slope zero
2
Now let the function has a maximum at x = c
y
Tangent lines
y = f(x)
0 c x
x<c x>c
Observation:
• When x < c, the tangent line has a positive slope.
• When x > c, the tangent line has a negative slope
• At exactly x = c, the tangent line has slope zero
3
Example 1 Find and classify the extrema of the following
functions if they exist.
(a) f ( x) = x − 4 x − 1 (b) f ( x) = x − 3 x + 1
2 3
Solution
(a) Given f ( x) = x − 4 x − 1, we first have to find the function’s
2
f ′( x) = 3 x 2 − 3 = 0, ⇒ x 2 = 1, ∴ x = ±1
This function has two critical points. Analyze the critical points
separately.
At x = -1:
Values of x x < -1; x = -1 -1<x <1;
let x = -2 let x = 0
Values of f ′( x) f ′(−2) = 9 0 f ′(0) = −3
Signs of f ′( x) + 0 -
Extremum point is A maximum
The maximum value is f ( −1) = 3 ; the maximum point is (-1, 3).
4
At x = 1:
Values of x -1< x < 1; x=1 x > 1;
let x = 0 let x = 2
Values of f ′( x) f ′(0) = −3 0 f ′(2) = 9
Signs of f ′( x) - 0 +
Extremum point is A minimum
The minimum value is f (1) = −1; point is (1,-1).
5
Local extrema: The Second-Derivative test
y
y = f(x)
(a) Tangent lines
x
0 c
x<c x>c
y'
y' = f’(x)
(b)
x
0 c
x<c x>c
Observation
1. When the function y = f ( x) has a minimum as in (a), then the
graph of the function y′ = f ′( x ) is similar to (b). The slope of
d
y′ = f ′( x) is positive; in other words, [ f ′( x)] = f ′′( x) > 0 .
dx
2. On the other hand, when the function y = f ( x) has a
maximum, then the slope of y′ = f ′( x ) is negative or
d
equivalently [ f ′( x)] = f ′′( x) < 0 . Try sketching the graph
dx
yourself.
6
Theorem 2 (Second Derivative Test)
Suppose that f is twice differentiable at the point x = c.
(i) If f ′(c ) = 0 and f ′′(c) > 0, then f has a local minimum at c.
(ii) If f ′(c ) = 0 and f ′′(c) < 0, then f has a local maximum at c.
(iii) If f ′(c ) = 0 and f ′′(c) = 0, then the test is inconclusive; that
is, f may have a local maximum, a local minimum, or neither
at c. Revert to the First-derivative test.
Solution
From Example 2, f ( x ) = 3 x − 5 x , f ′( x) = 15 x − 15 x , and the
5 3 4 2
critical points were at x = 0, x = 1 and x = -1. To use this test, find the
function’s second derivative, which is
f ′′( x) = 60 x 3 − 30 x
At x = -1,
f ′′(−1) = 60 ( −1) − 30(−1) = −30 < 0
3
At x = 0,
f ′′(0) = 60 ( 0 ) − 30(0) = 0
3
The test is inconclusive. Revert to the first derivative test, and from
Example 2, the point x = 0, has neither a maximum nor the minimum
value.
At x = 1,
f ′′(1) = 60 (1) − 30(1) = 30 > 0
3
The results are the same as in Example 2 when we use the first
derivative test.
7
Inflection Point
If you look back at Examples 2 and 3, you’ll see that at the
critical point of x = 0, the point (0, 0) is neither a maximum nor a
minimum. This point is actually called an inflection point. Let us
analyze its characteristics.
Let us examine the values of the second derivatives before and after
the critical point.
At x = 0;
Values of x -1<x <0; x=0 0<x<1;
let x = -0.5 let x = 0.5
Signs of f ′( x) - 0 -
Extremum point is neither max nor min;
Signs of f ′′( x) + 0 -
Obsevation 1
Therefore, one way of determining if a critical point is an
inflection point is by checking the signs of both f ′( x) and f ′′( x) ; it
is a critical point if
• the signs of f ′( x) does not change before and after the critical
point, AND
• the signs of f ′′( x) change; from (+) to (-) or from (-) to (+)
• the value of f ′′( x) = 0 at the critical point
8
Let us sketch the graph of the function, and its first derivative at
the critical point.
Graph of y:
y
Critical point
y = f(x)
0 x
x <0 x>0
Graph of y’:
Critical point
y'
x <0 x>0
0 x
y' = f’(x)
Further analysis
• From the graph of y’ notice the same critical point becomes an
extremum. If it is an extremum to the function y’, then
dy′
o = 0 , and
dx
d 2 y′
o ≠ 0 , i.e. positive if min, and negative if max.
dx 2
• Simplifying the above discussion, we have
dy′ d 2 y d 2 y′ d 3 y
o = 2 = 0 , and 2
= 3 ≠0
dx dx dx dx
9
Observation 2
Therefore, if it is an inflection point, then
d2y d3y
o = 0 , and 3 ≠ 0
dx 2 dx
Solution
From Example 2, the function is f ( x ) = 3 x − 5 x . Set the
5 3
When x = 0,
f ′′′(0) = 180(0) 2 − 30 = −30 ≠ 0
∴The point (0,0) is an inflection point.
1
When x = −
2
−1 −1
f ′′′( ) = 180( ) 2 − 30 ≠ 0
2 2
⎛ −1 7 ⎞
∴The point ⎜ , ⎟ ≈ (−0.7071,1.2374) is an inflection point.
⎝ 2 4 2 ⎠
10
1
When x =
2
1 1
f ′′′( ) = 180( ) 2 − 30 ≠ 0
2 2
⎛ 1 −7 ⎞
∴The point ⎜ , ⎟ ≈ (0.7071, −1.2374) is an inflection point.
⎝ 2 4 2⎠
y
Inflection points
y = f(x)
0 x
x <0 x>0
Solution
To find all the possible critical points for the extremum set the
first derivative to zero.
f ′( x) = 4 x 3 − 12 x 2 = 0
4 x 2( x − 3) = 0
⇒ x = 0 or x = 3
Use the second derivative test on the two critical points:
f ′′( x) = 12 x 2 − 24 x
When x = 0
f ′′(0) = 12 ( 0 ) − 24 ( 0 ) = 0 - test fails – check 3rd derivative
2
f ′′′( x) = 24 x − 24
f ′′′(0) = 24 ( 0 ) − 24 ≠ 0
Therefore (0,0) is an inflection point.
11
When x = 3
f ′′(3) = 12 ( 3) − 24 ( 3) > 0
2
Now, check for the remaining (if any still exist) inflection
points; set the second derivative to zero.
f ′′( x) = 12 x 2 − 24 x = 0
12 x( x − 2) = 0
⇒ x = 0 or x = 2
Conclusion:
(0,0) is an inflection point,
(2,24) is an inflection point
(3,-27) is a minimum point.
Absolute extrema
Literally, absolute extrema refers to the most extreme values of
a function. One of the situations in which a function can attain these
values is when its domain of definition is restricted to an interval of
values. The standard procedure for finding these absolute extrema
follows:
1. Find all the critical points as described above
2. Find the values of the function at its critical points and the two
end points
3. Compare the function values of the extrema with the function
values of the end points
4. Pick the most extreme: the largest is the absolute maximum and
the smallest is the absolute minimum.
12
Example 6 Find the absolute maximum and minimum of the
function f ( x) = 2 x − x + 2 in the interval −2 ≤ x ≤ 1.
3 2
Solution
1. First find all the critical points (if any):
f ( x) = 2 x3 − x 2 + 2
f ′( x) = 6 x 2 − 2 x = 0
2 x(3 x − 1) = 0
1
⇒ x = 0 or x =
3
2. Find the function values of the critical points and the two end
points:
13
Applications of Absolute Extrema
x 0 ½ 1
f(x) 0 ¼ 0
Conclusion:
The area L( x) is maximum when the rectangle is a square with ½ meter
long sides.
14
2. L’Hôpital’s Rule
L’Hôpital’s rule is used when we encounter indeterminate forms
while we are finding limits.
However, this rule can only be used when the indeterminate form
0 ∞
is of the form or .
0 ∞
0
Theorem 1 – L’Hôpital’s Rule for
0
Suppose that f and g are differentiable functions on an open interval
containing x = a, except possibly at x = a, and that
lim f ( x) = 0 and lim g ( x) = 0
x→a x→a
If lim [ f ′( x) / g ′( x) ] exists, or if this limit is +∞ or -∞, then
x →a
f ( x) f ′( x)
lim = lim
x→a g ( x) x →a g ′( x)
This statement is also true in the case of a limit as x →a+, x →a-,
x →+∞, or as x →-∞.
sin 2 x ex −1
(a) lim (b) lim 3
x →0 x x →0 x
x −4 / 3 1 − cos x
(c) lim (d) lim
x → 0 sin(1/ x ) x →0 x2
15
Solution
sin 2 x 0
(a) lim = , thus we can apply l’Hopital’s rule:
x →0 x 0
sin 2 x 2cos 2 x 2
lim = lim = =2
x →0 x x →0 1 1
ex −1 0
(b) lim 3 = , thus we can apply l’Hopital’s rule:
x →0 x 0
ex −1 ex − 0 1
lim 3 = lim 2
= =∞
x →0 x x → 0 3x 0
x −4 / 3 0
(c) lim = ; l’Hopital’s rule can be applied:
x → 0 sin(1/ x ) 0
−4 −7 / 3
x −4 / 3 3 x
lim = lim
x → 0 sin(1/ x )
( )
x →0 −1/ x 2 cos(1/ x )
−4
x −1/ 3 0
lim 3
= =0
x → 0 cos(1/ x ) 1
1 − cos x 0
(d) lim = , apply l’Hopital’s rule:
x →0 x2 0
1 − cos x sin x 0
lim = lim = ; apply the rule one more time,
x →0 x2 x →0 2 x 0
cos x 1
lim =
x →0 2 2
16
∞
Theorem 2 – L’Hôpital’s Rule for
∞
Suppose that f and g are differentiable functions on an open interval
containing x = a, except possibly at x = a, and that
lim f ( x) = ∞ and lim g ( x ) = ∞
x→a x→a
If lim [ f ′( x) / g ′( x) ] exists, or if this limit is +∞ or -∞, then
x →a
f ( x) f ′( x)
lim = lim
x→a g ( x) x →a g ′( x)
This statement is also true in the case of a limit as x →a+, x →a-,
x →+∞, or as x →-∞.
Solutions
x ∞
(a) lim = ; we apply l’Hopital’s rule
x →+∞ e x ∞
x 1 1
lim x = lim x = = 0
x →+∞ e x →+∞ e ∞
ln x ∞
(b) lim 2 = ; apply l’Hopital’s rule
x →+∞ x ∞
ln x 1/ x 1 1
lim = lim = lim = =0
x →+∞ x 2 x →+∞ 2 x x →+∞ 2 x 2 ∞
17
Limits of other indeterminate forms
When you encounter other indeterminate forms, rewrite the
expression until the required form (either 0/0 or ∞/∞) is achieved
before applying l’Hopital’s rule.
Example 10
⎛1 1 ⎞
(c) lim (1 + x )
1/ x
(a) lim+ x ln x (b) lim+ ⎜ − ⎟
x →0 x →0⎝ x sin x ⎠ x →0
Solution
⎛1 1 ⎞
(b) lim+ ⎜ − ⎟ = ∞ − ∞ - indeterminate form. Change to
x →0 ⎝ x sin x ⎠
appropriate form.
⎛1 1 ⎞ ⎛ sin x − x ⎞ 0
lim+ ⎜ − ⎟ = lim ⎜ ⎟ = ; now we can use the
x →0 ⎝ x sin x ⎠ x→0+ ⎝ x sin x ⎠ 0
rule. Applying it:
⎛ sin x − x ⎞ ⎛ cos x − 1 ⎞ 0
lim+ ⎜ =
⎟ x →0+ ⎜
lim ⎟ = ; again the
x → 0 ⎝ x sin x ⎠ ⎝ x cos x + sin x ⎠ 0
indeterminate form. Apply the rule a second time:
⎛ cos x − 1 ⎞ ⎛ − sin x ⎞ 0
lim+ ⎜ =
⎟ x → 0+ ⎜
lim ⎟= =0
x → 0 ⎝ x cos x + sin x ⎠ ⎝ cos x − x sin x + cos x ⎠ 2
18
(c) lim (1 + x ) = 1∞ - indeterminate form. Rewrite to the
1/ x
x →0
appropriate form.
Let y = (1 + x )
1/ x
∴ lim y = lim(1 = x) 1/ x
=e
x →0
19