Many functions are built by composition: one function applied inside another. The Chain Rule tells us how to differentiate such compositions by multiplying the derivative of the outer function (evaluated at the inner function) by the derivative of the inner function.
| Form | Chain Rule |
|---|---|
| Function notation | \phi'(x)=f'(g(x))\cdot g'(x) |
| Leibniz notation | |
| Operator form | (f\circ g)'=(f'\circ g)\cdot g' |
Statement and Interpretation
How can we differentiate ? This function is the composition of and .
The Chain Rule. If , then has a derivative and
\phi'(x)=f'(g(x))\cdot g'(x)If where , then
\frac{dy}{dx}=\frac{dy}{du}\cdot\frac{du}{dx}=f'(u)\cdot g'(x)When applying the Chain Rule, proceed from the outer function to the inner:
\frac{d}{dx}\bigg[f(g(x))\bigg]=\underbrace{f'}_{\text{derivative of outer}}(\underbrace{g(x)}_{\text{at inner}})\cdot\underbrace{g'(x)}_{\text{derivative of inner}}The expression is slightly imprecise. To be rigorous:
The derivative of with respect to at equals the derivative of with respect to evaluated at , multiplied by the derivative of with respect to at .
Proof
An increment determines , and in turn . The key step: define \alpha(\Delta u)=\begin{cases}\dfrac{f(u+\Delta u)-f(u)}{\Delta u}-f'(u) & \text{if }\Delta u\neq0\\0 & \text{if }\Delta u=0\end{cases} Since is differentiable, is continuous at with . It follows that f(u+\Delta u)-f(u)=\Delta u\,[\alpha(\Delta u)+f'(u)] This holds even when . Therefore: \begin{aligned} \lim_{\Delta x\to0}\frac{\phi(x+\Delta x)-\phi(x)}{\Delta x}&=\lim_{\Delta x\to0}\frac{\Delta u\,[\alpha(\Delta u)+f'(u)]}{\Delta x}\\ &=\underbrace{\lim_{\Delta x\to0}\frac{\Delta u}{\Delta x}}_{g'(x)}\cdot\underbrace{\lim_{\Delta x\to0}[\alpha(\Delta u)+f'(u)]}_{0+f'(u)}\\ &=g'(x)\cdot f'(g(x)) \end{aligned}Triple composition: If , , , then
\frac{dy}{dx}=\frac{dy}{du}\frac{du}{dv}\frac{dv}{dx}=f'(g(h(x)))\cdot g'(h(x))\cdot h'(x)Worked Examples
Compute \phi'(x) if .
Solution
Write with and . Since f'(x)=\dfrac{1}{2\sqrt{x}}: f'(x^2+1)=\frac{1}{2\sqrt{x^2+1}} Therefore \phi'(x)=\frac{1}{2\sqrt{x^2+1}}\cdot2x=\frac{x}{\sqrt{x^2+1}} Using Leibniz notation: set and :Prove where and are integers.
Solution
Let and . ThenEvaluate .
Solution
Let and :Evaluate .
Solution
Let and :The Power Rule with Chain Rule
In general, the Power Rule combined with the Chain Rule gives:
The derivative of a function raised to a constant power equals the product of the exponent, the function raised to the diminished power, and the derivative of the function.
Differentiate .
Solution
Let , then :If , find .
Solution
\begin{aligned} \frac{dy}{dx}&=1\cdot\sqrt{x^2+1}+(x+1)\cdot\frac{1}{2}(x^2+1)^{-1/2}\cdot2x\\ &=\sqrt{x^2+1}+\frac{x(x+1)}{\sqrt{x^2+1}}\\ &=\frac{x^2+1+x^2+x}{\sqrt{x^2+1}}=\frac{2x^2+x+1}{\sqrt{x^2+1}} \end{aligned}If , find .
Solution
Write . Let , so :If and , find (g\circ f)'(x) and its value at .