CSCA Mathematics · Calculus & Statistics · Section 3 of 12

Chain Rule

The Chain Rule is used to differentiate composite functions — functions inside other functions.

Formula: If y = f(g(x)), then dy/dx = f'(g(x)) · g'(x).

In words: derivative of the outer function evaluated at the inner function, times the derivative of the inner function.

Leibniz Notation: If y = f(u) and u = g(x), then dy/dx = (dy/du) · (du/dx).

Examples:

  • y = (3x + 1)⁵. Outer: u⁵, inner: 3x+1. dy/dx = 5(3x+1)⁴ · 3 = 15(3x+1)⁴.
  • y = sin(x²). Outer: sin(u), inner: x². dy/dx = cos(x²) · 2x.
  • y = e^(2x+3). Outer: eᵘ, inner: 2x+3. dy/dx = e^(2x+3) · 2.
  • y = ln(x²+1). Outer: ln(u), inner: x²+1. dy/dx = 1/(x²+1) · 2x = 2x/(x²+1).

Recognising When to Use It
Any time you see a function "inside" another function, you need the chain rule. The key indicator is something like (expression)ⁿ, sin(expression), e^(expression), or ln(expression) where the expression is not just x.

Chinese senior-high textbooks (人教版 选择性必修二, 简单复合函数的导数) ask only for composites of the form y = f(ax + b), such as (3x + 1)⁵, e^(2x+3) or sin 2x: then y' = a · f'(ax + b). Inner functions such as x² (sin(x²), ln(x² + 1)) go a little beyond that but follow the same rule. Combine the chain rule with the product and quotient rules when needed.

Derivatives of the inverse trigonometric functions. These are beyond the CSCA syllabus and the Chinese senior-high textbooks, which do not differentiate arcsin, arccos or arctan; read this as enrichment only.

  • d/dx[arcsin x] = 1/√(1 − x²)
  • d/dx[arccos x] = −1/√(1 − x²) — the same as arcsin but negative, which is why the two are so often confused
  • d/dx[arctan x] = 1/(1 + x²) — note the PLUS and the absence of a square root

With a chain rule inside, differentiate the inner function as usual: d/dx[arcsin(2x)] = 2/√(1 − 4x²). Reading these backwards also gives you two standard integrals, ∫1/√(1 − x²) dx = arcsin x + C and ∫1/(1 + x²) dx = arctan x + C.

Key takeaway: Chain Rule: d/dx[f(g(x))] = f'(g(x)) · g'(x). Differentiate the outer, keep the inner, then multiply by the derivative of the inner.

Key Formulas

d/dx[f(g(x))] = f'(g(x)) · g'(x)
Leibniz: dy/dx = (dy/du)(du/dx)

Worked Example 1

Example 1: Differentiate y = (2x - 5)⁷.

dy/dx = 7(2x-5)⁶ · 2 = 14(2x-5)⁶.

Worked Example 2

Example 2: Differentiate y = cos(3x²).

dy/dx = -sin(3x²) · 6x = -6x·sin(3x²).

Worked Example 3

Example 3: Differentiate y = e^(x²+1).

dy/dx = e^(x²+1) · 2x = 2x·e^(x²+1).

Exam Tips

When you see a composite function, explicitly identify the outer and inner functions before differentiating.

Watch for nested chain rules, like d/dx[sin²(3x)] = 2sin(3x)·cos(3x)·3 = 6sin(3x)cos(3x) = 3sin(6x).

Common Mistakes

Forgetting to multiply by the inner derivative: d/dx[(3x+1)⁵] is 5(3x+1)⁴ × 3, not just 5(3x+1)⁴.

Applying chain rule when not needed: d/dx[x⁵] = 5x⁴, no chain rule needed since the inner function is just x.

Try This Yourself

Find dy/dx if y = √(4x + 1).

Show the answer

y = (4x+1)^(1/2). dy/dx = ½(4x+1)^(-1/2) · 4 = 2/√(4x+1).

Practise It