Differentiability Lecture Notes
Differentiability Lecture Notes
1 Introduction
Non Differentiable Functions
3 Differentiation Rules
4 Implicit Differentiation
5 Higher-Order derivatives
Introduction
1 The notion of differentiability is concerned with describe the rate of change of
a quantity relative to another.
2 Suppose the relation is expressed as a function then the derivative describes
the rate of change of the dependent variable relative to the independent
variable.
3 We can recall that, the slope/ tangent to the graph of the function at given
points is:
△y y 2 − y 1
slope = = (1)
△x x 2 − x 1
4 The slope of the line passing through the point (x 0 , f (x 0 )) and touching the
graph of f is
f (x) − f (x 0 )
Slope =
x − x0
Dr. Gabby (KNUST-Maths) Differentiability 4 / 46
Introduction
Introduction
Definition
Let f (x) be defined at x 0 ∈ (a, b). Then the derivative of f (x) at x 0 denoted by f ′ (x 0 )
is defined by
f (x) − f (x 0 )
f ′ (x 0 ) = lim
x→x 0 x − x0
provided the limit exist.
Introduction
Remarks
f (x) − f (x 0 )
1 f ′ (x 0 ) = lim is the derivative of f at x 0 .
x→x 0 x − x0
f (x) − f (x 0 )
2 f ′ (x 0− ) = lim− is the left-derivative of f at x 0 .
x→x 0 x − x0
f (x) − f (x 0 )
3 f ′ (x 0+ ) = lim+ is the right-derivative of f at x 0 .
x→x 0 x − x0
Introduction
Definition
1 Differentiation is the process of finding the derivative of a function.
2 f is said to be differentiable at x 0 when f ′ (x 0 ) exists.
3 A function f (x) is differentiable in an interval (a, b) if it is differentiable at every
point in (a, b).
Notations
The following notations can be used for derivative of f (x)
d f (x)
1) f ′ (x), 2) , 3) D x f (x), 4) D f (x)
dx
Example
Find the derivative of f (x) = x 2 + 3 at x = 2.
f (2 + h) − f (2)
We need to determine f ′ (2) = lim . We have
h→0 h
f (2 + h) − f (2)
f ′ (x 0 ) = lim (3)
h→0 h
h 2 + 4h + 4 − 4
= lim (4)
h→0 h
= lim (h + 4) (5)
h→0
= 4 (6)
Example
Show that f (x) = x 3 is differentiable at x = a .
f (a + h) − f (a)
We need to determine f ′ (a) = lim . We have
h→0 h
f (a + h) − f (a)
f ′ (a) = lim
h→0 h
(a + h) − a 3
3
= lim
h→0 h
a + 3a 2 h + 3ah 2 + h 3 − a 3
3
= lim
h→0 h
= lim (3a + 3ah + h 2 )
2 2
h→0
2
= 3a
Example
p
Determine the interval within which f (x) = x − 1 is differentiable.
f (x + h) − f (x)
We need to determine f ′ (x) = lim and examine the domain. We
h→0 h
have
p p
′ f (x + h) − f (x) x +h −1− x −1
f (x) = lim = lim
h→0 h h→0 h
p p p p
x +h −1− x −1 x +h −1+ x −1
= lim ×p p
h→0 h x +h −1+ x −1
x + h − 1 − (x − 1)
= lim ³p p ´
h→0
h x +h −1+ x −1
1 1
= p = p p
x −1+ x −1 2 x −1
Dr. Gabby (KNUST-Maths) Differentiability 10 / 46
Introduction
p
1 Thus f ′ (x) is defined if 2 x − 1 > 0 =⇒ x > 1.
p
2 Therefore the function f (x) = x − 1 is differentiable in (1, ∞).
p
3 This is smaller than the domain of f (x) = x − 1 which is [1, ∞).
d
f (x) = 0
dx
f (x + h) − f (x) c − c
f ′ (x) = lim = =0 (7)
h→0 h h
f (x) = x n (8)
d d n
f (x) = x (9)
dx dx
= nx n−1 (10)
Example
1 p
1) f (x) = x 4 , 2) f (x) = , 3) f (x) = 3
x
x5
d
1 f (x) = x 4 =⇒ f (x) = 4x 4−1 = 4x 3 .
dx
d 5
2 f (x) = x −5 =⇒ f (x) = −5x −5−1 = − 6 .
dx x
d 1 1 1
3 f (x) = x 1/3 =⇒ f (x) = x (1/3)−1 = x −2/3 = p
3
.
dx 3 3 3 x2
2
d x d
e = (x) × e x = e x (12)
dx dx
3
d
d dx
(x) 1
ln x = = (13)
dx x x
Example
Find the first derivative of f (x) = x 4 + 6 sin x + 4 − ln x
We have that
d 4 d d d
f ′ (x) = x +6 sin x + 4− ln x
dx dx dx dx
1
= 4x 3 + 6 cos x + 0 −
x
1
= 4x 3 + 6 cos x −
x
Dr. Gabby (KNUST-Maths) Differentiability 24 / 46
Differentiation Rules
Example
Find h ′ (x) if h(x) = sin x cos x
We notice that h(x) is the product of the functions f (x) = sin x and g (x) = cos x .
Hence applying the product rule we have
d d d
h(x) = f g +g f
dx dx dx
= sin x(− sin x) + cos x(cos x)
= − sin2 x + cos2 x
Dr. Gabby (KNUST-Maths) Differentiability 25 / 46
Differentiation Rules
Example
Find h ′ (x) if h(x) = e x csc x
d d d
h(x) = f g +g f
dx dx dx
= e x (− csc x cot x) + csc x(e x )
= −e x csc x cot x + e x csc x
= e x csc x(1 − cot x)
Example
Find h ′ (x) if h(x) = (e x + x 2 )(3x + tan x)
d d d
h(x) = f g +g f
dx dx dx
= (e x + x 2 )(3x ln 3 + sec2 x) + (3x + tan x)(2x + e x )
Dr. Gabby (KNUST-Maths) Differentiability 26 / 46
Differentiation Rules
Example
Find h ′ (x) if h(x) = tan x
sin x
Recall that h(x) = . Hence applying the quotient rule we have
cos x
d d
g f −f g
d d x = cos x(cos x) − sin x(− sin x) = 1 2
µ ¶
h(x) = dx = sec2 x
dx g2 cos2 x cos x
Dr. Gabby (KNUST-Maths) Differentiability 27 / 46
Differentiation Rules
Example
x3 + x + 2
Find h ′ (x) if h(x) =
x2 + 4
Notice that h(x) is the quotient of the functions f (x) = x 3 + x + 2 and g (x) = x 2 + 4.
Hence applying the quotient rule we have
d d
g f −f g
d dx dx
h(x) =
dx g2
(x 2 + 4)(3x 2 + 1) − (x 3 + x + 2)(2x)
=
(x 2 + 4)2
Note
h(x) is not the product of functions. The functions f and u are not multiplying but
rather u is "placed" in f as an argument.
Example
Find h ′ (x) if h(x) = e cos x
1 Notice that h(x) is the composite of the functions f (x) = e x and u(x) = cos x
that is f (u) implies replacing the x (argument) in f (x) by u(x).
df du
2 Thus = eu and = − sin x .
du dx
3 Hence applying the composite rule we have
d d f du
h(x) = ·
dx du dx
= e u · (− sin x)
= −e cos x sin x
Example
p
Find h ′ (x) if h(x) = x 2 + 5
p
1 Notice that h(x) is the composite of the functions f (u) = u and u(x) = x 2 + 5
that is f (u) implies replacing the x (argument) in f (x) by u(x).
df 1 du
2 Thus = p and = 2x .
du 2 u dx
3 Hence applying the composite rule we have
d d f du
h(x) = ·
dx du dx
1 x
= p · (2x) = p
2 u x2 + 5
Example
Find h ′ (x) if h(x) = cos2 (x 3 + 4)
1 Notice that h(x) is the composite function f (u(z(x))) where
f (u) = u 2 , u(z) = cos z and z(x) = x 3 + 4.
df du dz
2 Thus = 2u and = − sin z and = 3x .
du dz dx
3 Hence applying the composite rule we have
d d f du dz
h(x) = · ·
dx du dz dx
= (2u) · (− sin z) · (3x)
= (2 cos x 3 + 4 )(− sin x 3 + 4 (3x)
¡ ¢ ¡ ¢
Example
Find the derivatives of
1 y = ln x
2 y = sin−1 x
3 y = cos−1 x
y = ln x =⇒ x = e y (20)
dx
Thus = ey (21)
dy
dy 1 1
and so = y = (22)
dx e x
2
d (cos−1 x) 1 1 1 1
3 = dx = = −p = −p
dx /d y − sin y 2
1 − cos y 1 − x2
Dr. Gabby (KNUST-Maths) Differentiability 34 / 46
Implicit Differentiation
Implicit Differentiation
Definition (Implicit function)
These are functions which cannot be easily expressed in the form of y = f (x).
Example
1
The function y = x 2 is implicitly defined by the equation x 2 − 2y = 0 and the
2
derivative with respect to x is
d £ 2 ¤ d
x − 2y = (0) (26)
dx dx
2x − 2y ′ = 0 (27)
′
y =x (28)
Example
The equation y = 2x+3
x is implicitly defined as x y −2x = 3 and its differentiation gives
d £ ¤ d
x y − 2x = (3) (29)
dx dx
(y + x y ′ ) − 2 = 0 (30)
2− y
y′ = (31)
x
2 − 2x+3
x
y′ = (32)
x
3
y′ = − 2 (33)
x
Example
The equation x y + e y = 1 implicitly defines the function y. There is no explicit
formula to define y. But the derivative with respect to x can be still obtained as
follows
d £ d
xy +ey =
¤
(1) (34)
dx dx
(y + x y ′ ) + y ′ e y = 0 (35)
y ′
(x + e )y = −y (36)
dy y
=− (37)
dx x +ey
y
=− (38)
x +1−xy
Higher-Order derivatives
Notice that the derivatives of functions are also functions. Hence we can find the derivatives of the
derivatives of functions. These are precisely the higher derivatives of the given function.
Example
y = t 3 − 6t 2 + 9t (39)
dy
= 3t 2 − 12t + 9 (40)
dx
d2y
= 6t − 12 (41)
d x2
d3y
=6 (42)
d x3
dn y
= 0; n≥4 (43)
d xn
Example
Find the third derivative of y = x 2 e x
Exercise
x2 + x − 2 ex
1 Find the first derivatives of 1) f (x) = 2) f (x) =
µ ¶ x3 + 6 1 + x3
1
3) f (x) = 2 (tan x)
x +1
2 Find the implicit derivative of the function y or θ with respect to x or r :
1) y 2 − x 2 = sin x y 2) x 3 + y 3 − 9x y = 0 3) x 2 y + y 2 x = 6
¡ ¢
6) cos r + cot θ = r.
¡ ¢ ¡ ¢
4) x + tan x y = 0 5) x cos 2x + 3y = y sin x