G1PureStretch

Differentiation from First Principles

The gradient of a straight line is constant and simple to find. The gradient of a curve changes at every point — so what does "the gradient at a single point" even mean? First principles answers this by zooming in so far that a curve looks straight, and measuring the gradient of that infinitesimally short chord.

30 min Video by TLMaths Differentiation

The big picture

Every differentiation rule you will ever use — the power rule, the chain rule, all of it — is really just a shortcut for a single underlying idea: the gradient of a curve at a point is the LIMIT of the gradient of a chord as the two points defining that chord merge into one. This lesson builds that idea rigorously, from a chord of finite length hh down to h→0h\to0, so that every later shortcut has a solid foundation you could always fall back on and re-derive.

A-Level Maths G1-11: Differentiation From First PrinciplesCurated by Kepler, not produced by us. Watch it, then work through the notes below.
Open on YouTube

What you'll be able to do

  • Understand the gradient of a curve at a point as a limit of chord gradients
  • Use the definition f′(x)=lim⁡h→0f(x+h)−f(x)hf^{\prime}(x) = \lim_{h\to0}\dfrac{f(x+h)-f(x)}{h}
  • Differentiate simple polynomials from first principles
  • Recognise why this process becomes impractical for complicated functions (motivating the rules ahead)
1

From a chord to a tangent

Pick two points on a curve y=f(x)y=f(x): (x,f(x))(x, f(x)) and a nearby point (x+h,f(x+h))(x+h, f(x+h)), a small horizontal distance hh apart. The gradient of the CHORD joining them is f(x+h)−f(x)h\dfrac{f(x+h)-f(x)}{h} — an ordinary "change in yy over change in xx" calculation.

As hh gets smaller and smaller, the second point slides closer to the first, and the chord rotates to hug the curve more and more closely. In the limit as h→0h\to0, the chord becomes the tangent\textbf{tangent} at that exact point — and its gradient is the gradient of the curve there.

f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x) = \lim_{h\to0}\dfrac{f(x+h)-f(x)}{h}
The formal definition of the derivative.

Tip — This limit process is the entire content of "differentiation" — every rule you meet later is a proven shortcut for evaluating this exact limit for a particular type of function.

2

Differentiating $x^2$ from first principles

Substituting f(x)=x2f(x)=x^2 into the definition and expanding shows exactly how the algebra collapses to a clean result as h→0h\to0.

Example 1Differentiate f(x)=x2f(x)=x^2 from first principles.
1f(x+h)=(x+h)2=x2+2xh+h2f(x+h) = (x+h)^2 = x^2+2xh+h^2.
2f(x+h)−f(x)=2xh+h2f(x+h)-f(x) = 2xh+h^2.
3Divide by hh: 2xh+h2h=2x+h\dfrac{2xh+h^2}{h} = 2x+h.
4Let h→0h\to0: 2x+h→2x2x+h \to 2x.
Answer
f′(x)=2xf'(x)=2x
Why this works

Every term with an hh still attached (like h2/h=hh^2/h=h) vanishes as h→0h\to0 — this is why the algebra is deliberately set up to factor out an hh from the numerator before dividing.

3

A general polynomial term

The same process on f(x)=x3f(x)=x^3 (and any other power) always produces the same pattern of cancellation, which is exactly what justifies the power rule you will use for the rest of the course.

Example 1Differentiate f(x)=x3+2xf(x)=x^3+2x from first principles.
1f(x+h)=(x+h)3+2(x+h)=x3+3x2h+3xh2+h3+2x+2hf(x+h)=(x+h)^3+2(x+h) = x^3+3x^2h+3xh^2+h^3+2x+2h.
2f(x+h)−f(x)=3x2h+3xh2+h3+2hf(x+h)-f(x) = 3x^2h+3xh^2+h^3+2h.
3Divide by hh: 3x2+3xh+h2+23x^2+3xh+h^2+2.
4Let h→0h\to0: 3x2+23x^2+2.
Answer
f′(x)=3x2+2f'(x)=3x^2+2

Tip — Notice the pattern: differentiating xnx^n from first principles always leaves nxn−1nx^{n-1} once every term containing a surviving hh vanishes — this is the power rule, proved rather than just stated.

Think like an examiner

  • Always write out the full definition lim⁡h→0f(x+h)−f(x)h\lim_{h\to0}\dfrac{f(x+h)-f(x)}{h} before substituting — examiners award method marks for showing this structure.
  • Expand f(x+h)f(x+h) FULLY (e.g. binomial expansion for powers) before subtracting f(x)f(x) — do not skip straight to cancelling.
  • State clearly that you are letting h→0h\to0 as your final step, showing which terms vanish and why.

Common misconceptions

