Diff Slides2
Diff Slides2
This lecture will contain the three main “rules of the game” for differentiation.
These are:
We’ll have derivations and examples, and will extend and combine these rules whenever possible.
3.6 The product rule
• The derivative of y = uv is given by,
d dv du
(uv) = u +v or (uv)′ = uv ′ + u′ v.
dt dt dt
du
u(t + δt) ≃ u(t) + δt = u(t) + u′ (t) δt.
dt
• We may also write down a similar expression for v: v(t + δt) ≃ v(t) + v ′ (t) δt.
u(t)
•
δt
t
t
We use: u(t + δt) ≃ u(t) + u′ (t) δt v(t + δt) ≃ v(t) + v ′ (t) δt
Now we use the limiting definition of the derivative to find the derivative of uv:
= uv ′ + vu′ .
Not completely rigorous, but it is plausible. Can be made more rigorous using Taylor’s series.
Example 3.1: Find the derivatives of t2 sin t and e−4t cos 5t.
Given that the derivative of sin t is cos t, we may use the product rule to show that
d h 2 i
2
hd i hd i
t sin t = t (sin t) + (t ) sin t = t2 cos t + 2t sin t
2
= t(t cos t + 2 sin t).
dt dt dt
d h −4t i
e cos 5t = e−4t (−5 sin 5t) + (−4)e−4t cos 5t = −e−4t (5 sin 5t + 4 cos 5t).
dt
The product of three functions.
It is now fairly straightforward to write down the derivative of the product of three or more functions. We
had
(uv)′ = uv ′ + u′ v
If we replace v by vw then,
= uvw′ + uv ′ w + u′ vw
= u′ vw + uv ′ w + uvw′ .
d h i
t2 e3t cos 5t = (2t)e3t cos 5t + t2 (3e3t ) cos 5t + t2 e3t (−5 sin 5t)
dt
h i
= te3t (2 + 3t) cos 5t − 5t sin 5t .
d du dv
The chain rule is u(v(t)) = .
dt dv dt
This rule may be remembered easily because it looks as though the dv may be cancelled on the right
hand side. Proof later.
dy dy dv
Let y = sin v where v = t2 ⇒ = = (cos v)2t = 2t cos(t2 ).
dt dv dt
√
Example 4. y = 1 + t2 — the square root of a polynomial of t.
√ dy dy dv 1 −1/2 t
Let y = v where v = 1 + t2 ⇒ = = 2
v 2t = √ .
dt dv dt 1 + t2
Example 5. Find the derivative of u = (t + a)5 , where a is a constant.
To find this derivative we first note that d(t−1 )/dt = −t−2 . Now we apply the chain rule to get,
dy dy dv h 1i h i
′
v′
= = − × v = − 2.
dt dv dt v2 v
Here we are using the prime to denote the derivative with respect to t. This result will be used a little
later to prove the Quotient Rule.
A triply-nested function
2
Example 3.6: Find the derivative of y = esin t .
Hence
dy dy du dv 2
= = eu × cos v × 2t = 2t[cos(t2 )] [esin(t ) ].
dt du dv dt
And so on:
h i
If y = u1 u2 u3 [u4 (t)] ,
then
h i
4
Example. y = sin exp tan[t ] . The sine of an exponential of the tangent of a polynomial of t.
Hence
dy
= cos u1 × exp(u3 ) × sec2 (u4 ) × 4t3 ,
dt
or
dy 3 2 4
4
h
4
i
= 4t sec (t ) exp tan(t ) cos exp tan[t ] .
dt
Example. Inverse trigonomentric functions. Use y = tan−1 t .
d
⇒ tan y = 1
dt
d tan y dy
⇒ = 1 Chain rule. (tan of y of t)
dy dt
dy
⇒ (1 + tan2 y) = 1 Using a quotient rule result — sorry!
dt
dy 1
⇒ =
dt 1 + tan2 y
1
= Using the first line, above
1 + t2
Some call this process Implicit Differentiation, and it is clearly a subset of the chain rule.
Example. Find the derivative of y = ln |t|.
The derivative of y = ln |t| may be obtained in like fashion by first taking exponentials of each side, but
the detail is a little more complicated because of the presence of the modulus signs.
Hence
d ln |t| 1
= .
dt t
3.8 Outline proof of the chain rule [For information only]
We will let u = u(v) where v = v(t), so u = u[v(t)]. Using the limit definition of a derivative.
du
u[v(t)] + δv + · · · − u[v(t)]
" #
= limδt→0 dv u(v + δv) approximated by the tangent
δt
du dv
u[v(t)] + δt + · · · − u[v(t)]
" #
= limδt→0 dv dt Using the definition of δv. Red text cancels
δt
du dv
= .
dv dt
3.9 Quotient rule
This is closely related to the product rule and makes use of
d 1 v′
=− .
dt v v2
d u d d(v −1 ) du
= (uv −1 ) = u + v −1 using the product rule
dt v dt dt dt
v′ u′
= −u 2 + using the derivative of v −1
v v
vu′ − uv ′
= .
v2
In the good old(?) days of cathode ray tubes I used to remember this result by stating the first term to
be ‘VDU’ (v delta u or ‘Visual Display Unit’ — the old term for a computer terminal or monitor).
v Du − u Dv
v2
d u vu′ − uv ′
=
dt v v2
d tan t d sin t
=
dt dt cos t
cos t (sin t)′ − sin t (cos t)′
=
cos2 t
Example 1. Find the derivative of y = sin(te−at ). This is a function of a product, and therefore it is
worth finding the derivative of that product first.
So d −at
te = 1 e−at − ate−at = (1 − at)e−at .
dt
Example 2. Find the derivative of y = t2 sin(te−at ). This is a more extreme case: a product of
functions, one of which is a function of a product! Using the result of Example 1 we have,
d 2 h i′ h
2
i h ih
2
i′
t sin(te )
−at
= t sin(te ) + t
−at
sin(te )
−at
dt