This section covers:
The chain rule says when we’re taking the derivative, if there’s something other than \(\boldsymbol {x}\) (like in parentheses or under a radical sign) when we’re using one of the rules we’ve learned (like the power rule), we have to multiply by the derivative of what’s in the parentheses. It all has to do with composite functions, since \(\displaystyle \frac{{dy}}{{dx}}=\frac{{dy}}{{du}}\cdot \frac{{du}}{{dx}}\).
(We’ll learn how to “undo” the chain rule here in the USubstitution Integration section.)
Think of it this way when we’re thinking of rates of change, or derivatives: if we are running twice as fast as someone, and then someone else is running twice as fast as us, they are running 4 times as fast as the first person.
Here is what it looks like in Theorem form:
If \(\displaystyle y=f\left( u \right)\) and \(u=f\left( x \right)\) are differentiable and \(y=f\left( {g\left( x \right)} \right)\), then:
\(\displaystyle \frac{{dy}}{{dx}}=\frac{{dy}}{{du}}\cdot \frac{{du}}{{dx}}\), or
\(\displaystyle \frac{d}{{dx}}\left[ {f\left( {g\left( x \right)} \right)} \right]={f}’\left( {g\left( x \right)} \right){g}’\left( x \right)\)
(more simplified): \(\displaystyle \frac{d}{{dx}}\left[ {f\left( u \right)} \right]={f}’\left( u \right){u}’\)
We’ve actually been using the chain rule all along, since the derivative of an expression with just an \(x\) in it is just 1, so we are multiplying by 1.
For example, if \(\displaystyle y={{x}^{2}},\,\,\,\,\,{y}’=2x\cdot \frac{{d\left( x \right)}}{{dx}}=2x\cdot 1=2x\).
Let’s do some problems. Do you see how when we take the derivative of the “outside function” and there’s something other than just x in the argument (for example, in parentheses, under a radical sign, or in a trig function), we have to take the derivative again of this “inside function”? So basically we are taking the derivative of the “outside function” and multiplying this by the derivative of the “inside” function. That’s pretty much it!
For the chain rule, see how we take the derivative again of what’s in red? And sometimes, again, what’s in blue? Yes, sometimes we have to use the chain rule twice, in the cases where we have a function inside a function inside another function. We could theoretically take the chain rule a very large number of times, with one derivative!
Function  Derivative Using Chain Rule  Notes 
\(\displaystyle f\left( x \right)={{\left( {5x1} \right)}^{8}}\)  \(\displaystyle \begin{align}{f}’\left( x \right)&=8{{\left( {\color{red}{{5x1}}} \right)}^{7}}\cdot \color{red}{5}\\&=40{{\left( {5x1} \right)}^{7}}\end{align}\)  Since the \(\left( {5x1} \right)\) is the inner function, after using the Power Rule, we have to multiply by the derivative of that function, which is 5. 
\(\displaystyle f\left( x \right)={{\left( {{{x}^{4}}1} \right)}^{3}}\)  \(\displaystyle \begin{align}{f}’\left( x \right)&=3{{\left( {\color{red}{{{{x}^{4}}1}}} \right)}^{2}}\cdot \left( {\color{red}{{4{{x}^{3}}}}} \right)\\&=12{{x}^{3}}{{\left( {{{x}^{4}}1} \right)}^{2}}\end{align}\)  Since the \(\left( {{{x}^{4}}1} \right)\) is the inner function, after using the Power Rule, we have to multiply by the derivative of that function, which is \(4{{x}^{3}}\). 
\(\displaystyle \begin{array}{l}g\left( x \right)=\sqrt[4]{{16{{x}^{3}}}}\\g\left( x \right)={{\left( {16{{x}^{3}}} \right)}^{{\frac{1}{4}}}}\end{array}\)  \(\displaystyle \begin{align}{l}{g}’\left( x \right)&=\frac{1}{4}{{\left( {\color{red}{{16{{x}^{3}}}}} \right)}^{{\frac{3}{4}}}}\cdot \left( {\color{red}{{3{{x}^{2}}}}} \right)\\&=\frac{{3{{x}^{2}}}}{{4{{{\left( {16{{x}^{3}}} \right)}}^{{\frac{3}{4}}}}}}=\frac{{3{{x}^{2}}}}{{4\,\sqrt[4]{{{{{\left( {16{{x}^{3}}} \right)}}^{3}}}}}}\end{align}\)  Since the \(\left( {16{{x}^{3}}} \right)\) is the inner function, after using the Power Rule, we have to multiply by the derivative of that function, which is \(3{{x}^{2}}\). 
\(\displaystyle \begin{array}{l}f\left( t \right)=t\sqrt{{3t2}}\\f\left( t \right)=t{{\left( {3t2} \right)}^{{\frac{1}{2}}}}\end{array}\)  \(\displaystyle \begin{align}{f}’\left( t \right)&=t\left( {\frac{1}{2}} \right){{\left( {\color{red}{{3t2}}} \right)}^{{\frac{1}{2}}}}\cdot \left( {\color{red}{3}} \right)+{{\left( {3t2} \right)}^{{\frac{1}{2}}}}\cdot 1\\&=\frac{{3t}}{2}{{\left( {3t2} \right)}^{{\frac{1}{2}}}}+{{\left( {3t2} \right)}^{{\frac{1}{2}}}}\\&={{\left( {3t2} \right)}^{{\frac{1}{2}}}}\left( {\frac{{3t}}{2}+3t2} \right)\\&={{\left( {3t2} \right)}^{{\frac{1}{2}}}}\left( {\frac{{3t}}{2}+\frac{{6t}}{2}\frac{4}{2}} \right)\\&=\left( {\frac{{9t4}}{{2\sqrt{{3t2}}}}} \right)\end{align}\)  Use the Product Rule, since we have \(t\)’s in both expressions.
Since the \(\left( {3t2} \right)\) is the inner function, we have to multiply by the derivative of that function, which is 3. Note that we also took out the Greatest Common Factor (GCF) \({{\left( {3t2} \right)}^{{\frac{1}{2}}}}\), so we could simplify the expression. 
\(\displaystyle y=\cos \left( {4x} \right)\)  \(\displaystyle \begin{array}{l}{y}’=\sin \left( {\color{red}{{4x}}} \right)\cdot \color{red}{4}\\=4\sin \left( {4x} \right)\end{array}\)  Since the \(\left( {4x} \right)\) is the inner function (the argument of \(\text{sin}\)), we have to take multiply by the derivative of that function, which is 4. 
\(\displaystyle g\left( x \right)=\cos \left( {\tan x} \right)\)  \(\displaystyle \begin{align}{g}’\left( x \right)&=\sin \left( {\color{red}{{\tan x}}} \right)\cdot \color{red}{{{{{\sec }}^{2}}x}}\\&={{\sec }^{2}}x\cdot \sin \left( {\tan x} \right)\end{align}\)  Since the \(\left( {\tan x} \right)\) is the inner function (the argument of \(\text{cos}\)), we have to multiply by the derivative of that function, which is \(\displaystyle {{\sec }^{2}}x\). 
\(\displaystyle \begin{array}{l}f\left( x \right)={{\sec }^{3}}\left( {\pi x} \right)\\f\left( x \right)={{\left[ {\sec \left( {\pi x} \right)} \right]}^{3}}\end{array}\)
(Note second way to write this) 
\(\displaystyle \begin{align}{f}’\left( x \right)&=3\,{{\color{red}{{\sec }}}^{2}}\left( {\color{blue}{{\pi x}}} \right)\cdot \left( {\color{red}{{\sec \left( {\color{blue}{{\pi x}}} \right)\tan \left( {\color{blue}{{\pi x}}} \right)}}} \right)\color{blue}{\pi }\\&=3\pi {{\sec }^{3}}\left( {\pi x} \right)\tan \left( {\pi x} \right)\end{align}\)  This one’s a little tricky, since we have to use the Chain Rule twice. When we take the derivative of \({{\left[ {\sec \left( {\pi x} \right)} \right]}^{3}}\), we have to multiply by the derivative of \(\sec \left( {\pi x} \right)\), which is \(\sec \left( {\pi x} \right)\tan \left( {\pi x} \right)\cdot \pi \) (again, we had to multiply by the derivative of \(\pi x\), which is \(\pi \)). 
\(\displaystyle \begin{array}{l}f\left( \theta \right)=2{{\cot }^{2}}\left( {2\theta } \right)+\theta \\f\left( \theta \right)=2{{\left[ {\cot \left( {2\theta } \right)} \right]}^{2}}+\theta \end{array}\)  \(\displaystyle \begin{align}{f}’\left( \theta \right)=&4\,\color{red}{{\cot }}\left( {\color{blue}{{2\theta }}} \right)\cdot \color{red}{{{{{\csc }}^{2}}\left( {\color{blue}{{2\theta }}} \right)}}\cdot \color{blue}{2}+1\\&=18{{\csc }^{2}}\left( {2\theta } \right)\cot \left( {2\theta } \right)\end{align}\)  This is another one where we have to use the Chain Rule twice.

Here’s one more problem, where we have to think about how the chain rule works:
The Equation of the Tangent Line with the Chain Rule
Here are a few problems where we use the chain rule to find an equation of the tangent line to the graph \(f\) at the given point. Note that we saw more of these problems here in the Equation of the Tangent Line, Tangent Line Approximation, and Rates of Change Section.
Understand these problems, and practice, practice, practice!
Click on Submit (the arrow to the right of the problem) to solve this problem. You can also type in more problems, or click on the 3 dots in the upper right hand corner to drill down for example problems.
If you click on “Tap to view steps”, you will go to the Mathway site, where you can register for the full version (steps included) of the software. You can even get math worksheets.
You can also go to the Mathway site here, where you can register, or just use the software for free without the detailed solutions. There is even a Mathway App for your mobile device. Enjoy!
On to Implicit Differentiation and Related Rates – you’re ready!