Mat100 Differentiation
Mat100 Differentiation
Mat100 Differentiation
A. Musopole
The process of identifying several points that are close to the point of
interest and finding corresponding gradients with an aim of
approximating the gradient at a point of interest is tadious.
f (x + h) − f (x) f (x + h) − f (x)
= .
(x + h) − x h
f (x + h) − f (x)
lim .
h→0 h
Suppose
f (x + h) − f (x)
lim
h→0 h
exists for some x. This limit is called the derivative of f at x. We
0
write f (x), and f is said to be differentiable at x.
Thus
0 f (x + h) − f (x)
f (x) = lim .
h→0 h
We cannot merely set h to 0 (h = 0). Also f (x + h)6=f (x) + f (h) and
f (x + h)6=f (x) + h.
0 df (x) 0
f (x) is sometimes given as dx . Where y = f (x), f (x) may be
given as dy
dx .
dy
dx which is read ’dee wy by dee x’ is ’the derivative of y with respect
to x’; dfdx(x) is ’the derivative of f (x) with respect to x’.
0 f (x + h) − f (x)
f (x) = lim
h→0 h
[2(x + h) + 1] − [2x + 1]
= lim
h→0 h
2x + 2h + 1 − 2x − 1
= lim
h→0 h
2h
= lim
h→0 h
= lim 2
h→0
= 2.
Example
0
Using first principles, determine f (y ) where f (y ) = y 2 + 2y .
0 f (y + h) − f (y )
f (y ) = lim
h→0 h
[(y + h)2 + 2(y + h)] − [y 2 + 2y ]
= lim
h→0 h
2hy + h2 + 2h
= lim
h→0 h
= lim 2y + h + 2
h→0
= 2y + 2.
Example:
Given that f (x) = x1 , determine d
dx f (x) (derivative of f (x) with
respect to x).
1 1
Working: We have f (x) = x and f (x + h) = x+h
0 f (x + h) − f (x)
f (x) = lim
i h
h→0
h
1 1
x+h − x
= lim
h→0 h
−h
= lim
h→0 x(x + h)h
−1
= lim 2
h→0 x + hx
−1
= 2.
x
0 0 0
if f (x) = q(x) + p(x), then f (x) = q (x) + p (x),
0 0
if f (x) = λq(x), then f (x) = λq (x), where λ is a constant and
0
if f (x) = λ, then f (x) = 0 where λ is a constant.
0 0 0
But f (x) = q(x)p(x) does not imply f (x) = q (x)p (x)- an emphatic
NO!. Given f and g which are differentiable functions, we have
0 0 0
(fg ) = f g + fg (product rule) and
0 0
f f g −fg
g = g2
(quotient rule).
(a) f (x) = 4x 2 + x
(b) g (x) = −8x 2 − 5x + 13
(c) m(y ) = − y8
1
(d) f (x) = 1−yx
√ √ √
(e) f (x) = x, (hint: multiply by √x+h+√x )
x+h+ x
Example:
Differentiate the function f (x) = x 7 .
Working:
0 df (x)
f (x) =
dx
d 7
= x
dx
= 7.x 7−1
= 7x 6 .
Example:
Given y = 3a4 − a6 + 9, where y is a function of a, find the derivative
of y .
Working:
0 dy
y =
da
d 4
3a − a6 + 9
=
da
= 4×3a4−1 − 6×a6−1 + 0×9a0−1
= 12a3 − 6a5
0 df (x)
Note that if f (x) = c where c is a constant, f (x) = dx = 0.
0 0 0
(f .g ) (x) = f (x)g (x) + f (x)g (x)
Example:
Differentiate k(x) = x 2 − 5x x 24 .
0
Working: Let f (x) = x 2 − 5x and g (x) = x 24 . Then f (x) = 2x − 5
0
and g (x) = 24x 23 . Thus using product rule we have
0 dk(x) 0
k (x) = = (f .g ) (x)
dx
0 0
= f (x)g (x) + f (x)g (x)
= (2x − 5)x 24 + x 2 − 5x 24x 23 .
Example:
Differentiate y = 5 − 3x 6 4x 3 + 3x .
0 0 0
f f (x)g (x) − f (x)g (x)
(x) =
g g 2 (x)
Example:
2x−1
Determine the derivative of y = x3
.
0
Working: Let f (x) = 2x − 1 and g (x) = x 3 . Then f (x) = 2 and
0
g (x) = 3x 2 . g 2 (x) = x 6 . Thus using quotient rule
dy d 2x − 1
=
dx dx x3
0
f
= (x)
g
0 0
f (x)g (x) − f (x)g (x)
=
g 2 (x)
2 x 3 − 3x 2 (2x − 1)
= .
x6
Determine the derivative in each case below- use any (correct) method.
(a) y = x −3 x 2 + 1
4x−5
(b) f (x) = 3x+2
x3 + x8 − 9 + x7
(c) h(x) = 4
3
(d) z = x − 4 + x
1+x 2
√
x 3 +4 x
(e) k(x) = x
We use the chain rule to find the derivative in a case where we are
dealing with function of a function- the function we wish to
differentiate has another function as its input. Suppose f and g are
differentiable functions. Assume the input to function f is function g -
thus we have f (g (x)). In this case f depends on g , and g depends on
x. What will be the derivative of f with respect to x?
In this case the derivative of f can be computed as the product of the
derivative of f with respect to g and the derivative of g with respect
to x.
df df dg
= .
dx dg dx
Example:
Determine the derivative of y = (x + 7)8 .
Working:
y = (x + 7)8 . Let g = x + 7. Thus y = g 8 .
dy dg
We have dg = 8g 7 and dx = 1.
Thus
dy dy dg
= .
dx dg dx
= 8g 7 .1
= 8(x + 7)7 .
Example: 5
Differentiate y = 2 − 4x 3 − x 2 .
Working:
5
y = 2 − 4x 3 − x 2 . Let g = 2 − 4x 3 − x 2 . Thus y = g 5 .
dy dg
We have dg = 5g 4 and dx = −12x 2 − 2x.
Thus
dy dy dg
= .
dx dg dx
= 5g 4 −12x 2 − 2x
4
= 5 2 − 4x 3 − x 2 −12x 2 − 2x .
times.
2 f (x,s)
∂2y
[Suppose f is a function of x and s, say y = f (x, s). ∂x∂s = ∂ ∂x∂s
means differentiating f (or y , whichever you choose- they are the
same in this case) with respect to s first, then differentiating the
obtained derivative with h respect
ii to x. Thus
∂2y ∂ 2 f (x,s) ∂ ∂y
∂x∂s = ∂x∂s = ∂x ∂s .
A. Musopole (KUHeS) Differentiation May 10, 2023 37 / 72
Higher Order Derivatives...
Example:
d 2y
Given that y = 3x 3 − 4x + 1, evaluate dx 2
.
Working:
0 dy
We have y = dx = 9x 2 − 4.
Then
00 d 2y
y =
dx 2
d dy
=
dx dx
d 2
= 9x − 4
dx
= 18x.
Example:
4 d 2y
Given that y = x 2 − 7 , evaluate dx 2
.
Working:
dy 3
We have dx = 8x x 2 − 7 .
Then
00 d 2y
y =
dx 2
d dy
=
dx dx
d h 3 i
= 8x x 2 − 7
dx
3 2
= 8 x 2 − 7 + 6x x 2 − 7 .8x
3 2
= 8 x 2 − 7 + 48x 2 x 2 − 7 .
00
(a) In each case below, evaluate f (x).
1 f (x) = 40x − 700
2
2 f (x) = x 2x+9
1 5
3 f (x) = x 2 − x 2
x 7
4 f (x) = 10
√ + 7 3+ x
5 f (x) = x + √x
6 000
(b) Given y = 5x 3x 2 − 8 , evaluate y .
(c) Suppose y = r 2 x − rx 3 + 5r . g is the same as the derivative of y
with respect to r . Determine dgdx .
Example:
dy
Given x 2 + y 2 = 4, determine dx .
Working:
x2 + y2 = 4
d 2 d
x + y2 =
⇒ [4]
dx dx
d 2 d 2 d
⇒ x + y = [4]
dx dx dx
dy
⇒2x + 2y =0
dx
dy
⇒2y = −2x
dx
dy −2x x
⇒ = =− .
dx 2y y
Example:
Given x 2 + (y − a)2 = 1, determine dy
dx .
Working:
x 2 + (y − a)2 = 1
d h 2 i d
⇒ x + (y − a)2 = [1]
dx dx
d 2 d h i d
⇒ x + (y − a)2 = [1]
dx dx dx
dy
⇒2x + 2(y − a) =0
dx
dy
⇒2(y − a) = −2x
dx
dy −2x x
⇒ = =− .
dx 2(y − a) y −a
Example:
dy
Given x + xy − y 3 = 7, determine dx .
Working:
x + xy − y 3 = 7
d d
x + xy − y 3 =
⇒ [7]
dx dx
d d d 3 d
⇒ [x] + [xy ] − y = [7]
dx dx dx dx
dy dy
⇒1 + y + x − 3y 2 =0
dx dx
dy
⇒1 + y + x − 3y 2 =0
dx
dy
⇒ x − 3y 2 = −1 − y
dx
dy −1 − y 1+y
⇒ = 2
= 2 .
dx x − 3y 3y − x
.
dy dy dt dy dy dx
Then we have dx = dt . dx which is the same as dx = dt dt .
Example:
dy
Given x = 10t 2 − 40 and y = t 3 + 4t, find dx .
dx dy
Working: We have dt = 20t and dt = 3t 2 + 4, Then
3t 2 + 4
dy dy dx
= = .
dx dt dt 20t
dy
In each case below, find dx
(a) xy = 50
(b) xy + y + 1 = x
(c) x 2 − xy − y 2 − 2y = 0
(d) x 2 + y = 1 + y 3
(e) y 2 + x 3 − y 2 + 6 = 3y
(f) x 3 + y 3 = 1 − 7xy 3
2
(g) x x 2 + y 2 = x 2 − y 2
5
(h) x = 2t + 3 and y = t
1 1
(i) x = t+1 and y = t−1
d
sin(x) = cos(x), where −∞ < x < ∞
dx
d sin(x + h) − sin(x)
sin(x) = lim
dx h→0 h
sin(x).cos(h) + cos(x).sin(h) − sin(x)
= lim
h→0 h
(sin(x).cos(h) − sin(x)) + cos(x).sin(h)
= lim
h→0 h
sin(x) [cos(h) − 1] + cos(x).sin(h)
= lim
h→0
h
cos(h) − 1 sin(h)
= lim sin(x). + lim cos(x).
h→0 h h→0 h
cos(h) − 1 sin(h)
= sin(x). lim + cos(x). lim
h→0 h h→0 h
= sin(x).0 + cos(x).1
= cos(x).
A. Musopole (KUHeS) Differentiation May 10, 2023 54 / 72
Differentiation of Trigonometric Functions...
d
tan(x) = sec 2 (x)
dx
d d sin(x)
tan(x) =
dx dx cos(x)
cos(x).cos(x) − sin(x)[−sin(x)] d
= 2 note: [cos(x)] = −sin(x)
[cos(x)] dx
cos 2 (x) + sin2 (x)
=
cos 2 (x)
1
=
cos 2 (x)
= sec 2 (x).
d
For each case below, determine dx f (x).
(a) f (x) = 6 + 2cos(x) − 3sin(x)
sin(x)
(b) f (x) = 5−4cos(x)
(c) f (x) = 4cos(x)sin(x) + 6csc(x)
Working:
0
(a) f (x) = −2sin(x) − 3cos(x)
(b)
0 cos(x)[5 − 4cos(x)] − sin(x)[4sin(x)]
f (x) = 2
[5 − 4cos(x)]
5cos(x) − 4cos 2 (x) − 4sin2 (x)
= 2
[5 − 4cos(x)]
5cos(x) − 4 cos 2 (x) + sin2 (x)
5cos(x) − 4
= 2 = 2
[5 − 4cos(x)] [5 − 4cos(x)]
(c)
0
f (x) = 4sin(x)[−sin(x)] + 4cos(x)cos(x) − 6csc(x)cot(x)
= 4cos 2 (x) − 4sin2 (x) − 6csc(x)cot(x)
A. Musopole (KUHeS) Differentiation May 10, 2023 59 / 72
TRY
0
Determine y of each given case below.
(a) y = 2sin(x) − 7cos(x)
(b) y = x 2 cos(x)
(c) y = [x + cos(x)]4
(d) y = [cos(x) + sin(x)]2
(e) y = sin(x).cos(x)
sin(x)
(f) y = 3x+4
Example:
0
Determine y given y = cos(2x).
Working:
du d
Let u = 2x. Then dx = dx [2x] = 2.
dy d
y = cos(u) and du = du [cos(u)] = −sin(u).
0 dy dy du
Then y = dx = du . dx = [−sin(u)]2 = −2sin(2x).
TRY
d
Determine dx f (x) given
(a) f (x) = x 2 sin(2x 2 + 20)
(b) f (x) = [40 + cos(4x)]2
p
(c) f (x) = 30 − cos(3x)
q
(d) f (x) = 30 + sin2 (x)
0
Example: Determine f (x).
(a) f (x) = e x
(b) f (x) = 2e 5x
(d) f (x) = 4x
(e) f (x) = 3x e 2x + 10x 3
Working:
0 d d
(a) f (x) = dx [e x ] = dx [x].e x = e x .
0 d
5x d
(b) f (x) = dx 2e = 2 dx [5x] e 5x = 10e 5x .
0 d
(d) f (x) = dx [4x ] = 4x ln4.
(e)
0 d x 2x d x 2x d
3 e + 10x 3 = 10x 3
f (x) = 3 e +
dx dx dx
x 2x x 2x 2
= (3 ln3) e + 3 2e + 30x .
0
Evaluate y .
(a) y = 2e 3x
2
(b) y = e 3x .
(c) y = 4xe 3x+4 .
4e 3x
(d) y = 3e 2x +5
.
(e) y = (x + 1)3 e −4x .
(f) y = 10x .
1
(g) y = 4x − 4e 2x −3x 2
.
2
(h) y = 53x +2x
0 d d 1
y = [loga g (x)] = [g (x)] . .
dx dx g (x)lna
0 1
For y = loga [x], we have y = xln[a] .
0 d d 1
y = [lng (x)] = [g (x)] . .
dx dx g (x)
0
For y = ln[x], we have y = x1 .
0
Determine f (x).
(a) f (x) = log7 x.
(b) f (x) = lnx.
(c) f (x) = 4ln(3x + 5).
(d) f (x) = 2xlog5 (4x + 3).
Working:
0 d d 1 1
(a) f (x) = dx [log7 x] = dx [x] . xln7 = xln7 .
0 d d 1
(b) f (x) = dx [lnx] = dx [x]. x = x1 .
0 d d 1 12
(c) f (x) = dx [4ln(3x + 5)] = 4 dx [3x + 5]. 3x+5 = 3x+5 .
(d)
0 d d
f (x) = [2x].log5 (4x + 3) + 2x [log5 (4x + 3)]
dx dx
8x
= 2log5 (4x + 3) + .
(4x + 3)ln5
0
Evaluate f (x).
(a) f (x) = log2 (x).
(b) f (x) = 10log2 (9).
(c) f (x) = ln(2x).
(d) f (x) = ln(4).
(e) f (x) = ln 4x − 2x 3 + 10