Lecture_03
Lecture_03
Lecture_03
Lecture 3
Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 3 January 18, 2022 1 / 26
Table of Contents
1 Differentiability
Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 3 January 18, 2022 2 / 26
Chapter 2: Derivatives
Read Thomas’ Calculus, Chapter 3.
Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 3 January 18, 2022 3 / 26
Differentiability
f (x0 + h) − f (x0 )
f 0 (x0 ) = lim .
h→0 h
Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 3 January 18, 2022 4 / 26
Differentiability
Consider the tangent to the curve y = f (x) at the point (x0 , f (x0 )).
From the diagram, as h → 0, Q approaches P and hence, the gradient
of the chord PQ, namely
f (x0 + h) − f (x0 )
,
h
approaches the limiting value
f (x0 + h) − f (x0 )
lim = f 0 (x0 ).
h→0 h
When f 0 (x0 ) exists, we say that f is differentiable at x = x0 .
Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 3 January 18, 2022 5 / 26
Differentiability
f (x) − f (x0 )
f 0 (x0 ) = lim .
x→x0 x − x0
Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 3 January 18, 2022 6 / 26
Differentiability
Remark. The converse of the above result is not true in general. For
example the absolute value function |x| is continuous at x = 0 but not
differentiable at x = 0.
Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 3 January 18, 2022 7 / 26
Differentiability
Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 3 January 18, 2022 8 / 26
Differentiability
Example
Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 3 January 18, 2022 9 / 26
Differentiability
√1 − 2+1√x
d 1√ 2+ x+h
Solution. (a) dx 2+ x = lim h
h→0
√ √
x)−(2+ x+h)
= lim h1 (2+ √ √
(2+ x+h)(2+ x)
h→0
√ √
= lim h1 (2+√x− x+h√
x+h)(2+ x)
h→0
√ √ √ √
= lim h1 (2+√x− x+h√
x+h)(2+ x)
· √x+√x+h
x+ x+h
h→0
= lim h1 (2+√x+h)(2+−h
√ √ √
x)( x+ x+h)
h→0
= lim (2+√x+h)(2+−1
√ √ √
x)( x+ x+h)
h→0
= √ −1 √ .
2 x(2+ x)2
Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 3 January 18, 2022 10 / 26
Differentiability
(b) At x = 1, derivative is √ −1 √ 1
= − 18 .
2 1(2+ 1)2
y − 13 1
=− .
x −1 18
Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 3 January 18, 2022 11 / 26
Differentiability
Differentiability on Intervals.
Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 3 January 18, 2022 12 / 26
Differentiability
Exercise
Show that f (x) = |x 2 − 2x| is not differentiable at x = 2.
Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 3 January 18, 2022 13 / 26
Differentiability
Example
d n
Let n be a positive integer. Show that x = nx n−1 .
dx
Solution.
d n (x+h)n −x n
x = lim h
dx h→0
n(n−1) n−2 2
(x n +nx n−1 h+ x h +···+hn )−x n
= lim 2
h using binomial theorem.
h→0
n(n−1) n−2 2
nx n−1 h+ 2
x h +···+hn
= lim h
h→0
n(n−1) n−2
= lim nx n−1 + 2 x h + · · · + hn−1
h→0
= nx n−1 .
Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 3 January 18, 2022 14 / 26
Differentiability
Example
d
Show that sin x = cos x.
dx
Solution.
d x
sin x = lim sin(x+h)−sin
h
dx h→0
2x+h h
2 cos sin
= lim h
2 2
, using sin A − sin B = 2 cos A+B A−B
2 sin 2 .
h→0
h
sin
= lim cos(x + h/2) lim h
2
h→0 h→0 2
= cos x.
Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 3 January 18, 2022 15 / 26
Standard Derivatives & Differentiation Rules
Standard Derivatives
Table 1
Function Derivative
xn nx n−1
cos(x) − sin(x)
sin(x) cos(x)
Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 3 January 18, 2022 16 / 26
Standard Derivatives & Differentiation Rules
Function Derivative
ex ex
1
ln(x) x
sin−1 (x) √1
1−x 2
cos−1 (x) −√ 1
1−x 2
Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 3 January 18, 2022 17 / 26
Standard Derivatives & Differentiation Rules
Function Derivative
1
tan−1 (x) 1+x 2
1
cot−1 (x) − 1+x 2
Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 3 January 18, 2022 18 / 26
Standard Derivatives & Differentiation Rules
Table 2
Function Derivative
Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 3 January 18, 2022 19 / 26
Standard Derivatives & Differentiation Rules
Function Derivative
f 0 (x)
ln(f (x)) f (x)
0 (x)
sin−1 (f (x)) √f
1−f (x)2
0 (x)
cos−1 (f (x)) −√f
1−f (x)2
Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 3 January 18, 2022 20 / 26
Standard Derivatives & Differentiation Rules
Function Derivative
f 0 (x)
tan−1 (f (x)) 1+f (x)2
0
f (x)
cot−1 (f (x)) − 1+f (x)2
0
f (x)
sec−1 (f (x)) √ , |f (x)| > 1
|f (x)| f (x)2 −1
0
f (x)
csc−1 (f (x)) − √ , |f (x)| > 1
|f (x)| f (x)2 −1
Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 3 January 18, 2022 21 / 26
Standard Derivatives & Differentiation Rules
Rules of Differentiation
Let u and v be differentiable functions of x and c be a constant.
d
Constant Rule (c) = 0
dx
d du
Constant Multiple Rule (cu) = c
dx dx
d du dv
Sum Rule (u + v ) = +
dx dx dx
d du dv
Product Rule (uv ) = v +u
dx dx dx
du
d u dx v − u dv
dx
Quotient Rule ( )=
dx v v2
Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 3 January 18, 2022 22 / 26
Standard Derivatives & Differentiation Rules
d
Chain Rule (f (g(x))) = f 0 (g(x)) · g 0 (x)
dx
Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 3 January 18, 2022 23 / 26
Standard Derivatives & Differentiation Rules
Example
d
Show that cos x = − sin x.
dx
Solution.
d d π
cos x = sin −x
dx dx 2
π
= − cos −x
2
= − sin x.
Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 3 January 18, 2022 24 / 26
Standard Derivatives & Differentiation Rules
Example
x2
Differentiate ln with respect to x.
(6x − 7)2
Solution.
x2
x
First ln = 2 ln = 2 ln(x) − 2 ln(6x − 7).
(6x − 7)2 (6x − 7)
x2
d 2 12
Thus ln = − .
dx (6x − 7)2 x 6x − 7
Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 3 January 18, 2022 25 / 26
Standard Derivatives & Differentiation Rules
Exercise
Differentiate with respect to x.
√
(a) (x + 1)2 tan−1 ( x)
sin−1 (2x)
(b) √
1 − 4x 2
√ x +1 2 4x sin−1 (2x)
Ans: (a) 2(x + 1) tan−1 ( x) + √ , (b) + .
2 x 1 − 4x 2 3
(1 − 4x 2 ) 2
Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 3 January 18, 2022 26 / 26