Chain Rule
Theory
The chain rule differentiates a composite function (a function of a function): \(\dfrac{dy}{dx}=\dfrac{dy}{du}\times\dfrac{du}{dx}\). This Year 11 Mathematics Advanced page covers powers of a function such as \((2x+5)^{3}\), square roots and reciprocals written as powers, the function form \(h'(x)=f'\big(g(x)\big)\,g'(x)\), and using the derivative to find gradients, unknown constants and equations of tangents.
A composite function is a function of a function, such as \(y=(3x+2)^{4}\). An inner function \(u=3x+2\) is worked out first, then an outer function \(y=u^{4}\) is applied to it. In function notation, \(h(x)=f\big(g(x)\big)\) with inner function \(g\) and outer function \(f\).
The chain rule differentiates a composite function: differentiate the outer function, leaving the inside unchanged, then multiply by the derivative of the inside. If \(x\) changes, \(u\) changes \(\dfrac{du}{dx}\) times as fast, and \(y\) changes \(\dfrac{dy}{du}\) times as fast as \(u\), so the two rates multiply.
The most common case is a power of a function, \(\big(g(x)\big)^{n}\). Roots and reciprocals become powers first: \(\sqrt{3x+4}=(3x+4)^{\frac{1}{2}}\) and \(\dfrac{1}{(2x+3)^{3}}=(2x+3)^{-3}\). The chain rule then gives the derivative straight away, without expanding any brackets.
Once you have the derivative you can use it like any other: substitute a value of \(x\) to find a gradient, find an unknown constant, or find the equation of a tangent.
The chain rule (with \(y\) a function of \(u\), and \(u\) a function of \(x\)):
In function notation, for \(h(x)=f\big(g(x)\big)\):
Power of a function (the form used most often):
| Function | Write as | Derivative |
|---|---|---|
| \((5x-2)^{4}\) | already a power | \(4(5x-2)^{3}\times5=20(5x-2)^{3}\) |
| \(\sqrt{g(x)}\) | \(\big(g(x)\big)^{\frac{1}{2}}\) | \(\dfrac{1}{2}\big(g(x)\big)^{-\frac{1}{2}}\times g'(x)=\dfrac{g'(x)}{2\sqrt{g(x)}}\) |
| \(\dfrac{1}{\big(g(x)\big)^{n}}\) | \(\big(g(x)\big)^{-n}\) | \(-n\big(g(x)\big)^{-n-1}\times g'(x)\) |
| \(\dfrac{1}{\sqrt{g(x)}}\) | \(\big(g(x)\big)^{-\frac{1}{2}}\) | \(-\dfrac{1}{2}\big(g(x)\big)^{-\frac{3}{2}}\times g'(x)\) |
How to differentiate with the chain rule
- Rewrite roots and reciprocals as powers: \(\sqrt{\ \ }\) becomes the power \(\dfrac{1}{2}\) and \(\dfrac{1}{(\ \ )^{n}}\) becomes the power \(-n\).
- Identify the inner function (inside the bracket) and the outer function (the power).
- Differentiate the outside: bring the power down and subtract \(1\) from it, keeping the bracket exactly as it is.
- Multiply by the derivative of the inside.
- Simplify: multiply the numbers together and write negative or fractional powers back as fractions and roots, as the question does.
Using the derivative
- Gradient at a point: differentiate first, then substitute the value of \(x\) into \(f'(x)\).
- Unknown constant: substitute into \(f'(x)\), set it equal to the given gradient and solve. Check any condition such as \(k>0\).
- Tangent: find \(y_1\) from the original function and \(m\) from the derivative, then use \(y-y_1=m(x-x_1)\).
- Point with a given gradient: set the derivative equal to the gradient and solve for \(x\). If you square both sides, test each answer in the original equation, because squaring can create answers with the wrong sign.
Find \(f'\) and \(g'\), then apply the chain rule.
| \(f'(x)\) | \(=\) | \(4x^{3}\) |
| \(g'(x)\) | \(=\) | \(-3\) |
| \(h'(x)\) | \(=\) | \(f'\big(g(x)\big)\,g'(x)\) |
| \(\) | \(=\) | \(4(1-3x)^{3}\times(-3)\) |
| \(\) | \(=\) | \(-12(1-3x)^{3}\) |
| \(h'(1)\) | \(=\) | \(-12(1-3)^{3}\) |
| \(\) | \(=\) | \(-12\times(-8)\) |
| \(\) | \(=\) | \(96\) |
\(\therefore h'(1)=\boldsymbol{96}\)
Write as a power, then use the chain rule. The inside \(2x+5\) has derivative \(2\).
| \(f(x)\) | \(=\) | \((2x+5)^{-\frac{1}{2}}\) |
| \(f'(x)\) | \(=\) | \(-\dfrac{1}{2}(2x+5)^{-\frac{3}{2}}\times2\) |
| \(\) | \(=\) | \(-(2x+5)^{-\frac{3}{2}}\) |
| \(\) | \(=\) | \(-\dfrac{1}{(2x+5)\sqrt{2x+5}}\) |
| \(f'(2)\) | \(=\) | \(-\dfrac{1}{9\sqrt{9}}\) |
| \(\) | \(=\) | \(-\dfrac{1}{27}\) |
\(\therefore f'(2)=\boldsymbol{-\dfrac{1}{27}}\)
Subtracting \(1\) from \(-\dfrac{1}{2}\) gives \(-\dfrac{3}{2}\), and \((2x+5)^{\frac{3}{2}}=(2x+5)\sqrt{2x+5}\).
Let \(u=x^{2}+3\), so \(y=\dfrac{4}{u^{2}}=4u^{-2}\).
| \(\dfrac{du}{dx}\) | \(=\) | \(2x\) |
| \(\dfrac{dy}{du}\) | \(=\) | \(-8u^{-3}=-\dfrac{8}{u^{3}}\) |
| \(\dfrac{dy}{dx}\) | \(=\) | \(\dfrac{dy}{du}\times\dfrac{du}{dx}\) |
| \(\) | \(=\) | \(-\dfrac{8}{u^{3}}\times2x\) |
| \(\) | \(=\) | \(-\dfrac{16x}{u^{3}}\) |
Replace \(u\) with \(x^{2}+3\):
\(\therefore \dfrac{dy}{dx}=\boldsymbol{\dfrac{-16x}{(x^{2}+3)^{3}}}\)
Write as a power and use the chain rule. The inside \(x^{2}+9\) has derivative \(2x\).
| \(y\) | \(=\) | \((x^{2}+9)^{\frac{1}{2}}\) |
| \(\dfrac{dy}{dx}\) | \(=\) | \(\dfrac{1}{2}(x^{2}+9)^{-\frac{1}{2}}\times2x\) |
| \(\) | \(=\) | \(\dfrac{x}{\sqrt{x^{2}+9}}\) |
At \(x=4\):
| \(\dfrac{dy}{dx}\) | \(=\) | \(\dfrac{4}{\sqrt{16+9}}=\dfrac{4}{5}\) |
| \(y-5\) | \(=\) | \(\dfrac{4}{5}(x-4)\) |
| \(5y-25\) | \(=\) | \(4x-16\) |
\(\therefore\) the equation of the tangent is \(\boldsymbol{4x-5y+9=0}\)
Common pitfalls
Frequently asked questions
What is the chain rule in differentiation?
The chain rule differentiates a function of a function: \(\dfrac{dy}{dx}=\dfrac{dy}{du}\times\dfrac{du}{dx}\). Differentiate the outer function, keep the inside unchanged, then multiply by the derivative of the inside.
How do you know when to use the chain rule?
Use it whenever something more than plain \(x\) is raised to a power or sits under a root, such as \((2x+5)^{3}\), \(\sqrt{16-x^{2}}\) or \(\dfrac{1}{(x^{2}+1)^{2}}\).
How do you differentiate a square root using the chain rule?
Write \(\sqrt{g(x)}\) as \(\big(g(x)\big)^{\frac{1}{2}}\). Its derivative is \(\dfrac{1}{2}\big(g(x)\big)^{-\frac{1}{2}}\times g'(x)\), which simplifies to \(\dfrac{g'(x)}{2\sqrt{g(x)}}\). For example, \(\sqrt{3x+1}\) has derivative \(\dfrac{3}{2\sqrt{3x+1}}\).
How do you differentiate 1 over a bracket squared?
Write it with a negative power, then use the chain rule: \(\dfrac{1}{(4x-1)^{2}}=(4x-1)^{-2}\), so the derivative is \(-2(4x-1)^{-3}\times4=\dfrac{-8}{(4x-1)^{3}}\).
Is f'(g(x))g'(x) the same as dy/du × du/dx?
Yes. With \(u=g(x)\) and \(y=f(u)\), \(\dfrac{dy}{du}=f'\big(g(x)\big)\) and \(\dfrac{du}{dx}=g'(x)\). They are the same rule written in two notations.
Do you have to expand the brackets before differentiating?
No. Expanding \((2x^{2}+1)^{4}\) is slow and error-prone. The chain rule gives \(4(2x^{2}+1)^{3}\times4x=16x(2x^{2}+1)^{3}\) in one line, already factorised.