Differentiation is a very powerful mathematical tool. This module 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:
y | axn | sin (ax) | cos (ax) | eax | ln (ax) |
---|---|---|---|---|---|
dydx | naxn − 1 | a cos (ax) | − a sin (ax) | a eax | 1x |
If u, v are two functions of x, then:
ddx(u + v) = dudx + dvdx |
---|
This is the Sum Rule, which simply states that the derivative of the sum of two (or more) functions is given by the sum of their individual derivatives.
Derivatives also commute with constants, so that if y = aƒ (x), then dydx = adfdx , where a is any constant.
Here are some exercises to practice on:
Exercise 1: Differentiate the following with respect to x using the above rules:
Solution: If y = √x then y = x½ (see the Powers module). Its derivative with respect to x is then found with the help of the rule that:
This yields:
ddx(x½) | = | 12 × x−½ |
= | 12x−½ | |
= | 12√x |
Solution: To differentiate y = 4 cos (3x) with respect to x we take the derivative through the constant 4. We also use the rule:
This gives:
dydx | = | ddx(4 sin (3x)) |
= | 4 ddx(sin (3x)) | |
= | 4 × 3 cos (3x) | |
= | 12 cos (3x) |
Solution: To differentiate ln (x3) with respect to x we first recall from the Logarithms module that ln (xn) = nln (x). With the rule:
this gives us:
ddx(ln (x3)) | = | ddx(3 ln (x)) |
= | 3 ddx(ln (x)) | |
= | 3 × 1x | |
= | 3x |
Solution: To differentiate 3x4 − 4x3 we use the sum rule and the basic result:
This gives:
ddx(3x4 − 4x3) | = | 3 × 4 × x4−1 − 4 × 3 × x3 − 1 |
= | 12x3 − 12x2 | |
= | 12x2(x − 1) |
- where in the last step we have extracted the common factor 12x2
Click on questions to reveal solutions
Quiz 1: Use the properties of powers to find the derivative of y = √w3 ⁄ 4
Explanation: To differentiate y = √w3 ⁄ 4 with respect to w, we use the properties of powers to rewrite y = (w3 ⁄ 4)1 ⁄ 2 = (w)3 ⁄ 8.
From the basic result:
we obtain:
dydw | = | ddw(w3 ⁄ 8) |
= | 38w3 ⁄ 8 − 1 | |
= | 38w3 ⁄ 8 − 8 ⁄ 8 | |
= | 38w5 ⁄ 8 |
The chain rule makes it possible to differentiate functions of functions, e.g. if y is a function of u (i.e. y = ƒ (u)) and u is a function of x (i.e., u = g(x)) then the chain rule states:
if y = ƒ (u), then dydx = dydu × dudx |
Example 1: Consider y = sin (x2). This can be re-written as y = sin (u), with u = x2. Therefore, we have:
Thus the chain rule can be used to differentiate y with respect to x as follows:
dydx | = | dydx = dydu × dudx |
= | cos (u) × (2x) | |
= | 2x cos (x2) , since u = x2 |
The key to using the chain rule is to choose u appropriately, so that you are able to calculate both of the derivatives dydu and dudx . These results can then be substituted into the chain rule to give the desired result dydx.
Explanation: Choosing u = x3 + 3x lets us write:
This makes it possible to calculate both dydu = 32u−1 ⁄ 2 and dudx = x3 + 3x
These results can be substituted into the chain rule to find:
dydx | = | dydx = dydu × dudx |
= | 32u−1 ⁄ 2 × (3x2 + 3) | |
= | 32(3x2 + 3)u−1 ⁄ 2 | |
= | 92 (x2 + 1)(x3 + 3x)−1 ⁄ 2 | |
= | 9 (x2 + 1)2√x3 + 3x, since u = x3 + 3x. |
If we had picked any of the other suggestions for u we would not have been able to calculate dydx
Exercise 2: Differentiate the functions y below using the chain rule with the suggested u:
Solution: For y = ln (x7 + x), choose u = x7 + x, i.e. we write:
We then differentiate y as follows:
Substituting these results into the chain rule yields:
dydx | = | dydu × dudx |
= | 1u × (7x6 + 1) | |
= | 7x6 + 1 x7 + x |
since u = x7 + x
Solution: For y = sin (√x), choose u = x1 ⁄ 2, i.e. we write:
We then differentiate y as follows:
These results and the chain rule give:
dydx | = | dydu × dudx |
= | cos (u) × (12 x−1 ⁄ 2 ) | |
= | 12√x cos ( √x) = cos (√x) 2√x |
since u = √2
Solution: For y = 3 ex3, choose u = x3, i.e. we write:
We then differentiate y as follows:
These results and the chain rule give:
dydx | = | dydu × dudx |
= | 3 eu × (3x2) | |
= | 9 x2 eu = 9 x2 ex3 |
since u = x3
Solution: For y = cos (ln (x)), choose u = ln (x), i.e. we write:
We then differentiate y as follows:
Substituting these results into the chain rule yields:
dydx | = | dydu × dudx |
= | −sin (u) × (1x ) | |
= | −sin (ln (x)) x |
since u = ln (x)
Click on questions to reveal solutions
Exercise 3: Use the chain rule to differentiate the following functions with respect to x:
Solution: For y = sin (x2), we define u = x2, so that:
We then differentiate y as follows:
Substituting these results into the chain rule implies:
dydx | = | dydu × dudx |
= | cos (u) × (2x) | |
= | 2xcos (x2) |
since u = x2
Solution: For y = cos (x3 − 2x), we define u = x3 − 2x, i.e. we write:
We then differentiate y as follows:
These results and the chain rule implies:
dydx | = | dydu × dudx |
= | −sin (u × (3x2 − 2) | |
= | −(3x2 − 2) sin (3x2 − 2) |
since u = x3 − 2x
Solution: For y = 2√x2 − 1,choose u = x2 − 1, i.e. we write:
We then differentiate y as follows:
These results and the chain rule implies:
dydx | = | dydu × dudx |
= | u−1 ⁄ 2 × (2x) | |
= | 2x √x2 − 1 |
since u = x2 − 1
Solution: For y = 4 e2x3 + 2, we define u = 2x3, so that:
We then differentiate y as follows:
Note the use of the sum rule to differentiate y above. Putting these results into the chain rule we get:
dydx | = | dydu × dudx |
= | 4eu × (6x2) | |
= | 24x2e2x3 |
since u = 2x3
Click on questions to reveal solutions
Quiz 3: Which of the following is the derivative of y = 2 sin (3 cos (4t)) with respect to t?
Explanation: For y = 2 sin (3 cos (4t)), choose u = 3 cos (4t), so that:
To differentiate y with respect to t we need:
These results and the chain rule give:
dydt | = | dydu × dudt |
= | 2 cos (u) × (−12 sin (4t)) | |
= | −2 × 12 sin (4t)cos (u) | |
= | −24 sin (4t) cos (3 cos (4t)) |
since u = 2x3
The chain rule for powers tells us how to differentiate a function raised to a power. It states:
if y = (ƒ (x))n , then dydx = n ƒ′ (x)(ƒ (x))n−1 |
---|
- where ƒ′ (x) is the derivative of ƒ (x) with respect to x. This rule is obtained from the chain rule by choosing u = ƒ (x) in the above expression.
Example 2: Let y = (ex)6. From the chain rule for powers, and writing y = (ƒ (x))6 with ƒ (x) = ex , which also means ƒ′ (x) = ex, we get:
dydx | = | 6 ƒ′ (x)(ƒ (x))6 − 1 |
= | 6 ex(ex)5 | |
= | 6 exe5x = 6 e6x |
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 following functions with respect to x:
Solution: The function sin5(x) is another way of writing (sin (x))5, so to differentiate it we use the chain rule for powers:
Here we have ƒ (x) = sin (x) so that:
and we obtain:
Solution: To differentiate y = (x3 − 2x)3 we use the chain rule for powers:
Here we have ƒ (x) = x3 − 2x so that:
and we obtain:
Solution: To differentiate y = 23√x2 + 1 we use the chain rule for powers:
Here we have ƒ (x) = x2 + 1 so that:
and we obtain:
dydx | = | 13 ƒ 1/3 − 1 (x) × 2x |
= | 13 × 2xƒ −2 ⁄ 3 (x) | |
= | 23 x(x2 + 1)−2 ⁄ 3 |
Solution: To differentiate 5 (sin (x) + cos (x))4 we take the derivative through the factor of 5 at the front and use the chain rule for powers:
Here we have ƒ (x) = (sin (x) + cos (x)) so that:
and we obtain:
dydx | = | 5 × 4 (cos (x) − sin (x) × ƒ 4−1(x) |
= | 20 (cos (x) − sin (x) (sin (x) + cos (x))3 |
Click on questions to reveal solutions
Quiz 4: Select the derivative h′ (x) for the function h (x) = 3√ x3 + 3x from the choices below:
Explanation: The chain rule for powers may be used to differentiate h(x) = 3√ x3 + 3x = (x3 + 3x)1 ⁄ 3 with respect to x. Writing h = ƒ (x)1 ⁄ 3 with ƒ (x) = x3 + 3x (so that ƒ′ (x) = 3x2 + 3) we find that:
ƒ′ (x) | = | 13 ƒ 1 ⁄ 3− 1(x) × (3x2 + 3) |
= | 13 (3x2 + 3) ƒ −2 ⁄ 3(x) | |
= | (x2 + 1) ƒ −2 ⁄ 3(x) | |
= | x2 + 1 ƒ 2 ⁄ 3(x) | |
= | x2 + 1 (x3 + 3x)2 ⁄ 3 |
- where we used ƒ (x) = x3 + 3x in the last step.
Quiz 5: Select the derivative g′(w) of g(w) = sin4(w) + sin (w4) from the choices below:
Explanation: For y = 2 sin (3 cos (4t)), choose u = 3 cos (4t), so that:
To differentiate y with respect to t we need:
These results and the chain rule give:
dydt | = | dydu × dudt |
= | 2 cos (u) × (−12 sin (4t)) | |
= | −2 × 12 sin (4t) cos (u) | |
= | −24 sin (4t) cos (3 cos (4t)) |
since u = 2x3
In each of the following cases, choose the correct option:
Proof: If y = (ƒ (x))n , let u = ƒ (x), so y = un. From the chain rule:
This special case of the chain rule is often extremely useful.