5.5 Chain Rule
Suppose we want to find the derivatives of the following functions:
f(x)=√x2−1
f(x)=2x3+x
f(x)=e2x3−3x2−1
f(x)=ln(3x2−3)
How can we find the derivative of these functions with respect to x? Unfortunately, none of the rules we learned in this topic will help us find the derivatives. These functions can be written as g(h(x)). For example, with the first one, we can say g(x)=√x and replace the x of the g function with h(x)=x2−1. Can you identify the two functions that compose each of the other functions?
g(x)=√x,h(x)=x2−1
g(x)=2x,h(x)=x3+x
g(x)=ex,h(x)=2x3−3x2−1
g(x)=lnx,h(x)=3x2−3
This illustrates the last rule of derivatives—the chain rule. If h(x) is differentiable at x and g(x) is differentiable at h(x), then f(x)=g(h(x)) is differentiable at x, and the derivative of f(x) can be found by
f′(x)=h′(x)⋅g′(h(x))
Let’s use the original four equations to find the derivative of each of the others as practice. First,
f(x)=√x2−1
can be decomposed as follows:
g(x)=√x,h(x)=x2−1
Let’s find the derivative of the functions g and h first.
g′(x)=12√x,h′(x)=2x
Therefore, the derivative of the function f(x) is
f′(x)=h′(x)⋅g′(h(x))=2x⋅12√x2−1=x√x2−1
Given the above result, the general formula to find the derivative of a function f(x) that is some constant nth power of a function g(x), expressed as f(x)=[g(x)]n, is
f′(x)=ng′(x)[g(x)]n−1
Suppose we want to find the derivative of
f(x)=(x3−2x2−x)3
The derivative of the function is
f′(x)=ng′(x)[g(x)]n−1=3(3x2−4x−1)(x3−2x2−x)2
Next, instead of looking at the second function, let’s skip to the third function.
f(x)=e2x3−3x2−1
This function is composed of the following two functions:
g(x)=exh(x)=2x3−3x2−1
The derivatives of these two functions are
g′(x)=exh′(x)=6x2−6x
Therefore, the derivative of f with the chain rule is
f′(x)=h′(x)⋅g′(h(x))=(6x2−6x)e2x3−3x2−1
Given this result, we can get a general formula of the derivative of a function f that is the constant e to the g(x) power as follows:
f′(x)=g′(x)eg(x)
Let’s look at the second example now. For this, we have to remember many rules and equations.
f(x)=2x3+x
As we found earlier, the composition of the function f is
g(x)=2x
h(x)=x3+x
Before we tackle this, we need to rewrite g(x) as follows:
g(x)=2x=exln2(Recallelna=a)
So the derivative of g needs the chain rule as well. Let
m(x)=exn(x)=xln2
The derivatives of the functions m and n are
m′(x)=exn′(x)=ln2
So the derivatives of the function g and h are
g′(x)=n′(x)⋅m′(n(x))=ln2⋅exln2=2xln2h′(x)=3x2+1
Therefore, the derivative of f is
f′(x)=h′(x)⋅g′(h(x))=(3x2+1)2x3+xln2
So, the general formula of the derivative of the function f such that constant a to the power of a function g(x)(f(x=ag(x)) is
f′(x)=g′(x)ag(x)lna
Here is a practice problem. What is the derivative of f(x)=10x2−3? First, we can identify g(x) and g′(x).
g(x)=x2−3g′(x)=2x
Therefore, the derivative of f is
f′(x)=g′(x)ag(x)lna=2x⋅10x2−3ln10
Here is the last one:
f(x)=ln(3x2−3)
As we found earlier, the components of f are
g(x)=lnxh(x)=3x2−3
The derivatives of the functions g and h are
g′(x)=1xh′(x)=6x
Therefore, the derivative is
f′(x)=h′(x)⋅g′(h(x))=6x⋅13x2−3=2xx2−1
Let’s practice. Suppose that we want to find the derivative of the following function:
f(x)=ln(x4−3x2+2x−1)
Since
g(x)=x4−3x2+2x−1g′(x)=4x3−6x+2
then the derivative of f is
f′(x)=g′(x)g(x)=4x3−6x+2x4−3x2+2x−1
Want to try our built-in assessments?
Use the Request Full Access button to gain access to this assessment.