9E

The chain rule

Composite functions, the chain rule dy/dx = dy/du × du/dx, powers of a linear function, and tangents using the chain rule.

You could differentiate $(2x + 1)^{10}$ by expanding it into eleven terms first, but nobody wants to. The chain rule handles any "function of a function" directly. It is the most used rule in calculus, and in Year 12 you will run it backwards to integrate.

Inside and outside

In $y = (x^2 + 1)^5$, two things happen to $x$ in turn. First the inside function makes $u = x^2 + 1$. Then the outside function makes $y = u^5$. A function built this way is called a composite function.

The chain rule

Think of gears. If $y$ changes $5$ times as fast as $u$, and $u$ changes $3$ times as fast as $x$, then $y$ changes $5 \times 3 = 15$ times as fast as $x$. Rates of change multiply.

Chain rule
$$\frac{dy}{dx} = \frac{dy}{du} \times \frac{du}{dx}$$

In words: differentiate the outside (leaving the inside alone), then multiply by the derivative of the inside. The $du$'s look as if they cancel, which is a good way to remember it, although it isn't a proof.

Example 1●

Differentiate $y = (x^2 - 3x)^4$.

Let $u = x^2 - 3x$, so $y = u^4$.
Name the inside function u, so the outside is u⁴.
$\dfrac{dy}{du} = 4u^3$ and $\dfrac{du}{dx} = 2x - 3$.
Differentiate each one separately.
$\dfrac{dy}{dx} = 4(x^2 - 3x)^3(2x - 3)$
Multiply, then put the inside back in place of u.

Powers of a linear function

When the inside is linear, $u = ax + b$, its derivative is just the number $a$. That gives a shortcut you can do in your head.

Power of a linear function
$$\frac{d}{dx}(ax + b)^n = an(ax + b)^{n-1}$$
Example 2●

Differentiate (a) $y = (4x - 1)^5$ (b) $y = (2 - 3x)^6$.

(a) $\dfrac{dy}{dx} = 5(4x - 1)^4 \times 4 = 20(4x - 1)^4$
Bring down the 5, reduce the index, then multiply by 4, the derivative of the inside.
(b) $\dfrac{dy}{dx} = 6(2 - 3x)^5 \times (-3) = -18(2 - 3x)^5$
The inside's derivative is −3. Don't lose the minus sign.

Using the chain rule for tangents

Example 3●●●

Find the equation of the tangent to $y = (3x - 5)^3$ at the point where $x = 2$.

$y = (6 - 5)^3 = 1$, so the point is $(2, 1)$.
The point first.
$\dfrac{dy}{dx} = 9(3x - 5)^2$, which is $9(1)^2 = 9$ at $x = 2$.
Chain rule with a linear inside: 3 × 3 = 9.
$y - 1 = 9(x - 2)$, so $y = 9x - 17$.

Your turn

Differentiate $y = (x^3 + 2x)^5$.

Show the working

Inside $u = x^3 + 2x$ with $\dfrac{du}{dx} = 3x^2 + 2$. Outside $y = u^5$ with $\dfrac{dy}{du} = 5u^4$. So $\dfrac{dy}{dx} = 5(x^3 + 2x)^4(3x^2 + 2)$.

Flashcards
Chain rule
$\dfrac{dy}{dx} = \dfrac{dy}{du} \times \dfrac{du}{dx}$
$dfrac{d}{dx}(ax + b)^n$
$an(ax + b)^{n-1}$
Practice
  1. $\dfrac{d}{dx}(3x - 1)^4 =$

  2. $y = (2x + 1)^3$. Find $\dfrac{dy}{dx}$ at $x = 0$.

  3. For $y = (4x^3 - x)^7$, the inside function $u$ is:

  4. $\dfrac{d}{dx}(x^2 + 1)^5 =$

  5. $y = (5 - x)^4$. Find $\dfrac{dy}{dx}$ at $x = 4$.

  6. $y = (x^2 - 3)^3$. Find $\dfrac{dy}{dx}$ at $x = 2$.

  7. Find the $y$-intercept of the tangent to $y = (2x - 3)^3$ at $x = 2$.

  8. Find all $x$ where $y = (x^2 + 2x)^2$ has a horizontal tangent. Separate them with &.

  9. Exam style: $y = (ax + 1)^3$ has gradient $12$ at $x = 0$. Find $a$.

  10. Exam style: $y = (1 - 2x)^5$. Find $\dfrac{d^2y}{dx^2}$ at $x = 1$.

Formula sheet