5.5: Chain Rule
( \newcommand{\kernel}{\mathrm{null}\,}\)
The Chain Rule enables us to differentiate a composite function f∘g. But why is there the need to have a special way to determine the derivative of a composite function? Intuitively, it is because the variation of the domain of f is now governed by the function g(x) rather than just by x, and g's rate of change with respect to x should somehow be taken into account. Before proceeding, see if you find effect of g by comparing the derivative of f(x)=x2 with the derivative of f(x)=(5x)2 where g(x)=5x.
The Chain Rule
We want to derive a rule for the derivative of a composite function of the form f∘g in terms of the derivatives of f and g. This rule would allow us to differentiate complicated functions in terms of known derivatives of simpler functions.
The rule that enables this is called the Chain Rule:
If g is a differentiable function at x, and f is differentiable at g(x), then the composition function f∘g=f(g(x)) is differentiable at x. The derivative of the composite function is:
(f∘g)′(x)=f′(g(x))g′(x)
Or an equivalent statement:
If u=u(x) and f=f(u), then ddx[f(u)]=f′(u)dudx
Or another equivalent statement:
If y is a function of u, and u is a function of x, then
dydx=dydu⋅dudx
Apply the chain rule to find the derivative of f(x)=(2x3−4x2+5)2
Using the chain rule, let u=2x3−4x2+5. Then
ddx[(2x2−4x2+5)2]=ddx[u2]
=2ududx
=2(2x3−4x2+5)(6x2−8x)
The problem above is one of the most common types of composite functions. It is a power function of the type
y=[u(x)]n
The rule for differentiating such functions is special case of the Chain Rule called the General Power Rule:
If y=[u(x)]n, then dydx=n[u(x)]n−1ddxu(x)
Examples
Example 1
Earlier, you were asked if you find the effect of g on the derivative by comparing the derivative of f(x)=x2 with the derivative of f(x)=(5x)2 where g(x)=5x. The derivative of f(x)=x2 is f′(x)=2x, and the derivative of f(x)=(5x)2 is f′(x)=2(5x)5=2x⋅25. The effect of g in the composite function is to modify the rate of change of f(x)=x2.
Example 2
What is the slope of the tangent line to the function y=√x2−3x+2 that passes through point x=3?
We can write y=(x2−3x+2)12 This example illustrates the point that n can be any real number including fractions. Using the General Power Rule,
dydx=12(x2−3x+2)12−1(2x−3)
=12(x2−3x+2)−12(2x−3)
=(2x−3)2√x2−3x+2
To find the slope of the tangent line, we simply substitute x=3 into the derivative:
dydx|x=3=2(3)−32√32−3(3)+2=32√2=3√24
Example 3
Find dydx for y=sin3x
The function can be written as y=[sinx]3. Thus
dydx=ddx[sinx]3
=3[sinx]2[cosx]
=3sinx2cosx
Example 4
Find dydx for y=[cos(πx2)]3
This example will show the application of the chain rule multiple times because there are several functions embedded within each other.
The function y can be written in the form
y=(u(w))3 where
u(w)=cos(w)
w(x)=πx2
Here are the steps for the solution:
dydx=ddx[u(w)3]
…Use u and w substitutions
=3⋅u(w)2⋅dudx
.…After using the General Power Rule
=3⋅u(w)2⋅(dudw⋅dwdx)
…After using the Chain Rule for du/dx
=3⋅u(w)2⋅[−sin(w)⋅2πx]
…After evaluating dudw and dwdx
=3[cos(πx2)]2⋅(−sin(πx2)⋅2πx)
…After substituting for u and w
=−6πx[cos(πx2)]2sin(πx2)
.…After simplification.
Notice that we first used the General Power Rule and then used the Chain Rule, in the last step, we took the derivative of the argument.
Review
For #1-11, find f′(x).
- f(x)=(2x2−3x)39
- f(x)=(x3−5x2)−3
- f(x)=1√3x2−6x+2
- f(x)=sin3x
- f(x)=sinx3
- f(x)=sin3x3
- f(x)=tan(4x5)
- f(x)=4x−sin22x
- f(x)=sinxcos(3x−2)
- f(x)=(5x+8)3(x3+7x)13
- f(x)=(x−32x−5)3
- Find dydx for y=5cos(3x2−1)
- Find the derivative of √x3+x5+89
- Find the derivative of sin(sin(sin(x))).
- By definition, any function composed with its inverse is just the identity: f(f−1(x))=x. differentiate both sides of this equation and solve algebraically for the derivative of the inverse.
Vocabulary
Term | Definition |
---|---|
chain rule | The chain rule is the method for computing the derivative of a composite function. It states that for functions f(x) and g(x), (f∘g)′(x)=f′(g(x))g′(x). |
composite function | A composite function is a function h(x) formed by using the output of one function g(x) as the input of another function f(x). Composite functions are written in the form h(x)=f(g(x)) or h=f∘g. |
derivative | The derivative of a function is the slope of the line tangent to the function at a given point on the graph. Notations for derivative include f′(x), dy/dx, y′, df/dx and \frac{df(x)}{dx}. |
Additional Resources
PLIX - Play, Learn, Interact, eXplore - Differentiation: Chain Rule
Video: Chain Rule Introduction
Practice: Chain Rule
Real World: Goodbye Waves