ch4 Differentiation Update2024
ch4 Differentiation Update2024
Chapter 4 Differentiation
In this chapter, we will learn the definition of derivative. We will study the
basic rules of differentiation and compute the derivatives of trigonometric
functions, inverse trigonometric functions, the exponential function and
logarithmic functions. Moreover, some techniques of differentiation will be
discussed.
2
I. Definition
II. Basic Properties
III. Chain Rule
IV. Derivatives of Trigonometric Functions
V. Derivatives of Exponential and Logarithmic Functions
VI. Implicit Differentiation
VII. Higher Derivatives
3
I. Definition
A.First Principle
The derivative of the function f(x) with respect to the variable x at x = x0 is
defined by
′
d𝑓𝑓 𝑓𝑓(𝑥𝑥0 + ℎ) − 𝑓𝑓(𝑥𝑥0 )
𝑓𝑓 (𝑥𝑥0 ) = � = lim
d𝑥𝑥 𝑥𝑥=𝑥𝑥0 ℎ→0 ℎ
provided the limit exists. If this limit exists at x0, we say that f is differentiable
at x0. This definition is called the ‘First Principle’.
To denote the derivative of the function y = f(x) at x = x0, we may use one of
the following notations:
𝑓𝑓 ′ (𝑥𝑥0 ) or 𝑦𝑦′(𝑥𝑥0 ) (Newton’s Notation)
d𝑓𝑓 d𝑦𝑦
or � or � (Leibniz’s Notation)
d𝑥𝑥 𝑥𝑥=𝑥𝑥0 d𝑥𝑥 𝑥𝑥=𝑥𝑥0
4
The tangent line to the curve 𝑦𝑦 = 𝑓𝑓(𝑥𝑥) at 𝑥𝑥0 is defined as the straight line
through 𝑥𝑥0 with slope 𝑓𝑓 ′ (𝑥𝑥0 ). (red line in the above picture)
5
x
6
We can consider the derivative at any x, provided that the limit exists. So we
can in turn define another function called the derivative of 𝑓𝑓(𝑥𝑥):
𝑓𝑓(𝑥𝑥 + ℎ) − 𝑓𝑓(𝑥𝑥)
𝑓𝑓 ′ (𝑥𝑥)
= lim
ℎ→0 ℎ
• The domain is the set of points where the function f is differentiable (note
that it can be different from the domain of the original function f).
• The following notations are equivalent in representing the derivative of
the function 𝑦𝑦 = 𝑓𝑓(𝑥𝑥):
d𝑓𝑓 d𝑦𝑦 d
𝑓𝑓 ′ (𝑥𝑥), 𝑦𝑦 ′ , , , 𝑓𝑓(𝑥𝑥)
d𝑥𝑥 d𝑥𝑥 d𝑥𝑥
Example 1.1
Evaluate the derivative of the function (by First Principle) 𝑓𝑓(𝑥𝑥) = √𝑥𝑥 for x > 0.
Solution:
′( )
𝑓𝑓 (𝑥𝑥 + ℎ) − 𝑓𝑓(𝑥𝑥)
𝑓𝑓 𝑥𝑥 = lim
ℎ→0 ℎ
√𝑥𝑥 + ℎ − √𝑥𝑥
= lim
ℎ→0 ℎ
�√𝑥𝑥 + ℎ − √𝑥𝑥��√𝑥𝑥 + ℎ + √𝑥𝑥�
= lim
ℎ→0 ℎ�√𝑥𝑥 + ℎ + √𝑥𝑥�
𝑥𝑥 + ℎ − 𝑥𝑥
= lim
ℎ→0 ℎ�√𝑥𝑥 + ℎ + √𝑥𝑥�
1 1
= lim =
ℎ→0 �√𝑥𝑥 + ℎ + √𝑥𝑥� 2√𝑥𝑥
9
B. One-sided Derivative
Right-hand derivative:
𝑓𝑓(𝑥𝑥 + ℎ) − 𝑓𝑓(𝑥𝑥)
𝑅𝑅𝑅𝑅′(𝑥𝑥) = lim+
ℎ→0 ℎ
Left-hand derivative:
𝑓𝑓(𝑥𝑥 + ℎ) − 𝑓𝑓(𝑥𝑥)
𝐿𝐿𝐿𝐿′(𝑥𝑥) = lim−
ℎ→0 ℎ
A function has a derivative at a point if and only if it has left-hand and right-
hand derivatives, and these one-sided derivatives are equal.
10
Example 1.2
Given
𝑥𝑥 2 + 3𝑥𝑥 + 2 𝑖𝑖𝑖𝑖 𝑥𝑥 < 1
𝑓𝑓(𝑥𝑥) = �
5𝑥𝑥 + 1 𝑖𝑖𝑖𝑖 𝑥𝑥 ≥ 1
Is f(x) differentiable at x = 1? If so, find f’(1).
Solution:
We first compute the left-hand derivative,
′(
𝑓𝑓 (1 + ℎ) − 𝑓𝑓(1) (1 + ℎ)2 + 3(1 + ℎ) + 2 − 6 ℎ2 + 5ℎ
𝐿𝐿𝑓𝑓 1) = lim− = lim− = lim− =5
ℎ→0 ℎ ℎ→0 ℎ ℎ→0 ℎ
Next, we compute the right-hand derivative,
′(
𝑓𝑓 (1 + ℎ) − 𝑓𝑓 (1) 5(1 + ℎ) + 1 − 6 5ℎ
𝑅𝑅𝑓𝑓 1) = lim+ = lim+ = lim+ =5
ℎ→0 ℎ ℎ→0 ℎ ℎ→0 ℎ
Since 𝐿𝐿𝑓𝑓 ′ (1) = 𝑅𝑅𝑓𝑓 ′ (1), thus f(x) is differentiable at x = 1 and f’(1) = 5.
11
( )
(a) Right-hand derivative: lim+ 𝑓𝑓 0+ℎℎ−𝑓𝑓(0) = lim+ ℎ−0
ℎ
=1
ℎ→0 ℎ→0
( )
(b) Left-hand derivative: lim− 𝑓𝑓 0+ℎℎ−𝑓𝑓(0) = lim− −ℎ−0
ℎ
= −1
ℎ→0 ℎ→0
1
𝑓𝑓′(0) = lim+ →∞
ℎ→0 �√ℎ + 0�
13
3.Cusp: slope approaches ∞ from one side and −∞ from the other side.
−𝑥𝑥 if 𝑥𝑥 < 0
𝑓𝑓(𝑥𝑥) = �√
√𝑥𝑥 if 𝑥𝑥 ≥ 0
√ℎ
(a) Right-hand derivative: lim →∞
ℎ→0+ ℎ
√−ℎ
(b) Left-hand derivative: lim− → −∞
ℎ→0 ℎ
14
4.Discontinuity
Heaviside function is not differentiable at x = 0.
0 if 𝑥𝑥 < 0
𝐻𝐻(𝑥𝑥) = �0.5 if 𝑥𝑥 = 0
1 if 𝑥𝑥 > 0
Right-hand derivative:
𝐻𝐻 (0 + ℎ) − 𝐻𝐻(0) 1 − 0.5 0.5
lim+ = lim+ = lim+ →∞
ℎ→0 ℎ ℎ→0 ℎ ℎ→0 ℎ
15
Example 1.3
𝑎𝑎𝑎𝑎 if 𝑥𝑥 < 0
𝑓𝑓(𝑥𝑥) = � 0 if 𝑥𝑥 = 0
sin 𝑥𝑥 + 𝑏𝑏 if 𝑥𝑥 > 0
If f is differentiable at x = 0, find the values of a and b.
Solution:
i. Since f is differentiable at x = 0, f is continuous at x = 0.
𝑓𝑓(0) = lim+ 𝑓𝑓(𝑥𝑥 )
𝑥𝑥→0
0 = lim+ (sin 𝑥𝑥 + 𝑏𝑏)
𝑥𝑥→0
𝑏𝑏 = 0
ii. Since f is differentiable at x = 0
𝑓𝑓(0 + ℎ) − 𝑓𝑓(0) 𝑓𝑓 (0 + ℎ) − 𝑓𝑓(0)
lim = lim+
ℎ→0− ℎ ℎ→0 ℎ
𝑎𝑎ℎ sin ℎ + 𝑏𝑏
lim = lim+
ℎ→0− ℎ ℎ→0 ℎ
𝑎𝑎 = 1
17
Example 1.4
Suppose that a function f satisfies the following conditions for all values of x and y:
𝑓𝑓(𝑥𝑥 + 𝑦𝑦) = 𝑓𝑓 (𝑥𝑥 )𝑓𝑓(𝑦𝑦)
𝑓𝑓(𝑥𝑥 ) = 1 + 𝑥𝑥𝑥𝑥(𝑥𝑥)
where g is a function with lim 𝑔𝑔(𝑥𝑥 ) = 1. Show that f is differentiable and 𝑓𝑓 ′ (𝑥𝑥) = 𝑓𝑓 (𝑥𝑥 ).
𝑥𝑥→0
Solution:
′
𝑓𝑓(𝑥𝑥 + ℎ) − 𝑓𝑓(𝑥𝑥 ) 𝑓𝑓(𝑥𝑥 )𝑓𝑓(ℎ) − 𝑓𝑓 (𝑥𝑥 ) 𝑓𝑓(𝑥𝑥 )[𝑓𝑓(ℎ) − 1]
𝑓𝑓 (𝑥𝑥) = lim = lim = lim
ℎ→0 ℎ ℎ→0 ℎ ℎ→0 ℎ
By the second condition, we have
[𝑓𝑓(ℎ) − 1]
= 𝑔𝑔(ℎ)
ℎ
Thus,
𝑓𝑓(𝑥𝑥 )[𝑓𝑓(ℎ) − 1]
lim = lim 𝑓𝑓 (𝑥𝑥 )𝑔𝑔(ℎ) = 𝑓𝑓(𝑥𝑥) lim 𝑔𝑔(ℎ) = 𝑓𝑓(𝑥𝑥 ) ⋅ 1 = 𝑓𝑓(𝑥𝑥)
ℎ→0 ℎ ℎ→0 ℎ→0
B. Product Rule
d d𝑣𝑣 d𝑢𝑢
(𝑢𝑢𝑢𝑢 ) = 𝑢𝑢 + 𝑣𝑣
d𝑥𝑥 d𝑥𝑥 d𝑥𝑥
In particular, for any differentiable function f and any constant c,
d d𝑓𝑓
(𝑐𝑐𝑐𝑐 ) = 𝑐𝑐
d𝑥𝑥 d𝑥𝑥
19
C. Quotient Rule
𝑢𝑢
If 𝑣𝑣 (𝑥𝑥) ≠ 0, then is differentiable at x and
𝑣𝑣
d𝑢𝑢 d𝑣𝑣
d 𝑢𝑢 𝑣𝑣 − 𝑢𝑢
� �= d𝑥𝑥 d𝑥𝑥
d𝑥𝑥 𝑣𝑣 𝑣𝑣 2
D.Power Rule
For any real number a,
d 𝑎𝑎
𝑥𝑥 = 𝑎𝑎𝑎𝑎 𝑎𝑎−1
d𝑥𝑥
20
For example,
d 5
𝑥𝑥 = 5𝑥𝑥 4
d𝑥𝑥
d 1 d −2 −3
2
2
= 𝑥𝑥 = −2𝑥𝑥 = − 3
d𝑥𝑥 𝑥𝑥 d𝑥𝑥 𝑥𝑥
d d 1/2 1 −1 1
√𝑥𝑥 = 𝑥𝑥 = 𝑥𝑥 2 =
d𝑥𝑥 d𝑥𝑥 2 2√𝑥𝑥
21
Example 2.1
Differentiate the following functions with respect to x:
(a) 𝑦𝑦 = (𝑥𝑥 2 + 1)(𝑥𝑥 3 + 3)
𝑦𝑦 ′ = (𝑥𝑥 2 + 1)′ (𝑥𝑥 3 + 3) + (𝑥𝑥 2 + 1)(𝑥𝑥 3 + 3)′
= 2𝑥𝑥(𝑥𝑥 3 + 3) + 3𝑥𝑥 2 (𝑥𝑥 2 + 1)
= 5𝑥𝑥 4 + 3𝑥𝑥 2 + 6𝑥𝑥
Alternatively, note that 𝑦𝑦 = 𝑥𝑥 5 + 𝑥𝑥 3 + 3𝑥𝑥 2 + 3. Then,
𝑦𝑦 ′ = 5𝑥𝑥 4 + 3𝑥𝑥 2 + 6𝑥𝑥
22
(b)
𝑥𝑥 2 − 1
𝑦𝑦 = 2
𝑥𝑥 + 1
dy (𝑥𝑥 2 + 1)(2𝑥𝑥) − (𝑥𝑥 2 − 1)(2𝑥𝑥) 4𝑥𝑥
= 2 2
= 2
d𝑥𝑥 (𝑥𝑥 + 1) (𝑥𝑥 + 1)2
23
(c)
(𝑥𝑥 − 1)(𝑥𝑥 2 − 2𝑥𝑥)
𝑦𝑦 =
𝑥𝑥 4
Then, we differentiate y
d𝑦𝑦 1 6 6
=− 2+ 3− 4
d𝑥𝑥 𝑥𝑥 𝑥𝑥 𝑥𝑥
24
Example 2.2
d𝑦𝑦 d𝑦𝑦
(a) Calculate � and � for
d𝑥𝑥 𝑥𝑥=0 d𝑥𝑥 𝑥𝑥=−1
𝑦𝑦 = 𝑥𝑥 7 − 5𝑥𝑥 2 − 100
Solution:
(a) 𝑦𝑦′ = 7𝑥𝑥 6 − 10𝑥𝑥
d𝑦𝑦
� = 7(0)6 − 10(0) = 0
d𝑥𝑥 𝑥𝑥=0
d𝑦𝑦
� = 7(−1)6 − 10(−1) = 17
d𝑥𝑥 𝑥𝑥=−1
25
Example 3.1
Differentiate the following functions with respect to x:
(a) 𝑦𝑦(𝑥𝑥) = (3𝑥𝑥 2 + 1)2
(b)
𝑓𝑓(𝑥𝑥) = (5𝑥𝑥 3 − 𝑥𝑥 4 )7
𝑓𝑓′(𝑥𝑥) = 7(5𝑥𝑥 3 − 𝑥𝑥 4 )6 (15𝑥𝑥 2 − 4𝑥𝑥 3 )
(c)
1
𝑦𝑦(𝑥𝑥) =
3𝑥𝑥 − 2
′
1 3
𝑦𝑦 (𝑥𝑥) = − 2
(3) = −
(3𝑥𝑥 − 2) (3𝑥𝑥 − 2)2
(d)
𝑓𝑓(𝑥𝑥) = (𝑥𝑥 3 + 2)7 (𝑥𝑥 2 − 5)2
𝑓𝑓 ′ (𝑥𝑥) = (𝑥𝑥 3 + 2)7 [2(𝑥𝑥 2 − 5)(2𝑥𝑥)] + (𝑥𝑥 2 − 5)2 [7(𝑥𝑥 3 + 2)6 (3𝑥𝑥 2 )]
= 4𝑥𝑥(𝑥𝑥 3 + 2)7 (𝑥𝑥 2 − 5) + 21𝑥𝑥 2 (𝑥𝑥 3 + 2)6 (𝑥𝑥 2 − 5)2
30
𝑥𝑥
(e) 𝑦𝑦 = for −1 < 𝑥𝑥 < 1
√1−𝑥𝑥 2
1
√1 − − 𝑥𝑥 𝑥𝑥 2 (−2𝑥𝑥)
𝑑𝑑𝑑𝑑 2√1 − 𝑥𝑥 2
=
𝑑𝑑𝑑𝑑 1 − 𝑥𝑥 2
𝑥𝑥 2
√1 − 𝑥𝑥 2 +
√1 − 𝑥𝑥 2
=
1 − 𝑥𝑥 2
1
=
(1 − 𝑥𝑥 2 )3/2
31
(f)
for x > 0.
1 1 6𝑥𝑥 + 5√𝑥𝑥
𝑓𝑓 ′ (𝑥𝑥) = 4�𝑥𝑥 + √𝑥𝑥 + 4𝑥𝑥 �1 + �=
2�𝑥𝑥 + √𝑥𝑥 2√𝑥𝑥 �𝑥𝑥 + √𝑥𝑥
32
Example 3.2
(a) Suppose that f is a differentiable odd function.
Show that 𝑓𝑓 ′ (−𝑥𝑥) = 𝑓𝑓 ′ (𝑥𝑥) for any x.
(b) Suppose that f is a differentiable even function.
Show that 𝑓𝑓 ′ (−𝑥𝑥) = −𝑓𝑓 ′ (𝑥𝑥) for any x.
Solution:
(a) Since f is an odd function, 𝑓𝑓(−𝑥𝑥) = −𝑓𝑓(𝑥𝑥) for all x. We differentiate
both sides of the above equation with respect to x. Applying Chain Rule
to the left hand side, we get
𝑓𝑓′(−𝑥𝑥)(−1) = −𝑓𝑓 ′ (𝑥𝑥)
Hence, 𝑓𝑓 ′ (−𝑥𝑥) = 𝑓𝑓 ′ (𝑥𝑥).
(b) Since f is an even function, 𝑓𝑓(−𝑥𝑥) = 𝑓𝑓(𝑥𝑥) for all x. We differentiate
both sides of the above equation with respect to x,
𝑓𝑓′(−𝑥𝑥)(−1) = 𝑓𝑓 ′ (𝑥𝑥) ⇒ 𝑓𝑓 ′ (−𝑥𝑥) = −𝑓𝑓 ′ (𝑥𝑥)
33
If f is a function with an interval domain I and the derivative 𝑓𝑓′ exists and is
non-zero on I. Then the inverse function 𝑓𝑓 −1 is differentiable and the
derivative is given by:
−1 ′
1
(𝑓𝑓 ) (𝑏𝑏) =
𝑓𝑓′(𝑓𝑓 −1 (𝑏𝑏))
That is, (in Leibniz’s notation),
d𝑓𝑓 −1 1
� =
d𝑥𝑥 𝑥𝑥=𝑏𝑏 d𝑓𝑓
�
d𝑥𝑥 𝑥𝑥=𝑓𝑓−1 (𝑏𝑏)
34
Remark: These are the INVERSE functions, which are different from the
reciprocals.
Example 4.1
Differentiate the following functions with respect to x:
(a)
𝑦𝑦(𝑥𝑥) = 𝑥𝑥 3 − 8𝑥𝑥 + cos 𝑥𝑥
𝑦𝑦′(𝑥𝑥) = 3𝑥𝑥 2 − 8 − sin 𝑥𝑥
(b)
4
𝑦𝑦(𝑥𝑥) = + 3 sin 𝑥𝑥
𝑥𝑥
4
𝑦𝑦′(𝑥𝑥) = − 2 + 3cos 𝑥𝑥
𝑥𝑥
38
(c)
𝑦𝑦(𝑥𝑥) = 𝑥𝑥 2 tan 𝑥𝑥
𝑦𝑦′(𝑥𝑥) = 2𝑥𝑥 tan 𝑥𝑥 + 𝑥𝑥 2 sec 2 𝑥𝑥
(d)
𝑦𝑦(𝑥𝑥) = sin(𝑥𝑥 2 )
Then, 𝑦𝑦 = sin 𝑢𝑢 where 𝑢𝑢 = 𝑥𝑥 2 . By Chain Rule, we have
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑 𝑑𝑑 sin 𝑢𝑢 𝑑𝑑(𝑥𝑥 2 )
= = = cos 𝑢𝑢 (2𝑥𝑥) = 2𝑥𝑥 cos(𝑥𝑥 2 )
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑
Alternatively, we may write
𝑑𝑑𝑑𝑑 𝑑𝑑 sin(𝑥𝑥 2 ) 𝑑𝑑 sin(𝑥𝑥 2 ) 𝑑𝑑 (𝑥𝑥 2 )
= =
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑 𝑑𝑑 (𝑥𝑥 2 ) 𝑑𝑑𝑑𝑑
= [cos(𝑥𝑥 2 )](2𝑥𝑥) = 2𝑥𝑥 cos(𝑥𝑥 2 )
39
Example 4.2
Differentiate the following functions with respect to x:
(a) 𝑦𝑦(𝑥𝑥) = sin5 𝑥𝑥 + sin(𝑥𝑥 2 + 𝑥𝑥)
𝑦𝑦′(𝑥𝑥) = 5sin4 𝑥𝑥 cos 𝑥𝑥 + cos(𝑥𝑥 2 + 𝑥𝑥) (2𝑥𝑥 + 1)
(c)
sin 𝑥𝑥
𝑦𝑦(𝑥𝑥) =
𝑥𝑥
𝑥𝑥cos 𝑥𝑥 − sin 𝑥𝑥
𝑦𝑦′(𝑥𝑥) =
𝑥𝑥 2
(d)
𝑦𝑦 = tan √1 − 𝑥𝑥
−1 −�sec 2 √1 − 𝑥𝑥�
𝑦𝑦 ′ = �sec 2 √1 − 𝑥𝑥� =
2√1 − 𝑥𝑥 2√1 − 𝑥𝑥
41
(e)
𝑦𝑦 = csc 5 (1 − 𝑥𝑥 + 3𝑥𝑥 2 )
𝑦𝑦 ′
= [5csc 4 (1 − 𝑥𝑥 + 3𝑥𝑥 2 )][− csc(1 − 𝑥𝑥 + 3𝑥𝑥 2 ) cot(1 − 𝑥𝑥 + 3𝑥𝑥 2 )]
(−1 + 6𝑥𝑥)
= 5(1 − 6𝑥𝑥)csc 5 (1 − 𝑥𝑥 + 3𝑥𝑥 2 ) cot(1 − 𝑥𝑥 + 3𝑥𝑥 2 )
42
Example 4.3
Differentiate the following functions with respect to x:
(a)
𝑦𝑦 = sin−1 (𝑥𝑥 2 ) + tan−1 √𝑥𝑥
(b)
𝑦𝑦 = sin−1 (sin2 𝑥𝑥)
(c)
1 + 2 cos 𝑥𝑥
𝑦𝑦 = cos −1 � �
2 + cos 𝑥𝑥
43
Example 4.4
2
1
𝑓𝑓(𝑥𝑥) = � 𝑥𝑥 sin 𝑥𝑥 if 𝑥𝑥 ≠ 0
0 if 𝑥𝑥 = 0
Find the derivative of f(x). Is f’(x) continuous at x = 0?
Solution:
1 1
For 𝑥𝑥 ≠ 0, 𝑓𝑓 ′ (𝑥𝑥 ) = 2𝑥𝑥 sin − cos
𝑥𝑥 𝑥𝑥
1
ℎ2 sin −0 1 1
At 𝑥𝑥 = 0, 𝑓𝑓 ′ (0) = lim ℎ
= lim ℎ sin = 0 (since 0 ≤ �ℎ sin � ≤ |ℎ|, by
ℎ→0 ℎ ℎ→0 ℎ ℎ
′(
Remark: We cannot find 𝒇𝒇 𝟎𝟎) by taking the
′(
limit 𝐥𝐥𝐥𝐥𝐥𝐥𝒇𝒇 𝒙𝒙), which has assumed the
𝒙𝒙→𝟎𝟎
continuity of 𝒇𝒇′ (𝒙𝒙).
45
Derivative of ln 𝑥𝑥:
d 1
(ln 𝑥𝑥 ) =
d𝑥𝑥 𝑥𝑥
Example 5.1
Differentiate the following functions with respect to x:
(i) 𝑦𝑦 = ln(sin2 𝑥𝑥 + 𝑥𝑥 2 + 1)
1
𝑦𝑦′ = 2 2
[2 sin 𝑥𝑥 cos 𝑥𝑥 + 2𝑥𝑥]
sin 𝑥𝑥 + 𝑥𝑥 + 1
(ii) 𝑦𝑦 = 𝑥𝑥ln(1 − 𝑥𝑥)
′
1 𝑥𝑥
𝑦𝑦 = ln(1 − 𝑥𝑥) + 𝑥𝑥 � (−1)� = ln(1 − 𝑥𝑥) +
1 − 𝑥𝑥 𝑥𝑥 − 1
(iii)𝑦𝑦 = [ln(𝑥𝑥 2 + 1)]3
1 6𝑥𝑥
𝑦𝑦 ′ = 3[ln(𝑥𝑥 2 + 1)]2 � 2 � (2𝑥𝑥) = 2 [ln(𝑥𝑥 2 + 1)]2
𝑥𝑥 + 1 𝑥𝑥 + 1
48
B. Exponential Function
The exponential function:
e𝑥𝑥 = exp 𝑥𝑥 = ln−1 𝑥𝑥
Derivative of e𝑥𝑥 :
d 𝑥𝑥
(e ) = e𝑥𝑥
d𝑥𝑥
For any positive number a,
d 𝑥𝑥
(𝑎𝑎 ) = ln 𝑎𝑎 𝑎𝑎 𝑥𝑥
d𝑥𝑥
49
50
Example 5.2
Differentiate the following functions with respect to x:
(a)
tan 𝑥𝑥 + 𝑥𝑥 3
𝑦𝑦 =
𝑒𝑒 𝑥𝑥
𝑒𝑒 𝑥𝑥 (sec 2 𝑥𝑥 + 3𝑥𝑥 2 ) − (tan 𝑥𝑥 + 𝑥𝑥 3 )𝑒𝑒 𝑥𝑥
𝑦𝑦′ =
𝑒𝑒 2𝑥𝑥
sec 2 𝑥𝑥 − tan 𝑥𝑥 − 𝑥𝑥 3 + 3𝑥𝑥 2
=
𝑒𝑒 𝑥𝑥
51
(b)
𝑒𝑒 𝑥𝑥 tan 𝑥𝑥
𝑦𝑦 =
𝑥𝑥
(c)
1
sin𝑥𝑥
𝑦𝑦 = 𝑒𝑒
1
sin𝑥𝑥 1 1
𝑦𝑦′ = 𝑒𝑒 cos �− 2 �
𝑥𝑥 𝑥𝑥
(d)
𝑥𝑥
𝑦𝑦 = 4ln 𝑥𝑥
1
𝑥𝑥 ln 𝑥𝑥 − 𝑥𝑥 � � 𝑥𝑥 ln 𝑥𝑥 − 1
′
𝑦𝑦 = (ln 4)4ln 𝑥𝑥 𝑥𝑥 = (ln 4)4ln 𝑥𝑥
(ln 𝑥𝑥) 2 (ln 𝑥𝑥 )2
53
(e)
𝑓𝑓(𝑥𝑥) = ln �tan( 𝑒𝑒 √𝑥𝑥 )�
1 1
𝑓𝑓 ′ (𝑥𝑥) = sec 2
�𝑒𝑒 √𝑥𝑥 � 𝑒𝑒 √𝑥𝑥
tan( 𝑒𝑒 √𝑥𝑥 ) 2√𝑥𝑥
𝑒𝑒 √𝑥𝑥
=
2√𝑥𝑥 sin(𝑒𝑒 √𝑥𝑥 ) cos(𝑒𝑒 √𝑥𝑥 )
𝑒𝑒 √𝑥𝑥
=
√𝑥𝑥 sin(2𝑒𝑒 √𝑥𝑥 )
(d)
(𝑒𝑒 𝑥𝑥 )
𝑦𝑦 = 𝑒𝑒
(𝑒𝑒 𝑥𝑥 ) 𝑥𝑥
𝑦𝑦′ = 𝑒𝑒 𝑒𝑒
54
C. Logarithmic Differentiation
1. For functions involving a lot of products, quotients or powers of positive
functions, instead of the tedious calculation involving product rule or quotient
rules, we may apply logarithmic differentiation.
Steps
(i) Taking logarithm on both sides of the equation 𝑦𝑦 = 𝑓𝑓(𝑥𝑥) (>0). Applying
logarithm laws, the expressions can be simplified to a sum of logarithms.
(ii) Differentiate both sides of the equation with respect to x, treating y as a
1 d𝑦𝑦
differentiable function of x: =⋯
𝑦𝑦 d𝑥𝑥
(iii)Hence, expressing y in terms of x,
d𝑦𝑦
= 𝑓𝑓(𝑥𝑥)(…)
d𝑥𝑥
55
Example 5.3
d𝑦𝑦
Find the derivative if
d𝑥𝑥
(𝑥𝑥 2 + 1)(𝑥𝑥 + 3)1/2
𝑦𝑦 =
𝑥𝑥 − 1
for x > 1.
Solution:
We take the logarithm of both sides to get
2
1
)
ln 𝑦𝑦 = ln(𝑥𝑥 + 1 + ln(𝑥𝑥 + 3) − ln(𝑥𝑥 − 1)
2
Differentiate both sides of the equation,
1 ′ 2𝑥𝑥 1 1
𝑦𝑦 = 2 + −
𝑦𝑦 𝑥𝑥 + 1 2(𝑥𝑥 + 3) 𝑥𝑥 − 1
( 2 )( )1/2
′
𝑥𝑥 + 1 𝑥𝑥 + 3 2𝑥𝑥 1 1
𝑦𝑦 = � 2 + − �
𝑥𝑥 − 1 𝑥𝑥 + 1 2(𝑥𝑥 + 3) 𝑥𝑥 − 1
56
Example 5.4
d𝑦𝑦
Find the derivative if
d𝑥𝑥
3
𝑦𝑦 = 𝑥𝑥 3 (2 sin 𝑥𝑥 − 4
1) � √𝑥𝑥 + 1�
for π/6 < x < π/2.
57
d𝑦𝑦
(ii) Find the derivative if
d𝑥𝑥
𝑦𝑦 = 𝑥𝑥 1/𝑥𝑥
for x > 0.
Steps
1. Differentiate both sides of the equation with respect to x, treating y as a
differentiable function of x.
d𝑦𝑦
2. Collect terms and rewrite the equation as (…) =⋯
d𝑥𝑥
d𝑦𝑦
3. Solve for ‘algebraically’.
d𝑥𝑥
60
Example 6.1
Find the slope of the circle 𝑥𝑥 2 + 𝑦𝑦 2 = 25 at the point (3, −4).
a. Method 1: explicit b. Method 2: implicit
Hence, find the equation of the tangent line to the circle at the point (3, −4).
Solution:
a. 𝑦𝑦 = −√25 − 𝑥𝑥 2 (exercise)
b. Differentiate both sides of the equation
𝑥𝑥 2 + 𝑦𝑦 2 = 25
2𝑥𝑥 + 2𝑦𝑦𝑦𝑦′ = 0
𝑥𝑥
𝑦𝑦 ′ = −
𝑦𝑦
𝑥𝑥 3 3
Thus, the slope of the circle at (3, −4) is − = − =
𝑦𝑦 −4 4
3 25
Hence, the equation of the tangent line is 𝑦𝑦 = 𝑥𝑥 −
4 4
61
Example 6.2
d𝑦𝑦
Find if 𝑦𝑦 2 = 𝑥𝑥 2 + sin 𝑥𝑥𝑥𝑥.
d𝑥𝑥
Solution:
We differentiate both sides of the equation 𝑦𝑦 2 = 𝑥𝑥 2 + sin 𝑥𝑥𝑥𝑥,
we get 2𝑦𝑦𝑦𝑦 ′ = 2𝑥𝑥 + (cos 𝑥𝑥𝑥𝑥) (𝑥𝑥𝑦𝑦 ′ + 𝑦𝑦)
(2𝑦𝑦 − 𝑥𝑥 cos 𝑥𝑥𝑥𝑥)𝑦𝑦 ′ = 2𝑥𝑥 + 𝑦𝑦 cos 𝑥𝑥𝑥𝑥
2𝑥𝑥 + 𝑦𝑦 cos 𝑥𝑥𝑥𝑥
𝑦𝑦′ =
2𝑦𝑦 − 𝑥𝑥 cos 𝑥𝑥𝑥𝑥
62
Example 6.3
d𝑦𝑦 𝑥𝑥−1
Find if 𝑦𝑦 = tan−1 � �
d𝑥𝑥 𝑥𝑥+1
Second Derivative
Given 𝑦𝑦 = 𝑓𝑓(𝑥𝑥) , the second derivative is defined as the derivative of the first
derivative, that is
d d𝑦𝑦
� �
d𝑥𝑥 d𝑥𝑥
d2 𝑦𝑦
Notation: 𝑓𝑓"(𝑥𝑥), , 𝑦𝑦"
d𝑥𝑥 2
In general, for any positive integer n, the nth derivative of y with respect to x is
denoted by,
𝑛𝑛
(𝑛𝑛)
d 𝑦𝑦
𝑦𝑦 , 𝑛𝑛
d𝑥𝑥
and it is defined by
d
𝑦𝑦 (𝑛𝑛) = 𝑦𝑦 (𝑛𝑛−1) .
d𝑥𝑥
65
Example 7.1
Let
𝑦𝑦 = 𝑥𝑥 3 − 3𝑥𝑥 2 + 2
Find 𝑦𝑦 (4) .
Solution:
𝑦𝑦′ = 3𝑥𝑥 2 − 6𝑥𝑥
𝑦𝑦′′ = 6𝑥𝑥 − 6
𝑦𝑦 (3) = 6
𝑦𝑦 (4) = 0
66
Example 7.3
d2 𝑦𝑦
Find if
d𝑥𝑥 2
2𝑥𝑥 3 − 3𝑦𝑦 2 = 8
Solution:
Differentiate both sides of the equation 2𝑥𝑥 3 − 3𝑦𝑦 2 = 8, we have
6𝑥𝑥 2 − 6𝑦𝑦𝑦𝑦′ = 0
𝑥𝑥 2
𝑦𝑦′ =
𝑦𝑦
for 𝑦𝑦 ≠ 0.
Differentiate a second time to obtain the second derivative
2
2 𝑥𝑥
𝑦𝑦 (2𝑥𝑥 ) − 𝑥𝑥 2 ′
𝑦𝑦 2𝑥𝑥𝑥𝑥 − 𝑥𝑥 2𝑥𝑥 𝑥𝑥 4
𝑦𝑦
𝑦𝑦 ′′ = = = −
𝑦𝑦 2 𝑦𝑦 2 𝑦𝑦 𝑦𝑦 3
for 𝑦𝑦 ≠ 0.
68
Example 7.4
Suppose the equation
𝑦𝑦 3 + cos(𝑥𝑥𝑥𝑥) = 𝑥𝑥 2
Implicitly determined a function 𝑦𝑦 = 𝑦𝑦(𝑥𝑥) near the point (0, −1).
d𝑦𝑦
(a) By implicit differentiation, find at (0, −1).
d𝑥𝑥
Solution:
Differentiate both sides of the equation with respect to x
3𝑦𝑦 2 𝑦𝑦 ′ − sin(𝑥𝑥𝑥𝑥) (𝑦𝑦 + 𝑥𝑥𝑥𝑥′) = 2𝑥𝑥
2𝑥𝑥 + 𝑦𝑦 sin(𝑥𝑥𝑥𝑥)
𝑦𝑦 ′ = 2
3𝑦𝑦 − 𝑥𝑥 sin(𝑥𝑥𝑥𝑥)
d𝑦𝑦
� =0
d𝑥𝑥 (0,−1)
69
d2 𝑦𝑦
(b) By implicit differentiation, find at (0, −1).
d𝑥𝑥 2
Solution:
Differentiate both sides of the following equation with respect to x
(3𝑦𝑦 2 − 𝑥𝑥 sin(𝑥𝑥𝑥𝑥))𝑦𝑦 ′ = 2𝑥𝑥 + 𝑦𝑦 sin(𝑥𝑥𝑥𝑥)
we have
d 2
d𝑦𝑦 2
d2 𝑦𝑦 d𝑦𝑦 d𝑦𝑦
(3𝑦𝑦 − 𝑥𝑥 sin(𝑥𝑥𝑥𝑥)) + (3𝑦𝑦 − 𝑥𝑥 sin(𝑥𝑥𝑥𝑥)) 2 = 2 + sin(𝑥𝑥𝑥𝑥) + 𝑦𝑦 cos(𝑥𝑥𝑥𝑥)(𝑦𝑦 + 𝑥𝑥 )
d𝑥𝑥 d𝑥𝑥 d𝑥𝑥 d𝑥𝑥 d𝑥𝑥
d𝑦𝑦
With � = 0,
d𝑥𝑥 (0,−1)
d2 𝑦𝑦
3 2
� = 2 + (−1)2 cos(0)
d𝑥𝑥 (0,−1)
d2 𝑦𝑦
2
� =1
d𝑥𝑥 (0,−1)
70
Example 7.5
For 𝑦𝑦 = sin(𝑥𝑥), find 𝑦𝑦 (𝑛𝑛) .
Solution:
sin 𝑥𝑥 𝑖𝑖𝑖𝑖 𝑛𝑛 = 4𝑘𝑘
cos 𝑥𝑥 𝑖𝑖𝑖𝑖 𝑛𝑛 = 4𝑘𝑘 + 1
𝑦𝑦 (𝑛𝑛) =�
−sin 𝑥𝑥 𝑖𝑖𝑖𝑖 𝑛𝑛 = 4𝑘𝑘 + 2
−cos 𝑥𝑥 𝑖𝑖𝑖𝑖 𝑛𝑛 = 4𝑘𝑘 + 3
𝑛𝑛𝑛𝑛
= sin �𝑥𝑥 + �
2
71
Example 7.6
For 𝑦𝑦 = 𝑒𝑒 𝑎𝑎𝑎𝑎 ,
𝑦𝑦 (𝑛𝑛) = 𝑎𝑎𝑛𝑛 𝑒𝑒 𝑎𝑎𝑎𝑎
72
Example 7.7
For 𝑦𝑦 = 𝑥𝑥 𝑚𝑚 , find 𝑦𝑦 (𝑛𝑛) .
73
Example 7.8
𝑥𝑥
Let 𝑓𝑓(𝑥𝑥) = , find 𝑓𝑓 (𝑛𝑛) (0).
1−𝑥𝑥 2
Solution:
We first note that we can rewrite f as (by partial fraction decomposition)
𝑥𝑥 1 1 1
2
= �− + �
1 − 𝑥𝑥 2 1 + 𝑥𝑥 1 − 𝑥𝑥
Furthermore,
d𝑛𝑛 1 (−1)𝑛𝑛 𝑛𝑛!
� �=
d𝑥𝑥 1 + 𝑥𝑥
𝑛𝑛 (1 + 𝑥𝑥)𝑛𝑛+1
d𝑛𝑛 1 𝑛𝑛!
� �=
d𝑥𝑥 1 − 𝑥𝑥
𝑛𝑛 (1 − 𝑥𝑥)𝑛𝑛+1
74
Hence,
1 ( −1 ) 𝑛𝑛+1 𝑛𝑛! 𝑛𝑛!
(𝑛𝑛) ( )
𝑓𝑓 𝑥𝑥 = � 𝑛𝑛+1
+ 𝑛𝑛+1
�
(
2 1 + 𝑥𝑥 ) ( 1 − 𝑥𝑥 )
and
(𝑛𝑛) ( 1
𝑓𝑓 0) = ((−1)𝑛𝑛+1 𝑛𝑛! + 𝑛𝑛!)
2
𝑛𝑛! if 𝑛𝑛 is odd
=�
0 if 𝑛𝑛 is even
75
We go further to try n = 3,
3
[𝑢𝑢(𝑥𝑥)𝑣𝑣 (𝑥𝑥)](3) = � C𝑘𝑘3 𝑢𝑢(𝑘𝑘) 𝑣𝑣 (3−𝑘𝑘)
𝑘𝑘=0
= 𝐶𝐶03 𝑢𝑢(0) 𝑣𝑣 (3) + 𝐶𝐶13 𝑢𝑢(1) 𝑣𝑣 (2) + 𝐶𝐶23 𝑢𝑢(2) 𝑣𝑣 (1) + 𝐶𝐶33 𝑢𝑢(3) 𝑣𝑣 (0)
= (𝑥𝑥 2 + 3)(sin 𝑥𝑥) + 3(2𝑥𝑥)(− cos 𝑥𝑥) + 3(2)(− sin 𝑥𝑥 )
+ (0)cos 𝑥𝑥
= (𝑥𝑥 2 − 3)(sin 𝑥𝑥) − 6𝑥𝑥 cos 𝑥𝑥
• As we noted in the previous example, 𝑢𝑢(𝑘𝑘) = 0 for k > 2.
• Due to this fact, we can easily continue to differentiate the product (say,
[𝑢𝑢(𝑥𝑥)𝑣𝑣 (𝑥𝑥)](10) , …) and only a few terms in the sum are non-zero!
78
10
[𝑢𝑢(𝑥𝑥 )𝑣𝑣(𝑥𝑥 )](10) = � C𝑘𝑘10 𝑢𝑢(𝑘𝑘) 𝑣𝑣 (10−𝑘𝑘)
𝑘𝑘=0
Note that we have applied the technique in Example 7.5 to compute 𝑣𝑣 (8) , 𝑣𝑣 (9) , 𝑣𝑣 (10) .
79
Example 7.10
For 𝑦𝑦(𝑥𝑥) = (cos −1 𝑥𝑥)2 , show that (1 − 𝑥𝑥 2 )𝑦𝑦 ′′ − 𝑥𝑥𝑦𝑦 ′ − 2 = 0. Hence,
show that (1 − 𝑥𝑥 2 )𝑦𝑦 (𝑛𝑛+2) − (2𝑛𝑛 + 1)𝑥𝑥𝑦𝑦 (𝑛𝑛+1) − 𝑛𝑛2 𝑦𝑦 (𝑛𝑛) = 0.
Solution:
−1
By direct computation, 𝑦𝑦 ′ = 2 cos −1 𝑥𝑥 � �
√1−𝑥𝑥 2
which implies √1 − 𝑥𝑥 2 𝑦𝑦 ′ + 2 cos −1 𝑥𝑥 = 0.
Implicitly differentiate both sides of the equation, we have
′′
1 ′
2
�1 − 𝑥𝑥 𝑦𝑦 +
2 (−2𝑥𝑥)𝑦𝑦 − =0
2√1 − 𝑥𝑥 2 √1 − 𝑥𝑥 2
2 ) (𝑛𝑛+2) (𝑛𝑛+1)
𝑛𝑛(𝑛𝑛 − 1)
(1 − 𝑥𝑥 𝑦𝑦 − 2𝑛𝑛𝑛𝑛𝑦𝑦 + (−2)𝑦𝑦 (𝑛𝑛) − 𝑥𝑥𝑦𝑦 (𝑛𝑛+1) − 𝑛𝑛𝑦𝑦 (𝑛𝑛) = 0
2
(1 − 𝑥𝑥 2 )𝑦𝑦 (𝑛𝑛+2) − (2𝑛𝑛 + 1)𝑥𝑥𝑦𝑦 (𝑛𝑛+1) − 𝑛𝑛2 𝑦𝑦 (𝑛𝑛) = 0
82
SUMMARY (Chapter 4)
A.Definition of derivative by the first principle
G.Skills:
1.Logarithmic differentiation
2.Implicit differentiation
H.Higher derivatives