2.3 The Chain Rule
Differentiating a composition: the derivative of the outside evaluated at the inside, times the derivative of the inside.
We have techniques for differentiating basic functions and for sums, differences, products, quotients and constant multiples. But they do not let us differentiate compositions such as $h(x)=\sin\left(x^3\right)$ or $k(x)=\sqrt{3x^2+1}$. In this section we study the rule for the derivative of a composition of two or more functions.
The Chain and Power Rules Combined
To differentiate $y=\big(g(x)\big)^n$, think of $y=f(g(x))$ with $f(x)=x^n$, so that $f'\big(g(x)\big)=n\big(g(x)\big)^{n-1}$.
Exercises
- 1 $y=3u-6$, $u=2x^2$
- 2 $y=6u^3$, $u=7x-4$
- 3 $y=\sin u$, $u=5x-1$
- 4 $y=\cos u$, $u=-\dfrac{x}{8}$
- 5 $y=\tan u$, $u=9x+2$
II. Find $\dfrac{dy}{dx}$
- 1 $y=\ln(\sec x)$
- 2 $y=\csc(\pi x+1)$
- 3 $y=\cot^2x$
- 4 $y=\cos^3(\pi x)$
- 5 $y=\sqrt{\csc^{-1}x}$
- 6 $y=\dfrac{1}{\sin^2x}$
- 7 $y=\cos^{-1}\left(\sqrt{x}\right)$
- 8 $y=\sin(\cos 7x)$
- 9 $y=\cot^{-1}\sqrt{4-x^2}$
- 10 $y=\cot^3(4x+1)$
- 11 $y=e^{\sin 3x}$
- 12 $y=(3x-2)^6$
- 13 $y=\left(3x^2+1\right)^3$
III. Find the derivative
- 1 $y=\left(3x^2+3x-1\right)^4$
- 2 $y=(5-2x)^{-2}$
- 3 $f(x)=\sin^{-1}\left(x^2\right)$
- 4 $y=\left(2x^3-x^2+6x+1\right)^3$
- 5 $g(x)=(\tan x+\sin x)^{-3}$
- 6 $y=\left(\dfrac{x}{7}+\dfrac{7}{x}\right)^7$
- 7 $k(x)=\left(1+\tan^{-1}x\right)^3$
- 8 $h(x)=x^2\cos^4x$
- 9 $y=\sin^5x$
- 10 $y=\tan(\sec x)$
- 11 $f(x)=\dfrac{e^{-x}}{x}$
- 12 $y=e^{2x+5}$
- 13 $g(x)=\sec^{-1}\left(\dfrac1x\right)$
- 14 $f(x)=\cot^{-1}\sqrt{4-x^2}$
- 15 $f(x)=\sqrt{e^{2x}+2x}$
- 16 $f(x)=\dfrac{e^x-e^{-x}}{e^x+e^{-x}}$
- 17 $g(x)=x^2\ln 9x$
- 18 $h(x)=\ln\left(4x^3+x\right)$
- 19 $g(x)=4xe^{x^2-1}$
- 20 $g(x)=\log_7\left(6x^4+3\right)^5$
- 21 $f(x)=2^x\cdot\log_3 7^{x^2-4}$
IV–VI. More practice with the chain rule
- 1 $y=\sqrt{5x^2+3}$
- 2 $y=\dfrac{4}{\sqrt[3]{2x-7}}$
- 3 $y=\sin^2(3x)$
- 4 $y=e^{\cos 2x}$
- 5 $y=\ln\left(x^2+4x+5\right)$
- 6 $y=\sqrt{\tan 4x}$
- 7 $y=\ln\left(\cos\left(x^2\right)\right)$
- 8 $y=e^{\sqrt{x^2+1}}$
- 1 $y=x^3(2x+1)^4$
- 2 $y=\dfrac{x}{\sqrt{x^2+1}}$
- 3 $y=e^{-2x}\sin 3x$
- 4 $y=\dfrac{(x-1)^2}{(x+2)^3}$
- 5 $y=x\ln\left(x^2+1\right)$
| $x$ | $f(x)$ | $g(x)$ | $f'(x)$ | $g'(x)$ |
|---|---|---|---|---|
| $1$ | $3$ | $2$ | $-1$ | $4$ |
| $2$ | $1$ | $3$ | $5$ | $-2$ |
| $3$ | $2$ | $1$ | $7$ | $6$ |
- 1 $h(x)=f\big(g(x)\big)$. Find $h'(1)$.
- 2 $k(x)=g\big(f(x)\big)$. Find $k'(1)$.
- 3 $p(x)=\big(f(x)\big)^3$. Find $p'(2)$.
- 4 $r(x)=f\big(f(x)\big)$. Find $r'(2)$.
- 5 $s(x)=g\left(x^2\right)$. Find $s'(1)$.
- 6 Ripple. A stone dropped into a pond sends out a circular ripple whose radius grows as $r(t)=40t$ cm, $t$ in seconds. Find the rate at which the enclosed area $A=\pi r^2$ is increasing when $t=2$ s.
- 7 Compound interest. OMR 5000 is invested at $6\%$ per year compounded monthly, so the balance after $t$ years is $B(t)=5000\left(1+\dfrac{0.06}{12}\right)^{12t}$. Find $B'(t)$ and the rate at which the balance is growing after $5$ years.
- 8 Conceptual. A student writes $\dfrac{d}{dx}\left[\ln\left(x^2+1\right)\right]=\dfrac{1}{x^2+1}$ and $\dfrac{d}{dx}\big[f(2x)\big]=f'(2x)$. What is the common mistake, and what are the correct derivatives?
Research question. Does the chain rule $\frac{dF}{dt}=\frac{dF}{ds}\cdot\frac{ds}{dt}$ correctly predict fuel use per hour on a car trip?
Why it matters. Vehicle engineers and logistics companies combine linked rates like this to plan fuel, charging stops and delivery routes.
What to do.
- On a trip (e.g. Nizwa to Muscat, about 160 km) read the trip computer, or use sample data: fuel use 7.5 L per 100 km and average speed 110 km/h.
- Compute $\frac{dF}{ds}$ in L/km and $\frac{ds}{dt}$ in km/h.
- Use the chain rule to predict $\frac{dF}{dt}$ in L/h.
- Check with measurements: total fuel used divided by total driving time (sample: 12 L in 1.5 h, which is 8 L/h).
Tools: Calculator, car trip computer or sample data
Hand in: A half-page note: the predicted and measured rates, the units at each step, and one reason they differ.
Going further. Anywhere: repeat for walking, where calories per km times km per hour gives calories per hour.
🧪 Self-check quiz
Q1. $\dfrac{d}{dx}\left[\sin\left(x^3\right)\right]$ is:
Q2. For $y=(3x-2)^6$, $\dfrac{dy}{dx}$ is:
Q3. If $y=f(u)$ and $u=g(x)$ with $\dfrac{dy}{du}=4$ and $\dfrac{du}{dx}=-3$ at a point, then $\dfrac{dy}{dx}$ there is:
Q4. $\dfrac{d}{dx}\left[e^{2x+5}\right]$ is:
Q5. Suppose $g(1)=2$, $g'(1)=4$, $f(2)=7$ and $f'(2)=-1$. If $h(x)=f\big(g(x)\big)$, then $h'(1)$ is: