NebulaNumerica

The chain rule – exercises with solutions

Differentiate a function of a function: the derivative of the outside, with the inside kept as it is, times the derivative of the inside.

How to solve it

When a function has another function inside it, like cos(x squared) with x squared inside the cosine, use the chain rule: differentiate the outer function and leave the inside as it is, then multiply by the derivative of the inside. The step people forget is that last multiplication.

Worked example

Differentiate

the derivative with respect to x of 2 cosine of x squared
  1. Step 1: The outer function is 2cos(u), with u = x squared inside. Its derivative is −2sin(u), so we get −2sin(x squared) with the inside left as it is, times the derivative of the inside, x squared.

    minus 2 the derivative with respect to x of x squared times sine of x squared
  2. Step 2: The derivative of the inside, x squared, is 2x.

    minus 2 times 2 x times sine of x squared
  3. Step 3: Multiply the numbers: −2 · 2x = −4x.

    minus 4 x times sine of x squared

Typical mistakes

  • Differentiating the outer function is only half of it: multiply by the derivative of the inside too. sin(3x squared) becomes cos(3x squared) · 6x.
  • The inside stays as it is in the outer function; its derivative goes in front as a factor. sin(3x squared) becomes 6x · cos(3x squared), not cos(6x).

Practise this kindRead: The chain rule