9B - The chain rule

9B - The chain rule

How can you differentiate a bracket raised to a power without expanding it? You will separate an inner function from an outer function, then use the chain rule to differentiate powers, trigonometric functions and exponentials of simple expressions.

A function of a function

To find the gradient of y=(3x−2)4y=(3x-2)^4, must you multiply out four brackets first?

Think about how you calculate its value. First calculate 3x−23x-2; then raise that answer to the fourth power. At x=1x=1, these steps give 11, then 11. At x=2x=2, they give 44, then 256256. The fourth power acts on the whole result of the first calculation.

Composite function

A composite function applies one function to the output of another. If u=g(x)u=g(x) and y=f(u)y=f(u), then y=f(g(x))y=f(g(x)). We call gg the inner function and ff the outer function.

Read the operations from the input outwards. The outer function is the last operation performed.

ExpressionInner function uuOuter function of uu
(3x−2)4(3x-2)^43x−23x-2u4u^4
5−x\sqrt{5-x}5−x5-xu\sqrt{u}
sin⁡(x2)\sin(x^2)x2x^2sin⁡u\sin u
e1−x2e^{1-x^2}1−x21-x^2eue^u

The distinction affects differentiation. In sin⁡(x2)\sin(x^2), the sine acts on x2x^2. In (sin⁡x)2(\sin x)^2, squaring acts on sin⁡x\sin x. They have different inner and outer functions. Likewise, (3x−2)4(3x-2)^4 is different from 3x4−23x^4-2, where the fourth power applies only to xx.

Key idea

Identify the last operation first. Temporarily replacing the inner expression by uu makes the outer function easier to recognise.

Use that distinction in the next check.

Applying the chain rule

The outer function changes because its input changes, so both rates contribute to the derivative.

For y=(3x−2)4y=(3x-2)^4, put u=3x−2u=3x-2. At x=1x=1, we have u=1u=1. Near this point, uu changes three times as fast as xx, while u4u^4 changes four times as fast as uu. The resulting rate is 4×3=124\times3=12 units of yy per unit of xx.

Chain rule

If u=g(x)u=g(x) is differentiable at the point considered and y=f(u)y=f(u) is differentiable at the corresponding value of uu, then

dydx=dydududx=f′(g(x))g′(x).\frac{dy}{dx}=\frac{dy}{du}\frac{du}{dx} =f'(g(x))g'(x).

Differentiate the outer function, keeping its inner expression, then multiply by the derivative of the inner function.

Not on the formulae sheet: learn it.

For a power, this gives ddx[g(x)]n=n[g(x)]n−1g′(x)\frac{d}{dx}[g(x)]^n=n[g(x)]^{n-1}g'(x), wherever the functions involved have the required real derivatives. The power falls by one; the inner expression itself stays intact.

Worked example 1: a power of a bracket

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

Plan. Use u=3x−2u=3x-2, differentiate u4u^4, then include the rate of change of uu.

u=3x−2dudx=3y=u4dydu=4u3dydx=4u3×3multiply the two rates=12(3x−2)3replace u\begin{aligned} u&=3x-2 &\frac{du}{dx}&=3\\ y&=u^4 &\frac{dy}{du}&=4u^3\\ \frac{dy}{dx}&=4u^3\times3 &&\text{multiply the two rates}\\ &=12(3x-2)^3 &&\text{replace }u \end{aligned}

Answer. dydx=12(3x−2)3\frac{dy}{dx}=12(3x-2)^3, for all real xx.

Check. Expanding the original gives 81x4−216x3+216x2−96x+1681x^4-216x^3+216x^2-96x+16. Its derivative is 324x3−648x2+432x−96324x^3-648x^2+432x-96, which is the expansion of 12(3x−2)312(3x-2)^3.

Keep the same inner expression but change the outer power to a square root. The chain-rule steps stay the same; the real domain now matters.

Worked example 2: a square root of a bracket

Question. Differentiate y=3x−2y=\sqrt{3x-2} and state where the derivative formula applies.

Plan. Write the root as a power of u=3x−2u=3x-2.

y=u1/2dydu=12u−1/2dydx=12(3x−2)−1/2×3include the inner derivative=323x−2write with a positive power\begin{aligned} y&=u^{1/2} &\frac{dy}{du}&=\tfrac12u^{-1/2}\\ \frac{dy}{dx}&=\tfrac12(3x-2)^{-1/2}\times3 &&\text{include the inner derivative}\\ &=\frac{3}{2\sqrt{3x-2}} &&\text{write with a positive power} \end{aligned}

The function is real for x≥23x\ge\frac23. Its displayed derivative is finite only for x>23x>\frac23; it does not give a finite derivative at the endpoint.

Answer. dydx=323x−2\frac{dy}{dx}=\frac{3}{2\sqrt{3x-2}}, for x>23x>\frac23.

Check. At x=1x=1, the formula gives 1.51.5. Using the original function, the gradient between x=0.9999x=0.9999 and x=1.0001x=1.0001 is approximately 1.500000021.50000002, consistent with this value.

The same rule also handles negative powers, provided the original denominator is nonzero.

Watch out

ddx(3x−2)4=4(3x−2)3\frac{d}{dx}(3x-2)^4=4(3x-2)^3 misses the factor 33. The outer derivative is only one of the two rates.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account