Chain, product and quotient rules

Most functions are built from simpler ones: multiplied together, divided, or one inside another. The chain, product and quotient rules let you differentiate them, using the standard derivatives of powers, eˣ, ln x and the trig functions.

Key facts

  • Chain rule: dy/dx = dy/du × du/dx. For example, d/dx (3x + 1)^5 = 15(3x + 1)^4.
  • Product rule: (uv)′ = u′v + uv′.
  • Quotient rule: (u/v)′ = (vu′ − uv′)/(v^2).
  • d/dx e^(kx) = ke^(kx) and d/dx ln x = 1/x. So d/dx ln(f(x)) = (f′(x))/(f(x)).
  • d/dx sin(kx) = k cos(kx), d/dx cos(kx) = −k sin(kx), d/dx tan x = sec^2 x (x in radians).
  • Implicit: differentiate every term with respect to x, using d/dx(y^2) = 2y dy/dx. Parametric: dy/dx = (dy/dt)/(dx/dt).

Worked examples

Example 1

Differentiate y = (2x − 3)^4.

  1. Let u = 2x − 3. Then y = u⁴.
  2. Differentiate each part. dy/du = 4u^3, du/dx = 2
  3. Multiply. dy/dx = 4(2x − 3)^3 × 2 = 8(2x − 3)^3

Answer: 8(2x − 3)³

Example 2

Differentiate y = x^2 e^(3x) and find the gradient at x = 1.

  1. Let u = x^2 and v = e^(3x). u′ = 2x, v′ = 3e^(3x)
  2. Use the product rule, u′v + uv′. dy/dx = 2x e^(3x) + 3x^2 e^(3x) = e^(3x)(2x + 3x^2)
  3. At x = 1: 5e^3 ≈ 100.43

Answer: 5e³ ≈ 100.43

Example 3

Find dy/dx for y = (ln x)/x and the x-coordinate of its stationary point.

  1. Let u = ln x and v = x. u′ = 1/x, v′ = 1
  2. Use the quotient rule, (vu′ − uv′)/(v^2). dy/dx = (x × 1/x − ln x)/(x^2) = (1 − ln x)/(x^2)
  3. Set dy/dx = 0. Then ln x = 1. x = e

Answer: dy/dx = (1 − ln x)/x²; stationary at x = e

Example 4

Differentiate y = sin(3x).

  1. Differentiate the outside and multiply by the derivative of the inside. cos(3x) × 3 = 3cos(3x)

Answer: dy/dx = 3cos(3x)