Chain_rule
Chain_rule
DERIVATIVES OF COMPOSITIONS
Suppose you are traveling to school in your car, which gets 20 miles per gallon of gasoline.
The number of miles you can travel in your car without refueling is a function of the number
of gallons of gas you have in the gas tank. In symbols, if y is the number of miles you can
travel and u is the number of gallons of gas you have initially, then y is a function of u, or
y = f(u). As you continue your travels, you note that your local service station is selling
gasoline for $4 per gallon. The number of gallons of gas you have initially is a function
of the amount of money you spend for that gas. If x is the number of dollars you spend
on gas, then u = g(x). Now 20 miles per gallon is the rate at which your mileage changes
with respect to the amount of gasoline you use, so
dy
f (u) = = 20 miles per gallon
du
Similarly, since gasoline costs $4 per gallon, each dollar you spend will give you 1/4 of a
Mike Brinson/Getty Images
The cost of a car trip is a combination of
gallon of gas, and du 1
fuel efficiency and the cost of gasoline. g (x) = = gallons per dollar
dx 4
Notice that the number of miles you can travel is also a function of the number of dollars
dy du = 1 you spend on gasoline. This fact is expressible as the composition of functions
= 20
du dx 4
y = f(u) = f(g(x))
y u x
dy
You might be interested in how many miles you can travel per dollar, which is dy/dx.
= 20 ⋅ 1 = 5 Intuition suggests that rates of change multiply in this case (see Figure 2.6.1), so
dx 4
dy dy du 20 miles 1 gallon 20 miles
Rates of change multiply:
= · = · = = 5 miles per dollar
dy dy du dx du dx 1 gallon 4 dollars 4 dollars
= ⋅
dx du dx
Figure 2.6.1 The following theorem, the proof of which is given in Appendix D, formalizes the
preceding ideas.
Solution. In this case the chain rule computations take the form
dw dw dx
= ·
dt dx dt
d d
= [tan x] · [4t 3 + t]
dx dt
= (sec2 x) · (12t 2 + 1)
d
Confirm that (2) is an alternative ver- [f(g(x))] = (f ◦ g) (x) = f (g(x))g (x) (2)
sion of (1) by letting y = f(g(x)) and dx
u = g(x).
A convenient way to remember this formula is to call f the “outside function” and g the
“inside function” in the composition f(g(x)) and then express (2) in words as:
The derivative of f(g(x)) is the derivative of the outside function evaluated at the inside
function times the derivative of the inside function.
d
[f(g(x))] = f (g(x)) · g (x)
dx
Derivative of the outside
Derivative of the
function evaluated at the
inside function
inside function
August 31, 2011 19:54 c02 Sheet number 46 Page number 176 cyan magenta yellow black
Example 4
d d
[tan2 x] = [(tan x)2 ] = (2 tan x) · (sec2 x) = 2 tan x sec2 x
dx dx
Derivative of the outside
Derivative of the
function evaluated at the
inside function
inside function
d 2 1 x
[ x + 1] = · 2x = √ See Formula (6)
dx 2 x2 + 1 x +1
2 of Section 2.3.
Derivative of the outside
Derivative of the
function evaluated at the
inside function
inside function
d du
[f(u)] = f (u) (3)
dx dx
This result, called the generalized derivative formula for f , provides a way of using the
derivative of f(x) to produce the derivative of f(u), where u is a function of x. Table 2.6.1
gives some examples of this formula.
Table 2.6.1
generalized derivative formulas
d [ur ] = ru r −1 du
dx dx
d [sin u] = cos u du d [cos u] = −sin u du
dx dx dx dx
d [tan u] = sec2 u du d [cot u] = −csc2 u du
dx dx dx dx
d [sec u] = sec u tan u du d
[csc u] = −csc u cot u du
dx dx dx dx
August 31, 2011 19:54 c02 Sheet number 47 Page number 177 cyan magenta yellow black
Example 5 Find
d d d 3
(a) [sin(2x)] (b) [tan(x 2 + 1)] (c) x + csc x
dx dx dx
d 2 d
(d) [x − x + 2]3/4 (e) (1 + x 5 cot x)−8
dx dx
Solution (a). Taking u = 2x in the generalized derivative formula for sin u yields
d d du d
[sin(2x)] = [sin u] = cos u = cos 2x · [2x] = cos 2x · 2 = 2 cos 2x
dx dx dx dx
Solution (b). Taking u = x 2 + 1 in the generalized derivative formula for tan u yields
d d du
[tan(x 2 + 1)] = [tan u] = sec2 u
dx dx dx
d 2
= sec2 (x 2 + 1) · [x + 1] = sec2 (x 2 + 1) · 2x
dx
= 2x sec2 (x 2 + 1)
√
Solution (c). Taking u = x 3 + csc x in the generalized derivative formula for u yields
d 3 d √ 1 du 1 d 3
x + csc x = [ u] = √ = √ · [x + csc x]
dx dx 2 u dx 2 x + csc x dx
3
1 3x 2 − csc x cot x
= √ · (3x 2 − csc x cot x) = √
2 x 3 + csc x 2 x 3 + csc x
Solution (d). Taking u = x 2 − x + 2 in the generalized derivative formula for u3/4 yields
d 2 d 3/4 3 du
[x − x + 2]3/4 = [u ] = u−1/4
dx dx 4 dx
3 2 d 2
= (x − x + 2)−1/4 · [x − x + 2]
4 dx
3 2
= (x − x + 2)−1/4 (2x − 1)
4
Solution (e). Taking u = 1 + x 5 cot x in the generalized derivative formula for u−8
yields
d d −8 du
(1 + x 5 cot x)−8 = [u ] = −8u−9
dx dx dx
d
= −8(1 + x 5 cot x)−9 · [1 + x 5 cot x]
dx
= −8(1 + x 5 cot x)−9 · x 5 (− csc2 x) + 5x 4 cot x
= (8x 5 csc2 x − 40x 4 cot x)(1 + x 5 cot x)−9
Sometimes you will have to make adjustments in notation or apply the chain rule more
than once to calculate a derivative.
Example 6 Find
d √ dμ √
(a) sin( 1 + cos x ) (b) if μ = sec ωt (ω constant)
dx dt
August 31, 2011 19:54 c02 Sheet number 48 Page number 178 cyan magenta yellow black
Solution (b).
dμ d √ √ √ d √
= [sec ωt] = sec ωt tan ωt [ ωt] We used the generalized derivative
√
formula for sec u with u = ωt.
dt dt dt
√ √ ω We used the generalized derivative
= sec ωt tan ωt √ √
formula for u with u = ωt.
2 ωt
1. The chain rule states that the derivative of the composition 3. Find dy/dx. √
of two functions is the derivative of the function (a) y = (x 2 + 5)10 (b) y = 1 + 6x
evaluated at the function times the derivative of 4. Find dy/dx.
the function. (a) y = sin(3x + 2) (b) y = (x 2 tan x)4
2. If y is a differentiable function of u, and u is a differentiable 5. Suppose that f(2) = 3, f (2) = 4, g(3) = 6, and
function of x, then g (3) = −5. Evaluate
dy (a) h (2), where h(x) = g(f(x))
= · (b) k (3), where k(x) = f 13 g(x) .
dx