Differentiating standard functions

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

Unlimited generated questions 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: 14 questions on this subtopic in A level Maths (Edexcel), marked as you tap.

Revision notes

The standard derivatives: powers of \(x\) (including negative and fractional powers), \(\mathrm{e}^{kx}\), \(a^{kx}\), \(\ln x\), \(\sin kx\), \(\cos kx\) and \(\tan kx\), with sums, differences and constant multiples. These appear in almost every calculus question, so they must be automatic.

Key facts

  • \(x^n \to nx^{n-1}\)
  • \(\mathrm{e}^{kx} \to k\mathrm{e}^{kx}\)
  • \(a^{kx} \to ka^{kx}\ln a\)
  • \(\ln x \to \dfrac{1}{x}\); \(\ln kx \to \dfrac{1}{x}\)
  • \(\sin kx \to k\cos kx\)
  • \(\cos kx \to -k\sin kx\)
  • \(\tan kx \to k\sec^2 kx\)
  • Trig derivatives only work in radians

Notes

Powers of \(x\)

  • \(\dfrac{\mathrm{d}}{\mathrm{d}x}(x^n) = nx^{n-1}\) for any rational \(n\). A constant differentiates to 0.
  • Rewrite roots and fractions as powers first: \(\sqrt{x} = x^{\frac{1}{2}}\), \(\dfrac{1}{x^3} = x^{-3}\), \(\dfrac{3}{2\sqrt{x}} = \dfrac{3}{2}x^{-\frac{1}{2}}\)
  • Expand brackets, and split fractions with a single term on the bottom: \(\dfrac{x^3 - 4}{x^2} = x - 4x^{-2}\)
  • Differentiate sums, differences and constant multiples term by term. For example, \(\dfrac{\mathrm{d}}{\mathrm{d}x}(kx) = k\) and \(\dfrac{\mathrm{d}}{\mathrm{d}x}\left(\dfrac{1}{x}\right) = -\dfrac{1}{x^2}\)

Exponentials and logarithms

  • \[\frac{\mathrm{d}}{\mathrm{d}x}(\mathrm{e}^{kx}) = k\mathrm{e}^{kx}\]
  • \(\dfrac{\mathrm{d}}{\mathrm{d}x}(a^{kx}) = ka^{kx}\ln a\), because \(a^{kx} = \mathrm{e}^{kx\ln a}\)
  • \(\dfrac{\mathrm{d}}{\mathrm{d}x}(\ln x) = \dfrac{1}{x}\) for \(x > 0\). Also \(\dfrac{\mathrm{d}}{\mathrm{d}x}(\ln kx) = \dfrac{1}{x}\), since \(\ln kx = \ln k + \ln x\) and \(\ln k\) is a constant.
  • Use the log laws first where they help: \(\ln(x^5) = 5\ln x\), so its derivative is \(\dfrac{5}{x}\)

Trigonometric functions

diagram
  • \[\frac{\mathrm{d}}{\mathrm{d}x}(\sin kx) = k\cos kx\]
  • \[\frac{\mathrm{d}}{\mathrm{d}x}(\cos kx) = -k\sin kx\]
  • xyOπ/2π3π/22π1−1y = sin xy = cos x
    Where \(\sin x\) is flat (at its max and min), \(\cos x = 0\); where \(\sin x\) is steepest, \(\cos x = \pm 1\)
  • \[\frac{\mathrm{d}}{\mathrm{d}x}(\tan kx) = k\sec^2 kx\]
  • These results are only true when \(x\) is in radians. Set your calculator to radians for gradient questions involving trig.

How to answer each type of question

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

Differentiate expressions with powers of \(x\)

3 to 4 marksGrade D
  1. Rewrite every term as a multiple of a power of \(x\)
  2. Multiply by the power, then reduce the power by 1.
  3. Tidy up; only write negative or fractional powers back as roots or fractions if asked.

Example. Given that \(y = 4x^3 - 6\sqrt{x} + \dfrac{5}{x^2}\), \(x > 0\), find \(\dfrac{\mathrm{d}y}{\mathrm{d}x}\)

