The chain rule

Differentiate a function inside a function by multiplying the stretches.

B. CalculusAbout 35 minutes

Most functions in physics have a function inside a function: \(\sin(\omega t)\), \(e^{-kt}\), \(\sqrt{1 - v^2/c^2}\). The chain rule handles all of these, and the idea behind it is simple. Stretches multiply.

A small nudge in x gets stretched into a nudge in u, which gets stretched again into a nudge in y.
  • Make the nudge small, and compare "Together" with the exact rate at the end of the readout.
  • Move \(x\) along. The amber band gets wider and narrower. That's the derivative changing.
  • Choose the second pair: \(u = 2x + 1\) always stretches by exactly 2. Each line has its own scale, so read the stretch from the × numbers, not the lengths of the bars.

The idea

If \(u\) changes 3 times as fast as \(x\), and \(y\) changes 2 times as fast as \(u\), then \(y\) changes 6 times as fast as \(x\):

\[ \frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx} \]

In practice: differentiate the outside function, leaving the inside alone, then multiply by the derivative of the inside.

Worked example

Differentiate this. The inside is \(u = x^2 + 1\), and the outside is \(u^3\).

\[ y = (x^2 + 1)^3 \]

The derivative of the outside, with the inside left alone:

\[ \frac{dy}{du} = 3(x^2 + 1)^2 \]

The derivative of the inside:

\[ \frac{du}{dx} = 2x \]

Multiply them.

\[ \frac{dy}{dx} = 6x\,(x^2 + 1)^2 \]

An oscillator's position is \(x = A\sin(\omega t)\). The chain rule brings out an \(\omega\) each time you differentiate: velocity \(A\omega\cos(\omega t)\) and acceleration \(-A\omega^2\sin(\omega t)\). Notice that the acceleration is \(-\omega^2 x\). You'll meet that again with springs.

Problems

Differentiate \((3x + 1)^5\).

Answer

\(5(3x + 1)^4 \times 3 = 15(3x + 1)^4\)

Differentiate \(\sin(x^2)\).

Answer

\(\cos(x^2) \times 2x = 2x\cos(x^2)\)

Differentiate \(e^{-2x}\).

Answer

\(-2e^{-2x}\)

Differentiate \(\sqrt{1 + x^2}\).

Answer

\(\frac{1}{2}(1 + x^2)^{-1/2} \times 2x = \dfrac{x}{\sqrt{1 + x^2}}\)

Learn more

An unhandled error has occurred. Reload 🗙