Chain Rule
Chain Rule
Copyright
c 2004 [email protected] , [email protected]
1. Basic Results
Differentiation is a very powerful mathematical tool. This package
reviews the chain rule which enables us to calculate the derivatives of
functions of functions, such as sin(x3 ), and also of powers of functions,
such as (5x2 − 3x)17 . The rule is given without any proof.
It is convenient to list here the derivatives of some simple functions:
dy 1
naxn−1 a cos(ax) −a sin(ax) aeax
dx x
p 3
Quiz Use the properties of powers to find the derivative of y = w 4
with respect to w.
√
(a) 38 w−5/8 (b) 34 w−1/4 (c) 38 w−1/4 (d) 12 w−3/8
Section 2: The Chain Rule 5
dy dy du
if y = f (u) , then = ×
dx du dx
Example 1 Consider y = sin(x2 ) . This can be viewed as y = sin(u)
with u = x2 . Therefore we have
dy du
= cos(u) and = 2x .
du dx
Thus the chain rule can be used to differentiate y with respect to x
as follows:
dy dy du
= ×
dx du dx
= cos(u) × (2x)
= 2x cos(x2 ) , since u = x2
Section 2: The Chain Rule 6
dy 0
if y = (f (x))n , then = nf (x)(f (x))n−1
dx
0
where f (x) is the derivative of f (x) with respect to x. This rule is
obtained from the chain rule by choosing u = f (x) above.
Example 2 Let y = (ex )6 . From the chain rule for powers and writing
0
y = (f (x))6 with f (x) = ex which also means f (x) = ex , we get:
dy 0
= 6f (x)(f (x))6−1
dx
= 6ex (ex )5
= 6ex e5x = 6e6x
This result can be checked since, from the properties of powers, we
can rewrite y = e6x .
Exercise 4. Use the chain rule for powers to differentiate the fol-
lowing functions with respect to x (click on the green letters for the
solutions).
(a) y = sin5 (x)
(b) y = (x3 − 2x)3
√
(c) y = 3 x2 + 1
(d) y = 5(sin(x) + cos(x))4
Section 3: The Chain Rule for Powers 10
−3(x2 + 1) 3x2 + 3x x2 + 1 3
(a) 2 (b) 2 (c) 2 (d) 1
(x3 + 3x) 3 (x3 + 3x) 3 (x3 + 3x) 3 (x3 + 3x) 2
Quiz Select the derivative g 0 (w) of g(w) = sin4 (w) + sin(w4 ) from the
choices below:
(a) 4 cos(w) sin3 (w)+4w3 cos(w4 ) (b) 4 cos3 (w) + 4w3 cos(w4 )
(c) 4 sin3 (w) cos(w)−4w3 cos(w4 ) (d) −4 sin3 (w) + 4w3 sin(w4 )
Section 4: Final Quiz 11
4. Final Quiz
Begin Quiz Choose the solutions from the options given.
2
1. What is the derivative with respect to t of y = 2e−2t ?
2 2 2
(a) −8te−2t (b) 2e−4t (c) −4e−2t (d) 8tet
2. What is the derivative with respect to x of y = ln(x3 + 3)?
1 1 3x2 3x2 + 3
(a) 3 (b) 2
(c) 3 (d) 3
x +3 3x x +3 x +3
1
33
3. Find the derivative of y = (w + 1) with respect to w
33
32 32
(a) (w33 + 1)− 33 (b) w32 (33w32 )− 33
32 32
(c) 33w32 (w33 + 1)− 33 (d) w32 (w33 + 1)− 33
p
4. Select below the
pderivative of y = 4 sin(ax) with
p respect to x.
(a) 2a cos(ax)/ (sin(ax)) (b) 4a cos(ax)/ (sin(ax))
p p
(c) 2a/ (sin(ax)) (d) −2a cos(ax)/ (cos(ax))
End Quiz
Solutions to Exercises 12
Solutions to Exercises
√ 1
Exercise 1(a) If y = x, then y = x 2 (see the package on powers).
Its derivative with respect to x is then found with the help of the rule
that
d
(axn ) = naxn−1
dx
This yields
d 1 1 1
x2 = × x 2 −1
dx 2
1 −1
= x 2
2
1
= √
2 x
Exercise 1(d) To differentiate 3x4 − 4x3 we use the sum rule and
the basic result
d n
x = nxn−1
dx
This gives
d
3x4 − 4x3 = 3 × 4 × x4−1 − 4 × 3 × x3−1
dx
= 12x3 − 12x2
= 12x2 (x − 1)
where in the last step we extracted the common factor 12x2 .
Click on the green square to return
Solutions to Exercises 16
Exercise 4(a) The function sin5 (x) is another way of writing (sin(x))5
Thus to differentiate it we may use the chain rule for powers:
d
((f (x))n ) = nf 0 (x)(f (x))n−1
dx
Here we have f (x) = sin(x) so that:
d
f 0 (x) = (sin(x)) = cos(x)
dx
so we obtain:
dy
= 5f 5−1 (x) cos(x) = 5 cos(x) sin4 (x)
dx
Solutions to Quizzes
Solution to Quiz: p
3
To differentiate y = w 4 with respect to w, we use the properties of
3 1 3
powers to rewrite y = (w 4 ) 2 = w 8 . From the basic result
d n
x = nxn−1
dx
we obtain
dy d 3
= w8
dw dw
3 3 −1
= w8
8
3 3−8
= w8 8
8
3 −5
= w 8
8
End Quiz
Solutions to Quizzes 29
Solution to Quiz: √ The chain rule for 1powers may be used to dif-
ferentiate h(x) = 3 x3 + 3x = (x3 + 3x) 3 with respect to x. Writing
1
h = f (x) 3 with f (x) = x3 + 3x (so that f 0 (x) = 3x2 + 3) we find that
1 1 −1
h0 (x) = f 3 (x) × (3x2 + 3)
3
1 2
= (3x2 + 3)f − 3 (x)
3
2
= (x2 + 1)f − 3 (x)
x2 + 1
= 2
f (x) 3
x2 + 1
= 2
(x3 + 3x) 3
where we used f (x) = x3 + 3x in the last step. End Quiz
Solutions to Quizzes 32