Math 21 Module Unit II
Math 21 Module Unit II
MATHEMATICS 21
Elementary Analysis I
Course Module
Institute of Mathematics
MATHEMATICS 21
Elementary Analysis I
Course Module
Institute of Mathematics
University of the Philippines Diliman
iv
2018
c by the Institute of Mathematics, University of the Philippines Diliman.
All rights reserved.
No copies can be made in part or in whole without prior written permission from the
Institute of Mathematics, University of the Philippines Diliman.
s
Alip Oropeza
ic
at
h em
at
M
of
e
ut
s tit
In
UP
Contents
ic s
1.2 One-Sided Limits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
at
1.2.1 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
em
1.3 Limits Involving Infinity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
h
1.3.1 Infinite Limits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
at
1.3.2 Limits at Infinity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
M
1.3.3 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
of
1.5.1 Continuity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
1.5.2 The Intermediate Value Theorem . . . . . . . . . . . . . . . . . . . . . . . . . 44
1.5.3 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
1.6 Trigonometric Functions: Limits and Continuity;
The Squeeze Theorem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
1.6.1 The Squeeze Theorem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
1.6.2 Continuity of Trigonometric Functions . . . . . . . . . . . . . . . . . . . . . . 53
1.6.3 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
1.7 New Classes of Functions: Limits and Continuity . . . . . . . . . . . . . . . . . . . . 57
1.7.1 Inverse Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
1.7.2 Exponential and Logarithmic Functions . . . . . . . . . . . . . . . . . . . . . 58
1.7.3 Inverse Circular Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
1.7.4 Hyperbolic Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
1.7.5 Inverse Hyperbolic Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
1.7.6 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
v
vi CONTENTS
ic s
2.3.1 Derivatives of Logarithmic Functions . . . . . . . . . . . . . . . . . . . . . . . 96
at
2.3.2 Logarithmic Differentiation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
em
2.3.3 Derivatives of Exponential Functions . . . . . . . . . . . . . . . . . .
h . . . . . 99
2.3.4 Derivative of f (x)g(x) , where f (x) > 0 . . . . . . . . . . . . . . . . . . . . . . 101
at
2.3.5 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
M
s
3.2.2 Related Rates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
ic
at
3.2.3 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
em
3.3 Local Linear Approximation and Differentials . . . . . . . . . . . . . . . . . . . . . . 159
3.3.1 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
h . . . . . 163
at
3.4 Absolute Extrema of a Function on an Interval . . . . . . . . . . . . . . . . . . . . . 165
M
ic s
at
h em
at
M
of
e
ut
s tit
In
UP
Chapter 2
In this section, we extend the notion of a tangent line to a circle to other curves at a point. Recall
ics
from Euclidean Geometry that a line tangent to a circle is a line that intersects the circle at exactly
at
one point. However, in a more general sense, a line tangent to a curve may intersect the curve at
em
points other than the point of tangency.
h
at
M
`
ut
y = f (x)
tit
of y = f (x).
UP
Figure 2.1.1
To do this, we need to find the slope of this tangent line. Consider another point Q(x1 , f (x1 )) on
←→
the graph of y = f (x). Form the secant line P Q.
←→
Q Then P Q has slope
f (x1 )
y = f (x)
)
∆y f (x1 ) − f (x0 )
P m←→ = .
f (x0 ) | {z }
PQ x1 − x0
∆x
Letting ∆x = x1 − x0 , the above expression is
equivalent to
x0 x1
Figure 2.1.2 f (x0 + ∆x) − f (x0 )
m←→ =
PQ
.
∆x
75
76 CHAPTER 2. DERIVATIVES AND DIFFERENTIATION
`
y = f (x)
Now, imagine the point Q moving along the curve y = f (x)
P
toward P .
Figure 2.1.3
We define the slope m of the line ` to be the limit of the slope m← → of the secant line as Q gets
PQ
closer and closer to P and call ` the tangent line to the graph of f at P . We have
m = lim m←→.
PQ
Q→P
ic s
Definition 2.1.1. If the function f is defined on an open interval containing x = x0 , then the
at
tangent line to the graph of f at the point P (x0 , f (x0 )) is the line
1. passing through P whose slope is given by h em
at
f (x0 + ∆x) − f (x0 )
m = lim ,
M
∆x→0 ∆x
of
2. with equation x = x0 if
ut
tit
∆x→0− ∆x
In
∆x→0+
2. The tangent line to the graph of a function may intersect the graph at points other than the
point of tangency as shown in Figure 2.1.5.
P
` TL
NL
0
Figure 2.1.5 Figure 2.1.6
0 Figure 2.1.4
2.1. SLOPES, THE DERIVATIVE, AND BASIC DIFFERENTIATION RULES 77
Definition 2.1.3. The normal line to the graph of f at the point P is the line perpendicular to
the tangent line at P . (See Figure 2.1.6.)
1
Example 2.1.4. Give equations of the tangent line and the normal line to the graph of f (x) =
x
at x = 1.
Solution.
Let mT L denote the slope of the tangent line to the graph of f (x) at x = 1. We have
f (1 + ∆x) − f (1)
mT L = lim
∆x→0 ∆x
1
− 1
= lim 1+∆x
∆x→0 ∆x
1 − (1 + ∆x)
= lim
∆x→0 ∆x(1 + ∆x)
−∆x 0
= lim
∆x→0 ∆x(1 + ∆x) 0
−1
= lim
s
∆x→0 1 + ∆x
ic
= −1
at
em
Thus, the equation of the tangent line to the graph of f (x) = x1 at (1, 1) is y − 1 = −(x − 1). Now,
h
since mT L = −1, the slope of the normal line is 1 and hence, the equation of the normal line to the
at
graph of f (x) = x1 at x = 1 is y − 1 = (x − 1), or simply y = x.
M
Example 2.1.5. Find the slope of the tangent line to the graph of g(x) = x2 + 2 at x = 1 and at
of
x = 2.
e
ut
Solution.
tit
∆x→0
[(1 + ∆x)2 + 2] − (12 + 2)
= lim
∆x→0 ∆x
[1 + 2∆x + (∆x)2 + 2] − 3
= lim
∆x→0 ∆x
2∆x + (∆x)2
= lim
∆x→0 ∆x
∆x(2 + ∆x)
= lim
∆x→0 ∆x
= lim (2 + ∆x)
∆x→0
= 2.
On the other hand, at x = 2 the slope of the tangent line to the graph of g(x) is
g(2 + ∆x) − g(2)
mT L = lim
∆x→0 ∆x
[(2 + ∆x)2 + 2] − (22 + 2)
= lim
∆x→0 ∆x
78 CHAPTER 2. DERIVATIVES AND DIFFERENTIATION
[4 + 4∆x + (∆x)2 + 2] − 6
= lim
∆x→0 ∆x
4∆x + (∆x)2
= lim
∆x→0 ∆x
= lim (4 + ∆x)
∆x→0
= 4.
In fact, we can compute for the slope of the tangent line to the graph of g(x) for any value of x.
We have
g(x + ∆x) − g(x)
mT L = lim
∆x→0 ∆x
[(x + ∆x)2 + 2] − (x2 + 2)
= lim
∆x→0 ∆x
[x + 2x∆x + (∆x)2 + 2] − (x2 + 2)
2
= lim
∆x→0 ∆x
s
2x∆x + (∆x) 2
ic
= lim
at
∆x→0 ∆x
em
= lim (2x + ∆x)
∆x→0 h
= 2x.
at
M
Using this formula, we see that the slope at x = 1 is 2 · 1 = 2 while the slope at x = 2 is 2 · 2 = 4,
of
In the previous example, we obtained a function that gives the slope of the tangent line to the
s
In
graph of a function g(x) at any value of x. This function shall be called the derivative of g(x).
UP
Definition 2.1.6. The derivative of a function f (x), denoted f 0 (x), is the function
f (x + ∆x) − f (x)
f 0 (x) = lim .
∆x→0 ∆x
It is defined at all points x in the domain of f where the limit exists.
Remark 2.1.7.
1. Hence, from the definition, dom f 0 ⊆ dom f since there may be points x0 ∈ dom f at which
f 0 (x0 ) does not exist.
2. The definition also tells us that f 0 (x0 ) is the slope of the tangent line to the graph of the function
at the point P (x0 , f (x0 )).
f (x) − f (x0 )
f 0 (x0 ) = lim .
x→x0 x − x0
dy d
4. Other notations: y 0 if y = f (x), , [f (x)] , Dx [f (x)].
dx dx
5. The process of computing the derivative is called differentiation.
Example 2.1.8. If g(x) = x2 + 2, then, following the computations in the previous example, we
have g 0 (x) = 2x.
√
Example 2.1.9. Find the derivative of f (x) = x.
Solution.
Using the definition of the derivative, we have
√ √ √ √ √ √
0 x + ∆x − x x + ∆x − x x + ∆x + x
s
f (x) = lim = lim ·√ √
ic
∆x→0 ∆x ∆x→0 ∆x x + ∆x + x
at
(x + ∆x) − x 1 1
√ √ = lim √ √ = √
em
= lim
∆x→0 ∆x( x + ∆x + x) ∆x→0 x + ∆x + x 2 x
h
at
1
Thus, f 0 (x) = √ . Note that dom f = [0, +∞) while dom f 0 = (0, +∞).
M
2 x
of
2.1.3 Differentiability
e
ut
Definition 2.1.10.
tit
Example 2.1.12. It will be shown later that if f (x) is a polynomial, a rational, or a trigonometric
function, then f (x) is differentiable on its domain.
s
ic
at
Differentiation Rules
h em
The following theorem introduces basic rules in finding the derivative of a function.
at
M
of
R, then f 0(x) = 0.
ut
1. If f (x) = c ∈
tit
4. (Sum Rule) If h(x) = f (x) ± g(x), then h0 (x) = f 0 (x) ± g 0 (x), provided both f 0 (x) and
g 0 (x) exist.
5. (Product Rule) If h(x) = f (x)g(x), then h0 (x) = f 0 (x)g(x)+f (x)g 0 (x), provided f 0 (x)
and g 0 (x) both exist.
f (x) g(x)f 0 (x) − f (x)g 0 (x)
6. (Quotient Rule) If h(x) = , where g(x) 6= 0, then h0 (x) = ,
g(x) [g(x)]2
0 0
provided f (x) and g (x) both exist.
c−c 0
1. Dx [c] = lim = lim = lim 0 = 0.
∆x→0 ∆x ∆x→0 ∆x ∆x→0
2.1. SLOPES, THE DERIVATIVE, AND BASIC DIFFERENTIATION RULES 81
(x + ∆x)n − xn
Dx [xn ] = lim
∆x→0
∆x
n(n−1) n−2
xn + nxn−1 ∆x + 2 x ∆x2 + . . . + nx∆xn−1 + ∆xn − xn
= lim
∆x→0
∆x
n−1 n(n − 1) n−2 n−2 n−1
= lim nx + x ∆x + . . . + nx∆x + ∆x
∆x→0 2
= nxn−1
Example 2.1.14.
ic s
2. Dx [(2x)5 ] = Dx [32x5 ] = 32 · 5x4 = 160x4 (Note that the derivative is not 5(2x)4 which is 80x4 .)
at
em
d √ d d 4√ d
3. [2x4 − 45 x + 7] = [2x4 ] − [ x] + [7] = 8x3 − 4
· 1
√ + 0 = 8x3 − 2
√ .
dx dx dx 5 dx h 5 2 x 5 x
at
4. If y = (x − 3)(2x2 − 3), then y = 2x3 − 6x2 − 3x + 9 and so y 0 = 6x2 − 12x − 3.
M
of
d √
tit
4
6. [(3x5 + 6x 3 − 2)(4x3 − 5 3 x)]
dx
s
1 √ 4 2
In
Remark 2.1.15.
1. Using items 1 to 4 of Theorem 2.1.13, one can show that the derivative of a polynomial function is
also a polynomial function. This means that a polynomial function is differentiable everywhere.
2. From the first item and the Quotient Rule, one can deduce that a rational function is differen-
tiable on its domain.
!
n n
1 n
xn−k y k
P
Binomial Theorem: If n is a positive integer, then (x + y) =
k=0 k
82 CHAPTER 2. DERIVATIVES AND DIFFERENTIATION
At this point, we know how to differentiate polynomial functions, rational functions, and functions
involving radicals. We now present formulas for the derivatives of trigonometric functions.
Theorem 2.1.16.
Proof. We will prove statement 1 only. Statement 2 can be proved similarly, while items 3–6 can
be proved using items 1 and 2, and the product and quotient rules.
sin(x + ∆x) − sin x
Dx [sin x] = lim
∆x→0 ∆x
ic s
sin x cos(∆x) + cos x sin(∆x) − sin x
= lim
at
∆x→0 ∆x
em
sin(∆x) 1 − cos(∆x)
= lim cos x · − sin x ·
∆x ∆x
∆x→0
h
at
= (cos x)(1) − (sin x)(0)
M
= cos x
of
e
ut
Remark 2.1.17.
s tit
1. The formulas in the previous theorems consider trigonometric functions as real–valued functions.
In
Thus, whenever these formulas are applied to problems where trigonometric functions are viewed
UP
2. Observe that the derivative of a trigonometric function is either another trigonometric function
or a product of trigonometric functions. That means that a trigonometric function is differen-
tiable where its derivative is defined. Moreover, observe that the domains of a trigonometric
function and its derivative are the same. Hence, a trigonometric function is differentiable on its
domain.
Example 2.1.18.
d
1. [3 sin x − 7 cos x] = 3 cos x + 7 sin x
dx
2. Dx [sec x csc x] = (sec x tan x)(csc x) + (sec x)(− csc x cot x)
cot x − x (1 + tan x)(− csc2 x − 1) − (cot x − x)(sec2 x)
3. If f (x) = , then f 0 (x) =
1 + tan x (1 + tan x)2
4. Dx [sin(2x)] = Dx [2 sin x cos x] = 2·(cos x·cos x+sin x·(− sin x)) = 2(cos2 x−sin2 x) = 2 cos(2x)
2.1. SLOPES, THE DERIVATIVE, AND BASIC DIFFERENTIATION RULES 83
2.1.5 Exercises
Exercises for Discussion
dy
A. Find . There is no need to simplify.
dx
1. y = 2x4 − 3x2 + x − 1 4 − x2
√ 6. y = √
1 8 3 x + tan x
2. y = 6 3 x − 2 + √
x x
√
3. y = x3 cos x cos x + π
7. y =
5 2x − x33
4. y = − sec x csc x
x
√ √
2 2 x x
5. y = x − 2 ( 3 x − cos x) 8. y = 5
x x + sin x
B. Miscellaneous Exercises.
1. Determine the equation of the normal line to the graph of g(x) = 2 sin x + tan x at the
ic s
point where x = π3 .
at
2. Find all the points on the graph of y = (x − 2)2 at which the tangent line is perpendicular
to the line with equation 2x − y + 2 = 0. h em
at
M
Supplementary Exercises
dy
of
√
1. y = 5 sin x − 2 cot x
tit
2x3 csc x + x − 2
5. y =
2. y = (2x2 + 5x − 2)(3x − 7) (sin x + 1)(x cos x − 1)
s
In
2x + 1 √
3. y = 6. y = (x2 − 2x + 2)(sin x − x)(2 + cos x)
UP
csc x
√
x sin x − x 5 1
x3 − x4 + 5x5 (sin x + csc x)
7. y = 2
x − 3
4. y = 5
x cot x − 5 x
7 3
B. Given f (5) = 5 , f 0 (5) = − , g(5) = , and g 0 (5) = −8 , determine
2 2
1. (f − g)0 (5)
f 0
3. (5)
g
g 0
2. (f · g)0 (5) 4. (5)
f
C. Miscellaneous Exercises.
1. Find the equation of the tangent line to the graph of f (x) = 2x3 + 1 at x = −1.
2. Determine the values of a and b so that the line with equation 2x + y = b is tangent to the
graph of y = ax2 when x = 2.
84 CHAPTER 2. DERIVATIVES AND DIFFERENTIATION
ics
• find higher order derivatives of a function.
at
h em
at
2.2.1 The Chain Rule
M
Recall that in the previous section, to differentiate sin 2x, an identity was used to write it in terms
of
of sin x and cos x. The following theorem allows us to differentiate a given function, a composite
e
Theorem 2.2.1 (Chain Rule). If the function g is differentiable at x = x0 and the function f
In
Remark 2.2.2. The chain rule can also be stated in the following manner:
dy dy du
If y = f (u) and u = g(x) , then = · or Dx [f (u)] = f 0 (u)Dx [u] .
dx du dx
Example 2.2.3.
1. Find Dx [(2x)5 ].
Solution.
Note that (2x)5 = (f ◦ g)(x) where f (x) = x5 and g(x) = 2x. We have f 0 (x) = 5x4 and
g 0 (x) = 2. Using chain the rule,
Solution.
√ √ 1
Note that x2 − 1 = (f ◦ g)(x) where f (x) = x and g(x) = x2 − 1. We have that f 0 (x) = √
2 x
and g 0 (x) = 2x. Using the chain rule,
1 2x
h0 (x) = f 0 (g(x)) · g 0 (x) = √ · 2x = √ .
2 x2 − 1 2 x2 − 1
3. Find Dx [sin(2x)].
Solution.
We have sin(2x) = (f ◦ g)(x) where f (x) = sin x and g(x) = 2x. So, f 0 (x) = cos x and g 0 (x) = 2
and by the chain rule,
ic s
Solution.
at
em
Note that h(x) = (f ◦ g)(x) where f (x) = 2 cos x and g(x) = x2 . Now, f 0 (x) = 2(− sin x) =
−2 sin x and g 0 (x) = 2x. Using chain the rule,
h
at
M
dy √
5. Find if y = x3 − tan x.
e
dx
ut
tit
Solution.
√
s
We let y =
UP
dy dy du 1 3x2 − sec2 x
= · = √ · (3x2 − sec2 x) = √ .
dx du dx 2 u 2 x3 − tan x
Remark 2.2.4.
1. The chain rule can also be extended to a finite composition of functions. To illustrate,
(f1 ◦ f2 ◦ f3 ◦ f4 )0 (x) = f10 ((f2 ◦ f3 ◦ f4 )(x)) · f20 ((f3 ◦ f4 )(x)) · f30 (f4 (x)) · f40 (x)
2. When computing derivatives using chain rule, we don’t actually write out the functions f and
g as in the previous examples, but we bear them in mind. It may help to keep in mind:
“The derivative of f (g(x)) is the derivative of the outside function evaluated at the inside func-
tion times the derivative of the inside function.“
Example 2.2.5.
dy
= 100(2x − 1)99 · (2) · (2 − x)200 + (2x − 1)100 · 200(2 − x)199 · (−1)
dx
= (2x − 1)99 (2 − x)199 [200(2 − x) − 200(2x − 1)]
= (2x − 1)99 (2 − x)199 [400 − 200x − 400x + 200)]
= (2x − 1)99 (2 − x)199 (600 − 600x)
= 600(1 − x)(2x − 1)99 (2 − x)199
√ 5 3 5
− · 2 + 2)3 · (5x 2 ) − (2x 2 + 2)4 · √1 · 2 + csc x cot x
" 5
#
(2x +
2 2)4 ( 2x csc x) 4(2x 2 2x
3. Dx √ = √
2x − csc x ( 2x − csc x) 2
d d
4. [sec(cos x)] = sec(cos x) tan(cos x) · [cos x] = sec(cos x) tan(cos x) · (− sin x)
dx dx
3 3 3 3 1
5. Dx [cos2 (cot 4x 2 )] = 2 cos(cot 4x 2 ) · (− sin(cot 4x 2 )) · (− csc2 4x 2 ) · (6x 2 )
ic s
2.2.2 Derivatives from the Left and from the Right
at
em
Definition 2.2.6. Let the function f (x) be defined at x = x0 .
h
1. The derivative from the left of f (x) at x = x0 , denoted by f−0 (x0 ), is given by
at
M
f (x) − f (x0 )
f−0 (x0 ) = lim .
of
x→x−
0
x − x0
e
ut
2. The derivative from the right of f (x) at x = x0 , denoted by f+0 (x0 ), is given by
tit
f (x) − f (x0 )
s
.
x→x+
0
x − x0
UP
Remark 2.2.7.
1. In Definition 2.2.6, it is necessary that the function f is defined at x0 . Otherwise, the limit
expressions do not make sense.
2. The derivative from the left [right] is also referred to as the left-hand derivative [right-hand
derivative], or simply left derivative [right derivative].
3. The function f is differentiable at x = x0 if and only if f−0 (x0 ) and f+0 (x0 ) exist and
Solution.
We compute the derivatives from the left and from the right at x = 0.
2.2. THE CHAIN RULE, AND MORE ON DIFFERENTIABILITY 87
Since f−0 (0) 6= f+0 (0), the function f (x) is not differentiable at x = 0.
(
1 2
Example 2.2.9. Determine if f (x) = 2 x +√24 , x < 4
is differentiable at x = 4.
16 x , x ≥ 4
Solution.
We compute the derivatives from the left and from the right at x = 4.
s
= lim = lim
ic
x→4− x−4 x→4+ x√− 4
at
1 2
2 x − 8 16( x − 2)
= lim = lim
em
x→4− x−4 x→4+ x−4
1 (x + 4)(x − 4) h x−4
= lim = lim 16 √
at
x→4− 2 x−4 x→4+ (x − 4) x + 2
1 16
M
= lim (x + 4) = lim √
x→4− 2 x→4+ x+2
of
= 4 = 4
e
Since f−0 (4) = f+0 (4) = 4, the function f (x) is differentiable at x = 4. Moreover, f 0 (4) = 4.
ut
tit
In applications that we will tackle later, functions that are used to model quantities and relationships
UP
are assumed to be continuous and/or differentiable on certain intervals. The following presents a
link between continuity and differentiability.
Remark 2.2.11.
Example 2.2.12. The function f (x) = |x| is continuous at x = 0 but is not differentiable at x = 0.
Theorem 2.2.13.
s
−1 − 2x , x ≥ −1
ic
at
em
Solution.
First, we check the continuity of f (x) at x = −1. Note that f (−1) = 1 and
h lim f (x) =
x→−1−
at
lim f (x) = 1, and thus, f (x) is continuous at x = −1. Next, we determine the derivative from
M
x→−1+
the left and derivative from the right at x = −1. We obtain
of
(
e
2x , x < −1
ut
f 0 (x) =
−2 , x > −1
s tit
and thus, f−0 (−1) = lim f 0 (x) = 2(−1) = −2, while f+0 (−1) = lim f 0 (x) = −2. Finally, since
In
x→−1− x→−1+
f−0 (−1) = f+0 (−1), f (x) is differentiable at x = −1.
UP
Solution.
It can be shown that g is discontinuous at x = 1. However, note that
(
2x + 1 , x < 1
g 0 (x) = ,
3 , x>1
and thus, lim g 0 (x) = 3 and lim g 0 (x) = 3. Although lim g 0 (x) = lim g 0 (x), we cannot
x→1− x→1+ x→1− x→1+
conclude that the function is differentiable at x = 1. (Why?) In fact, g is not differentiable at
x = 1. (Why?)
2.2. THE CHAIN RULE, AND MORE ON DIFFERENTIABILITY 89
3. the graph of f has no well–defined tangent line at x = x0 , i.e., the graph of f has a corner, edge
or cusp at x = x0 (see Figure 2.2.3).
s
ic
at
em
x0 x0 x0
Figure 2.2.1 Figure 2.2.2
h Figure 2.2.3
at
M
If the derivative f 0 of a function f is itself differentiable, then the derivative of f 0 is called the
e
second derivative of f and is denoted f 00 . We can continue to obtain the third derivative, f 000 ,
ut
the fourth derivative, f (4) , and even higher derivatives of f as long as we have differentiability.
stit
Definition 2.2.17. The n-th derivative of the function f , denoted by f (n) , is the derivative
In
√
2. Find f (4) (x) if f (x) = 2x − 3.
Solution.
We differentiate repeatedly and obtain
1 1 1
f 0 (x) = (2x − 3)− 2 · (2) = (2x − 3)− 2
s
2
ic
1 3 3
f 00 (x) = − (2x − 3)− 2 · (2) = − (2x − 2)− 2
at
2
3
em
5 5
000
f (x) = (2x − 3)− 2 · (2) = 3 (2x − 2)− 2
2 h
15 7 7
f (4) (x) = − (2x − 3)− 2 · (2) = −15 (2x − 2)− 2
at
2
M
Equations in two variables are used to define a function explicitly or implicitly. The equation
ut
y = x2 − 1 defines the function f (x) = x2 − 1 explicitly. On the other hand, the equation y 2 = x + 1
tit
√ √
f1 (x) = x + 1 and f2 (x) = − x + 1.
UP
However, suppose a function is defined implictly by a function for which y cannot be isolated easily,
dy
such as x4 y 3 − 7xy = 7 or tan(x2 − 2xy) = y. How do we find ?
dx
dy
To obtain without solving for y explicitly in terms of x, we use the method called implicit
dx
dy
differentiation. To find using implicit differentiation, we
dx
1. think of the variable y as a differentiable function of the variable x,
2.2. THE CHAIN RULE, AND MORE ON DIFFERENTIABILITY 91
2. differentiate both sides of the equation, using the chain rule where necessary, and
dy
3. solve for .
dx
dy
Example 2.2.19. Find .
dx
1. x3 − 2xy − 3y − 6 = 0
Solution.
Dx [x3 − 2xy − 3y − 6] = Dx [0]
dy dy
3x2 − 2 1 · y + x · −3· =0
dx dx
dy dy
3x2 − 2y − 2x · −3· =0
dx dx
dy dy
3x2 − 2y = 2x · +3·
dx dx
dy
(2x + 3) = 3x2 − 2y
dx
ic s
dy 3x2 − 2y
at
=
dx 2x + 3
em
x3 −6
3x2 − 2 · 2x+3 2x + 3
= ·
h
2x + 3 2x + 3
at
3x · (2x + 3) − 2(x3 − 6)
2
M
=
(2x + 3)2
of
4x3 + 9x2 + 12
=
e
(2x + 3)2
ut
tit
2. x4 y 3 − 7xy = 7
s
In
Solution.
UP
3. tan(x2 − 2xy) = y
Solution.
d2 y
Example 2.2.20. Determine if xy 2 = y − 2.
dx2
Solution.
dy
We use implicit differentiation to get .
dx
Dx [xy 2 ] = Dx [y − 2]
dy dy
y 2 + x · 2y =
dx dx
dy y2
=
dx 1 − 2xy
Thus,
dy dy
d2 y (1 − 2xy)(2y dx ) − (y 2 )[−2(y + x dx )]
2
= 2
dx (1 − 2xy)
h i h i
y2 y2
(1 − 2xy) 2y · 1−2xy − (y 2 ) −2 y + x · 1−2xy
= .
s
(1 − 2xy)2
ic
at
h em
at
M
of
e
ut
s tit
In
UP
2.2. THE CHAIN RULE, AND MORE ON DIFFERENTIABILITY 93
2.2.7 Exercises
Exercises for Discussion
B. Differentiability.
1. Determine if ( 2
3x 3 − 1 , x ≤ 1
f (x) = 3
x −x+2 , x>1
is differentiable at x = 1.
ic s
2. Determine if
at
(
x2 − 4 , x < 3
em
g(x) = √
x−2 , x≥3
h
at
is differentiable at x = 3.
M
3. Determine if
(
of
(x − 1)2 , x ≤ 1
h(x) = √
x−1 , x>1
e
ut
is differentiable at x = 1.
s tit
C. Implicit Differentiation.
In
dy
UP
√
N
1. Find f (n) (x) for all x ∈ if f (x) = 6x5 − 5x4 − 4x3 + 3x2 − 2x + 1.
2. Evaluate Dx2 x 4 − x2
E. Do as indicated.
1. If g(5) = 3, g 0 (5) = 4, f (3) = 5 and f 0 (3) = 6, find (f ◦ g)0 (5) and (g ◦ f )0 (3).
2. Determine the point/s on the graph of xy = (1 − x − y)2 where the tangent line/s is/are
parallel to the x−axis.
3. Determine Dx103 (cos 2x).
4. Find y 00 at the point with coordinate (2, 1) if 2x2 y − 4y 3 = 4.
94 CHAPTER 2. DERIVATIVES AND DIFFERENTIATION
Supplementary Exercises
ic s
at
a. (f ◦ g)0 (2) b. (g ◦ f )0 (2) c. (g ◦ g)0 (2) d. (f ◦ g ◦ f )0 (2)
B. Differentiability. h em
at
1. Find the values of m and n so that
M
(
x2 , x < 1
of
f (x) =
mx + n , x ≥ 1
e
ut
is differentiable at x = 1.
tit
(
ax + b , x < 2
g(x) =
UP
2x2 − 1 , x ≥ 2
is differentiable at x = 2.
C. Implicit Differentiation.
dy
1. Use implicit differentiation to find . There is need to simplify.
dx
a. 2x sin y = (x + 2y)6 3 3
c. cot4 (xy) = 4x 2 − sin(x 5 + y 3 )
5
√ x4
b. sec(2x − y) − 3 = sin2 y −
4
2. Give the equation of the normal line to the graph of y 3 − xy 2 + cos(xy) = 2 at (0, 1).
d2 y
2. Determine if (x + y)3 = xy 2 − 2y.
dx2
2.2. THE CHAIN RULE, AND MORE ON DIFFERENTIABILITY 95
E. Do as indicated.
ic s
at
h em
at
M
of
e
ut
s tit
In
UP
96 CHAPTER 2. DERIVATIVES AND DIFFERENTIATION
ic s
x ∆x→0 x
at
∆x
em
Let h = . Then h → 0 if and only if ∆x → 0. Thus,
x h
at
1 1 1 1
Dx (ln x) = ln lim (1 + h) = ln e = .
h
M
x h→0 x x
Interestingly, the derivative of the ln function, one that cannot be expressed using a finite number
of
In contrast, the derivatives of circular functions are products of their fellow circular functions.
tit
Now, since any logarithmic function can be expressed as the ln function times a constant, one easily
s
In
ln x 1 1 1 1
Dx (loga x) = Dx = Dx (ln x) = · = .
ln a ln a ln a x x ln a
Note that the domain of the natural logarithmic function is (0, +∞), so it is an antiderivative of
1
f (x) = on (0, +∞). We wish to find a function F such that F 0 (x) = f (x) on the natural domain
x
R
of f , which is \ {0}. Using the chain rule, we can show that F (x) = ln |x| satisfies this property.
Theorem 2.3.1.
1
1. Dx (ln x) = for all x > 0.
x
2.3. DERIVATIVES OF EXPONENTIAL AND LOGARITHMIC FUNCTIONS 97
1
2. Dx (loga x) = for all x > 0.
x ln a
1
3. Dx (ln |x|) = for all x 6= 0.
x
dy
Example 2.3.2. Find .
dx
1. y = log2 x
Solution.
dy 1
=
dx x ln 2
2. y = ln(3x2 + 2)
Solution.
dy 1 6x
= 2 · 6x = 2
dx 3x + 2 3x + 2
ic s
at
3. y = ln |7 − cos(2x)|
Solution.
dy 1 2 sin(2x)
h em
at
= · sin(2x) · 2 =
dx 7 − cos(2x) 7 − cos(2x)
M
of
Solution.
dy 1 1
tit
= · cos (log5 x) ·
dx sin (log5 x) x ln 5
s
In
5. y = x2 log x
UP
Solution.
dy 1 x
= 2x · log x + x2 · = 2x log x +
dx x ln 10 ln 10
dy
Suppose you are asked to find . One could imagine the excessive computations that would
dx
be brought about by repeated application of the product, quotient, power and chain rules. We
shall therefore introduce a process called logarithmic differentiation, a technique helpful in
differentiating an expression involving many products and quotients. In using this technique given
an equation in x and y:
98 CHAPTER 2. DERIVATIVES AND DIFFERENTIATION
1. Take the absolute value of both sides of the equation and apply properties of the absolute
value.
2. Take the natural logarithm of both sides and apply properties of logarithms to obtain a sum.
dy
3. Take the derivative of both sides implicitly with respect to x and solve for .
dx
Example 2.3.3.
√
3
dy x+1
1. Find if y = √ .
dx csc (x) 1 − x2
5
Solution.
We begin by taking the absolute value of both sides of the equation. Simplifying the result,
we get
√3
x+1
|y| = √
s
csc5 (x) 1 − x2
ic
at
1
|x + 1| 3
=
em
1
| csc x|5 |1 − x2 | 2h
at
M
Next, we take the natural logarithm of both sides of the function. Using the properties of
of
1
!
|x + 1| 3
ln |y| = ln
tit
1
| csc x|5 |1 − x2 | 2
s
In
1 1
= ln |x + 1| 3 − ln | csc x|5 − ln |1 − x2 | 2
UP
1 1
= ln |x + 1| − 5 ln | csc x| − ln |1 − x2 |
3 2
Finally, we take the derivatives of both sides of the equation implicitly with respect to x and
dy
solve for ,
dx
1 1 2
Dx (ln |y|) = Dx ln |x + 1| − 5 ln | csc x| − ln |1 − x |
3 2
1 dy 1 1 5 1 1
· = · ·1− · (− csc x cot x) − · · (−2x)
y dx 3 x+1 csc x 2 1 − x2
dy 1 x
=y + 5 cot x +
dx 3(x + 1) 1 − x2
√3
x+1 1 x
= √ + 5 cot x +
csc5 (x) 1 − x2 3(x + 1) 1 − x2
2.3. DERIVATIVES OF EXPONENTIAL AND LOGARITHMIC FUNCTIONS 99
√3
dy x2 tan4 x
2. Find if y = .
dx (2x2 + 1)3 log x
Solution.
Once again, we begin by taking the absolute value of both sides of the equation. This gives
us
2
|x| 3 | tan x|4
|y| = .
|2x2 + 1|3 | log x|
Then, we take the natural logarithm of both sides and rewrite the equation as a sum using the
properties of logarithms to obtain
2
ln |y| = ln |x| + 4 ln | tan x| − 3 ln |2x2 + 1| − ln | log x|.
3
s
dy
ic
Finally, we take the derivative of both sides implicitly with respect to x and solve for ,
at
dx
em
1 dy 2 1 1 1 1 1
· sec2 x − 3 · 2
= · +4· h · (4x) − ·
y dx 3 x tan x 2x + 1 log x x ln 10
√
at
3 2 4
2
dy x tan x 2 4 sec x 12x 1
M
= + − 2 − .
dx (2x2 + 1)3 log x 3x tan x 2x + 1 (log x)(x ln 10)
of
Next, we determine the derivatives of exponential functions, which we give in the following theorem.
s tit
In
Theorem 2.3.4.
UP
B. Dx (ex ) = ex
y = ax .
x = loga y,
and taking the derivative of both sides of the equation implicitly with respect to x, we obtain
Dx (x) = Dx (loga y)
1 dy
1= · .
y ln a dx
100 CHAPTER 2. DERIVATIVES AND DIFFERENTIATION
dy
Solving for , we obtain
dx
dy
= y ln a = ax ln a.
dx
dy
This proves the first statement of Theorem 2.3.4. Observe that if a = e, then = ex ln e = ex ,
dx
which proves the second statement of Theorem 2.3.4.
Thus, we obtain a function whose derivative is itself. (Is this the only function with this property?)
Note also that ln a > 0 when a > 1 and ln a < 0 when 0 < a < 1. Because ax > 0 for any x ∈ R,
Dx (ax ) = ax ln a > 0 when a > 1 and Dx (ax ) = ax ln a < 0 when 0 < a < 1. This explains why
f (x) = ax is an increasing function when a > 1 and decreasing when 0 < a < 1.
dy
s
Example 2.3.5. Find .
ic
dx
at
1. y = 4x
Solution.
h em
at
dy
M
= 4x ln 4
dx
of
3
2. y = ex
e
ut
Solution.
tit
dy
s
3
= ex · 3x2
In
dx
UP
3. y = 24x csc(ex )
Solution.
dy
= 24x ln 2 · 4 csc(ex ) + 24x [− csc (ex ) cot (ex ) · ex ]
dx
Hence, the power rule holds even for irrational exponents. We state this as a theorem:
Solution.
Using logarithmic differentiation, we have
ln y = ln (xx ) (no need to take absolute values since x > 0)
ln y = x ln x
1 dy 1
= 1 · ln x + x ·
y dx x
dy
= y(ln x + 1)
dx
ic s
dy
= xx (ln x + 1)
at
dx
em
Alternatively, we have
y = ex ln x
h
at
dy 1
M
x ln x
=e 1 · ln x + x ·
dx x
of
dy
= xx (ln x + 1)
e
dx
ut
Solution.
ln y = cos x ln(sin x)
UP
1 dy 1
= (− sin x) · ln(sin x) + cos x · · cos x
y dx sin x
cos2 x
dy cos x
= (sin x) − sin x ln(sin x) +
dx sin x
102 CHAPTER 2. DERIVATIVES AND DIFFERENTIATION
2.3.5 Exercises
Exercises for Discussion
dy
A. Find . Use logarithmic differentiation whenever appropriate.
dx
1. y = log5 (2x5 − 1) sec x 6. y = x2 · 35x−3
2. y = cos(ln |4 − x|)
√ 7. ln(x2 + y 2 ) = ex+y − ex−y
3. y = x5 (x2 − 1)4 sin x
xy )
(1 + x − x2 )3 8. ln 2 = (x2 − 1)π + 5(e
4. y = √ √
sec 4x(x − log x)6 9. y = (log4 x)e
x
x2 cot4 x
5. y = √ 2
3
5x − 2(log4 x)10 10. y = (tan 3x)1−x
B. Find the equation of the normal line to the graph of f (x) = 2x log2 x at the point where
x = 1.
ic s
Supplementary Exercises
at
dy
em
A. Find . Use logarithmic differentiation whenever appropriate.
dx h
at
csc(log3 x) 8. y = 2x + 3x − 5x
M
1. y = √
x − ln(5x)
4 − 14x
of
9. y = log8
2. sin x2 − y 2 = tan log 1 x 1 − x2
e
4
ut
esin 2x + ln(1 + x)
4. y = 1 + x − log12 x
2log5 x 11. y =
s
5. y = (x + 2x )sin 5x
2
12. ln |x − cos y| = y 2 + x − 2
UP
6. y x = xy
7. ln(x − y) = (tan x)y 13. x tan y − sin [(x − 1) ln y] = x
2.4. DERIVATIVES OF OTHER NEW CLASSES OF FUNCTIONS 103
Theorem 2.4.1.
1 1
1. Dx sin−1 x = √ 4. Dx cot−1 x = −
1 − x2 1 + x2
1 1
5. Dx sec−1 x = √
2. Dx cos−1 x = − √
1 − x2 x x2 − 1
1 1
6. Dx csc−1 x = − √
3. Dx tan−1 x =
1 + x2 x x2 − 1
Proof. We show the proof of statement 1 only. The rest can be proved similarly.
ic s
y = sin−1 x
at
x = sin y
Dx (x) = Dx (sin y) hem
at
dy
1 = cos y ·
M
dx
dy 1
of
=
dx cos y
e
p √ dy
ut
1
√ .
s
1 − x2
In
UP
dy
Example 2.4.2. Find .
dx
1. y = sin−1 (3x)
Solution.
dy 1 3
=p · (3) = √
dx 1 − (3x)2 1 − 9x2
2. y = cot−1 (ln x)
Solution.
dy 1 1
= − 2
·
dx 1 + (ln x) x
y
1 2
= log2 (x − y) − csc−1 (3x2 )
3.
5
Solution.
104 CHAPTER 2. DERIVATIVES AND DIFFERENTIATION
Theorem 2.4.3.
ic s
2. Dx (cosh x) = sinh x 5. Dx (sech x) = − sech x tanh x
at
em
3. Dx (tanh x) = sech2 x 6. Dx (csch x) = − csch x coth x
h
at
Proof. Again, we shall prove the first statement only.
M
of
2 dx 2 2
ut
tit
dy
Example 2.4.4. Find .
s
dx
In
1. y = csch x5 − 2
UP
Solution.
dy
= − csch x5 − 2 coth x5 − 2 · (5x4 )
dx
√
2. y = tanh3
x+3
Solution.
dy √ √ 1
= 3 tanh2 x + 3 · sech2
x+3 · √
dx 2 x+3
Solution.
y = esinh x ln(cosh x)
dy sinh x ln(cosh x) 1
=e cosh x · ln(cosh x) + sinh x · · sinh x
dx cosh x
2.4. DERIVATIVES OF OTHER NEW CLASSES OF FUNCTIONS 105
Theorem 2.4.5.
1 1
1. Dx (sinh−1 x) = √ 4. Dx (coth−1 x) = , |x| > 1
x2 + 1 1 − x2
1 1
2. Dx (cosh−1 x) = √ 5. Dx (sech−1 x) = − √
x2 −1 x 1 − x2
1 1
3. Dx (tanh−1 x) = , |x| < 1 6. Dx (csch−1 x) = − √
1 − x2 |x| x2 + 1
dy
Example 2.4.6. Find .
dx
ic s
A. y = sinh−1 (1 − x)
at
Solution.
dy 1 −1 em
h
at
=p · (−1) = p
dx 2
(1 − x) + 1 (1 − x)2 + 1
M
x
1
of
−1 4 −1
B. y = coth (x ) − sech
4
e
ut
Solution.
tit
x
dy 1 3 +
1 1 1
· ·
s
= 4x ln
In
1 − x8
q
dx 1 x
1 2x
4 4
4 1− 4
UP
Solution.
dy 1 1
= −1 ·√ ·2
dx cosh (2x) ln 10 4x2 − 1
106 CHAPTER 2. DERIVATIVES AND DIFFERENTIATION
2.4.4 Exercise
Exercises for Discussion
dy
A. Find .
dx
√
1. y = 5cos
−1 x sec−1 (2x ) − e
4. y =
√ [log (3x)] tan−1 x
2. y = cos−1 6
cos x4 + ecot x − 4π 2 5. sin−1 (xy) = cos−1 (x − y)
tan−1 √x
3. y = sec ln csc−1 x 6. y = sin−1 x2
dy
B. Find .
dx
3
1. y = cosh(ln x) 4. y = 10csch(x ) sec−1 (cosh 4x)
√
2. y = tanh3 3 2x
5. cosh(x − y) = log3 x − tanh(x2 + y 2 )
log5 (sech(ex ))
s
√
ic
3. y = 6. sec−1 ( x) = tanh(x2 y) + y sinh 2
sinh (x − tan−1 x)
at
em
dy
C. Find . h
dx
at
M
√
ut
tanh−1 x 3x2 +1
3. y = 6. cosh x = tanh−1 y
tit
1 + sec x2
s
In
Supplementary Exercises
UP
dy
A. Find . There is no need to simplify.
dx
• evaluate limits with indeterminate form 0/0, ∞/∞ using L’Hôpital’s Rule; and
0 ∞
2.5.1 Indeterminate Forms of Type and
s
0 ∞
ic
at
With the aid of derivatives, certain limits can be evaluated more conveniently. We first recall
em
some terminology defined in the early part of this course. We also recall here some techniques in
evaluating limits we have previously encountered. h
at
f (x)
M
0
1. if lim f (x) = lim g(x) = 0.
e
ut
0 x→a x→a
tit
∞
2. if lim f (x) and lim g(x) are both +∞ or −∞.
∞ x→a
s
x→a
In
x2 − 3x
0
1. lim 2
x→0 2x + x 0
Solution.
x2 − 3x x(x − 3) x−3
lim 2
= lim = lim = −3
x→0 2x + x x→0 x(2x + 1) x→0 2x + 1
sin 5x 0
2. lim
x→0 sin 3x 0
Solution.
sin 5x sin 5x 3x 5 5 5
lim = lim =1·1· =
x→0 sin 3x x→0 5x sin 3x 3 3 3
108 CHAPTER 2. DERIVATIVES AND DIFFERENTIATION
x2 + 3x − 10
0
3. lim 2
x→2− x − 4x + 4 0
Solution.
x2 + 3x − 10 (x + 5)(x − 2)
lim = lim
x→2− x2 − 4x + 4 x→2− (x − 2)2
x+5 7
= lim
x→2− x − 2 0−
= −∞
3x − 1 +∞
4. lim
x→+∞ 7 − 6x −∞
Solution.
1
3x − 1 3x − 1 3 − x1 1
s
x
· =−
ic
lim = lim 1 = lim 7
x→+∞ 7 − 6x x→+∞ 7 − 6x 2
x −6
x→+∞
at
x
f (x) 0
except possibly at a and g 0 (x) 6= 0 for all x ∈ I \ {a}. If lim is indeterminate of type
s
x→a g(x) 0
In
∞
or , then
UP
∞
f (x) f 0 (x)
lim = lim 0 ,
x→a g(x) x→a g (x)
f 0 (x) f 0 (x)
provided lim 0
exists or lim 0 = ±∞.
x→a g (x) x→a g (x)
Dx x2 − 3x
x2 − 3x 2x − 3
lim 2 = lim 2
= lim = −3
x→0 2x + x x→0 Dx 2x + x x→0 4x + 1
2.5. MORE INDETERMINATE FORMS AND L’HÔPITAL’S RULE 109
sin 5x 0
2. lim
x→0 sin 3x 0
Solution.
sin 5x 5 cos 5x 5
lim = lim =
x→0 sin 3x x→0 3 cos 3x 3
x2 + 3x − 10
0
3. lim 2
x→2− x − 4x + 4 0
Solution.
x2 + 3x − 10
2x + 3 7
lim 2 = lim
s
x→2− x − 4x + 4 x→2 2x − 4
− 0−
ic
= −∞
at
4. lim
3x − 1
+∞
hem
at
x→+∞ 7 − 6x −∞
M
Solution.
of
e
ut
3x − 1 3 1
tit
lim = lim =−
x→+∞ 7 − 6x x→+∞ −6 2
s
In
x3 − 3x + 2
0
UP
5. lim
x→1 1 − x + ln x 0
Solution.
x3 − 3x + 2 3x2 − 3
0
lim = lim
x→1 1 − x + ln x x→1 −1 + 1 0
x
6x
= lim 1
x→1 − 2
x
= −6
csc x −∞
6. lim
x→0− 1 − cot x +∞
Solution.
110 CHAPTER 2. DERIVATIVES AND DIFFERENTIATION
Observe that the expression in the last line above is exactly the same as the expression in the
second line. Hence, continued application of L’Hôpital’s Rule here will just lead us to an infinite
string of equations and will not help us evaluate the limit. This example should make you realize
ic s
that L’Hôpital’s Rule is not always helpful. Sometimes, we must fall back to old-fashioned tricks.
at
em
For instance, we evaluate this limit by simply manipulating the given expression to obtain
h
a simpler expression:
at
M
of
1
csc x sin x
e
x→ 0− 1 − cot x x→ 0− 1 −
sin x
tit
1
= lim
s
In
x→ 0− sin x − cos x
= −1
UP
It is imperative to remember the behavior of each function introduced in this course; doing so
will help us in computing new limits. Recalling the graphs of our new functions will be helpful in
remembering their behavior. For instance, using the graph of f (x) = loga x, where 0 < a < 1, one
sees that lim loga x = +∞. Thus, if f (x) approaches 0 through positive values as x approaches
x→0+
k, then
lim loga [f (x)] = lim loga y = +∞.
x→k y→0+
x + sin x
Example 2.5.6. Evaluate: lim
x→+∞ x
Solution.
Note that since x + sin x ≥ x − 1 for any x ∈ R and x→+∞
lim x − 1 = +∞, then lim x + sin x = +∞
x→+∞
∞
as well. Thus, the limit is indeterminate of type .
∞
2.5. MORE INDETERMINATE FORMS AND L’HÔPITAL’S RULE 111
Dx (x + sin x) 1 + cos x
However, = andlim does not exist since cos x does not ap-
Dx (x) 1 1 + cos x
x→+∞
1
proach any particular value as x → +∞. Neither does 1 + cos x grow without bound. Thus,
L’Hôpital’s Rule does not apply.
We therefore need to employ other techniques. In particular, notice that for any x > 0, the following
hold:
x − 1 ≤ x + sin x ≤ x + 1
x−1 x + sin x x+1
⇔ ≤ ≤
x x x
x−1 x+1 x + sin x
Also, lim = 1 = lim , so by the Squeeze Theorem, lim = 1.
x→+∞ x x→+∞ x x→+∞ x
s
1. The lim f (x)g(x) is an indeterminate form of type 0 · ∞ if either
ic
x→a
at
lim f (x) = 0 and lim g(x) = +∞ or − ∞, or
em
x→a x→a
h
lim f (x) = +∞ or − ∞ and lim g(x) = 0.
at
x→a x→a
M
x→a x→a
ut
tit
0 ∞
Remark 2.5.8. L’Hôpital’s Rule works only for indeterminate forms of type and . Any
0 ∞
UP
other indeterminate form must be expressed equivalently in one of these two forms if we wish to
apply L’Hôpital’s Rule. For the new indeterminate forms described above, these conversions can
be performed as described below.
1. If lim f (x) = 0 and lim g(x) = +∞ or −∞, write lim f (x)g(x) as:
x→a x→a x→a
f (x) 0
(a) lim , which is indeterminate of type , or
x→a 1 0
g(x)
g(x) ∞
(b) lim , which is indeterminate of type
x→a 1 ∞
f (x)
2. If lim f (x) + g(x) is indeterminate of type ∞ − ∞, rewrite f (x) + g(x) as a single expression to
x→a
0 ∞
obtain an indeterminate form of type or and apply L’Hôpital’s Rule.
0 ∞
Example 2.5.9. Evaluate the following limits.
112 CHAPTER 2. DERIVATIVES AND DIFFERENTIATION
Solution.
sin−1 (2x)
−1 0
lim sin (2x) csc x = lim
x→0+ x→0+ sin x 0
1
√ · (2)
1 − 4x2
= lim
x→0+ cos x
2
=
1
= 2
ics
Solution.
at
lim tan θ ln (sin θ) = lim
ln(sin θ) hem
0
at
π−
θ→ 2 π−
θ→ 2 cot θ 0
M
1
sin θ cos θ
= lim
of
2
θ→ π2 − − csc θ
e
θ→ π2 −
tit
= −1(0)
s
In
= 0
UP
x 1 1 1
3. lim − −
x→1+ x − 1 ln x 0+ 0+
Solution.
x 1 x ln x − (x − 1) 0
lim − = lim
x→1+ x − 1 ln x x→1+ (x − 1) ln x 0
x · x1 + ln x − 1
= lim
x→1+ (x − 1) · 1 + ln x
x
ln x 0
= lim
x→1+ 1 − 1 + ln x 0
x
1
x
= lim
x→1+ 12 + 1
x x
1
=
2
2.5. MORE INDETERMINATE FORMS AND L’HÔPITAL’S RULE 113
ic s
x→a
at
2. lim g(x) ln[f (x)] = +∞, then lim f (x)g(x) = +∞.
em
x→a x→a
1. lim xsin x 00
e
x→0+
ut
Solution.
tit
x→0+
UP
ln x −∞
lim sin x ln x (0 · (−∞)) = lim
x→0+ x→0+ csc x +∞
1
x
= lim
− csc x cot x
x→0+
− sin2 x
0
= lim
x→0+ x cos x 0
−2 sin x cos x
= lim
x→0+ x(− sin x) + cos x
= 0
3 2x
2. lim 1− (1∞ )
x→+∞ x
Solution.
114 CHAPTER 2. DERIVATIVES AND DIFFERENTIATION
3
3 2x
= e2x ln(1− x )
1− x
3
ln 1 −
3 x 0
lim 2x ln 1 − (+∞ · 0) = lim
x→+∞ x x→+∞ 1 0
2x
1 3
·
3 x2
1−
= lim x
x→+∞ 1
− 2
2x
−6
= lim
x→+∞ 3
1−
x
= −6
3 2x
s
Hence, lim 1− = e−6 .
ic
x→+∞ x
at
hem
at
M
of
e
ut
tit
s
In
UP
2.5. MORE INDETERMINATE FORMS AND L’HÔPITAL’S RULE 115
2.5.5 Exercises
Exercises for Discussion
3−x
p
1. lim x 11. lim x− x2 − x + 2
x→3 2 − 8 x→+∞
ln x 12. lim (tan x)cos x
2. lim 1 x→ π2 −
+
x→0 e x
sec x 1
3. lim 13. lim x + e2x x
π − 1 + tan x x→0
x→ 2
x 1
4. lim √ 14. x + e2x x
lim
x→−∞ x2 + 1 x→+∞
√
ln (3 + ex ) 15. lim
x
cosh 3x
5. lim x→+∞
x→+∞ 7x
sin x − x x−1
6. lim 16. lim x ln
s
x3 x→+∞ x+1
ic
x→0
1 − x + ln x
at
sin x + tan x
7. lim 17. lim
em
x→1 1 + cos πx x→0−ex + e−x − 2
1
8. lim x2 e x
cos x
18. lim x − π2
x→0+
h
x→ π2 +
at
−1
9. lim tan (x) ln x
M
B. Do as indicated.
s
In
1. If an electrostatic field E acts on a gaseous polar dielectric, the net dipole moment P per
1
UP
Supplementary Exercises
2x3 + x2 + 1 1 − ex
2
1. lim 5. lim
x→−∞ x2 − x x→0 log3 (1 − x)
e2x − 4 2x3 + ln 5x
2. lim 6. lim
x→ln 2 x − ln 2 x→+∞ 7 + ex
cos x
sinh−1 x4
3. limπ
x→ 2 x − π 3
2
7. lim 1
x→+∞ 3x − 1
tanh x
4. lim 8. lim x (ln(−x))
x→0+ sech x − 1 x→0−
116 CHAPTER 2. DERIVATIVES AND DIFFERENTIATION
8 x
9. lim 1−
2
− 2 16. lim [1 + tan(11x)]cot(2x)
x→0+
x→−∞ 5x 5x
1 4
2x − 3
2x+1
10. lim 2 − 17. lim
x→3+ x − 9 ln (2x − 5) x→+∞ 2x + 5
11. lim (ln(x + 1) − ln(x − 1))
x→+∞ x3
x3
12. lim cot(3x) ln [1 + tan(5x)] 18. lim
x→0+ x→+∞ x3 + 4
x csch x
13. lim e
x→0
19. lim (2x + 5)csch(2x+4)
14. lim x(ln 2)/(1+ln x) x→−2+
x→∞
√
1 3x 9
16 − 8x
15. lim 1+ 20. lim tanh
x→+∞ x x→2− x−2
ic s
at
h em
at
M
of
e
ut
s tit
In
UP
2.6. THE MEAN VALUE THEOREM 117
ic s
at
Theorem 2.6.1 (Rolle’s Theorem). Let f be a function such that
Then there exists a number c in the open interval (a, b) such that f 0 (c) = 0.
e
ut
tit
s
y y y
In
c
UP
a b
x
a
x
a bx b1 b2
Remarks.
1. Note that condition (iii) of Rolle’s Theorem implies that the line passing through the points
(a, f (a)) and (b, f (b)) is horizontal. On the other hand, the conclusion implies that there is
a horizontal tangent line to the graph of f and the point of tangency has x-coordinate lying
between a and b. Refer to Figure 2.6.1.
2. Continuity on [a, b] is important because there are functions that satisfy only conditions (ii) and
(iii) but do not satisfy the conclusion. Refer to Figure 2.6.2 and consider the function on the
interval [a, b1 ]. It may also be the case that the conclusion is satisfied even if one of premises is
not satisfied. Refer to Figure 2.6.2 and consider the function on the interval [a, b2 ].
118 CHAPTER 2. DERIVATIVES AND DIFFERENTIATION
3. Notice that f need not be differentiable at the endpoints a and b. Refer to Figure 2.6.1.
4. The number c ∈ (a, b) in the conclusion need not be unique. Refer to Figure 2.6.3.
Theorem 2.6.2 (The Mean Value Theorem). Let f be a function such that
Remark 2.6.3. The Mean Value Theorem is the generalization of Rolle’s Theorem where the line
`, passing through (a, f (a)) and (b, f (b)) is not necessarily horizontal. The conclusion says that
there is a tangent line to the graph of f that is parallel to ` and whose point of tangency has
ic s
x-coordinate between a and b. Refer to Figure 2.6.4 and 2.6.5.
at
em
y
y h
at
`
M
x
a c b
of
c2 b
e
x
a c1
ut
tit
Example 2.6.4.
UP
1. Determine if Rolle’s Theorem is applicable to the given functions on the indicated intervals:
Solution.
Note that f (x) is continuous on [1, 2] and differentiable on (1, 2) because it is a polynomial.
Moreover, f (1) = 0 = f (2). Hence Rolle’s Theorem can be applied. We therefore conclude
that there exists a c such that 1 < c < 2 and f 0 (c) = 0. In fact, we can solve for c. Since
Solution.
2.6. THE MEAN VALUE THEOREM 119
Notice that the only possible point of discontinuity of f (x) is at x = 21 . Checking conditions
for continuity at x = 21 , we have
1 1 1 1
(i) f = (ii) lim f (x) = lim (x − 1) = − (iii) lim f (x) = lim x2 =
2 4 x→ 1+
x→ 1+ 2 x→ 1−
x→ 1− 4
2 2 2 2
1
Hence, f is not continuous at x = 2 and Rolle’s Theorem cannot be applied.
2. Apply the Mean Value Theorem to f (x) = 2x3 − 3x2 + x to show that 6x2 + 1 = 6x has at least
one real root between 0 and 1.
Solution.
Note that f 0 (x) = 6x2 − 6x + 1. Since f is a polynomial and f (0) = 0 = f (1), then f satisfies
the assumptions of Rolle’s Theorem on [0, 1]. Hence there is a c ∈ (0, 1) such that f 0 (c) = 0.
This c is a root of the equation 6x2 + 1 = 6x.
x+2 1
3. Let f (x) = . Show that there is a c ∈ (1, 2) such that if f 0 (c) = − .
x+1 6
ic s
at
Solution.
em
Since −1 ∈
/ [1, 2] and f is a rational function, f is continuous on [1, 2] and differentiable on (1, 2).
h f (2) − f (1) 4 3 1
By the Mean Value Theorem, there is a c ∈ (1, 2) such that f 0 (c) = = − =− .
at
2−1 3 2 6
M
4. Suppose that f (x) is continuous on [6, 15] and differentiable on the interval (6, 15) and f 0 (x) ≤ 10
of
for all x. If f (6) = −2, what is the largest possible value for f (15)?
e
ut
Solution.
tit
Note that f satisfies the hypotheses of the Mean Value Theorem. Hence there is a c ∈ (6, 15)
s
such that
In
15 − 6 9
Therefore, f (15) ≤ 88.
120 CHAPTER 2. DERIVATIVES AND DIFFERENTIATION
2.6.3 Exercises
Exercises for Discussion
A. Determine if Rolle’s Theorem applies to the following functions on the given intervals, and if
so, find all values of c satisfying the conclusion of the theorem.
1. f (x) = x2 − x − 2 on [−1, 2] x2 − x − 12
4. f (x) = on [−3, 4]
2. f (x) = x3/4 − 2x1/4 on [0, 4] x−3
3. f (x) = 3 cos2 x on [ π2 , 3π
2 ] 5. f (x) = 1 − |x| on [−1, 1]
B. Determine if the Mean Value Theorem applies to the following functions on the given intervals,
and if so, find all values of c satisfying the conclusion of the theorem.
ic s
4
2. f (x) = on [ 25 , 4]
at
9 − 2x 5. f (x) = (1 + sin x)2 on [−π, 0]
C. Do as indicated.
h em
at
1. Using the function f (x) = x4 − 2x2 + 4x, show that the Rolle’s Theorem confirms there
M
2. Prove that the equation x3 + 2x + 5 = 0 cannot have more than one real root.
e
ut
3. Let g be a function such that g 0 (x) ≥ −6 for all x ∈ [0, 2]. If g(0) = 0, determine the least
tit
4. Show that sin b − sin a ≤ b − a whenever b ≥ a. In particular, show that sin x < x for all
x > 0.
UP
5. Let f (x) be differentiable at everywhere and suppose that f (1) = 1, f 0 (x) < 0 on (−∞, 1),
and f 0 (x) = 1 on (1, ∞).
a. Show that f (x) ≥ 1 for all x.
b. Must f 0 (1) = 0? Explain your answer.
6. Suppose two runners in a 100m dash finish a tie. Show that there is at least one instant
during the race where they had the same velocity.
Supplementary Exercises
A. Determine if Rolle’s Theorem applies to the following functions on the given intervals, and if
so, find all values of c satisfying the conclusion of the theorem.
B. Determine if the Mean Value Theorem applies to the following functions on the given intervals,
and if so, find all values of c satisfying the conclusion of the theorem.
C. Do as indicated.
1. Suppose f (x) is continuous and differentiable everywhere. Suppose also that f (x) has at
least two distinct zeros. Show that f 0 (x) has at least one zero.
2. Use the Mean Value Theorem to show that the graph of f (x) = x5 − 3x3 − x + 5 has a
tangent line on (0, 2) which is parallel to 3x − y = 2.
18
3. Let f (x) = cos(2x) − 5 sin(5x). Show that there exists c ∈ (0, π6 ) such that f 0 (c) = − .
π
s
√ √ y−x
ic
4. Use the Mean Value Theorem to prove that if 0 < x < y, then y − x < √ . In
2 x
at
particular, show that the geometric mean of x and y is less than their arithmetic mean,
em
√
i.e. xy < 12 (x + y). h
at
5. Suppose f is continuous on an interval I. Use the Mean Value Theorem to show that if
f 0 (x) = 0 for all x ∈ I, then f is constant in I.
M
π
6. Use the previous item to prove the identity sin−1 x + cos−1 x = on [−1, 1].
of
2
e
ut
stit
In
UP
122 CHAPTER 2. DERIVATIVES AND DIFFERENTIATION
• interpret the notion of increasing functions, decreasing functions, and relative ex-
trema of a function graphically
ic s
2.7.1 Relative Extrema
at
Definition 2.7.1.
em
1. A function f is said to have a relative maximum at x = c if there is an open interval I,
h
at
containing c, such that f (x) is defined for all x ∈ I and f (x) ≤ f (c) for all x ∈ I.
M
containing c, such that f (x) is defined for all x ∈ I and f (x) ≥ f (c) for all x ∈ I.
e
ut
relative minimum at x = c.
s
In
4. If f has a relative extremum at x = c, then it is equivalent to saying that (c, f (c)) is a relative
extremum point of f , or f (c) is a relative extremum value of f .
UP
c1 c2 c3 c4 c5 c6
Figure 2.7.1
Example 2.7.4. Find all the critical numbers of the following functions.
x3
1. f (x) = − 3x
9
Solution.
R. Differentiating f , we get f 0(x) = x3
2 1 1
Note that dom f = − 3 = (x2 − 9) = (x − 3)(x + 3).
3 3
The derivative is always defined and f 0 (x) = 0 when x = 3 or x = −3. Therefore the critical
numbers are 3 and −3.
2. f (x) = x4 + 2x3
ic s
at
Solution.
R and its derivative is f 0(x) = 4x3 + 6x2 = 2x2(2x + 3). Hence, the critical
em
The domain of f is
3 h
numbers of f are 0 and − .
at
2
M
x2
3. f (x) =
of
9 − x2
e
Solution.
ut
not defined at x = ±3 but ±3 are not critical numbers of f because ±3 ∈ / domf . Meanwhile,
In
Solution.
First, dom f = R. Differentiating f , we get f 0(x) = − 34 x1/3 + 43 x−2/3 = −4(x
3x
− 1)
2/3
. Note that
f 0 (x) = 0 if and only if x = 1 and that f 0 (x) is undefined at x = 0. Moreover, 0 ∈ domf . Thus,
the critical numbers of f are 0 and 1.
The following theorem tells us that finding the critical numbers of a function takes us one step
closer to finding its relative extremum points.
Illustration 2.7.6.
1. The graph of f (x) = x2 given in Figure 2.7.2 has a relative maximum point at its vertex
(0, 0). Note that f 0 (x) = 2x. Indeed f 0 (0) = 0.
124 CHAPTER 2. DERIVATIVES AND DIFFERENTIATION
2. Take f (x) = |x − 1|. From its graph shown in Figure 2.7.3, it is clear that f has a relative
minimum at x = 1. Since the graph has a corner at x = 1, we know that f 0 (1) is undefined.
y = −x2
y = |x − 1|
Remark 2.7.7. The preceding theorem says that relative extrema can only be attained at critical
numbers of f , that is, if a is not a critical number, then the point (a, f (a)) is not a relative extremum
point of f . However, these critical numbers are only candidates for relative extrema. If c is a critical
number, f may or may not have a relative extremum at x = c. This will be illustrated in the next
sections.
ic s
2.7.3 Increasing/Decreasing Functions
at
em
Our next goal is to determine when the graph of a function rises or falls. We will see then that this
h
is closely related to finding the relative extremum points of a function.
at
M
1. f is said to be (strictly) increasing on I if f (a) < f (b) for all a, b ∈ I such that a < b.
e
ut
2. f is said to be (strictly) decreasing on I if f (a) > f (b) for all a, b ∈ I such that a < b.
tit
Example 2.7.9. Let f be a function whose graph is illustrated in Figure 2.7.1. Then
s
In
• f is decreasing on [c1 , c2 ), [c3 , c4 ] and [c5 , c6 ]. But note that it is incorrect to say f is decreasing
UP
The following theorem gives us an analytical (as opposed to graphical) method of showing that the
function is increasing or decreasing. It should be noted that the Mean Value Theorem is a key in
proving this theorem.
Theorem 2.7.10. Let f be a function that is continuous on the closed interval [a, b] and
differentiable on the open interval (a, b).
1. If f 0 (x) > 0 for all x ∈ (a, b), then f is increasing on [a, b].
2. If f 0 (x) < 0 for all x ∈ (a, b), then f is decreasing on [a, b].
Example 2.7.11.
2.7. RELATIVE EXTREMA OF A FUNCTION 125
1. The derivative of f (x) = x2 is f 0 (x) = 2x. Note that f 0 (x) < 0 for all x ∈ (−∞, 0) and f 0 (x) > 0
for all x ∈ (0, ∞). Indeed, as seen in Figure 2.7.4, the graph of f is decreasing on the interval
(−∞, 0] and is increasing on the interval [0, ∞).
2. If f (x) = x3 , then f 0 (x) = 3x2 which is never negative. Observe the graph of f (x) = x3 in
Figure 2.7.5. Indeed it is always increasing.
y = x2 y = x3
ic s
Note that if we want to reach the peak of a hill, we first have to climb up a slope and when we
at
finally reach the top, we would go downhill. Analogously, when a continuous function y = f (x)
em
attains a relative extremum, say a relative maximum, the behavior of the graph of f transitions
h
from increasing to decreasing as it proceeds from the left of the point to its right.
at
M
Theorem 2.7.12 (First Derivative Test for Relative Extrema). Let f be a function continuous
of
on the open interval (a, b) which contains the number c. Suppose that f is also differentiable
e
1. If f 0 (x) > 0 for all x ∈ (a, c) and f 0 (x) < 0 for all x ∈ (c, b), then f has a relative
s tit
maximum at x = c.
In
2. If f 0 (x) < 0 for all x ∈ (a, c) and f 0 (x) > 0 for all x ∈ (c, b), then f has a relative
UP
minimum at x = c.
3. If f 0 (x) does not change signs from (a, c) to (c, b), then there is no relative extremum at
x = c.
We will use Theorem 2.7.12 to verify whether a function has relative extrema at its critical numbers.
We enumerate below some suggested steps in finding the relative extrema of a given function.
Locating relative extremum values of a function
• Determine the sign of f 0 on the left and right of each critical number. (Note that in creating
the table of signs of f 0 , one should consider all values of x that make f 0 either zero or undefined,
regardless of whether they are critical numbers or not.)
Example 2.7.13. Determine the intervals where the given function is increasing or decreasing and
find all of its relative extrema.
x3
1. f (x) = − 3x
9
Solution.
x2 − 9
From Example 2.7.4.1, we know f 0 (x) = and the critical numbers of f are ±3.
3
−3 3
f 0 (x) + − +
Then f is increasing on (−∞, −3] and on [3, ∞), while it is decreasing on [−3, 3]. By the first
derivative test, (−3, 6) is a relative maximum point of the graph of f and (3, −6) is a relative
minimum point of the graph of f .
2. f (x) = x4 + 2x3
Solution.
s
ic
From Example 2.7.4.2, f 0 (x) = 4x3 + 6x2 = 2x2 (2x + 3) and the critical numbers of f are 0 and
at
− 23 .
0
f (x) −
− 32
+
0
+
h em
at
M
a relative extremum at 0.
e
ut
x2
3. f (x) =
tit
9 − x2
s
In
Solution.
18x
From Example 2.7.4.3, f 0 (x) = and the only critical number of f is 0.
UP
(9 − x2 )2
−3 0 3
999
999
f 0 (x) − − + +
The graph of f is decreasing on (−∞, −3) and on (−3, 0]. It is increasing on [0, 3) and on (3, ∞).
Therefore, f has a relative minimum at x = 0.
Solution.
−4(x − 1)
From Example 2.7.4.4, f 0 (x) = and the critical numbers of f are 0 and 1.
3x2/3
0 1
f 0 (x) + + −
Then the graph of f is increasing on (−∞, 1] and decreasing on [1, ∞). We conclude that f has
a relative maximum at x = 1.
2.7. RELATIVE EXTREMA OF A FUNCTION 127
x2 + 4x + 3
5. f (x) =
2(x − 1)2
Solution.
−(3x + 5)
Differentiating and simplifying, we get f 0 (x) = . Note that the only critical number
(x − 1)3
5
of f is − . We form the following table:
3
− 53 1
999
f 0 (x) − + −
We conclude that f is increasing on [− 35 , 1); decreasing on the intervals (−∞, − 53 ] and (1, ∞);
and has a relative minimum at x = − 35 . Notice that even if there was a change of sign at x = 1,
we don’t say that f has a relative maximum at x = 1 since f is undefined when x = 1. In the
first place, 1 is not a critical number of f .
ic s
at
h em
at
M
of
e
ut
tit
s
In
UP
128 CHAPTER 2. DERIVATIVES AND DIFFERENTIATION
2.7.5 Exercises
Exercises for Disccussion
A. Determine the intervals on which the graph of the following functions is increasing or decreas-
ing. Use the first derivative test to find its relative extremum points.
√
1. f (x) = 1 − 4x − x2 6. f (x) = x+2 3
2. f (x) = x2 (x − 1)3 √
7. f (x) = 2x 3 − x
3. f (x) = x2/3 (x − 1)2 x
8. f (x) = 2 − sin x
x2
4. f (x) = e2x + 16e−x
x2 + 2 9. f (x) =
√ 2
1+ x
5. f (x) = √ 10. f (x) = ln(x2 + 1)
1− x
B. Given the graph of the derivative of f and assuming f is continuous everywhere, find the
ic s
intervals where f is increasing, decreasiing and the x-coordinates of the relative extrema of
at
f.
h em
at
1. 2.
M
2
of
3
e
(0, 2) 1
ut
2
(−2, 0) (2, 0)
tit
−2 −1 1 2 3
s
1
In
−1
UP
−2 −1(−1, 0) 1 2 −2
−1 −3
C. Do as indicated.
R
1
1. Suppose f (x) in increasing on (0, 1]. Show that f is decreasing on .
x2 + 1
2. The population P of a new species of frogs in a conservation facility is modelled by
2500t2
P (t) = 50 + ,
25 + t2
where t is the number of years after the introduction of the new species.
a. How many frogs will populate the area in the long run?
b. Describe the behavior of the population. Is this a good model? Why or why not?
2.7. RELATIVE EXTREMA OF A FUNCTION 129
Supplementary Exercises
A. Determine the intervals on which the graph of the following functions is increasing or decreas-
ing. Use the first derivative test to find its relative extremum points.
B. Given the graph of the derivative of f and assuming f is continuous everywhere, find the
intervals where f is increasing, decreasiing and the x-coordinates of the relative extrema of
f.
ic s
at
1 2
2 em
h 2 (1, 32 )
at
(0, 1)
M
1 (− 21 , 34 ) 1
of
−3 −2 −1 1 2 3
ut
−1
(−2, −1)
s
In
−2
(2, −2) −2
UP
C. Do as indicated.
1
1. Show that if f is decreasing on (0, +∞), the g(x) = f is increasing on (0, +∞).
x3
2. Use a first derivative to show that sin x < x for all x > 0.
3. Find a polynomial with critical numbers 0 and 3 with relative maximum at x = 0 and no
relative extremum at x = 3.
4. Find the value of c such that f (x) = x + ln(x2 + 1) + c tan−1 x has a relative maximum at
x = −5 and a relative minimum at x = 3.
130 CHAPTER 2. DERIVATIVES AND DIFFERENTIATION
2.8.1 Concavity
ic s
Definition 2.8.1.
at
1. The graph of a function f is said to be concave up at the point P (c, f (c)) if f 0 (c) exists and
em
there is an open interval I containing c such that for all x ∈ I \ {c}, the point (x, f (x)) is
h
at
above the tangent line to the graph of f at P . We say that the graph of f is concave up on
M
2. The graph of a function f is said to be concave down at the point P (c, f (c)) if f 0 (c) exists
e
and there is an open interval I containing c such that for all x ∈ I \ {c}, the point (x, f (x))
ut
is below the tangent line to the graph of f at P . We say that the graph of f is concave down
tit
c1 c2 c3 c4 c5 c6 c7
Figure 2.8.1
• The graph of f is concave up on (c1 , c2 ) ∪ (c2 , c3 ) ∪ (c3 , c5 ) and concave down on (c5 , c7 ).
• The graph of f is neither concave up nor concave down at the point (c5 , f (c5 )).
2.8. CONCAVITY AND THE SECOND DERIVATIVE TEST 131
We wish to find another characterization of concavity aside from its graphical definition. Observe
the behavior of the tangent lines to the concave up curve in Figure 2.8.2a. As a point goes from
left to right, the slope increases. Meanwhile, the slope of the tangent line decreases as a point goes
from left to right along the concave down curve in Figure 2.8.2b. We shall state this as a theorem.
s
Recall that f 00 (x) = Dx (f 0 (x)). Hence if f 00 (x) > 0 for all x ∈ (a, b), then f 0 (x) is increasing on
ic
at
(a, b) and the graph of f is concave up on (a, b). If f 00 (x) < 0, then f 0 (x) is decreasing on (a, b) and
em
the graph of f is concave down on (a, b).
h
at
Theorem 2.8.3 (Test for Concavity). Let f be a function such that f 00 exists on (a, b).
M
1. If f 00 (x) > 0 for all x ∈ (a, b), then the graph of f is concave up on (a, b).
of
e
2. If f 00 (x) < 0 for all x ∈ (a, b), then the graph of f is concave down on (a, b).
ut
tit
Example 2.8.4. If f (x) = x3 , then f 00 (x) = 6x. Note that f 00 (x) > 0 when x > 0 and f 00 (x) < 0
UP
when x < 0. Hence, the graph of f is concave up on (0, ∞) and concave down on (−∞, 0) (refer to
Figure 2.8.3a). Observe that that the graph of f changed concavity at x = 0. In this case, we call
the point (0, f (0)) = (0, 0) a point of inflection.
g(x) = x2/3
f (x) = x3 √
3
f (x) = x
f (x) = x4
Definition 2.8.5. The graph of f (x) has a point of inflection at P (c, f (c)) if f is continuous at
x = c and the graph of f changes concavity at P , i.e. there is an open interval (a, b) containing c
such that
1. f 00 (x) > 0 for all x ∈ (a, c) and f 00 (x) < 0 for all x ∈ (c, b) or;
2. f 00 (x) < 0 for all x ∈ (a, c) and f 00 (x) > 0 for all x ∈ (c, b).
132 CHAPTER 2. DERIVATIVES AND DIFFERENTIATION
Theorem 2.8.6. If P (c, f (c)) is a point of inflection of the graph of the function f , then
f 00 (c) = 0 or f 00 (c) does not exist.
Example 2.8.7.
s
does not exist, as possible points of inflection.
ic
at
Example 2.8.9. Determine all points of inflection of the graph of the following functions and
discuss their concavity. hem
at
x3
1. f (x) = − 3x
M
9
of
Solution.
2x
e
3
tit
0
s
In
f 00 (x) − +
UP
Then the graph of f has a point of inflection at (0, 0) and the graph of f is concave down on
(−∞, 0) and concave up on (0, ∞).
2. f (x) = x4 + 2x3
Solution.
Observe that f 00 (x) = 12x2 + 12x = 12x(x + 1) = 0 when x = 0 or x = −1.
−1 0
f 00 (x) + − +
Then (−1, −1) and (0, 0) are points of inflection of the graph f . The graph of f is concave up
on (−∞, −1) and (0, ∞). The graph of f is concave down on (−1, 0).
x2
3. f (x) =
9 − x2
Solution.
2.8. CONCAVITY AND THE SECOND DERIVATIVE TEST 133
999
999
f 00 (x) − + −
Solution.
−4(x + 2)
Verify that f 00 (x) = = 0 when x = −2 and f 00 (x) is undefined when x = 0.
9x5/3
−2 0
f 00 (x) − + −
√
ic s
Then (−2, 2 3 2) and (0, 0) are points of inflection of the graph of f . The graph of f is concave
at
down on (−∞, −2) and (0, ∞) and concave up on (−2, 0).
2.8.3
h
The Second Derivative Test for Relative Extremaem
at
M
The following is another test for relative extrema that uses the second derivative of a function.
Compare this test with the first derivative test for relative extrema.
of
e
ut
Theorem 2.8.10 (Second Derivative Test for Relative Extrema). Let f be a function such
tit
that f 0 and f 00 exist for all values of x on some open interval containing x = c and f 0 (c) = 0.
s
In
3. If f 00 (x) = 0, we have no conclusion (f may or may not have a relative extrema at x = c).
Remark 2.8.11. Note that the second derivative test is only applicable to the first type of critical
numbers: those that make the first derivative zero (x-coordinates of so-called stationary points).
Example 2.8.12. Given the following functions, determine if the second derivative test is appli-
cable to their critical numbers. If yes, what can you conclude using the second derivative test?
x3
1. f (x) = − 3x with C.N. : −3, 3
9
Solution.
x2 − 9 2x
Recall that f 0 (x) = and f 00 (x) = . The second derivative test is applicable to both
3 00 3
−3 and 3. Observe that f (−3) = −2 < 0 and thus, f has a relative maximum at x = −3.
Similarly, f 00 (3) = 2 > 0 and thus, f has a relative minimum at x = 3.
134 CHAPTER 2. DERIVATIVES AND DIFFERENTIATION
Solution.
Recall that f 0 (x) = 4x3 + 6x2 and f 00 (x) = 12x2 + 12x. The second derivative test is applicable
to both 0 and − 23 . Note that f 00 (0) = 0 and this gives us an inconclusive case. On the other
hand, f 00 − 32 = 9 > 0 and so f has a relative minimum at x = − 32 .
x2
3. f (x) = with C.N. : 0
9 − x2
Solution.
18x 2
We have seen that f 0 (x) = and f 00 (x) = 54(3 + x ) . The second derivative test is
(9 − x2 )2 (9 − x2 )3
54(3)
applicable to 0. Since f 00 (0) = 93 > 0, f has a relative minimum at x = 0.
Solution.
ic s
−4(x − 1) 00 (x) = −4(x + 2) . The second derivative test is applicable to 1 but
f 0 (x) = and f
at
3x2/3 9x5/3
em
not to 0. Because f 00 (1) = − 43 , then f has a relative maximum at x = 1.
b
h
5. f (x) = ax2 + bx + c, where a 6= 0. C.N. : − 2a .
at
M
Solution.
of
Note that f 0 (x) = 2ax+b and f 00 (x) = 2a. The second derivative test is applicable to − 2a
b
. From
e
00 b b
f (− 2a ) = 2a, we conclude that if a > 0, f has a relative minimum at x = − 2a . Meanwhile,
ut
b
a < 0, then f has a relative maximum at x = − 2a .
s tit
In
UP
2.8. CONCAVITY AND THE SECOND DERIVATIVE TEST 135
2.8.4 Exercises
Exercises for Discussion
A. Identify the possible points of inflection of the graph of each function. Determine which of
these are indeed points of inflection using a table of signs. Determine the intervals on which
the graph of the function is concave up or concave down.
1. f (x) = (x + 2)3 x
5. f (x) = √
x2
+1
2. f (x) = x2/3 √ 1
x 6. f (x) = x + √
3. f (x) = 2 x
x +2 7. f (x) = sin x cos x
x2 − 3 sin x
4. f (x) = 8. f (x) =
x2 + 1 2 − cos x
B. Determine which critical numbers satisfy the hypotheses of the second derivative test and
ic s
apply the test to these numbers.
at
em
1. f (x) = (x2 − 1)4 h 4. f (x) = 2x + cot x
2. f (x) = x1/3 (x + 4) 5. f (x) = cos2 x − 2 sin x
at
√
M
C. Suppose that water is flowing at a constant rate into the container below. If f (t) is the water
e
ut
level (height) in the container after time t, how would you describe the graph of y = f (t)?
tit
s
In
1. 2.
UP
Supplementary Exercises
A. Identify the possible points of inflection of the graph of each function. Determine which of
these are indeed points of inflection using a table of signs. Determine the intervals on which
the graph of the function is concave up or concave down.
B. Determine which critical numbers satisfy the hypotheses of the second derivative test and
apply the test to these numbers.
√ √
16000 3
4. f (x) = 2 3 x − x2
1. f (x) = x2 +
x
5. f (x) = cos(π sin x)
200
2. f (x) = (x − 4) −2 2
x 6. f (x) = e−x
√
3. f (x) = x − 2 x + 1 + 1 7. f (x) = x − ln sech x
C. Given the graph of the derivative of f and assuming f is continuous everywhere, find the
intervals where f is concave up, concave down and the x-coordinates of the points of inflection
of f .
ic s
at
1 2
2
h em (0, 0) (3, 0)
at
−2 −1 1 2 3
M
(0, 1)
1 −1
of
(−1, 0) −2
e
−3
ut
−3 −2 −1 1 2 3
(0, −1)
tit
−1 −4
(−2, −4)
s
−5
In
−2
(2, −2) −6
UP
D. Do as indicated.
1. If f is a function concave down everywhere, show that e−f (x) is concave up everywhere.
2. Suppose n is a positive integer such that n ≥ 2. Let g(x) = xn+1 − (n + 1)xn .
a. Prove that g has a relative minimum at x = n.
b. Explain why the Second Derivative Test cannot be used to show that g has a relative
maximum at x = 0 when n is even.
c. Show that g has a point of inflection at x = n − 1 and at x = 0 when n is odd.
2.9. GRAPH SKETCHING 137
ic s
2. Determine vertical, horizontal and oblique asymptotes of f .
at
em
3. Compute f 0 (x) and f 00 (x), and determine the critical numbers.
h
4. Divide the real number line using the numbers that make f 0 zero or undefined and the
at
numbers that make f 00 zero or undefined. Determine the sign of f 0 (x) and f 00 (x) on each
M
down. Determine the coordinates of the relative extremum points and points of inflection.
stit
6. Plot important points (intercepts, holes, extrema, points of inflection) and asymptotes
In
first.
UP
7. Use the table of signs of f 0 and f 00 to graph the rest of the function.
Solution.
domf : R √
interval f f0 f 00 conclusion
x-intercept: x = 0, ±3 3 (−∞, −3) + - inc., cd
−3 6 0 - rel. max.
y-intercept: y = 0
(−3, 0) - - dec, cd
x2 − 9
f 0 (x) = CN: −3, 3 0 0 - 0 POI
3 (0, 3) - + dec, cu
2x
f 00 (x) = PPOI : 0 3 −6 0 + rel. min.
3
(3, ∞) + + inc, cu
138 CHAPTER 2. DERIVATIVES AND DIFFERENTIATION
(−3, 6)
√ √
(−3 3, 0) (3 3, 0)
(0, 0)
(3, −6)
Solution.
s
R
ic
domf : f 0 (x) = 4x3 + 6x2 CN: 0, − 23
at
x-intercept: x = 0, −2 f 00 (x) = 12x2 + 12x PPOI: 0, −1
y-intercept: y = 0 h em
at
interval f f0 f 00 conclusion
M
(−∞, − 32 ) - + dec., cu
of
−27
− 32 16 0 + rel. min. (0, 0)
e
(− 32 , −1) + + inc, cu
ut
−1 −1 + 0 POI
tit
(−1, −1)
(−1, 0) + - inc, cd
s
In
0 0 0 0 POI
( −3 , −27
)
UP
(0, ∞) + + inc, cu 2 16
Definition 2.9.3. The line x = a is a vertical asymptote of the graph of f (x) if at least one of the
following is true:
Remark 2.9.4. To look for the vertical asymptotes of the graph of a function, we have to think
of a real number a such that the limit of f as x approaches a is infinite. For a rational polynomial
P (x)
, x = a is a vertical asymptote if (x − a) is a factor of Q but not of P (or the multiplicity of
Q(x)
x − a as a factor of Q is greater than the multiplicity of x − a as a factor of P ).
Example 2.9.5.
x2 − 4 (x − 2)(x + 2)
1. f (x) = = has a vertical asymptote at x = 3 but has none at x = 2.
x2 − 5x + 6 (x − 3)(x − 2)
s
To verify this using limits,
ic
at
(x − 2)(x + 2) (x + 2)
em
lim = lim = −4
x→2 (x − 3)(x − 2) x→2 (x − 3)
h
at
(x − 2)(x + 2) 1·5 (x − 2)(x + 2) 1·5
M
lim = −∞ lim =∞
x→3− (x − 3)(x − 2) (0− ) · 1 x→3+ (x − 3)(x − 2) (0+ ) · 1
of
e
4 − x2 (2 − x)(2 + x)
ut
(2 − x)(2 + x) −(x + 2) −4
s
In
lim = lim = ±∞
x→2∓ (x − 2)2 x→2∓ (x − 2) 0∓
UP
Definition 2.9.6. The line y = b is a horizontal asymptote of the graph of f if at least one of the
following is true:
y=b
(a) lim f (x) = b
x→∞
y=b
y=b
(b) lim f (x) = b
x→−∞
y=b
Remark 2.9.7. To find all horizontal asymptotes of a polynomial or rational function, we only
need to evaluate the limit of the function as x → ∞ and as x → −∞. If the limit is finite, then there
is a horizontal asymptote. Notice that in a rational function, whenever the degree of the numerator
is less than or equal to the degree of the denominator, then there is a horizontal asymptote.
140 CHAPTER 2. DERIVATIVES AND DIFFERENTIATION
Example 2.9.8.
x+3
1. f (x) = has a horizontal asymptote at y = 0.
x2 − 1
1 1 3 1 1 3
x+3 x2 x + x2 x+3 x2 x + x2
lim · 1 = lim 1 =0 lim · 1 = lim 1 =0
x→∞ x2 − 1 x→∞ 1− x→∞ x2 − 1 x→∞ 1−
x2 x2 x2 x2
2x + 1 2 2
2. f (x) = has a horizontal asymptote at y = and y = − .
|5x − 2| 5 5
2x + 1 2x + 1 2 2x + 1 2x + 1 2
lim = lim = lim = lim =−
x→∞ |5x − 2| x→∞ 5x − 2 5 x→−∞ |5x − 2| x→−∞ −5x + 2 5
s
y = mx + b
ic
y = mx + b y = mx + b y = mx + b
at
hem
at
M
of
y = mx + b
y = mx + b y = mx + b y = mx + b
P (x)
Remark 2.9.10. If P (x) and Q(x) are polynomial functions with deg(P ) = deg(Q) + 1, then
Q(x)
has an oblique asymptote.
x2 + 3
Example 2.9.11. The rational function f (x) = has an oblique asymptote because the
x−1
degree of the numerator is 2, which is one degree greater than that of the denominator. To find
the equation of the oblique asymptote, we use long division.
x+1 Thus
4
x2
x−1 +3 f (x) = (x + 1) + .
x−1
− x2 + x
From here it can be shown that y = x + 1 is an oblique asymptote
x+3
since
−x+1 4
lim f (x) − (x + 1) = lim = 0.
x→±∞ x→±∞ x + 1
4
2.9. GRAPH SKETCHING 141
R
Solution.
domf : \ {±3} interval f f0 f 00 conclusion
x-int: x = 0 y-int: y = 0 (−∞, −3) - - dec., cd
−3 und und und V.A.
Vertical Asymptotes: x = −3and x = 3 (−3, 0) - + dec, cu
9
lim f (x) = −∞ − 0 0 0 + rel. min.
0
x→−3 −
(0, 3) + + inc, cu
9
lim f (x) = ∞ +
3 und und und V.A.
x→−3+ 0 (3, ∞) + - inc, cd
9
lim f (x) = ∞
x→3− 0+
x2
9 f (x) =
lim f (x) = −∞ 9 − x2
x→3+ 0−
Horizontal Asymptotes: y = −1 x = −3 x=3
x2 1 (0, 0)
s
lim = lim 9 = −1
ic
x→±∞ 9 − x2 x→±∞ 2 − 1 y = −1
x
at
Oblique Asymptotes: none
em
18x
f 0 (x) = CN: 0
(9 − x2 )2 h
54(3 + x2 )
at
f 00 (x) = PPOI: none
(9 − x2 )3
M
4x
of
Solution.
domf : R
tit
√
In
(−∞, − 3) - - dec., cd
y-int: y = 0 √ √
− 3 − 3 - 0 POI
√
UP
(1, 2) √ √
( 3, 3)
(0, 0)
y=0
4x
√ √ f (x) =
(− 3, − 3) x2 + 1
(−1, −2)
142 CHAPTER 2. DERIVATIVES AND DIFFERENTIATION
x−1
Example 2.9.14. Sketch the graph of f (x) = 4 + x + using derivatives.
x2 − 1
Solution.
R
domf : \ {−1, 1} √ x = −1
x-intercept: x = −5±2 5
1 x2 + 5x + 5
f (x) = 4 + x + = , x 6= 1 x−1
x+1 x+1 f (x) = 4 + x +
y-intercept: y = 5 x2 − 1
11 (1, 11
)
V.A.: x = −1 hole: 1, 2
2
H.A.: none y =x+4
(0, 5)
lim f (x) = ∞ lim f (x) = −∞
x→∞ x→−∞
O.A.: y = x + 4
x2 + 2x
f 0 (x) = CN: 0, −2
(x + 1)2 (−2,1)
2 √
s
f 00 (x) = PPOI: none ( −5− 5
ic
2
, 0)
(x + 1)3 √
at
( −5+
2
5
, 0)
em
0 00
interval f f f conclusion
(−∞, −2) + - inc, cd
h
at
−2 1 0 - rel. max.
M
(−1, 0) - + dec, cu
e
0 5 0 + rel. min.
ut
(0, ∞) + + inc, cu
s tit
We know that we can gain insight on the shape of a function f if we know the behavior of its
UP
derivative. From the graph of the derivative of f , what can we deduce about the graph of f ?
Example 2.9.15. Given the graph of f 0 below and assuming that f is continuous everywhere,
sketch a possible graph of f .
−1 1 2
−1
Solution.
2.9. GRAPH SKETCHING 143
(a) First, we need to determine the critical numbers of f . Remember that these are the numbers
that make f 0 zero or undefined. From the graph of f 0 , we see that the critical numbers are −1,
0 and 2.
(b) Next, we need to determine where the graph of f has points of inflection. These are the points
where the graph of f 0 changes from increasing to decreasing, or vice versa. The possible points
of inflection of the graph of f are attained at values of x where the graph of f 0 has a horizontal
tangent line or a vertical tangent line or has no tangent line. Thus, the x-coordinates of the
possible points of inflection of f are 0 and 1.
(c) Recall that the graph of f is increasing on [a, b] if f 0 (x) > 0 for all x ∈ (a, b). This means that
the graph of f 0 is above the x-axis on the interval (a, b). Similarly, the graph of f is decreasing
on [a, b] if the graph of f 0 is below the x-axis on the interval (a, b).
(d) Meanwhile, the graph of f is concave up on an interval (a, b) if the graph of f 0 is increasing on
(a, b). It is concave down on (a, b) if the graph of f 0 is decreasing on (a, b).
f0 f 00
s
interval conclusions on the graph of f
ic
(−∞, −1) + − increasing, concave down
at
−1 0 − relative maximum
(−1, 0) − − h em
decreasing, concave down
at
0 und und relative minimum, POI
M
2 0 − relative maximum
tit
−1 0 1 2
144 CHAPTER 2. DERIVATIVES AND DIFFERENTIATION
2.9.5 Exercises
Exercises for Discussion
A. Explain why the following functions do not have a linear asymptote and sketch their graphs.
1. y = x3 − 3x2 + 1 3. y = x1/3 (x + 4)
2. y = −x4 + 8x3 − 18x2 + 10 4. y = sin x cos x
B. Find all vertical, horizontal and oblique asymptotes of the following functions using limits.
√
x2 + 1 x+1−1
1. f (x) = 4. f (x) =
x+1 x
sin x 2
x − 4x + 4
2. f (x) = 5. f (x) = 2
x x +x−6
s
x2 − 1 4
ic
3. f (x) = 2 6. f (x) = x + 1 +
at
5x + 1 x−4
x x2 + 1
1. f (x) =
of
12x2 x3 − 1
ut
2. f (x) = 5. f (x) = 2
(x − 2)2 x −1
tit
2x3 (x + 1)3
s
3. f (x) = 6. f (x) =
In
x2 − 4 x2
UP
D. Sketch a possible graph of the function f given the graph of f 0 . Assume that f is continuous
everywhere.
1. 2.
(−1, 2) 2 3
(0, 2.6)
2
1
(−2, 1) (0, 1)
√ 1
(−2, 0) (3 − 2, 0)
(−1, −0.6) (3, 0)
−3 −2 −1(0, 0) 1 2
−4 −3 −2 −1 1 2
−1
−1
−2 (1, −2) −2
2.9. GRAPH SKETCHING 145
Supplementary Exercises
A. Explain why the following functions do not have a linear asymptote and sketch their graphs.
B. Find all vertical, horizontal and oblique asymptotes of the following functions using limits.
2x + 3 1
1. f (x) = 3. f (x) =
x+4 |x − 3|
1
4. f (x) = ln(1 + )
x−9 x2
2. f (x) = √ 5. f (x) = coth x
x−3
s
C. Sketch the graph of the following functions analytically.
ic
at
em
1. f (x) = 4x3 + 12x2 (x + 1)3
5. f (x) =
h x2
(x − 1)2
at
2. f (x) = (x − 2)(3x + 2)
x2 6. f (x) =
M
x+1
4(2x + 3)(x + 3) (2x − 1)2
of
3. f (x) = 7. f (x) =
(x + 2)2 (x − 2)2
e
ut
x2 + 3x + 2 x3
4. f (x) = 8. f (x) =
tit
3x + 2 x2 − 4
s
In
D. Sketch a possible graph of the function f given the table of signs of f 0 and f 00 . Assume that
UP
f is continuous everywhere
1. 2.
s
ic
at
hem
at
M
of
e
ut
stit
In
UP