Euler Hall — free maths guides

Differentiate a composition with the chain rule

Identify the outside and inside of a composition. The idea in plain words, a worked example, and a check with the answers shown — part of the free Calculus I guides.

The derivative of a composition multiplies

A compositionf(g(x))f(g(x)) has an outside function and an inside one. Its derivative multiplies the two rates:

ddxf(g(x))=f′(g(x))⋅g′(x).\frac{d}{dx}f(g(x)) = f'(g(x))\cdot g'(x).

Read it as a chain of rates. A change of one unit inxx producesg′g' units of change ingg; each of those producesf′f' units of change inff; so one unit ofxx producesg′⋅f′g'\cdot f' units offf.

Two things are easy to get wrong. The outer derivative is evaluated at the INNER valueg(x)g(x), not atxx. And the inner derivative is a multiplier, not an addend.

The rule is what makes every other rule applicable to functions of functions — which is almost every function an exam asks about.

Why the rates multiply

Write the difference quotient and multiply by a bridge:

The second factor is the inner difference quotient and tends tog′(x)g'(x). The first is the outer quotient evaluated at points nearg(x)g(x), and tends tof′(g(x))f'(g(x)) — providedgg is continuous nearxx, which differentiability guarantees.

The bridge is the point. Splitting the quotient at the intermediate quantity is what makes the two rates separable, and it is why the outer derivative must be taken at the inner VALUE.

That argument also shows why the rule needs continuity ofgg: ifg(x+h)−g(x)g(x+h) - g(x) were zero for arbitrarily smallhh, the bridge would divide by zero.

Worked example: three composites, one method

A square of a linear function.ddx(3x+5)2\dfrac{d}{dx}(3x+5)^2.

Outside: square. Inside:3x+53x+5.

2(3x+5)⋅3=6(3x+5)=18x+30.2(3x+5)\cdot3 = 6(3x+5) = 18x + 30.

Check by expanding:(3x+5)2=9x2+30x+25(3x+5)^2 = 9x^2+30x+25, whose derivative is18x+3018x+30. Agreement.

A fifth power.ddx(x3−1)5=5(x3−1)4⋅3x2=15x2(x3−1)4\dfrac{d}{dx}(x^3 - 1)^5 = 5(x^3-1)^4\cdot3x^2 = 15x^2(x^3-1)^4.

A nested cosine.ddxcos⁡(x2)=−sin⁡(x2)⋅2x=−2xsin⁡(x2)\dfrac{d}{dx}\cos(x^2) = -\sin(x^2)\cdot2x = -2x\sin(x^2).

What went wrong in a common attempt. Differentiatingcos⁡(x2)\cos(x^2) as−2xsin⁡(2x)-2x\sin(2x) uses the inner derivative TWICE — once as the multiplier and once inside the argument. The outer derivative is taken atx2x^2, not at2x2x.

By the end you can
  • Identify the outside and inside of a composition
  • Apply the chain rule as a product of two rates
  • Evaluate the outer derivative at the inner value
  • Check a chain-rule result against an expansion where possible
Check yourself
  1. 1. Differentiate(5x−2)3(5x-2)^3.
  2. 2. Differentiatesin⁡(3x)\sin(3x).
  3. 3. Differentiatex2+1\sqrt{x^2+1} (write it as a power).
Answers
  1. 1.3(5x−2)2⋅5=15(5x−2)23(5x-2)^2\cdot5 = 15(5x-2)^2.
  2. 2.3cos⁡(3x)3\cos(3x).
  3. 3.12(x2+1)−1/2⋅2x=xx2+1\tfrac12(x^2+1)^{-1/2}\cdot2x = \dfrac{x}{\sqrt{x^2+1}}.
Work out where to start — free, no accountAnswer six real questions — free, no account