G4 - Chain rule and composite derivatives

G4 - Chain rule and composite derivatives

Identify the inner and outer operations of a composite function, track every layer of change and combine the chain rule with product and quotient rules. Keep the function's domain alongside the algebra.

The two rates in a composite function

Why does differentiating (2x−3)5(2x-3)^5 produce a factor of 22? Imagine increasing xx by 0.010.01: the inner quantity 2x−32x-3 increases by 0.020.02. The outer fifth power responds to that inner change, not directly to the original one.

You already know

The derivative of u5u^5 with respect to uu is 5u45u^4, and a composite g(f(x))g(f(x)) applies ff first. The power rule is not in the formula booklet: learn it.

If u=g(x)u=g(x), small changes satisfy Δu≈g′(x)Δx\Delta u\approx g'(x)\Delta x. If y=f(u)y=f(u), then Δy≈f′(u)Δu\Delta y\approx f'(u)\Delta u. Combining these local linear changes gives the chain rule. It applies when the inner derivative exists at xx and the outer derivative exists at the resulting uu.

Chain rule

If u=g(x)u=g(x) and y=f(u)y=f(u), then

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

Not in the formula booklet: learn it.

The derivative of the outer function is evaluated at the inner function. For example, f(x)=x2f(x)=x^2, g(x)=exg(x)=e^x give gf(x)=ex2gf(x)=e^{x^2}, with derivative 2xex22xe^{x^2}. In the opposite order, fg(x)=e2xfg(x)=e^{2x}, with derivative 2e2x2e^{2x}. The exponential derivative and these composite results are recall, not supplied.

Worked example 1: a linear inner function

Question. Find dy/dxdy/dx for y=(2x−3)5y=(2x-3)^5.

Plan. Differentiate the fifth power with respect to its input, then multiply by the input's derivative.

u=2x−3inner functiondydu=5u4,dudx=2two ratesdydx=5(2x−3)4×2chain rule=10(2x−3)4simplify\begin{aligned} u&=2x-3 && \text{inner function}\\ \frac{dy}{du}&=5u^4,\quad\frac{du}{dx}=2 && \text{two rates}\\ \frac{dy}{dx}&=5(2x-3)^4\times2 && \text{chain rule}\\ &=10(2x-3)^4 && \text{simplify} \end{aligned}

Why multiply by 22? The inner input changes twice as quickly as xx.

Answer. dy/dx=10(2x−3)4dy/dx=10(2x-3)^4, for every real xx.

Check. At x=2x=2, the inner value is 11, so the outer rate 55 times the inner rate 22 gives 1010.

Change only the inner function from linear to quadratic. Its rate now depends on xx, so the extra factor is no longer constant.

Worked example 2: a quadratic inner function

Question. Find dy/dxdy/dx for y=(2x2−3)5y=(2x^2-3)^5, in factorised form.

Plan. Keep the inner quadratic intact while differentiating the outer power.

u=2x2−3inner functiondydu=5u4,dudx=4xdifferentiate each layerdydx=5(2x2−3)4(4x)multiply the rates=20x(2x2−3)4factorised answer\begin{aligned} u&=2x^2-3 && \text{inner function}\\ \frac{dy}{du}&=5u^4,\quad\frac{du}{dx}=4x && \text{differentiate each layer}\\ \frac{dy}{dx}&=5(2x^2-3)^4(4x) && \text{multiply the rates}\\ &=20x(2x^2-3)^4 && \text{factorised answer} \end{aligned}

Why leave the bracket intact? The power rule applies to that whole input; expanding creates unnecessary terms.

Answer. dy/dx=20x(2x2−3)4dy/dx=20x(2x^2-3)^4.

Check. At x=0x=0, the derivative is 00. The original function is even, so its graph has reflection symmetry about the vertical axis, consistent with that horizontal tangent.

A zero inner derivative is allowed in the chain rule: you multiply by zero. Dividing by that derivative would be a different operation with different conditions.

Watch out

Wrong: [(2x2−3)5]′=5(2x2−3)4[(2x^2-3)^5]'=5(2x^2-3)^4. This is only the rate with respect to the bracket. Right: multiply by 4x4x, giving 20x(2x2−3)420x(2x^2-3)^4.

