Scholars Gate
Find a TutorOnline Tutoring
GuidesHow It WorksBecome a Tutor
Log inGet Started
All guides
MathematicsA-Level 9 min read

Differentiation from First Principles

Shrink h towards zero and watch a chord collapse onto the tangent. Where the derivative really comes from — the limit definition, made visual.

The ScholarsGate Maths Team·Updated 08 Jul 2026

On this page

  • Gradient of a curve at a point
  • See it: the tangent as a limit
  • The limit definition
  • Worked example: x²
  • Common mistakes
  • Practice
  • FAQ

Every differentiation shortcut you will ever use rests on one idea: the gradient of a curve is the limit of the gradient of a chord as the chord shrinks to nothing. First principlesis where that idea is made precise — and where the derivative earns its definition.

Gradients that change as you move

A straight line has a single gradient everywhere. A curve does not: it might be climbing steeply at one point and almost flat a little further along. So “the gradient of the curve” only means something at a particular point.

To pin it down we approximate. Pick your point at x, then a nearby point a small distance h to the right, at x + h. The straight line joining the two — a chord— has a gradient we can measure with ordinary rise over run. As we shrink h, that chord swings closer and closer to the true steepness at x.

Zoom in far enough and any smooth curve looks straight. The derivative is the slope of that “infinite zoom”.

Drag the point: the chord becomes the tangent

Move the point along the curve below. The gold line is the tangent— the line that just grazes the curve at that point — and its slope is the derivative there.

First principles builds this tangent as the limiting position of a chord: start with a chord from x to x + h, then let h shrink towards zero and watch the chord settle onto the tangent.

InteractiveThe tangent as a limit
Loading interactive…
Drag the point along the curve; the gold line is the tangent whose slope is the derivative.
Text description ↓Hide text description ↑

A curve with a draggable point and its tangent line. The slope of the tangent at each point is the derivative there. First principles builds this tangent as the limit of a chord between x and x + h as h shrinks to zero.

The definition as a limit

The gradient of the chord from x to x + h is the change in height divided by the change in x:

gradient of chord = [f(x + h) − f(x)] / h.

This ratio is called a difference quotient. The derivative is the value it approaches as h shrinks to zero:

Differentiation from first principles

f’(x) = lim (h → 0) [f(x + h) − f(x)] / h.

As h → 0 the two points merge, the chord becomes the tangent, and its slope is the derivative f’(x).

Notice that we cannot simply put h = 0 in the quotient — that would be 0/0, which is meaningless. The whole trick is to simplify the fraction so that h cancels, and only then let h → 0.

Worked examples

1Worked example — differentiating x² from first principles

Let f(x) = x². Substitute into the definition:

[f(x + h) − f(x)] / h = [(x + h)² − x²] / h.

Expand (x + h)² = x² + 2xh + h², so the x² terms cancel and the top becomes 2xh + h²:

= [2xh + h²] / h.

Every term on top carries a factor of h, so cancel one h from top and bottom:

= 2x + h.

Now — and only now — let h → 0. The stray h vanishes, leaving f’(x) = 2x. That is the familiar rule for differentiating x², derived from scratch.

Common mistakes

Setting h = 0 too early

Put h = 0 straight into [f(x + h) − f(x)] / h and you get 0/0, which is undefined. You must simplify and cancel the h in the denominator first; taking the limit is always the very last step.

Slipping up expanding (x + h)²

(x + h)² is x² + 2xh + h², notx² + h². Dropping the middle 2xh term is the most common algebra error here — and it is precisely the term that survives to give the derivative.

Practice

Your turn

Differentiate f(x) = 3x from first principles.

Show the answer ↓Hide the answer ↑

[f(x + h) − f(x)] / h = [3(x + h) − 3x] / h = [3x + 3h − 3x] / h = 3h / h = 3. There is no h left to send to zero, so f’(x) = 3— a straight line has a constant gradient, exactly as expected.

Key takeaways
  • The gradient of a curve is defined at a point, as the limit of the gradient of a shrinking chord.
  • The derivative is f’(x) = lim (h → 0) [f(x + h) − f(x)] / h.
  • Always simplify and cancel h before letting h → 0; substituting h = 0 first gives an undefined 0/0.
  • From first principles x² differentiates to 2x, because [2xh + h²] / h = 2x + h → 2x.
  • As h → 0 the chord settles onto the tangent, and the tangent’s slope is the derivative.

Frequently asked questions

What does differentiation from first principles mean?+
It means finding the derivative directly from its definition as a limit, rather than using shortcut rules. You form the gradient of a chord between x and x + h, then let h tend to zero so the chord becomes the tangent.
What is the limit definition of the derivative?+
The derivative is f′(x) = lim(h→0) [f(x + h) − f(x)] / h. The fraction is the gradient of the chord over a small interval h; the limit is its value as that interval shrinks to nothing.
How do you differentiate x² from first principles?+
Form [ (x + h)² − x² ] / h = [ 2xh + h² ] / h = 2x + h. As h → 0 this tends to 2x, so the derivative of x² is 2x.
Why can’t we just set h = 0?+
Setting h = 0 immediately gives 0/0, which is undefined. The point of the limit is to simplify the fraction first (cancelling the h) and only then let h approach zero.
SM

The ScholarsGate Maths Team

Oxbridge & Russell Group maths tutors

Written and reviewed by ScholarsGate tutors who teach A-Level and undergraduate mathematics. Every explainer is checked for accuracy against the AQA, Edexcel and OCR specifications.

Keep exploring

A-Level Maths tutorsThe chain rule, made intuitiveAll Mathematics guides

Want a tutor to walk you through it?

Book a DBS-checked A-Level Mathematics tutor for a 1-on-1 lesson — online or in person.

Find a A-Level Mathematics tutor
Scholars GateTutoring & Learning

ScholarsGate (Scholars Gate) is a premium UK tutoring marketplace connecting ambitious students with expert tutors across every subject, level, and admissions pathway.

hello@scholarsgate.co.uk
+44 7544 736438
Bath, United Kingdom

Platform

  • Find a Tutor
  • Online Tutoring
  • How It Works
  • Become a Tutor
  • Interactive Guides
  • Blog
  • FAQ

Subjects

  • Mathematics & Computing
  • Natural Sciences
  • Humanities
  • Languages
  • All Subjects

Admissions

  • Medicine & UCAT
  • Maths (TMUA, STEP)
  • Law & LNAT
  • Statements & Interviews
  • All Admissions
4.9/5 average tutor rating
All tutors DBS verified
Secure payments via Stripe
500+ expert tutors

© 2026 ScholarsGate Ltd. All rights reserved.

Privacy PolicyTerms of ServiceCookie PolicySafeguarding