Professional Documents
Culture Documents
PONDO
We are familiar with finding the gradient of straight lines. The gradient of a straight line is the
measure of how steep the line is. However we can as well find the gradient of a curve . Unlike a
line which has constant steepness/gradient, a curve has no constant steepness hence there is need
to find the gradient function of a particular curve. The process of finding the gradient function is
called DIFFERENTIATION
Drawing a tangent by hand and measuring the gradient is a time consuming and inaccurate. Instead we
consider another point on 𝑓(𝑥) ,point Q,and draw ain the line joining P and Q. This line is called a chord.
The point Q has x-coordinate, 𝑥 = 𝑎 + ℎ. The gradient of the chord is approximately equal to the gradient
at P.
𝑐ℎ𝑎𝑛𝑔𝑒 𝑖𝑛 𝑓(𝑥)
The gradient of the chord PQ = 𝑐ℎ𝑎𝑛𝑔𝑒 𝑖𝑛 𝑥
Imagine the point Q slides down 𝑓(𝑥) so that it is closer to P,i.e h decreases. The closer Q gets to P, the
closer the gradient of the tangent at P. We say that ‘in the limit as h tends to zero’ , the gradient of the
chord PQ equals the gradient of the tangent at P. As h is made arbitrarily small, so Q and P arbitrarily
close together,the gradient of PQ becomes arbitrarily close to the gradient of the tangent at P and we write
𝒇(𝒙 + 𝒉) − 𝒇(𝒙)
𝒇′(𝒙) = 𝐥𝐢𝐦
𝒉→𝟎 𝒉
𝑑𝑦
𝑓 ′𝑥 = which is the derivative of y with respect with respect to x.
𝑑𝑥
a. 𝑦 = 5𝑥 + 3
b. 𝑦 = 3𝑥 2 + 2
c. 𝑦 = 𝑥 2 − 2𝑥 + 4
1
d. 𝑦= 2
𝑥
Solution 1a.
Let 𝑦 = 𝑓(𝑥)
𝑓(𝑥 + ℎ) − 𝑓(𝑥)
𝑓′(𝑥) = lim
ℎ→0 ℎ
(5(𝑥 + ℎ) + 3) − (5𝑥 + 3)
= 𝑓′(𝑥) = lim
ℎ→0 ℎ
5𝑥 + 5ℎ + 3 − 5𝑥 − 3
𝑓′(𝑥) = lim
ℎ→0 ℎ
5ℎ
𝑓′(𝑥) = lim
ℎ→0 ℎ
𝑓′(𝑥) = lim 5 = 5
ℎ→0
𝑑𝑦
∴ =5
𝑑𝑥
Solution 1b.
𝑓(𝑥 + ℎ) − 𝑓(𝑥)
𝑓′(𝑥) = lim
ℎ→0 ℎ
3(𝑥 + ℎ)2 + 2 − (3𝑥 2 + 2)
𝑓′(𝑥) = lim
ℎ→0 ℎ
3(𝑥 2 + 2𝑥ℎ + ℎ2 ) + 2 − 3𝑥 2 − 2
𝑓′(𝑥) = lim
ℎ→0 ℎ
(3𝑥 2 + 6𝑥ℎ + 3ℎ2 ) + 2 − 3𝑥 2 − 2
𝑓′(𝑥) = lim
ℎ→0 ℎ
6𝑥ℎ + 3ℎ2
𝑓′(𝑥) = lim
ℎ→0 ℎ
ℎ(6𝑥 + 3ℎ)
𝑓′(𝑥) = lim
ℎ→0 ℎ
𝑓′(𝑥) = lim 6𝑥 + 3ℎ
ℎ→0
𝑓′(𝑥) = 6𝑥
Let 𝑓(𝑥) = 𝑥 2 − 2𝑥 + 4
𝑓(𝑥 + ℎ) − 𝑓(𝑥)
𝑓′(𝑥) = lim
ℎ→0 ℎ
(𝑥 + ℎ)2 − 2(𝑥 + ℎ) + 4 − (𝑥 2 − 2𝑥 + 4)
𝑓′(𝑥) = lim
ℎ→0 ℎ
(𝑥 2 + 2𝑥ℎ + ℎ2 ) − 2𝑥 − 2ℎ + 4 − 𝑥 2 + 2𝑥 − 4
𝑓′(𝑥) = lim
ℎ→0 ℎ
2𝑥ℎ + ℎ2 − 2ℎ
𝑓′(𝑥) = lim
ℎ→0 ℎ
ℎ(2𝑥 + ℎ − 2)
𝑓′(𝑥) = lim
ℎ→0 ℎ
𝑓′(𝑥) = lim 2𝑥 + ℎ − 2 = 2𝑥 − 2
ℎ→0
𝑑𝑦
∴ = 2𝑥 − 2
𝑑𝑥
Solution 1d.
1
Let 𝑓(𝑥) = 𝑥 2
𝑓(𝑥 + ℎ) − 𝑓(𝑥)
𝑓′(𝑥) = lim
ℎ→0 ℎ
1 1
−
(𝑥 + ℎ)2 𝑥 2
𝑓′(𝑥) = lim
ℎ→0 ℎ
𝑥 2 − (𝑥 + ℎ)2
𝑥 2 (𝑥 + ℎ)2
𝑓′(𝑥) = lim
ℎ→0 ℎ
𝑥 2 − (𝑥 2 + 2𝑥ℎ + ℎ2 )
𝑓′(𝑥) = lim
ℎ→0 𝑥 2 ℎ(𝑥 + ℎ)2
𝑥 2 − 𝑥 2 − 2𝑥 2 ℎ − ℎ2
𝑓′(𝑥) = lim
ℎ→0 𝑥 2 ℎ(𝑥 + ℎ)2
ℎ(−2𝑥 − ℎ)
𝑓′(𝑥) = lim
ℎ→0 𝑥 2 ℎ(𝑥 + ℎ)2
−2𝑥 − ℎ
𝑓′(𝑥) = lim
ℎ→0 𝑥 2 (𝑥 + ℎ)2
1. 𝑦 = 2𝑥 − 5
2. 𝑦 = 𝑥 2 − 2𝑥
3. 𝑦 = 𝑥 2 + 7𝑥 − 3
4. 𝑦 = 3𝑥 3 + 4𝑥 − 5
5. 𝑦 = −(7𝑥 3 − 2𝑥 2 + 6𝑥 − 2)
1
6. 𝑦=𝑥
GENERAL DIFFERENTIATION
If
𝒅𝒚
1. 𝑦 = 𝑥 𝑛 then 𝒅𝒙
= 𝒏𝒙𝒏−𝟏
𝒅𝒚 𝒅(𝒂𝒙𝒏 )
2. 𝑦 = 𝑎𝑥 𝑛 then 𝒅𝒙 = 𝒅𝒙
𝒅𝒚 𝒅(𝒙𝒏 )
⟹ =𝒂 = 𝒏𝒂𝒙𝒏−𝟏
𝒅𝒙 𝒅𝒙
𝒅𝒚
3. 𝑦 = 𝑎 𝑤ℎ𝑒𝑟𝑒 𝑎 is a constant then 𝒅𝒙 = 𝟎
Examples
Differentiate each of the following with respect to x
1. 𝑦 = 𝑥 5
Solution
𝑑𝑦
= 5𝑥 5−1 = 5𝑥 4
𝑑𝑥
2. 𝑦 = 𝑥 −7
Solution
𝑑𝑦
= −7𝑥 −7−1 = −7𝑥 −6
𝑑𝑥
3. 𝑦 = 9𝑥 −6
Solution
𝑑𝑦
= (−6)(9)𝑥 −6−1 = −54𝑥 −7
𝑑𝑥
4. 𝑦 = 230
⋮ ⋮
𝒅𝒏 𝒚 𝒅 𝒅𝒏−𝟏 𝒚
𝑛𝑡ℎ derivative is 𝒅𝒙𝒏
=𝒅𝒙 (𝒅𝒙𝒏−𝟏 ) = 𝒇𝒏 (𝒙) = 𝒚𝒏
Examples
Find the
1. First derivative of 𝑦 = √𝑥
𝑑𝑦 3
= (−9𝑥 2 + 5𝑥) 𝑒 −3𝑥 +5𝑥
𝑑𝑥
4. 𝑦 = 4𝑒 𝑠𝑖𝑛𝑥
solution
𝑑𝑦
= 4𝑐𝑜𝑠𝑥𝑒 𝑠𝑖𝑛𝑥
𝑑𝑥
Practice questions
Differentiate the following exponential functions w.r.t.x
1. 𝑦 = 𝑒 4𝑥
1𝑥
2. 𝑦=𝑒4
3. 𝑦 = 𝑒 √𝑥
3
4. 𝑦 = 𝑒 9𝑥 −5𝑥+3
1
5. 𝑦 = 𝑒 2𝑥 + 3𝑥
𝑒
6. 𝑦 = 6𝑒 𝑡𝑎𝑛𝑥
Solution
𝑦 = ln(𝑥 − 3)3 + ln(𝑥 + 1)2
𝑑𝑦 3(𝑥 − 3)2 2(𝑥 + 1)
= +
𝑑𝑥 (𝑥 − 3)3 (𝑥 + 1)2
𝑑𝑦 3 2
⟹ = +
𝑑𝑥 𝑥 − 3 𝑥 + 1
Practice questions
Differentiate the following w.r.t.x
1. y = ln(2 + 𝑥)
2. y = ln(2𝑥 2 + 1
3. 𝑦 = ln(𝑠𝑖𝑛𝑥)
4. 𝑦 = √𝑥 3 + 5
8
5. 𝑦 = ln( )
𝑥
6. 𝑦 = ln(cos 𝑥)
Solution
𝑑𝑦
= 7 s 𝑖𝑛 (−7𝑥)
𝑑𝑥
2. 𝑦 = cos(𝑥 2 − 7)
Solution
𝑑𝑦
= (−2𝑥) sin(𝑥 2 − 7)
𝑑𝑥
Practice questions
Differentiate the following w.r.t.x
1. 𝑦 = 𝑠𝑖𝑛2𝑥
2. 𝑦 = sin(𝑥 2 + 𝜋)
𝜋
3. 𝑦 = sin(− 𝑥 − 𝑥 2 )
2
3𝑥
4. 𝑦 = cos (− )
4
5. 𝑦 = 6cos(𝜋 − 3𝑥)
6. 𝑦 = cos(𝑒 𝑥 − 7)
PRODUCT RULE
If 𝑦 = 𝑢𝑣 where 𝑢 and 𝑣 are functions of 𝑥 then
𝒅𝒚 𝒅𝒗 𝒅𝒖
=𝒖 +𝒗
𝒅𝒙 𝒅𝒙 𝒅𝒙
Examples
Differentiate each of the following w.r.t.x
1. 𝑦 = 𝑥 2 𝑐𝑜𝑠𝑥
Solution
𝑑𝑢
Let 𝑢 = 𝑥 2 ⟹ = 2𝑥
𝑑𝑥
𝑑𝑣
And 𝑣 = 𝑐𝑜𝑠𝑥 ⟹ 𝑑𝑥 = −𝑠𝑖𝑛𝑥
𝑑𝑦
Then = 𝑥 2 . (−𝑠𝑖𝑛𝑥) + 2𝑥𝑐𝑜𝑠𝑥 = −𝑥 2 𝑠𝑖𝑛𝑥 + 2𝑥𝑐𝑜𝑠𝑥
𝑑𝑥
3𝑥
2. 𝑦 = 𝑒 𝑠𝑖𝑛2𝑥
Solution
𝑑𝑢
Let 𝑢 = 𝑒 3𝑥 ⟹ 𝑑𝑥 = 3𝑒 3𝑥
𝑑𝑣
And 𝑣 = 𝑠𝑖𝑛2𝑥 ⟹ = 2𝑐𝑜𝑠2𝑥
𝑑𝑥
𝑑𝑦
Then 𝑑𝑥
= 𝑒 3𝑥 . 2𝑐𝑜𝑠2𝑥 + 3𝑒 3𝑥 𝑠𝑖𝑛2𝑥
3. 𝑦 = (𝑥 + 3)3 (2𝑥 − 4)−3
Solution
𝑑𝑢
Let 𝑢 = (𝑥 + 3)3 ⟹ 𝑑𝑥 = 3(𝑥 + 3)2
Quotient Rule
𝑢
If 𝑦 = 𝑣 where 𝑢 and 𝑣 are functions of 𝑥 then
𝒅𝒖 𝒅𝒗
𝒅𝒚 𝒗 𝒅𝒙 − 𝒖 𝒅𝒙
=
𝒅𝒙 𝒗𝟐
Examples
Differentiate the following w.r.t.x
𝑥3
1. 𝑦 = 1−4𝑥
Solution
𝑑𝑢
Let 𝑢 = 𝑥 3 ⟹ = 3𝑥 2
𝑑𝑥
𝑑𝑣
𝑣 = 1 − 4𝑥 ⟹ = −4
𝑑𝑥
Using
𝑑𝑢 𝑑𝑣
𝑑𝑦 𝑣 𝑑𝑥 − 𝑢 𝑑𝑥
=
𝑑𝑥 𝑣2
𝑑𝑦 (1 − 4𝑥). 3𝑥 − 𝑥 3 . (−4) 3𝑥 2 (1 − 4𝑥) + 4𝑥 3
2
= =
𝑑𝑥 (1 − 4𝑥)2 (1 − 4𝑥)2
ln 𝑥 𝑑𝑦
2.. If 𝑦 = 𝑥2
find the value of 𝑑𝑥 when 𝑥 = 𝑒
Solution
𝑑𝑢 1
Let 𝑢 = ln 𝑥 ⟹ 𝑑𝑥 = 𝑥
𝑑𝑣
𝑣 = 𝑥2 ⟹ = 2𝑥
𝑑𝑥
1
𝑑𝑦 𝑥 2 ( )−𝑙𝑛𝑥.(2𝑥) 𝑥−2𝑥𝑙𝑛𝑥
𝑥
Then 𝑑𝑥
= 𝑥4
= 𝑥4
1 − 2𝑙𝑛𝑥
=
𝑥3
𝑑𝑦 1−2 ln 𝑒 −1
When 𝑥 = 𝑒 𝑑𝑥
= 𝑒3
= 𝑒3
2. 𝑦 = cosec 𝑥
Solution
1
𝑦=
sin 𝑥
𝑑𝑢
Let 𝑢 = 1 ⟹ 𝑑𝑥 = 0
𝑑𝑣
𝑣 = sin 𝑥 ⟹ = cos 𝑥
𝑑𝑥
Using
𝑑𝑢 𝑑𝑣
𝑑𝑦 𝑣 𝑑𝑥 − 𝑢 𝑑𝑥
=
𝑑𝑥 𝑣2
𝑑𝑦 sin 𝑥. (0) − cos 𝑥(cos 𝑥)
=
𝑑𝑥 𝑠𝑖𝑛2 𝑥
2
𝑑𝑦 𝑐𝑜𝑠 𝑥
=− = −𝑐𝑜𝑡 2 𝑥
𝑑𝑥 𝑠𝑖𝑛2 𝑥
PRACTICE QUESTIONS
Differentiate the following w.r.t.x
1. 𝑦 = sec 𝑥
2. 𝑦 = tan 𝑥
𝑒 2𝑥
3. 𝑦 = sin 𝑥
ln 2𝑥
4. 𝑦 = 𝑥
sin 𝑥
5. 𝑦 =
2−cos 𝑥
3𝑥 2 −8
6. Show that the gradient of the curve 𝑦 = 5−𝑥
at the point (2;4) is 20
Chain rule
It is often easier to make a substitution before differentiating
This is known as the function of a function (or sometimes the Chain Rule )
Examples
Differentiate the following w.r.t.x
1. 𝑦 = (3𝑥 − 9)8
Solution
𝑑𝑢
Make the substitution 𝑢 = 3𝑥 − 9 ⟹ 𝑑𝑥 = 3
𝑑𝑦
⟹ 𝑦 = 𝑢8 then 𝑑𝑢
= 8𝑢7
𝑑𝑦 𝑑𝑦 × 𝑑𝑢
Then 𝑑𝑥 = 𝑑𝑢 𝑑𝑥
= 3(8𝑢7 ) = 24𝑢7
𝑑𝑦
But 𝑢 = 3𝑥 − 9 ⟹ 𝑑𝑥 = 24(3𝑥 − 9)7
2. 𝑦 = 𝑠𝑖𝑛5 𝑥
Solution
𝑑𝑢
Let 𝑢 = sin 𝑥 ⟹ 𝑑𝑥 = cos 𝑥
𝑑𝑦
⟹ 𝑦 = 𝑢5 then 𝑑𝑢
= 5𝑢4
𝑑𝑦
Then 𝑑𝑥 = cos 𝑥. 5𝑢4
𝑑𝑦
But 𝑢 = sin 𝑥 ⟹ = 5𝑠𝑖𝑛4 𝑥𝑐𝑜𝑠𝑥
𝑑𝑥
𝑑𝑦
In general if 𝑦 = 𝑠𝑖𝑛𝑛 𝑥 then = 𝑛. 𝑠𝑖𝑛𝑛−1 𝑥𝑐𝑜𝑠 𝑥
𝑑𝑥
3. 𝑦 = 𝑐𝑜𝑠 9 𝑥
Solution
𝑑𝑢
Let 𝑢 = cos 𝑥 ⟹ 𝑑𝑥 = − sin 𝑥
𝑑𝑦
⟹ 𝑦 = 𝑢9 then = 9𝑢8
𝑑𝑢
𝑑𝑦
Then 𝑑𝑥 = −sin 𝑥. 9𝑢8
𝑑𝑦
But 𝑢 = cos 𝑥 ⟹ 𝑑𝑥 = −9𝑐𝑜𝑠 8 𝑥𝑠𝑖𝑛 𝑥
𝑑𝑦
In general if 𝑦 = 𝑐𝑜𝑠 𝑛 𝑥 then 𝑑𝑥
= −𝑛. 𝑐𝑜𝑠 𝑛−1 𝑥𝑠𝑖𝑛 𝑥
4. 𝑦 = 3 cos(5𝑥 2 + 3)
Solution
Solution
practice questions
Differentiate the following w.r.t.x
1. 𝑦 = (4𝑥 3 − 3𝑥 + 1)6
2. 𝑦 = 5𝑠𝑖𝑛7 8𝑥
3. 𝑦 = 10𝑠𝑒𝑐 6 𝑥
4. 𝑦 = 𝑡𝑎𝑛5 (2𝑥 − 4)
5. 𝑦 = (𝑐𝑜𝑠3𝑥)−1/7
6. 𝑦 = 𝑐𝑜𝑠𝑒𝑐 3 2𝑥
Implicit differentiation
When a variable 𝑦 is expressed directly in terms of 𝑥, 𝑦 is said to be an explicit function of 𝑥. For
example 𝑦 = 6𝑥 − 7 and 𝑦 = 5𝑥 2 + 3 are explicit functions of 𝑥. When both 𝑥 and 𝑦 occur on one or
both sides of an equation, then either 𝑥 or 𝑦 is said to be an implicit function of the other for example
2𝑥𝑦 2 = 3𝑥 2 + 5𝑦 is an implicit function.
Examples
1. A curve is defined by the equation 𝑥 3 + 𝑦 3 + 3𝑥𝑦 − 1 = 0 . Find the gradient of the curve at the
point (2;-1)
Solution
Differentiating w.r.t.x,we have
𝑑(𝑥 3 ) 𝑑(𝑦 3 ) 𝑑(3𝑥𝑦) 𝑑(−1)
+ + − =0
𝑑𝑥 𝑑𝑥 𝑑𝑥 𝑑𝑥
𝑑𝑦 𝑑𝑦
3𝑥 2 + 3𝑦 2 𝑑𝑥 + [3𝑥. 𝑑𝑥 + 3𝑦] = 0 [use product rule to differentiate 3𝑥𝑦]
𝑑𝑦 𝑑𝑦
𝑥 2 + 𝑦 2 𝑑𝑥 + 𝑥 𝑑𝑥 + 𝑦 = 0 [divide throughout by 3]
𝑑𝑦
(𝑥 + 𝑦 2 ) 𝑑𝑥 = −(𝑦 + 𝑥 2 )
𝑑𝑦 −(𝑦 + 𝑥 2 )
⟹ =
𝑑𝑥 (𝑥 + 𝑦 2 )
Practice questions
Differentiate the following w.r.t.x
1. 3𝑥 2 + 𝑦 2 = 12
2. 2𝑥 2 − 5𝑦 2 − 3𝑥 = 9
3. 𝑥 2 − 3𝑥𝑦 = 6𝑦
4. Find the gradient of the curve at the point 𝑥 3 + 𝑦 3 = 9 at the point (1;2)
5. Find the equation of the normal to the curve 3𝑦 2 − 𝑥 2 = 3 at the point (3;2)
𝑑𝑦 1
6. Given that tan 𝑦 + tan 𝑥 = 3 , find the value of 𝑑𝑥
when 𝑥 = 4 𝜋
Practice questions
Differentiate the following with respect to x
1. 𝑥 = 𝑡 3 , 𝑦 = 3𝑡 + 1
2. 𝑥 = acos 𝑡 , 𝑦 = asin 𝑡
3. 𝑥 = 𝑎(1 + sin 𝑡) , 𝑦 = 𝑎(1 − 𝑐𝑜𝑠𝑡)
3 4
4. 𝑥 = ,𝑦 =
2𝑡 𝑡2
5. A curve is defined parametrically by 𝑥 = 𝑡 2 − 4 , 𝑦 = 3𝑡 4 + 8𝑡 3 . Find the equation
of the tangent to the curve at the point where 𝑡 = −1
There are 2 special points on this curve where the gradient of the tangent is zero. These
points are 𝑥 = −6 and 𝑥 = 3. The point when 𝑥 = −6 is a local maximum and the point
when 𝑥 = 3 is a local minimum
The tangents at the two points have been drawn on the graph .The points where the
tangent of the curve has gradient zero are called stationary points.
A turning point is a stationary point which is either a maximum or a minimum. How do
we find where the stationary points are on the curve?
Differentiate and equate the derivative to zero.
To find the nature of a point , we have to find the second derivative i.e
𝒅𝒚 𝒅𝟐 𝒚
For a maximum 𝒅𝒙
= 𝟎 and 𝒅𝒙𝟐
≤𝟎
𝒅𝒚 𝒅𝟐 𝒚
For a minimum 𝒅𝒙
= 𝟎 and 𝒅𝒙𝟐 ≥ 𝟎
Points where there is a change in sense in which the curve is turning (from clockwise to
anticlockwise) are called inflexion points.
Example 1
Find the coordinates of the stationary points of the function 𝑦 = 2𝑥 2 − 2𝑥 − 12
Solution
𝑑𝑦 𝑑𝑦 1
= 4𝑥 − 2. Stationary points occur when = 0 i.e when 4𝑥 − 2 = 0 ⟹ 𝑥 = .
𝑑𝑥 𝑑𝑥 2
When 𝑥 = 0.5 𝑦 = 2(0. 5)2 − 2(0.5) − 12 = 12.5
So the coordinates of the turning point are (0.5 ; 12.5)
Example 2
Find the coordinates of the turning points on the curve = 𝑥 3 − 2𝑥 2 − 4𝑥 + 5 , stating the
nature of each point
Solution
Example 3
Solution
𝑑𝑦
𝑦 = 3𝑥 4 − 8𝑥 3 + 6𝑥 2 − 3 ⟹ = 12𝑥 3 − 24𝑥 2 + 12𝑥
𝑑𝑥
𝑑𝑦
At stationary values = 0 𝑖. 𝑒 12𝑥 3 − 24𝑥 2 + 12𝑥 = 0
𝑑𝑥
𝑥 = 0 ⟹ 𝑓(𝑥) = −3
𝑥 = 1 ⟹ 𝑓(𝑥) = 3 − 8 + 6 − 3 = −2
i.e the stationary values of 𝑓(𝑥) are −2 and −3
𝑑𝑦
differentiating 𝑑𝑥 w.r.t.x gives
𝑑2 𝑦
= 36𝑥 2 − 48𝑥 + 12 = 12(3𝑥 2 − 4𝑥 + 1)
𝑑𝑥 2
𝑑2 𝑦
When 𝑥 = 0, 𝑑𝑥2 = 12 which is positive
From the table we see that the stationary value at 𝑥 = 1, i.e. −2 is an inflexion point.
Example 4
Practice questions
Find the stationary points of each of the following and determine the nature of the
stationary points
1. 𝑦 = 𝑥 3 − 𝑥
2. 𝑦 = 2𝑥 3 − 3𝑥 2 − 12𝑥 + 18
1
3. 𝑦 = 8𝑥 + 3𝑥 2
4. 𝑦 = (4 − 𝑥)3
9
5. 𝑦 = 4𝑥 + 𝑥
16
6. 𝑦 = 𝑥 2 +
𝑥