Resources For Teachers For Tutors For Students & Parents AI New Books Pricing
Year 11 (2026) Maths Advanced (2026) Introduction to Differentiation

Difference Quotients

20 practice questions 2 video lessons Theory + worked examples
Practice 20 questions
Practice questions

Every question with a fully worked solution.

Start practising
Watch 2 video(s)
  • Difference Quotients - Video - Difference Quotients 1 Watch
  • Difference Quotients - Video - Difference Quotient 2 Watch
Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

Differentiation from first principles finds the derivative \(f'(x)\) straight from its definition as the limit of secant gradients. This Year 11 Mathematics Advanced page sets out the four steps (expand, subtract, divide by \(h\), let \(h\to0\)) for polynomials, reciprocals and square roots, and the \(x\to c\) form of the definition.

The derivative of \(f\), written \(f'(x)\), is the gradient function: for any \(x\) it gives the gradient of the tangent to \(y=f(x)\). If \(y=f(x)\) you may also write the derivative as \(y'\). Finding it is called differentiating.

Differentiation from first principles means using the definition itself. Take the secant through \(P\big(x,f(x)\big)\) and \(Q\big(x+h,f(x+h)\big)\). Its gradient is \(\dfrac{f(x+h)-f(x)}{h}\). As \(h\to0\), \(Q\) slides to \(P\) and the secant becomes the tangent, so

\[f'(x)=\lim_{h\to0}\dfrac{f(x+h)-f(x)}{h}\]

You cannot put \(h=0\) straight in, because that gives \(\dfrac{0}{0}\). Instead simplify first: every term left on the top has a factor \(h\), which cancels. Only then let \(h\to0\).

Once you have \(f'(x)\), substitute a number to get the gradient at that point, for example \(f'(2)\). The same definition works with other letters: for a displacement \(s(t)\), the derivative \(s'(t)\) is the velocity.

From the secant gradient to the derivativeA curve with P(x, f(x)) and Q(x + h, f(x + h)). The secant PQ has run h and rise f(x + h) minus f(x). The dashed tangent at P is the line the secant approaches as h approaches 0. x y P(x, f(x)) Q(x + h, f(x + h)) h f(x + h) − f(x) secant tangent
The secant \(PQ\) has gradient \(\dfrac{f(x+h)-f(x)}{h}\). As \(h\to0\) it becomes the tangent at \(P\), whose gradient is \(f'(x)\).
The four steps of differentiation from first principlesFor f(x) = x squared plus 3x: expand f(x + h) to x squared plus 2xh plus h squared plus 3x plus 3h; subtract f(x) to get 2xh plus h squared plus 3h; divide by h to get 2x plus h plus 3; let h approach 0 to get f prime of x equals 2x plus 3. 1 Expand f(x + h) (x + h)² + 3(x + h) = x² + 2xh + h² + 3x + 3h 2 Subtract f(x) f(x + h) − f(x) = 2xh + h² + 3h 3 Divide by h (h ≠ 0) (2xh + h² + 3h) ÷ h = 2x + h + 3 4 Let h → 0 f′(x) = 2x + 3
The four steps for \(f(x)=x^2+3x\), giving \(f'(x)=2x+3\).

The derivative from first principles (\(h\) is the step in \(x\)):

\[f'(x)=\lim_{h\to0}\dfrac{f(x+h)-f(x)}{h}\]
f prime of x equals the limit as h approaches 0 of f of x plus h minus f of x, all over h

The same definition at a point \(x=c\), with the second point written as \(\big(x,f(x)\big)\):

\[f'(c)=\lim_{x\to c}\dfrac{f(x)-f(c)}{x-c}\]
f prime of c equals the limit as x approaches c of f of x minus f of c, all over x minus c
Expansions you will need. \((x+h)^2=x^2+2xh+h^2\) and \((x+h)^3=x^3+3x^2h+3xh^2+h^3\).
A linear function. For \(f(x)=4x-7\): \(f(x+h)-f(x)=4(x+h)-7-(4x-7)=4h\), so \(f'(x)=\displaystyle\lim_{h\to0}\dfrac{4h}{h}=4\). The derivative of a straight line is its gradient.
Fractions and square roots. For \(\dfrac{1}{x}\)-type functions, put the top over a common denominator. For square-root functions, multiply top and bottom by the conjugate, e.g. \(\sqrt{x+h}+\sqrt{x}\), so that the top becomes a difference of squares.
Other letters. For \(s(t)\): \(s'(t)=\displaystyle\lim_{h\to0}\dfrac{s(t+h)-s(t)}{h}\). If \(h\) already names something (such as a height \(h(t)\)), use another letter, such as \(k\), for the step.

How to differentiate from first principles

  1. Expand \(f(x+h)\): replace every \(x\) in \(f(x)\) with \((x+h)\) and expand. If \(f(x)\) is a product such as \((2x+1)(x-3)\), expand \(f(x)\) first.
  2. Subtract \(f(x)\), the whole expression in brackets. Every term without an \(h\) should cancel.
  3. Divide by \(h\) (allowed since \(h\ne0\)). Each remaining term loses one factor of \(h\).
  4. Let \(h\to0\): every term that still contains \(h\) disappears. What is left is \(f'(x)\).
  5. Use it: substitute to find \(f'(a)\), or set \(f'(a)\) equal to a given value to find an unknown constant.

Setting out

Write \(\displaystyle\lim_{h\to0}\) in front of every line until the limit is taken. With the \(x\to c\) form, factorise the top so that \((x-c)\) cancels, then let \(x\to c\).

Example 1 — A quadratic
Use first principles to find \(f'(x)\) for \(f(x)=3x^2-2x\). Hence find \(f'(-1)\).
Solution

Expand \(f(x+h)\), then subtract \(f(x)\):

\(f(x+h)\)\(=\)\(3(x+h)^2-2(x+h)\)
\(\)\(=\)\(3x^2+6xh+3h^2-2x-2h\)
\(f(x+h)-f(x)\)\(=\)\(6xh+3h^2-2h\)
\(f'(x)\)\(=\)\(\displaystyle\lim_{h\to0}\dfrac{6xh+3h^2-2h}{h}\)
\(\)\(=\)\(\displaystyle\lim_{h\to0}(6x+3h-2)\)
\(\)\(=\)\(6x-2\)
f prime of x equals the limit as h approaches 0 of 6 x plus 3 h minus 2, which is 6 x minus 2
\(f'(-1)\)\(=\)\(6(-1)-2\)
\(\)\(=\)\(-8\)

\(\therefore\ \boldsymbol{f'(x)=6x-2}\) and \(f'(-1)=\mathbf{-8}\).

Example 2 — A cubic
Use \(f'(x)=\displaystyle\lim_{h\to0}\dfrac{f(x+h)-f(x)}{h}\) to find \(f'(x)\) for \(f(x)=x^3-2x\).
Solution

Use \((x+h)^3=x^3+3x^2h+3xh^2+h^3\):

\(f(x+h)\)\(=\)\((x+h)^3-2(x+h)\)
\(\)\(=\)\(x^3+3x^2h+3xh^2+h^3-2x-2h\)
\(f(x+h)-f(x)\)\(=\)\(3x^2h+3xh^2+h^3-2h\)
\(f'(x)\)\(=\)\(\displaystyle\lim_{h\to0}\dfrac{3x^2h+3xh^2+h^3-2h}{h}\)
\(\)\(=\)\(\displaystyle\lim_{h\to0}(3x^2+3xh+h^2-2)\)
\(\)\(=\)\(3x^2-2\)
f prime of x equals the limit as h approaches 0 of 3 x squared plus 3 x h plus h squared minus 2, which is 3 x squared minus 2

\(\therefore\ \boldsymbol{f'(x)=3x^2-2}\). The terms \(3xh\) and \(h^2\) both vanish as \(h\to0\).

Example 3 — A reciprocal function
Given \(f(x)=\dfrac{3}{x}\), use \(f'(c)=\displaystyle\lim_{x\to c}\dfrac{f(x)-f(c)}{x-c}\) to find \(f'(c)\), where \(c\ne0\).
Solution

Write the top over the common denominator \(xc\), then cancel \(x-c\):

\(f'(c)\)\(=\)\(\displaystyle\lim_{x\to c}\dfrac{\dfrac{3}{x}-\dfrac{3}{c}}{x-c}\)
\(\)\(=\)\(\displaystyle\lim_{x\to c}\dfrac{3c-3x}{xc}\times\dfrac{1}{x-c}\)
\(\)\(=\)\(\displaystyle\lim_{x\to c}\dfrac{-3(x-c)}{xc}\times\dfrac{1}{x-c}\)
\(\)\(=\)\(\displaystyle\lim_{x\to c}\left(-\dfrac{3}{xc}\right)\)
\(\)\(=\)\(-\dfrac{3}{c^2}\)
f prime of c equals the limit as x approaches c of negative 3 over x c, which is negative 3 over c squared

\(\therefore\ f'(c)=\boldsymbol{-\dfrac{3}{c^2}}\). Note \(3c-3x=-3(x-c)\): take out \(-3\) so the bracket matches.

Example 4 — A square root
If \(f(x)=\sqrt{x+1}\), use first principles to show that \(f'(x)=\dfrac{1}{2\sqrt{x+1}}\).
Solution

Multiply the top and bottom by the conjugate \(\sqrt{x+h+1}+\sqrt{x+1}\). The top becomes a difference of squares, \((\sqrt{x+h+1})^2-(\sqrt{x+1})^2\):

\(f'(x)\)\(=\)\(\displaystyle\lim_{h\to0}\dfrac{\sqrt{x+h+1}-\sqrt{x+1}}{h}\)
\(\)\(=\)\(\displaystyle\lim_{h\to0}\dfrac{(x+h+1)-(x+1)}{h\left(\sqrt{x+h+1}+\sqrt{x+1}\right)}\)
\(\)\(=\)\(\displaystyle\lim_{h\to0}\dfrac{h}{h\left(\sqrt{x+h+1}+\sqrt{x+1}\right)}\)
\(\)\(=\)\(\displaystyle\lim_{h\to0}\dfrac{1}{\sqrt{x+h+1}+\sqrt{x+1}}\)
\(\)\(=\)\(\dfrac{1}{\sqrt{x+1}+\sqrt{x+1}}\)
\(\)\(=\)\(\dfrac{1}{2\sqrt{x+1}}\)
f prime of x equals the limit as h approaches 0 of 1 over root of x plus h plus 1 plus root of x plus 1, which is 1 over 2 root of x plus 1

\(\therefore\ f'(x)=\dfrac{1}{2\sqrt{x+1}}\), as required. The conjugate turns the top into \((x+h+1)-(x+1)=h\), which cancels.

Common pitfalls

Subtract all of \(f(x)\). Put \(f(x)\) in brackets: \(f(x+h)-(3x^2-2x)\) changes the sign of both terms. If any term without \(h\) is left on top, something has gone wrong.
\(f(x+h)\) is not \(f(x)+h\). Replace every \(x\) with \((x+h)\), and expand \((x+h)^2\) as \(x^2+2xh+h^2\).
Do not let \(h\to0\) too early. Cancel \(h\) first. Setting \(h=0\) in \(\dfrac{f(x+h)-f(x)}{h}\) gives \(\dfrac{0}{0}\).
Write the limit on every line. \(\dfrac{6xh+3h^2-2h}{h}=6x+3h-2\) is not yet the derivative. Keep \(\displaystyle\lim_{h\to0}\) until the last step.
“First principles” means show the limit. A shortcut rule gives the right answer but not the working the question asks for.

Frequently asked questions

What does differentiation from first principles mean?

It means finding the derivative directly from its definition, \(f'(x)=\displaystyle\lim_{h\to0}\dfrac{f(x+h)-f(x)}{h}\). You expand, subtract, divide by \(h\) and then let \(h\to0\).

What is the first principles formula?

\(f'(x)=\displaystyle\lim_{h\to0}\dfrac{f(x+h)-f(x)}{h}\). An equivalent form at a point is \(f'(c)=\displaystyle\lim_{x\to c}\dfrac{f(x)-f(c)}{x-c}\).

Why can't you just substitute h = 0?

Substituting \(h=0\) into the fraction gives \(\dfrac{0}{0}\), which has no value. You must first simplify so the \(h\) on the bottom cancels, then let \(h\to0\).

How do you differentiate a square root from first principles?

Multiply the top and bottom by the conjugate, for example \(\sqrt{x+h}+\sqrt{x}\). The top becomes \((x+h)-x=h\), which cancels with the \(h\) on the bottom before you take the limit.

What is the derivative of a linear function?

The derivative of a linear function is its gradient. For \(f(x)=4x-7\), \(f(x+h)-f(x)=4h\), so \(f'(x)=4\).

How do you find f prime of 2 using first principles?

Find \(f'(x)\) from first principles first, then substitute \(x=2\). Or use \(\displaystyle\lim_{x\to2}\dfrac{f(x)-f(2)}{x-2}\) directly.