Change only the quadratic's coefficient in example 2. Write both layer derivatives before multiplying if that helps you keep track.

Nested powers, roots and logarithms

For several layers, work from the outside in and include a derivative factor from each layer.

In [ln⁡(1+x2)]3[\ln(1+x^2)]^3, the layers are the cube, logarithm and quadratic. A logarithm requires a positive argument. A square root allows a zero argument as a function value, but its usual finite derivative needs a strictly positive argument.

Composite powers and logarithms

Where the functions and derivatives exist,

ddx[u(x)]n=n[u(x)]n−1u′(x)\frac{d}{dx}[u(x)]^n=n[u(x)]^{n-1}u'(x)

For u(x)>0u(x)>0,

ddxln⁡u(x)=u′(x)u(x)\frac{d}{dx}\ln u(x)=\frac{u'(x)}{u(x)}

For negative or fractional powers, check roots and denominators before applying the rule. Not in the formula booklet: learn it.

For example, y=5−2xy=\sqrt{5-2x} is defined on x≤5/2x\le5/2, but y′=−1/5−2xy'=-1/\sqrt{5-2x} is finite only on x<5/2x<5/2. At the endpoint the slope becomes unbounded. This root derivative follows from the recalled power and chain rules; it is not supplied.

Worked example 3: three layers with no exclusions

Question. Differentiate y=[ln⁡(1+x2)]3y=[\ln(1+x^2)]^3, stating its real domain.

Plan. Differentiate the cube, logarithm and quadratic in that order.

y′=3[ln⁡(1+x2)]211+x2(2x)one factor per layer=6x[ln⁡(1+x2)]21+x2simplify1+x2>0all real inputs allowed\begin{aligned} y'&=3[\ln(1+x^2)]^2\frac1{1+x^2}(2x) && \text{one factor per layer}\\ &=\frac{6x[\ln(1+x^2)]^2}{1+x^2} && \text{simplify}\\ 1+x^2&>0 && \text{all real inputs allowed} \end{aligned}

Why keep the logarithm squared? It is the input to the outer cube; differentiating the cube reduces only that outer power.

Answer. y′=6x[ln⁡(1+x2)]2/(1+x2)y'=6x[\ln(1+x^2)]^2/(1+x^2), for all real xx.

Check. At x=0x=0, the derivative is 00. No division by the zero value ln⁡1=0\ln1=0 occurs.

Change only the logarithm's inner quadratic to 4−x24-x^2. The differentiation steps are the same, but the domain is now restricted.

Worked example 4: a restricted logarithm

Question. Differentiate y=[ln⁡(4−x2)]3y=[\ln(4-x^2)]^3, stating where the derivative applies.

Plan. Find the logarithm's domain, then multiply the three layer rates.

4−x2>0⟹−2<x<2logarithm domainy′=3[ln⁡(4−x2)]214−x2(−2x)chain rule=−6x[ln⁡(4−x2)]24−x2simplify\begin{aligned} 4-x^2&>0\quad\Longrightarrow\quad-2<x<2 && \text{logarithm domain}\\ y'&=3[\ln(4-x^2)]^2\frac1{4-x^2}(-2x) && \text{chain rule}\\ &=-\frac{6x[\ln(4-x^2)]^2}{4-x^2} && \text{simplify} \end{aligned}

Why use the original logarithm to find the domain? The algebraic derivative cannot make a logarithm of a nonpositive number valid.

Answer. y′=−6x[ln⁡(4−x2)]2/(4−x2)y'=-6x[\ln(4-x^2)]^2/(4-x^2), for −2<x<2-2<x<2.

Check. At x=3x=\sqrt3, the logarithm is ln⁡1=0\ln1=0, and the derivative is 00; the denominator is 11, so this is valid.

The outer cube can take a negative logarithm value. Only the logarithm's argument must be positive; its value need not be positive.

Watch out

Wrong: “The domain requires ln⁡(4−x2)>0\ln(4-x^2)>0.” That needlessly excludes valid logarithm values. Right: require 4−x2>04-x^2>0, giving −2<x<2-2<x<2.

Change only the constant inside the logarithm. Check the new endpoints before differentiating.

Continue this lesson.

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

Create free account