Product, quotient and chain rules

Three rules let you differentiate products, fractions and functions inside functions.

Practise this lesson free (7 questions)

More tools

Chain rule

For a function of a function, y = f(g(x)):
dydx = f'(g(x)) ร— g'(x)
'Differentiate the outside, keep the inside, multiply by the derivative of the inside.'
y = (2x + 1)5: dydx = 5(2x + 1)4 ร— 2 = 10(2x + 1)4

Product rule

y = uv: dydx = udvdx + vdudx
y = x2 sin x: dydx = x2 cos x + 2x sin x

Quotient rule

y = uv: dydx = (vdu<span>dx โˆ’ udvdx)/v2
This one is on the formula sheet.
y = exx: dydx = (xex โˆ’ ex)x2
Worked example

Find the gradient of y = (x2 + 1)(x โˆ’ 1) at x = 2.

  1. u = x2 + 1, u' = 2x; v = x โˆ’ 1, v' = 1
  2. dydx = ((x โˆ’ 1)(2x) โˆ’ (x2 + 1))(x โˆ’ 1)2
  3. At x = 2: (1 ร— 4 โˆ’ 5)1

Answer: โˆ’1

Key idea

Chain: outside derivative ร— inside derivative. Product: uv' + vu'. Quotient: (vu' โˆ’ uv')v2.

Quick check

Try two quick questions

See if it has sunk in. Answers are marked straight away.

Extra practice

2 more questions

Try each one, then tap to check.

  1. Differentiate y = x3 cos x

    1. 3x2 cos x + x3 sin x
    2. x3 sin x โˆ’ 3x2 cos x
    3. โˆ’3x2 sin x
    4. 3x2 cos x โˆ’ x3 sin x
    Show the answer

    Answer: 3x2 cos x โˆ’ x3 sin x

    u = x3, v = cos x: uโ€ฒv + uvโ€ฒ = 3x2 cos x โˆ’ x3 sin x.

  2. Differentiate y = sin xx

    1. cos xx2
    2. cos x
    3. (sin x โˆ’ x cos x)x2
    4. (x cos x โˆ’ sin x)x2
    Show the answer

    Answer: (x cos x โˆ’ sin x)x2

    u = sin x, v = x: (x cos x โˆ’ sin x ร— 1)x2.

Check you have got it

Answer 7 quick questions with instant marking. If you get one wrong, GCSE-ready shows you why and gives you another go. It is free, and you do not need an account.

Video for this lesson coming soon. Subscribe on YouTube

Sources and references

Facts checked against the sources below, 17 October 2026. Last updated 2 October 2026. Spotted a mistake? Tell us and we will fix it.

Related lessons