Differentiation
1 Compound functions and general derivative
Chain rule of taking derivative:
(f (g(x))′ = g ′ (x) × f ′ (g(x))
E.g. Find the derivative of sin 4x and e4x .
Let u = 4x ⇒ u′ = 4. Therefore
(sin u)′ = u′ × sin′ (u)
= u′ × cos(u)
= 4 × cos 4x
Derivative of the product of functions:
(uv)′ = u′ v + v ′ u
E.g. Find the derivative of x sin x.
Let u = x, v = sin x ⇒ u′ = 1, v ′ = cos x. Therefore
(uv)′ = u′ v + v ′ u
= 1 × sin x + x × cos x
= sin x + x cos x
Derivative of rational functions (Quotient rule:
u ′ u′ v − v ′ u
=
v v2
E.g. Find the derivative of p(x) = sinx x .
Let u = x, v = sin x ⇒ u′ = 1, v ′ = cos x. Therefore
u ′ u′ v − v ′ u
=
v v2
1 × sin x − x × cos x
=
(sin x)2
1
2 Exercises
2.1 Chain rule
Exercise 1. Find the derivatives of the following functions (with respective to
variable x)
a) y = sin 3x + cos 2x
b) y = (3x2 + 1)5
c) y = sin(4x3 − 2x)
d) y = ln(5x2 + 7)
e) y = ecos(2x)
f) y = cos2 (5x)
g) y = ln(4x2 + 9)
h) y = (x3 + 2x)10
√
i) y = 3x + 1
Exercise 2.
a) y = (x2 + 1)(x3 − 2)
b) y = (2x + 5) sin x
c) y = x2 ex
d) y = (x3 + 1) cos(2x)
e) y = (x2 + 4)(ln x)
f) y = (3x − 1)(e2x )
g) y = (x2 + 1) sin(x2 )
h) y = x ln(x2 + 1)
√
i) y = (x3 + 1)( x2 + 4)
Exercise 3.
x2 + 1
a) y =
x+1
sin x
b) y =
x
ex
c) y =
x2 + 1
2
x3
d) y =
ln x
x2 + 4
e) y = √
x
x2 sin x
f) y =
x3 + 1
ln(x2 + 1)
g) y =
x
e2x
h) y =
cos x
x2 + 1
i) y =
x2 − 1
Exercise 4.
1. Given f (x) = sin x. Find f ′ π
2 .
2. Given f (x) = cos x. Find f ′ (0).
3. Given f (x) = ex . Find f ′ (ln 2).
4. Given f (x) = ln(x). Find f ′ (1).
5. Given f (x) = x3 . Find f ′ (2).
√
6. Given f (x) = x. Find f ′ (4).
7. Given f (x) = tan x. Find f ′ π
4 .
1
8. Given f (x) = . Find f ′ (2).
x
9. Given f (x) = sin(2x). Find f ′ π
6 .
10. Given f (x) = (x2 + 1)3 . Find f ′ (1).
Exercise 5.
1. Given f (x) = x2 . Write the equation of the tangent line at x = 1.
π
2. Given f (x) = sin x. Write the equation of the tangent line at x = 4.
3. Given f (x) = cos x. Write the equation of the tangent line at x = 0.
4. Given f (x) = ex . Write the equation of the tangent line at x = ln 2.
5. Given f (x) = ln x. Write the equation of the tangent line at x = 1.
√
6. Given f (x) = x. Write the equation of the tangent line at x = 4.
3
π
7. Given f (x) = tan x. Write the equation of the tangent line at x = 4.
1
8. Given f (x) = . Write the equation of the tangent line at x = 2.
x
9. Given f (x) = (x2 + 1)3 . Write the equation of the tangent line at x = 1.
π
10. Given f (x) = sin(2x). Write the equation of the tangent line at x = 6.