Substituting h=0h=0 before dividing by hh.
You must divide by hh FIRST (after the hh cancels out of every term), then let h→0h\to0 — substituting too early gives 00\tfrac{0}{0}, which is undefined.
Forgetting to expand f(x+h)f(x+h) completely, e.g. leaving (x+h)2(x+h)^2 unexpanded.
Every bracket must be expanded fully so the f(x)f(x) terms cancel and a common factor of hh can be taken out.
Thinking first principles only works for polynomials.
The definition works for ANY differentiable function (it is how sin⁡x\sin x, cos⁡x\cos x and others are proved too) — polynomials are just the most algebraically manageable starting point.

Definition of the derivative

f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x) = \lim_{h\to0}\dfrac{f(x+h)-f(x)}{h}
Gradient of a curve at a point.

Stretch yourself

Use first principles to show that the derivative of f(x)=x3f(x)=x^3 is 3x23x^2.

Hint — Expand (x+h)3(x+h)^3 using the binomial expansion, subtract x3x^3, divide by hh, then let h→0h\to0.

Reveal solution
Solution(x+h)3=x3+3x2h+3xh2+h3(x+h)^3=x^3+3x^2h+3xh^2+h^3. So f(x+h)−f(x)=3x2h+3xh2+h3f(x+h)-f(x)=3x^2h+3xh^2+h^3. Divide by hh: 3x2+3xh+h23x^2+3xh+h^2. As h→0h\to0, the terms 3xh3xh and h2h^2 both vanish, leaving f′(x)=3x2f'(x)=3x^2. ■\blacksquare

Questions students ask

Why do we need a limit at all — why not just use a small hh?
A small but non-zero hh still gives the gradient of a CHORD, which is only an approximation to the gradient at a single point. The limit h→0h\to0 is what makes the chord become the exact tangent.
Why does dividing by hh before letting h→0h\to0 matter so much?
Substituting h=0h=0 directly into f(x+h)−f(x)h\dfrac{f(x+h)-f(x)}{h} gives 00\tfrac{0}{0}, which is undefined. You must simplify algebraically first so the hh in the denominator cancels, THEN take the limit.
Do I need to use first principles for every derivative in the course?
No — first principles proves the rules (like the power rule) that you then use as shortcuts. AQA only expects first-principles working for simple polynomials and, later, for proving the derivatives of sin⁡x\sin x and cos⁡x\cos x.

Key takeaways

  • The derivative f′(x)f'(x) is defined as lim⁡h→0f(x+h)−f(x)h\lim_{h\to0}\dfrac{f(x+h)-f(x)}{h}.
  • This is the limit of a chord gradient as the chord shrinks to a single point, becoming the tangent.
  • Expand f(x+h)f(x+h) fully, subtract f(x)f(x), divide by hh, then let h→0h\to0.
  • This process proves the power rule and every other differentiation rule that follows.

How this fits the course

Test yourself

Answer a few questions, then review anything you missed.

Prefer paper? Open the written self-check

Answer each question before opening its answer. This self-check does not record a quiz score.

  1. The formal definition of the derivative is:

    • lim⁡h→0f(x+h)−f(x)h\lim_{h\to0}\dfrac{f(x+h)-f(x)}{h}
    • f(x+h)−f(x)h\dfrac{f(x+h)-f(x)}{h} for any hh
    • f(x+h)−f(x)f(x+h)-f(x)
    • lim⁡h→∞f(x+h)−f(x)h\lim_{h\to\infty}\dfrac{f(x+h)-f(x)}{h}
    Show answer and explanation

    Answer: lim⁡h→0f(x+h)−f(x)h\lim_{h\to0}\dfrac{f(x+h)-f(x)}{h}

    The limit as hh tends to zero.

  2. Differentiating f(x)=x2f(x)=x^2 from first principles gives:

    • 2x2x
    • xx
    • 2x22x^2
    • x2x^2
    Show answer and explanation

    Answer: 2x2x

    The hh terms vanish, leaving 2x2x.

  3. Why can you not substitute h=0h=0 before simplifying?

    • It gives the undefined form 0/0
    • It gives an incorrect positive answer
    • It only works for negative xx
    • There is no reason, it is fine
    Show answer and explanation

    Answer: It gives the undefined form 0/0

    Both numerator and denominator become zero.

  4. A chord gradient becomes a tangent gradient when:

    • h→0h\to0
    • h→∞h\to\infty
    • h=1h=1
    • x→0x\to0
    Show answer and explanation

    Answer: h→0h\to0

    The two points merge into one as hh shrinks to zero.

  5. From first principles, the derivative of f(x)=x3f(x)=x^3 is:

    • 3x23x^2
    • x2x^2
    • 3x3x
    • x3x^3
    Show answer and explanation

    Answer: 3x23x^2

    Binomial expansion and cancellation leaves 3x23x^2.

Finished this lesson?

Loading your progress…

Next step

Keep practising

Start with the quiz above to check the key ideas. You can also choose another topic from the practice library.

Browse practice topics

Related lessons

All 9 lessons

Put the methods into practice: see how A-Level maths duels work. An account is required to play; the overview and sample are public.