Show the model answerHide the model answer
\(y = 4x^3 - 6x^{\frac{1}{2}} + 5x^{-2}\)
\(\dfrac{\mathrm{d}y}{\mathrm{d}x} = 12x^2 - 3x^{-\frac{1}{2}} - 10x^{-3}\)
M1 for reducing any power by 1; A1 for two terms correct; A1 for all three terms correct

Differentiate exponentials, logs and trig functions

3 marksGrade C
  1. Deal with each term separately using the standard results.
  2. Multiply by \(k\) for \(\mathrm{e}^{kx}\), \(\sin kx\) and \(\cos kx\), and watch the sign for cos.
  3. Remember that \(\ln kx\) differentiates to \(\dfrac{1}{x}\)

Example. Given that \(f(x) = 3\mathrm{e}^{2x} - 4\sin 5x + \ln 7x\), \(x > 0\), find \(f'(x)\)

Show the model answerHide the model answer
\(f'(x) = 6\mathrm{e}^{2x} - 20\cos 5x + \dfrac{1}{x}\)
B1 for \(6\mathrm{e}^{2x}\); B1 for \(-20\cos 5x\); B1 for \(\dfrac{1}{x}\)

Find an exact gradient involving \(a^x\) or \(\tan kx\)

4 marksGrade B
  1. Differentiate \(a^x\) as \(a^x\ln a\) and \(\tan kx\) as \(k\sec^2 kx\)
  2. The curve crosses the y-axis where \(x = 0\)
  3. Substitute, using \(a^0 = 1\) and \(\sec 0 = 1\), and leave the answer exact.

Example. The curve \(C\) has equation \(y = 3^x + \tan 2x\), \(-\dfrac{\pi}{4} \lt x \lt \dfrac{\pi}{4}\). Find the exact gradient of \(C\) at the point where it crosses the y-axis.

Show the model answerHide the model answer
\(\dfrac{\mathrm{d}y}{\mathrm{d}x} = 3^x\ln 3 + 2\sec^2 2x\)
M1 A1 A1
(one A1 for each term)
At \(x = 0\): gradient \(= \ln 3 + 2\)
A1

Simplify first, then differentiate (show that)

4 to 5 marksGrade A
  1. Write the denominator as a power: \(x\sqrt{x} = x^{\frac{3}{2}}\)
  2. Split into separate terms and simplify each power.
  3. Differentiate term by term.
  4. Combine over a common denominator to reach the given form exactly.

Example. Given that \(f(x) = \dfrac{2x^2 - 3}{x\sqrt{x}}\), \(x > 0\), show that \(f'(x) = \dfrac{2x^2 + 9}{2x^2\sqrt{x}}\)

Show the model answerHide the model answer
\[\begin{aligned}[b]&f(x) \\ &= \frac{2x^2}{x^{\frac{3}{2}}} - \frac{3}{x^{\frac{3}{2}}} \\ &= 2x^{\frac{1}{2}} - 3x^{-\frac{3}{2}}\end{aligned}\]
M1 A1
\(f'(x) = x^{-\frac{1}{2}} + \dfrac{9}{2}x^{-\frac{5}{2}}\)
M1 A1
\[\begin{aligned}[b]&= \frac{2x^2 + 9}{2x^{\frac{5}{2}}} \\ &= \frac{2x^2 + 9}{2x^2\sqrt{x}}\end{aligned}\]
A1

Don’t lose marks

  • Working in degrees: the trig derivatives need radians.
  • Getting the sign wrong: the derivative of \(\cos x\) is \(-\sin x\)
  • Using the power rule on \(\mathrm{e}^x\) or \(a^x\)
  • Writing \(\dfrac{\mathrm{d}}{\mathrm{d}x}(\ln 2x) = \dfrac{2}{x}\) or \(\dfrac{1}{2x}\) instead of \(\dfrac{1}{x}\)
  • Rewriting \(\dfrac{1}{2x^3}\) as \(2x^{-3}\) instead of \(\dfrac{1}{2}x^{-3}\)
  • Differentiating the top and the bottom of a fraction separately.

More tips

Memory tricks

  • Power rule: multiply by the power, then take one off the power.
  • Trig cycle: \(\sin \to \cos \to -\sin \to -\cos \to \sin\). Each arrow is one differentiation.
  • \(\ln kx\): the \(k\) vanishes and the answer is always \(\dfrac{1}{x}\)
  • Check a numerical gradient with your calculator's \(\dfrac{\mathrm{d}}{\mathrm{d}x}\) function, if it has one.

Exam technique

  • Show the line where you rewrite terms as powers; it often earns a method mark on its own.
  • In 'show that' questions, finish with exactly the expression given.
  • Use exact values (\(\ln 3\), \(\pi\), surds) when the question asks for an exact gradient.

What each grade needs

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

  1. Grade E
    Differentiate polynomials term by term\(\dfrac{\mathrm{d}}{\mathrm{d}x}(x^n) = nx^{n-1}\); a constant differentiates to 0.
  2. Grade D
    Differentiate roots and reciprocals of \(x\)Rewrite as powers first: \(\sqrt{x} = x^{\frac{1}{2}}\), \(\dfrac{5}{x^2} = 5x^{-2}\)
  3. Grade C
    Differentiate \(\mathrm{e}^{kx}\), \(\sin kx\) and \(\cos kx\)\(k\mathrm{e}^{kx}\), \(k\cos kx\) and \(-k\sin kx\), with \(x\) in radians.
  4. Grade C
    Differentiate \(\ln x\) and \(\ln kx\)Both give \(\dfrac{1}{x}\), because \(\ln kx = \ln k + \ln x\)
  5. Grade B
    Differentiate \(a^{kx}\) and \(\tan kx\)\(\dfrac{\mathrm{d}}{\mathrm{d}x}(a^{kx}) = ka^{kx}\ln a\) and \(\dfrac{\mathrm{d}}{\mathrm{d}x}(\tan kx) = k\sec^2 kx\)
  6. Grade A
    Simplify an expression before differentiatingSplit fractions, expand brackets and use log laws, e.g. \(\ln x^3 = 3\ln x\)

Sample questions

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

Question 1Easy3 marks
Given that \(y = x^{5} - 5x - 4\sqrt{x}\), \(x \gt 0\), find \(\frac{\mathrm{d}y}{\mathrm{d}x}\), giving each term in its simplest form.
[3]
Show the answer and mark scheme
Answer: \(\frac{\mathrm{d}y}{\mathrm{d}x} = 5x^{4} - 5 - 2x^{-\frac{1}{2}}\)
  • M1 for \(x^{n} \to x^{n - 1}\) for at least one term
  • A1 for two terms correct (may be unsimplified)
  • A1 for \(\frac{\mathrm{d}y}{\mathrm{d}x} = 5x^{4} - 5 - 2x^{-\frac{1}{2}}\), fully correct and simplified

Worked solution: In index form, \(y = x^{5} - 5x - 4x^{\frac{1}{2}}\).
\(\frac{\mathrm{d}y}{\mathrm{d}x} = 5x^{4} - 5 - 2x^{-\frac{1}{2}} = 5x^{4} - 5 - \frac{2}{\sqrt{x}}\)

Question 2Medium6 marks
The curve \(C\) has equation \(y = \frac{-5x^{3} - 6x - 6}{2x^{2}}\), \(x \gt 0\).
(a) Find \(\frac{\mathrm{d}y}{\mathrm{d}x}\), giving your answer in the form \(A + Bx^{-2} + Cx^{-3}\), where \(A\), \(B\) and \(C\) are constants.
[4]
(b) Hence find the exact value of the gradient of the curve \(y = \frac{-5x^{3} - 6x - 6}{2x^{2}}\) at the point where \(x = 1\).
[2]
Show the answer and mark scheme
(a) Answer: \(\frac{\mathrm{d}y}{\mathrm{d}x} = -\frac{5}{2} + 3x^{-2} + 6x^{-3}\) \((A = -\frac{5}{2}, \ B = 3, \ C = 6)\)
  • M1 for writing \(y\) as a sum of powers of \(x\), e.g. by dividing each term of the numerator by \(2x^{2}\)
  • A1 for \(y = -\frac{5}{2}x - 3x^{-1} - 3x^{-2}\)
  • M1 for \(x^{n} \to x^{n - 1}\) for at least one of their terms
  • A1 for \(\frac{\mathrm{d}y}{\mathrm{d}x} = -\frac{5}{2} + 3x^{-2} + 6x^{-3}\), i.e. \(A = -\frac{5}{2}, \ B = 3, \ C = 6\)

Worked solution: By dividing each term of the numerator by \(2x^{2}\): \(y = -\frac{5}{2}x - 3x^{-1} - 3x^{-2}\).
So \(\frac{\mathrm{d}y}{\mathrm{d}x} = -\frac{5}{2} + 3x^{-2} + 6x^{-3}\), giving \(A = -\frac{5}{2}, \ B = 3, \ C = 6\).

(b) Answer: \(\frac{13}{2}\)
  • M1 for substituting \(x = 1\) into their \(\frac{\mathrm{d}y}{\mathrm{d}x}\)
  • A1 for \(\frac{13}{2}\) (cao)

Worked solution: At \(x = 1\): \(\frac{\mathrm{d}y}{\mathrm{d}x} = -\frac{5}{2} + 3(1)^{-2} + 6(1)^{-3} = \frac{13}{2}\).

Question 3Hard9 marks
The curve \(C\) has equation \(y = 4^{x} - 6 \times 2^{x}\).
(a) Given that \(a\) is a positive constant, prove that \(\frac{\mathrm{d}}{\mathrm{d}x}\left(a^{x}\right) = a^{x}\ln a\).
[2]
(b) Find the exact coordinates of the stationary point of \(C\).
[5]
(c) Determine the nature of this stationary point, justifying your answer.
[2]
Show the answer and mark scheme
(a) Answer: Proof
  • M1 for writing \(a^{x} = \mathrm{e}^{x\ln a}\)
  • A1* for differentiating to obtain \((\ln a)\mathrm{e}^{x\ln a} = a^{x}\ln a\)

Worked solution: \(a^{x} = \mathrm{e}^{x\ln a}\), so \(\frac{\mathrm{d}}{\mathrm{d}x}\left(a^{x}\right) = (\ln a)\mathrm{e}^{x\ln a} = a^{x}\ln a\).

(b) Answer: \(\left(\log_{2} 3, -9\right)\)
  • M1 for \(\frac{\mathrm{d}y}{\mathrm{d}x} = 4^{x}\ln 4 - 6 \times 2^{x}\ln 2\)
  • M1 for using \(4^{x} = (2^{x})^{2}\) and \(\ln 4 = 2\ln 2\) to obtain \(2(2^{x})^{2} - 6 \times 2^{x} = 0\) oe
  • A1 for \(2^{x} = 3\)
  • M1 for solving \(2^{x} = 3\) using logarithms
  • A1 for \(\left(\log_{2} 3, -9\right)\)

Worked solution: \(\frac{\mathrm{d}y}{\mathrm{d}x} = 4^{x}\ln 4 - 6 \times 2^{x}\ln 2 = 2^{x}\ln 2\left(2 \times 2^{x} - 6\right)\)⁠.
Since \(2^{x}\ln 2 \gt 0\), \(\frac{\mathrm{d}y}{\mathrm{d}x} = 0\) when \(2^{x} = 3\), so \(x = \log_{2} 3\) \(\left(= \frac{\ln 3}{\ln 2}\right)\).
Then \(y = 3^{2} - 6 \times 3 = -9\).

(c) Answer: Minimum
  • M1 for finding \(\frac{\mathrm{d}^{2}y}{\mathrm{d}x^{2}} = 4^{x}(\ln 4)^{2} - 6 \times 2^{x}(\ln 2)^{2}\) and substituting \(2^{x} = 3\) (or a gradient check either side)
  • A1 for \(\frac{\mathrm{d}^{2}y}{\mathrm{d}x^{2}} = 18(\ln 2)^{2} \gt 0\), so a minimum

Worked solution: \(\frac{\mathrm{d}^{2}y}{\mathrm{d}x^{2}} = 4^{x}(\ln 4)^{2} - 6 \times 2^{x}(\ln 2)^{2} = (\ln 2)^{2}\left(4 \times 4^{x} - 6 \times 2^{x}\right)\)⁠.
At \(2^{x} = 3\): \((\ln 2)^{2}(36 - 18) = 18(\ln 2)^{2} \gt 0\), so the point is 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.