Lec 2.2 Differentiability and The Chain Rule
Lec 2.2 Differentiability and The Chain Rule
Mathematics 21
Institute of Mathematics (UP Diliman) Differentiability and The Chain Rule Mathematics 21 1 / 31
For today
1 Differentiability
Institute of Mathematics (UP Diliman) Differentiability and The Chain Rule Mathematics 21 2 / 31
For today
1 Differentiability
Institute of Mathematics (UP Diliman) Differentiability and The Chain Rule Mathematics 21 3 / 31
Differentiability
Definitions
Institute of Mathematics (UP Diliman) Differentiability and The Chain Rule Mathematics 21 4 / 31
Differentiability
Example
(
x , x≥0
Determine if f ( x ) = | x | = is differentiable at x = 0.
−x , x < 0
f 0 (0) = ?
Institute of Mathematics (UP Diliman) Differentiability and The Chain Rule Mathematics 21 5 / 31
Differentiability
Definitions
Let the function f ( x ) be defined at x = x0 .
0 ( x ), is given by
1. The derivative from the left of f ( x ) at x = x0 , denoted f − 0
0 f ( x ) − f ( x0 )
f− ( x0 ) = lim ,
x → x0− x − x0
0 f ( x ) − f ( x0 )
f+ ( x0 ) = lim ,
x → x0+ x − x0
Institute of Mathematics (UP Diliman) Differentiability and The Chain Rule Mathematics 21 6 / 31
Differentiability
Remark
1. The derivative from the left [right] is also referred to as the left-hand derivative
[right-hand derivative], or simply left derivative [right derivative].
0 ( x ) and f 0 ( x ) exist
2. The function f is differentiable at x = x0 if and only if f − 0 + 0
and
0 ( x ) = f 0 ( x ) = f 0 ( x ).
f− 0 + 0 0
Institute of Mathematics (UP Diliman) Differentiability and The Chain Rule Mathematics 21 7 / 31
Example
(
x , x≥0
Determine if f ( x ) = | x | = is differentiable at x = 0.
−x , x < 0
Solution. We compute the derivatives from the left and from the right at x = 0.
0 f ( x ) − f (0) 0 f ( x ) − f (0)
f− (0) = lim f+ (0) = lim
x →0− x−0 x →0+ x−0
−x − 0 x−0
= lim = lim
x →0− x x →0+ x
= −1 = 1
=⇒ f −0 (0) 6= f +0 (0)
∴ f ( x ) is not differentiable at x = 0.
Institute of Mathematics (UP Diliman) Differentiability and The Chain Rule Mathematics 21 8 / 31
Example
(
1 2
2x + 24 , x<4
Determine if f ( x ) = √ is differentiable at x = 4.
16 x , x≥4
We compute the derivatives from the left and from the right at x = 4.
√
0 ( 21 x2 + 24) − 32 0 16 x − 32
f− (4) = lim f+ (4) = lim
x →4 − x−4 x → 4+ x−4
1 2
√ √
x − 8 x−2 x+2
= lim 2 = lim 16 · √
x →4 − x − 4 x → 4+ x−4 x+2
1 ( x + 4) −
(x 4) x−4
= lim = lim 16 √
x →4 2
− x−4
x → 4+ −
(x 4)( x + 2)
= 4 = 4
Institute of Mathematics (UP Diliman) Differentiability and The Chain Rule Mathematics 21 9 / 31
Differentiability and Continuity
Theorem
If f is differentiable at x = x0 , then f is continuous at x = x0 .
Remarks
Example
Consider the function f ( x ) = | x |. Observe that
f is continuous at x = 0, and
f is not differentiable at x = 0.
Institute of Mathematics (UP Diliman) Differentiability and The Chain Rule Mathematics 21 10 / 31
Geometric Interpretation of Differentiability
Remarks
A function f is not differentiable at x = x0 if one of the following is true:
f is discontinuous at x = x0
the graph of f has a vertical tangent line at x = x0
the graph of f has no well-defined tangent line at x = x0 , i.e., the graph of f
has a corner or cusp at x = x0 .
Institute of Mathematics (UP Diliman) Differentiability and The Chain Rule Mathematics 21 11 / 31
x0 x0 x0
Institute of Mathematics (UP Diliman) Differentiability and The Chain Rule Mathematics 21 12 / 31
Theorem on left and right derivatives
Theorem
1. If f is continuous at x = x0 from the left and lim f 0 ( x ) exists, then
−
x → x0
0 ( x ) = lim f 0 ( x ).
f− 0
x → x0−
Institute of Mathematics (UP Diliman) Differentiability and The Chain Rule Mathematics 21 13 / 31
Example
Determine if
(
x2
, x < −1
f (x) =
−1 − 2x , x ≥ −1
is differentiable at x0 = −1.
f (−1) = 1
lim f ( x ) = lim f ( x ) = 1
x →−1− x →−1+
∴ f ( x ) is continuous at x = −1.
Institute of Mathematics (UP Diliman) Differentiability and The Chain Rule Mathematics 21 14 / 31
(
x2 , x < −1
f (x) =
−1 − 2x , x ≥ −1
We have
(
2x , x < −1
f 0 (x) =
−2 , x > −1.
Thus,
0
f− (−1) = lim f 0 ( x ) = 2(−1) = −2
x →−1−
0
f+ (−1) = lim f 0 ( x ) = −2
x →−1+
Institute of Mathematics (UP Diliman) Differentiability and The Chain Rule Mathematics 21 15 / 31
Example
Determine if the following function is differentiable at x = 1:
(
x2 + x + 2 , x≤1
g( x ) =
3x , x>1
g (1) = 4
2
lim ( x + x + 2) = 4
x →1−
lim 3x = 3
x →1+
∴ g is discontinuous at x = 1
Institute of Mathematics (UP Diliman) Differentiability and The Chain Rule Mathematics 21 16 / 31
Example
Determine if the following function is differentiable at x = 1:
(
x2 + x + 2 , x≤1
g( x ) =
3x , x>1
Solution. Note:
(
2x + 1 , x<1
g0 ( x ) =
3 , x>1
Observe that lim g0 ( x ) = 3 and lim g0 ( x ) = 3. However, g0 (3) does not exist.
x →1− x →1+
A function f must be cont. from the left [right] at x0 before we conclude that
0 ( x ) = lim f 0 ( x ) [ f 0 ( x ) = lim f 0 ( x )].
f− 0 + 0
x → x0− x → x0+
∴ g( x ) is not differentiable at x = 1.
Institute of Mathematics (UP Diliman) Differentiability and The Chain Rule Mathematics 21 17 / 31
For today
1 Differentiability
Institute of Mathematics (UP Diliman) Differentiability and The Chain Rule Mathematics 21 18 / 31
The Chain Rule
( f ◦ g)0 ( x0 ) = f 0 ( g( x0 )) · g0 ( x0 ).
Remark
The chain rule can also be stated in the following manner:
If y = f (u) and u = g( x ) , then
dy dy du
= · or Dx [ f (u)] = f 0 (u) Dx [u].
dx du dx
Institute of Mathematics (UP Diliman) Differentiability and The Chain Rule Mathematics 21 19 / 31
The Chain Rule
Example
Find Dx [(2x )5 ].
f 0 ( x ) = 5x4 and g0 ( x ) = 2.
Institute of Mathematics (UP Diliman) Differentiability and The Chain Rule Mathematics 21 20 / 31
The Chain Rule
Example
Determine Dx [sin(2x )].
f 0 ( x ) = cos x and g0 ( x ) = 2
Institute of Mathematics (UP Diliman) Differentiability and The Chain Rule Mathematics 21 21 / 31
The Chain Rule
Example
Find h0 ( x ) if h( x ) = 2 sin( x2 ).
Institute of Mathematics (UP Diliman) Differentiability and The Chain Rule Mathematics 21 22 / 31
The Chain Rule
Example
dy √
Find if y = x3 − tan x.
dx
√
Solution: We let y = u and u = x3 − tan x.
Thus,
dy dy du 1 3x2 − sec2 x
= · = √ · (3x2 − sec2 x ) = √ .
dx du dx 2 u 2 x3 − tan x
Institute of Mathematics (UP Diliman) Differentiability and The Chain Rule Mathematics 21 23 / 31
The Chain Rule
Example
dy
Find if y = (2x − 1)100 (2 − x )200 .
dx
Solution:
dy
= 100(2x − 1)99 · 2 · (2 − x )200
dx
+(2x − 1)100 · 200(2 − x )199 · (−1)
= (2x − 1)99 (2 − x )199 [200(2 − x ) − 200(2x − 1)]
= 600(1 − x )(2x − 1)99 (2 − x )199 .
Institute of Mathematics (UP Diliman) Differentiability and The Chain Rule Mathematics 21 24 / 31
The Chain Rule
Example
5
" #
(2x 2 + 2)4
Find Dx √ .
2x − csc x
Solution:
" 5
# √ 5 5 √
(2x 2 + 2)4 ( 2x − csc x ) · Dx [(2x 2 + 2)4 ] − (2x 2 + 2)4 · Dx [ 2x − csc x ]
Dx √ = √
2x − csc x ( 2x − csc x )2
√ 5 3 5
( 2x − csc x ) · 4(2x 2 + 2)3 · (5x 2 ) − (2x 2 + 2)4 · √1 · 2 + csc x cot x
2 2x
= √ .
( 2x − csc x )2
Institute of Mathematics (UP Diliman) Differentiability and The Chain Rule Mathematics 21 25 / 31
The Chain Rule
Remarks
Institute of Mathematics (UP Diliman) Differentiability and The Chain Rule Mathematics 21 26 / 31
The Chain Rule
Example
Dx [sin(tan2 x )]
f ( x ) = sin x, g( x ) = x2 , h( x ) = tan x
Thus,
Institute of Mathematics (UP Diliman) Differentiability and The Chain Rule Mathematics 21 27 / 31
The Chain Rule
Example
Find Dx [sin(tan2 x )].
Solution:
Institute of Mathematics (UP Diliman) Differentiability and The Chain Rule Mathematics 21 28 / 31
The Chain Rule
Example
Find Dx [cos2 (cot 4x )]
Solution:
Institute of Mathematics (UP Diliman) Differentiability and The Chain Rule Mathematics 21 29 / 31
The Chain Rule
Example
√
Find f (4) ( x ) if f ( x ) = 2x − 3.
Solution.
1 1 1
f 0 (x) = (2x − 3)− 2 · (2) = (2x − 3)− 2
2
1 3 3
f 00 ( x ) = − (2x − 3)− 2 · (2) = − (2x − 3)− 2
2
3 5 5
f 000 ( x ) = (2x − 3)− 2 · (2) = 3 (2x − 3)− 2
2
15 7 7
f (4) ( x ) = − (2x − 3)− 2 · (2) = −15 (2x − 3)− 2
2
Institute of Mathematics (UP Diliman) Differentiability and The Chain Rule Mathematics 21 30 / 31
Exercises
dy
1. Find if y = ( x + tan x )4 .
dx √
2. Find f 0 ( x ) if f ( x ) = sin(2x3 − 3x ).
π
3. Find the slope of the tangent line to the graph of f ( x ) = cos 2x at x = .
4
4. Given √
2 3 x − x2 , x≥1
f (x) = ,
tan( x2 − 1) − 5x2/3
, x<1
find f 0 (1), if it exists.
5. Determine Dx4 [ cos(4x ) ].
Institute of Mathematics (UP Diliman) Differentiability and The Chain Rule Mathematics 21 31 / 31