Product, quotient and chain rules

A level Maths (Edexcel) · Edexcel 9MA0 · P7.4a · Pure mathematics › Differentiation

1 exam-style question plus unlimited generated ones on this topic, at up to four difficulty levels, with full mark schemes. Notes and Full packs are open to everyone. Practice needs a free account.

Or take a quick quiz: 11 questions on this subtopic in A level Maths (Edexcel), marked as you tap.

Revision notes

The chain rule for composite functions, the product rule and the quotient rule, and using \(\dfrac{\mathrm{d}y}{\mathrm{d}x} = 1 \div \dfrac{\mathrm{d}x}{\mathrm{d}y}\) when \(x\) is given in terms of \(y\). Questions often combine these with stationary points, tangents or 'show that' algebra, and can include the derivatives of sec, cosec and cot.

Key facts

  • Chain rule: \(\dfrac{\mathrm{d}y}{\mathrm{d}x} = \dfrac{\mathrm{d}y}{\mathrm{d}u} \times \dfrac{\mathrm{d}u}{\mathrm{d}x}\)
  • Product rule: \((uv)' = uv' + vu'\)
  • Quotient rule: \(\left(\dfrac{u}{v}\right)' = \dfrac{vu' - uv'}{v^2}\)
  • \(\dfrac{\mathrm{d}}{\mathrm{d}x}[f(x)]^n = n[f(x)]^{n-1}f'(x)\)
  • \(\dfrac{\mathrm{d}}{\mathrm{d}x}\mathrm{e}^{f(x)} = f'(x)\mathrm{e}^{f(x)}\)
  • \(\dfrac{\mathrm{d}}{\mathrm{d}x}\ln f(x) = \dfrac{f'(x)}{f(x)}\)
  • \(\dfrac{\mathrm{d}y}{\mathrm{d}x} = \dfrac{1}{\mathrm{d}x/\mathrm{d}y}\)
  • \(\sec x \to \sec x\tan x\); \(\operatorname{cosec} x \to -\operatorname{cosec} x\cot x\); \(\cot x \to -\operatorname{cosec}^2 x\)

Notes

The chain rule

diagram
  • If \(y\) is a function of \(u\) and \(u\) is a function of \(x\), then \(\dfrac{\mathrm{d}y}{\mathrm{d}x} = \dfrac{\mathrm{d}y}{\mathrm{d}u} \times \dfrac{\mathrm{d}u}{\mathrm{d}x}\)
  • xuydu/dxdy/dudy/dx = dy/du × du/dx(multiply the rates along the chain)
    A small change in \(x\) changes \(u\), which changes \(y\): the rates multiply.
  • In practice: differentiate the outside function (leaving the inside alone), then multiply by the derivative of the inside.
  • \((ax + b)^n \to an(ax + b)^{n-1}\); \(\mathrm{e}^{f(x)} \to f'(x)\mathrm{e}^{f(x)}\); \(\ln f(x) \to \dfrac{f'(x)}{f(x)}\); \(\sin f(x) \to f'(x)\cos f(x)\)
  • \(\sin^2 x\) means \((\sin x)^2\), so its derivative is \(2\sin x\cos x\)

Product and quotient rules

  • Product rule: if \(y = uv\), then \(\dfrac{\mathrm{d}y}{\mathrm{d}x} = u\dfrac{\mathrm{d}v}{\mathrm{d}x} + v\dfrac{\mathrm{d}u}{\mathrm{d}x}\)
  • Quotient rule: if \(y = \dfrac{u}{v}\), then \(\dfrac{\mathrm{d}y}{\mathrm{d}x} = \dfrac{v\dfrac{\mathrm{d}u}{\mathrm{d}x} - u\dfrac{\mathrm{d}v}{\mathrm{d}x}}{v^2}\). It is in the formula booklet; the order of the top matters.
  • Write down \(u\), \(v\), \(u'\) and \(v'\) before you substitute.
  • Factorise the result, taking out common factors such as \(\mathrm{e}^{2x}\) or \((x + 1)^3\); you need this to solve \(\dfrac{\mathrm{d}y}{\mathrm{d}x} = 0\)

When \(x\) is given in terms of \(y\)

  • Find \(\dfrac{\mathrm{d}x}{\mathrm{d}y}\), then use \(\dfrac{\mathrm{d}y}{\mathrm{d}x} = \dfrac{1}{\mathrm{d}x/\mathrm{d}y}\)
  • E.g. \(x = y^2 + 3y\) gives \(\dfrac{\mathrm{d}x}{\mathrm{d}y} = 2y + 3\), so \(\dfrac{\mathrm{d}y}{\mathrm{d}x} = \dfrac{1}{2y + 3}\)
  • To give the answer in terms of \(x\), use an identity, e.g. \(\sec^2 y = 1 + \tan^2 y\)

sec, cosec and cot

  • Using the chain rule or the quotient rule: \(\dfrac{\mathrm{d}}{\mathrm{d}x}(\sec x) = \sec x\tan x\), \(\dfrac{\mathrm{d}}{\mathrm{d}x}(\operatorname{cosec} x) = -\operatorname{cosec} x\cot x\) and \(\dfrac{\mathrm{d}}{\mathrm{d}x}(\cot x) = -\operatorname{cosec}^2 x\)
  • These, with their \(kx\) versions, are in the formula booklet, but you may be asked to prove them.

How to answer each type of question

M = method mark, A = answer mark, B = a mark on its own.

Differentiate using the chain rule

2 to 4 marksGrade C
  1. Identify the inside function and the outside function.
  2. Differentiate the outside, keeping the inside unchanged.
  3. Multiply by the derivative of the inside and simplify.

Example. Differentiate with respect to \(x\):
(a) \(\sqrt{1 + 2x^2}\)
(b) \(\ln(\cos x)\), \(0 \lt x \lt \dfrac{\pi}{2}\)

Show the model answerHide the model answer
(a) \(\dfrac{1}{2}(1 + 2x^2)^{-\frac{1}{2}} \times 4x\) M1 \(= \dfrac{2x}{\sqrt{1 + 2x^2}}\)
A1
(b) \(\dfrac{-\sin x}{\cos x}\) M1 \(= -\tan x\)
A1

Product rule, then stationary points

5 to 6 marksGrade B
  1. Set \(u\) and \(v\), and find \(u'\) and \(v'\)
  2. Apply \(uv' + vu'\)
  3. Factorise, including any exponential factor.
  4. Solve \(\dfrac{\mathrm{d}y}{\mathrm{d}x} = 0\), using the fact that an exponential is never 0.

Example. The curve \(C\) has equation \(y = x^2\mathrm{e}^{-2x}\).
(a) Find \(\dfrac{\mathrm{d}y}{\mathrm{d}x}\), giving your answer in a fully factorised form.
(b) Hence find the exact coordinates of the stationary points of \(C\)

Show the model answerHide the model answer
(a) \(u = x^2\), \(v = \mathrm{e}^{-2x}\), \(u' = 2x\), \(v' = -2\mathrm{e}^{-2x}\)
\(\dfrac{\mathrm{d}y}{\mathrm{d}x} = 2x\mathrm{e}^{-2x} - 2x^2\mathrm{e}^{-2x}\) M1 A1 \(= 2x(1 - x)\mathrm{e}^{-2x}\)
A1
(b) \(\mathrm{e}^{-2x} \neq 0\), so \(x = 0\) or \(x = 1\)
M1
\((0, 0)\) and \((1, \mathrm{e}^{-2})\)
A1

Quotient rule: show that, then use it

4 to 5 marksGrade B
  1. Write \(u\), \(v\), \(u'\) and \(v'\)
  2. Substitute into \(\dfrac{vu' - uv'}{v^2}\), keeping the order of the top.
  3. Cancel common factors to reach the given answer.
  4. Set the numerator equal to 0 to find stationary points.

Example. The curve \(C\) has equation \(y = \dfrac{\ln x}{x^2}\), \(x > 0\).
(a) Show that \(\dfrac{\mathrm{d}y}{\mathrm{d}x} = \dfrac{1 - 2\ln x}{x^3}\).
(b) Find the exact coordinates of the stationary point of \(C\)

Show the model answerHide the model answer
(a) \(u = \ln x\), \(v = x^2\), \(u' = \dfrac{1}{x}\), \(v' = 2x\)
\(\dfrac{\mathrm{d}y}{\mathrm{d}x} = \dfrac{x^2 \times \dfrac{1}{x} - 2x\ln x}{x^4}\) M1 A1 \(= \dfrac{x - 2x\ln x}{x^4} = \dfrac{1 - 2\ln x}{x^3}\)
A1
(b) \(1 - 2\ln x = 0 \Rightarrow x = \mathrm{e}^{\frac{1}{2}} = \sqrt{\mathrm{e}}\)
M1
\(y = \dfrac{1/2}{\mathrm{e}} = \dfrac{1}{2\mathrm{e}}\), so the point is \(\left(\sqrt{\mathrm{e}}, \dfrac{1}{2\mathrm{e}}\right)\)
A1

Find \(\dfrac{\mathrm{d}y}{\mathrm{d}x}\) when \(x\) is given in terms of \(y\)

3 to 4 marksGrade A
  1. Differentiate \(x\) with respect to \(y\)
  2. Use an identity to write \(\dfrac{\mathrm{d}x}{\mathrm{d}y}\) in terms of \(x\)
  3. Take the reciprocal.

Example. Given that \(x = \tan 2y\), \(-\dfrac{\pi}{4} \lt y \lt \dfrac{\pi}{4}\), find \(\dfrac{\mathrm{d}y}{\mathrm{d}x}\) in terms of \(x\)

Show the model answerHide the model answer
\(\dfrac{\mathrm{d}x}{\mathrm{d}y} = 2\sec^2 2y\)
M1 A1
\(= 2(1 + \tan^2 2y) = 2(1 + x^2)\)
M1
\(\dfrac{\mathrm{d}y}{\mathrm{d}x} = \dfrac{1}{2(1 + x^2)}\)
A1

Prove a derivative of sec, cosec or cot

3 marksGrade A
  1. Write the function as a power of \(\sin x\) or \(\cos x\), or as a quotient.
  2. Differentiate with the chain rule (or the quotient rule).
  3. Split the result into a product of two reciprocal trig functions.

Example. Prove that \(\dfrac{\mathrm{d}}{\mathrm{d}x}(\operatorname{cosec} x) = -\operatorname{cosec} x\cot x\)

Show the model answerHide the model answer
\(\operatorname{cosec} x = (\sin x)^{-1}\), so \(\dfrac{\mathrm{d}}{\mathrm{d}x}(\operatorname{cosec} x) = -(\sin x)^{-2}\cos x\)
M1 A1
\[\begin{aligned}[b]&= -\frac{1}{\sin x} \times \frac{\cos x}{\sin x} \\ &= -\operatorname{cosec} x\cot x\end{aligned}\]
A1

Don’t lose marks

  • Swapping the order of the top in the quotient rule, which flips the sign.
  • Forgetting to multiply by the derivative of the inside.
  • Forgetting to square the denominator in the quotient rule.
  • Dividing both sides by \(x\) instead of factorising, and so losing the solution \(x = 0\) of \(\dfrac{\mathrm{d}y}{\mathrm{d}x} = 0\)
  • Leaving \(\dfrac{\mathrm{d}y}{\mathrm{d}x}\) in terms of \(y\) when the question asks for it in terms of \(x\)

More tips

Memory tricks

  • Chain rule: derivative of the outside times derivative of the inside.
  • Quotient rule order: bottom times derivative of top, minus top times derivative of bottom, all over bottom squared.
  • \(\ln f(x)\) differentiates to 'derivative of the inside over the inside'.
  • Exponentials are never 0: once you factor out \(\mathrm{e}^{(\ldots)}\), only the other factors can make \(\dfrac{\mathrm{d}y}{\mathrm{d}x} = 0\)

Exam technique

  • In 'show that' questions write \(u\), \(v\), \(u'\), \(v'\) and the unsimplified rule before simplifying.
  • 'Hence' means use the answer you have just found, usually a factorised derivative.
  • Give exact coordinates (\(\mathrm{e}^{-2}\), \(\sqrt{\mathrm{e}}\)) unless decimals are asked for.

What each grade needs

What you need to be able to do, from the first marks up to the top grade.

  1. Grade D
    Use the chain rule on powers of functionsE.g. \(\dfrac{\mathrm{d}}{\mathrm{d}x}(3x - 1)^5 = 15(3x - 1)^4\)
  2. Grade C
    Differentiate composite exponential, log and trig functions\(\mathrm{e}^{f(x)} \to f'(x)\mathrm{e}^{f(x)}\), \(\ln f(x) \to \dfrac{f'(x)}{f(x)}\), \(\sin f(x) \to f'(x)\cos f(x)\)
  3. Grade C
    Use the product rule\[\frac{\mathrm{d}}{\mathrm{d}x}(uv) = u\frac{\mathrm{d}v}{\mathrm{d}x} + v\frac{\mathrm{d}u}{\mathrm{d}x}\]
  4. Grade B
    Use the quotient rule\(\dfrac{\mathrm{d}}{\mathrm{d}x}\left(\dfrac{u}{v}\right) = \dfrac{v\dfrac{\mathrm{d}u}{\mathrm{d}x} - u\dfrac{\mathrm{d}v}{\mathrm{d}x}}{v^2}\) (given in the formula booklet).
  5. Grade B
    Use \(\dfrac{\mathrm{d}y}{\mathrm{d}x}=1\div\dfrac{\mathrm{d}x}{\mathrm{d}y}\)When \(x\) is given in terms of \(y\), differentiate with respect to \(y\) and take the reciprocal.
  6. Grade A
    Prove the derivatives of sec, cosec and cotWrite e.g. \(\sec x = (\cos x)^{-1}\) and use the chain rule or the quotient rule.
  7. Grade A
    Combine rules and factorise to find stationary pointsFactorise answers like \(2x(1 - x)\mathrm{e}^{-2x}\) so that \(\dfrac{\mathrm{d}y}{\mathrm{d}x} = 0\) is easy to solve.

Sample questions

Written for this site in the style of Edexcel exam questions. They are not taken from real past papers.

Question 1Easy4 marks
Find \(\frac{\mathrm{d}y}{\mathrm{d}x}\) in each of the following cases.
(a) \(y = (-3x + 2)^{7}\)
[2]
(b) \(y = \ln(2x^{2} + 1)\)
[2]
Show the answer and mark scheme
(a) Answer: \(\frac{\mathrm{d}y}{\mathrm{d}x} = -21(-3x + 2)^{6}\)
  • M1 for a derivative of the form \(k(-3x + 2)^{6}\)
  • A1 for \(\frac{\mathrm{d}y}{\mathrm{d}x} = -21(-3x + 2)^{6}\) oe

Worked solution: \(\frac{\mathrm{d}y}{\mathrm{d}x} = 7(-3x + 2)^{6} \times (-3) = -21(-3x + 2)^{6}\)

(b) Answer: \(\frac{\mathrm{d}y}{\mathrm{d}x} = \frac{4x}{2x^{2} + 1}\)
  • M1 for a derivative of the form \(\frac{kx}{2x^{2} + 1}\)
  • A1 for \(\frac{\mathrm{d}y}{\mathrm{d}x} = \frac{4x}{2x^{2} + 1}\) oe

Worked solution: \(\frac{\mathrm{d}y}{\mathrm{d}x} = \frac{1}{2x^{2} + 1} \times 4x = \frac{4x}{2x^{2} + 1}\)

Question 2Medium7 marks
The curve \(C\) has equation \(y = \mathrm{e}^{x^{2} - 4x}\).
(a) Find \(\frac{\mathrm{d}y}{\mathrm{d}x}\).
[2]
(b) Find the exact coordinates of the stationary point of \(C\).
[3]
(c) Determine the nature of this stationary point.
[2]
Show the answer and mark scheme
(a) Answer: \(\frac{\mathrm{d}y}{\mathrm{d}x} = (2x - 4)\mathrm{e}^{x^{2} - 4x}\)
  • M1 for a derivative of the form \((\alpha x + \beta)\mathrm{e}^{x^{2} - 4x}\)
  • A1 for \(\frac{\mathrm{d}y}{\mathrm{d}x} = (2x - 4)\mathrm{e}^{x^{2} - 4x}\)

Worked solution: By the chain rule, \(\frac{\mathrm{d}y}{\mathrm{d}x} = \mathrm{e}^{x^{2} - 4x} \times \frac{\mathrm{d}}{\mathrm{d}x}\left(x^{2} - 4x\right) = (2x - 4)\mathrm{e}^{x^{2} - 4x}\)⁠.

(b) Answer: \(\left(2, \mathrm{e}^{-4}\right)\)
  • M1 for setting their \(\frac{\mathrm{d}y}{\mathrm{d}x} = 0\) and using \(\mathrm{e}^{x^{2} - 4x} \gt 0\) (or \(\ne 0\))
  • A1 for \(x = 2\)
  • A1 for \(\left(2, \mathrm{e}^{-4}\right)\)

Worked solution: \(\mathrm{e}^{x^{2} - 4x} \gt 0\) for all \(x\), so \(\frac{\mathrm{d}y}{\mathrm{d}x} = 0\) only when \(2x - 4 = 0\), i.e. \(x = 2\).
Then \(y = \mathrm{e}^{4 - 8} = \mathrm{e}^{-4}\).

(c) Answer: Minimum
  • M1 for \(\frac{\mathrm{d}^{2}y}{\mathrm{d}x^{2}} = \left(2 + (2x - 4)^{2}\right)\mathrm{e}^{x^{2} - 4x}\) considered at their \(x\), or a sign test on \(\frac{\mathrm{d}y}{\mathrm{d}x}\)
  • A1 for \(\frac{\mathrm{d}^{2}y}{\mathrm{d}x^{2}} = 2\mathrm{e}^{-4} \gt 0\), so a minimum

Worked solution: \(\frac{\mathrm{d}^{2}y}{\mathrm{d}x^{2}} = 2\mathrm{e}^{x^{2} - 4x} + (2x - 4)^{2}\mathrm{e}^{x^{2} - 4x}\)⁠. At \(x = 2\) this is \(2\mathrm{e}^{-4} \gt 0\), so the stationary point is a minimum.

Question 3Hard9 marks
The curve \(C\) has equation \(y = \mathrm{e}^{x}\sin x\).
(a) Show that
\[\frac{\mathrm{d}^2y}{\mathrm{d}x^2} - 2\frac{\mathrm{d}y}{\mathrm{d}x} + 2y = 0\]
[4]
(b) Find the \(x\)-coordinates of the stationary points of \(C\) for \(0 \le x \le 2\pi\).
[2]
(c) Use the result of part (a) to determine the nature of each stationary point, without differentiating again.
[3]
Show the answer and mark scheme
(a) Answer: \(y' = \mathrm{e}^x(\sin x + \cos x)\), \(y'' = 2\mathrm{e}^x\cos x\); \(2\mathrm{e}^x\cos x - 2\mathrm{e}^x(\sin x + \cos x) + 2\mathrm{e}^x\sin x = 0\)
  • M1 for using the product rule: \(\frac{\mathrm{d}y}{\mathrm{d}x} = \mathrm{e}^x\sin x + \mathrm{e}^x\cos x\)
  • M1 for differentiating again with the product rule
  • A1 for \(\frac{\mathrm{d}^2y}{\mathrm{d}x^2} = 2\mathrm{e}^x\cos x\)
  • A1* for substituting and simplifying to 0

Worked solution: \(\dfrac{\mathrm{d}y}{\mathrm{d}x} = \mathrm{e}^x\sin x + \mathrm{e}^x\cos x = \mathrm{e}^x(\sin x + \cos x)\).
\(\dfrac{\mathrm{d}^2y}{\mathrm{d}x^2} = \mathrm{e}^x(\sin x + \cos x) + \mathrm{e}^x(\cos x - \sin x) = 2\mathrm{e}^x\cos x\)⁠.
So \(\dfrac{\mathrm{d}^2y}{\mathrm{d}x^2} - 2\dfrac{\mathrm{d}y}{\mathrm{d}x} + 2y = 2\mathrm{e}^x\cos x - 2\mathrm{e}^x\sin x - 2\mathrm{e}^x\cos x + 2\mathrm{e}^x\sin x = 0\)⁠.

(b) Answer: \(x = \frac{3\pi}{4}\) and \(x = \frac{7\pi}{4}\)
  • M1 for \(\mathrm{e}^x(\sin x + \cos x) = 0 \Rightarrow \tan x = -1\) (with \(\mathrm{e}^x \ne 0\))
  • A1 for \(\frac{3\pi}{4}\) and \(\frac{7\pi}{4}\) only

Worked solution: \(\mathrm{e}^x \gt 0\), so \(\sin x + \cos x = 0\), i.e. \(\tan x = -1\): \(x = \frac{3\pi}{4}\) or \(x = \frac{7\pi}{4}\).

(c) Answer: At a stationary point \(\frac{\mathrm{d}^2y}{\mathrm{d}x^2} = -2y\). At \(x = \frac{3\pi}{4}\), \(y \gt 0\), so a maximum; at \(x = \frac{7\pi}{4}\), \(y \lt 0\), so a minimum.
  • M1 for \(\frac{\mathrm{d}y}{\mathrm{d}x} = 0 \Rightarrow \frac{\mathrm{d}^2y}{\mathrm{d}x^2} = -2y\)
  • M1 for finding the sign of \(y\) at each point: \(y = \mathrm{e}^{\frac{3\pi}{4}} \times \frac{\sqrt{2}}{2} \gt 0\) and \(y = -\mathrm{e}^{\frac{7\pi}{4}} \times \frac{\sqrt{2}}{2} \lt 0\)
  • A1 for maximum at \(x = \frac{3\pi}{4}\), minimum at \(x = \frac{7\pi}{4}\)

Worked solution: At a stationary point \(\frac{\mathrm{d}y}{\mathrm{d}x} = 0\), so part (a) gives \(\frac{\mathrm{d}^2y}{\mathrm{d}x^2} = -2y\).
At \(x = \frac{3\pi}{4}\): \(\sin x = \frac{\sqrt{2}}{2} \gt 0\), so \(y \gt 0\), \(\frac{\mathrm{d}^2y}{\mathrm{d}x^2} \lt 0\): a maximum.
At \(x = \frac{7\pi}{4}\): \(\sin x = -\frac{\sqrt{2}}{2}\), so \(y \lt 0\), \(\frac{\mathrm{d}^2y}{\mathrm{d}x^2} \gt 0\): a minimum.

More in Differentiation

Stuck? Get 1-to-1 help.

Chhetri Academy tutors GCSE and A level Maths and Science online, with a free 30-minute trial lesson.