Chain Rule
Introduction
It is relatively easy to calculate the derivatives of simple functions, like polynomials or trigonometric functions.
But, what about more complicated functions?
For example, or
Well, the key to calculating the derivatives of these functions is to recognize that these functions are compositions.
For it is the composition of the function with
Similarly, for it is the composition of and
So, how do we take the derivative of compositions?
The answer to this question is exactly the Chain Rule.
Chain Rule
Let be a differentiable function of and let be a differentiable function of
Then, is a differentiable function of and
- Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle y'=(f'\circ g(x))\cdot g'(x).}
Warm-Up
Calculate Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle h'(x).}
1)
| Solution: |
|---|
| Let and Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle g(x)=3x.} |
| Then, and Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle g'(x)=3.} |
| Now, Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle h(x)=f\circ g(x).} |
| Using the Chain Rule, we have |
|
|
| Final Answer: |
|---|
2) Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle h(x)=(x+1)^{8}}
| Solution: |
|---|
| Let Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle f(x)=x^{8}} and |
| Then, Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle f'(x)=8x^{7}} and Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle g'(x)=1.} |
| Now, Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle h(x)=f\circ g(x).} |
| Using the Chain Rule, we have |
|
| Final Answer: |
|---|
3) Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle h(x)=\ln(x^{2})}
| Solution: |
|---|
| Let and Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle g(x)=x^{2}.} |
| Then, and Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle g'(x)=2x.} |
| Now, Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle h(x)=f\circ g(x).} |
| Using the Chain Rule, we have |
|
| Final Answer: |
|---|
Exercise 1
Calculate the derivative of Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle h(x)=(\sin x+\cos x)^{4}.}
Using the Chain Rule, we have
- Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle {\begin{array}{rcl}\displaystyle {h'(x)}&=&\displaystyle {4(\sin x+\cos x)^{3}(\sin x+\cos x)'}\\&&\\&=&\displaystyle {4(\sin x+\cos x)^{3}((\sin x)'+(\cos x)')}\\&&\\&=&\displaystyle {4(\sin x+\cos x)^{3}(\cos x-\sin x)}.\end{array}}}
So, we have
- Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle h'(x)=4(\sin x+\cos x)^{3}(\cos x-\sin x).}
Exercise 2
Calculate the derivative of Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle h(x)=\sin ^{3}(2x^{2}+x+1).}
First, notice
Using the Chain Rule, we have
- Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle h'(x)=3(\sin(2x^{2}+x+1))^{2}\cdot (\sin(2x^{2}+x+1))'.}
Now, we need to use the Chain Rule a second time. So, we get
- Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle {\begin{array}{rcl}\displaystyle {h'(x)}&=&\displaystyle {3(\sin(2x^{2}+x+1))^{2}\cos(2x^{2}+x+1)\cdot (2x^{2}+x+1)'}\\&&\\&=&\displaystyle {3\sin ^{2}(2x^{2}+x+1)\cos(2x^{2}+x+1)(4x+1).}\end{array}}}
So, we have
- Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle h'(x)=3\sin ^{2}(2x^{2}+x+1)\cos(2x^{2}+x+1)(4x+1).}
Exercise 3
Calculate the derivative of Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle h(x)=\cos(2x+1)\sin(x^{2}+3x).}
Using the Product Rule, we have
- Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle h'(x)=\cos(2x+1)(\sin(x^{2}+3x))'+(\cos(2x+1))'\sin(x^{2}+3x).}
For the two remaining derivatives, we need to use the Chain Rule.
So, using the Chain Rule, we have
- Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle {\begin{array}{rcl}\displaystyle {h'(x)}&=&\displaystyle {\cos(2x+1)\cos(x^{2}+3x)\cdot (x^{2}+3x)'-\sin(2x+1)\cdot (2x+1)'\sin(x^{2}+3x)}\\&&\\&=&\displaystyle {\cos(2x+1)\cos(x^{2}+3x)(2x+3)-\sin(2x+1)(2)\sin(x^{2}+3x).}\end{array}}}
So, we get
- Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle h'(x)=\cos(2x+1)\cos(x^{2}+3x)(2x+3)-\sin(2x+1)(2)\sin(x^{2}+3x).}
Exercise 4
Calculate the derivative of Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle h(x)={\frac {\sin(3x)+x\cos(2x)}{x^{2}+1}}.}
First, using the Quotient Rule, we have
Using the Product Rule, we get
- Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle {\begin{array}{rcl}\displaystyle {h'(x)}&=&\displaystyle {\frac {(x^{2}+1)[(\sin(3x))'+x(\cos(2x))'+(x)'\cos(2x)]-(\sin(3x)+x\cos(2x))(2x)}{(x^{2}+1)^{2}}}\\&&\\&=&\displaystyle {{\frac {(x^{2}+1)[(\sin(3x))'+x(\cos(2x))'+1\cos(2x)]-(\sin(3x)+x\cos(2x))(2x)}{(x^{2}+1)^{2}}}.}\end{array}}}
For the remaining derivatives, we need to use the Chain Rule. So, we get
- Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle {\begin{array}{rcl}\displaystyle {h'(x)}&=&\displaystyle {\frac {(x^{2}+1)[\cos(3x)(3x)'+x(-\sin(2x))(2x)'+\cos(2x)]-(\sin(3x)+x\cos(2x))(2x)}{(x^{2}+1)^{2}}}\\&&\\&=&\displaystyle {{\frac {(x^{2}+1)[\cos(3x)(3)-x\sin(2x)(2)+\cos(2x)]-(\sin(3x)+x\cos(2x))(2x)}{(x^{2}+1)^{2}}}.}\end{array}}}
So, we have
- Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle h'(x)={\frac {(x^{2}+1)[\cos(3x)(3)-x\sin(2x)(2)+\cos(2x)]-(\sin(3x)+x\cos(2x))(2x)}{(x^{2}+1)^{2}}}.}