Differentiation from First Principles

Master differentiation from first principles: the limit definition, deriving the power rule, and finding gradients of tangent lines at A-Level.

Differentiation from first principles is one of the most fundamental concepts in A-Level Mathematics. It provides the rigorous foundation upon which the entire topic of calculus is built. Rather than relying on shortcut rules, first principles differentiation uses the formal limit definition to find the derivative of a function — that is, the rate at which a function's output changes with respect to its input.

At AS Level, all major exam boards (AQA, Edexcel, and OCR) require students to understand and apply this method. You will be expected to differentiate simple polynomial functions from first principles and to demonstrate that you understand why the derivative rules work, not merely how to apply them.

The derivative of a function f(x)f(x) at a point gives the gradient of the tangent to the curve y=f(x)y = f(x) at that point. This concept connects algebra, geometry, and analysis in a powerful way. In this guide, we will work through the formal definition, derive key results, and practise the technique with worked examples.

Core Concepts

The Limit Definition of the Derivative

The derivative of a function f(x)f(x) is defined as:

f(x)=limh0f(x+h)f(x)hf'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}

This expression is called the difference quotient. The numerator f(x+h)f(x)f(x + h) - f(x) represents the change in the function's value when xx increases by a small amount hh. Dividing by hh gives the average rate of change over the interval [x,x+h][x, x + h]. Taking the limit as h0h \to 0 transforms this average rate of change into the instantaneous rate of change — the derivative.

An equivalent notation uses δx\delta x (a small increment in xx):

dydx=limδx0f(x+δx)f(x)δx\frac{dy}{dx} = \lim_{\delta x \to 0} \frac{f(x + \delta x) - f(x)}{\delta x}

Both notations are used across exam boards, so you should be comfortable with either.

Geometric Interpretation

Consider the curve y=f(x)y = f(x). Take two points on the curve: P=(x,f(x))P = (x, f(x)) and Q=(x+h,f(x+h))Q = (x + h, f(x + h)). The line through PP and QQ is a secant line, and its gradient is:

mPQ=f(x+h)f(x)hm_{PQ} = \frac{f(x + h) - f(x)}{h}

As h0h \to 0, the point QQ slides along the curve towards PP, and the secant line rotates towards the tangent line at PP. The gradient of the tangent is therefore the limit of the secant gradient — which is precisely the derivative f(x)f'(x).

This geometric picture is essential for understanding what differentiation actually means. The derivative at a point is the gradient of the tangent to the curve at that point.

Deriving the Power Rule from First Principles

The power rule states that if f(x)=xnf(x) = x^n, then f(x)=nxn1f'(x) = nx^{n-1}. We can prove this for positive integer values of nn using first principles.

Proof for f(x)=x2f(x) = x^2:

f(x)=limh0(x+h)2x2hf'(x) = \lim_{h \to 0} \frac{(x + h)^2 - x^2}{h}

Expanding (x+h)2=x2+2xh+h2(x + h)^2 = x^2 + 2xh + h^2:

f(x)=limh0x2+2xh+h2x2h=limh02xh+h2hf'(x) = \lim_{h \to 0} \frac{x^2 + 2xh + h^2 - x^2}{h} = \lim_{h \to 0} \frac{2xh + h^2}{h}

Factorising hh from the numerator:

f(x)=limh0(2x+h)=2xf'(x) = \lim_{h \to 0} (2x + h) = 2x

This confirms the power rule: if f(x)=x2f(x) = x^2, then f(x)=2xf'(x) = 2x.

Proof for f(x)=x3f(x) = x^3:

f(x)=limh0(x+h)3x3hf'(x) = \lim_{h \to 0} \frac{(x + h)^3 - x^3}{h}

Using the binomial expansion (x+h)3=x3+3x2h+3xh2+h3(x + h)^3 = x^3 + 3x^2h + 3xh^2 + h^3:

f(x)=limh03x2h+3xh2+h3h=limh0(3x2+3xh+h2)=3x2f'(x) = \lim_{h \to 0} \frac{3x^2h + 3xh^2 + h^3}{h} = \lim_{h \to 0} (3x^2 + 3xh + h^2) = 3x^2

Again, this matches nxn1nx^{n-1} with n=3n = 3.

Differentiating Linear and Constant Functions

For f(x)=mx+cf(x) = mx + c (a linear function):

f(x)=limh0m(x+h)+c(mx+c)h=limh0mhh=mf'(x) = \lim_{h \to 0} \frac{m(x + h) + c - (mx + c)}{h} = \lim_{h \to 0} \frac{mh}{h} = m

The derivative of a linear function is its gradient — exactly as expected.

For f(x)=cf(x) = c (a constant function):

f(x)=limh0cch=limh00=0f'(x) = \lim_{h \to 0} \frac{c - c}{h} = \lim_{h \to 0} 0 = 0

Constant functions have zero gradient everywhere, so their derivative is zero.

First Principles with Coefficient and Sum Functions

For f(x)=axnf(x) = ax^n where aa is a constant, you can show from first principles that f(x)=anxn1f'(x) = anx^{n-1}. The constant aa factors out of the limit.

For a sum f(x)=g(x)+k(x)f(x) = g(x) + k(x), the limit of a sum equals the sum of the limits, so:

f(x)=g(x)+k(x)f'(x) = g'(x) + k'(x)

This is the foundation for differentiating polynomials term by term.

Strategy Tips

Tip 1: Follow a Systematic Process

Always write out the full definition first: f(x)=limh0f(x+h)f(x)hf'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}. Then substitute, expand, simplify, cancel hh, and finally take the limit. Skipping steps is where most errors occur.

Tip 2: Expand Brackets Carefully

The most common source of errors is incorrect expansion of (x+h)n(x + h)^n. For n=2n = 2, remember (x+h)2=x2+2xh+h2(x+h)^2 = x^2 + 2xh + h^2. For n=3n = 3, use Pascal's triangle or the binomial theorem. Always double-check your expansion before proceeding.

Tip 3: Factor Out hh Before Taking the Limit

After simplifying the numerator, every term should contain hh as a factor (if it doesn't, you've made an error — the f(x)f(x) terms should cancel). Factor out hh, cancel it with the hh in the denominator, and only then let h0h \to 0.

Tip 4: Show Your Limit Notation

Exam boards award marks for correct use of the limh0\lim_{h \to 0} notation. Keep writing it at each stage until you actually evaluate the limit. Dropping it early can cost you method marks.

Tip 5: Verify Your Answer

After finding the derivative from first principles, check it against the power rule. If you differentiated f(x)=3x2f(x) = 3x^2 and got f(x)=6xf'(x) = 6x, that matches 2×3x21=6x2 \times 3x^{2-1} = 6x. This quick check can catch errors.

Worked Example: Example 1

Problem

Differentiate f(x)=x2+3xf(x) = x^2 + 3x from first principles.

Solution

f(x)=limh0f(x+h)f(x)hf'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}

First, compute f(x+h)f(x + h): f(x+h)=(x+h)2+3(x+h)=x2+2xh+h2+3x+3hf(x + h) = (x + h)^2 + 3(x + h) = x^2 + 2xh + h^2 + 3x + 3h

Now form the difference quotient: f(x)=limh0(x2+2xh+h2+3x+3h)(x2+3x)hf'(x) = \lim_{h \to 0} \frac{(x^2 + 2xh + h^2 + 3x + 3h) - (x^2 + 3x)}{h}

=limh02xh+h2+3hh= \lim_{h \to 0} \frac{2xh + h^2 + 3h}{h}

Factor out hh: =limh0h(2x+h+3)h=limh0(2x+h+3)= \lim_{h \to 0} \frac{h(2x + h + 3)}{h} = \lim_{h \to 0} (2x + h + 3)

As h0h \to 0: f(x)=2x+3f'(x) = 2x + 3

Worked Example: Example 2

Problem

Differentiate f(x)=4x3f(x) = 4x^3 from first principles.

Solution

f(x)=limh04(x+h)34x3hf'(x) = \lim_{h \to 0} \frac{4(x+h)^3 - 4x^3}{h}

Expand (x+h)3=x3+3x2h+3xh2+h3(x + h)^3 = x^3 + 3x^2h + 3xh^2 + h^3:

=limh04(x3+3x2h+3xh2+h3)4x3h= \lim_{h \to 0} \frac{4(x^3 + 3x^2h + 3xh^2 + h^3) - 4x^3}{h}

=limh04x3+12x2h+12xh2+4h34x3h= \lim_{h \to 0} \frac{4x^3 + 12x^2h + 12xh^2 + 4h^3 - 4x^3}{h}

=limh012x2h+12xh2+4h3h= \lim_{h \to 0} \frac{12x^2h + 12xh^2 + 4h^3}{h}

=limh0(12x2+12xh+4h2)=12x2= \lim_{h \to 0} (12x^2 + 12xh + 4h^2) = 12x^2

So f(x)=12x2f'(x) = 12x^2, which agrees with the power rule: 3×4x31=12x23 \times 4x^{3-1} = 12x^2.

Worked Example: Example 3

Problem

Find the gradient of the tangent to the curve y=x25x+2y = x^2 - 5x + 2 at the point where x=3x = 3, using first principles.

Solution

Let f(x)=x25x+2f(x) = x^2 - 5x + 2.

f(x)=limh0[(x+h)25(x+h)+2][x25x+2]hf'(x) = \lim_{h \to 0} \frac{[(x+h)^2 - 5(x+h) + 2] - [x^2 - 5x + 2]}{h}

=limh0x2+2xh+h25x5h+2x2+5x2h= \lim_{h \to 0} \frac{x^2 + 2xh + h^2 - 5x - 5h + 2 - x^2 + 5x - 2}{h}

=limh02xh+h25hh=limh0(2x+h5)=2x5= \lim_{h \to 0} \frac{2xh + h^2 - 5h}{h} = \lim_{h \to 0} (2x + h - 5) = 2x - 5

At x=3x = 3: f(3)=2(3)5=1f'(3) = 2(3) - 5 = 1.

The gradient of the tangent at x=3x = 3 is 11.

Worked Example: Example 4

Problem

Prove from first principles that if f(x)=1xf(x) = \frac{1}{x}, then f(x)=1x2f'(x) = -\frac{1}{x^2}.

Solution

f(x)=limh01x+h1xhf'(x) = \lim_{h \to 0} \frac{\frac{1}{x+h} - \frac{1}{x}}{h}

Combine the fractions in the numerator: =limh0x(x+h)x(x+h)h=limh0hhx(x+h)= \lim_{h \to 0} \frac{\frac{x - (x+h)}{x(x+h)}}{h} = \lim_{h \to 0} \frac{-h}{hx(x+h)}

Cancel hh: =limh01x(x+h)=1xx=1x2= \lim_{h \to 0} \frac{-1}{x(x+h)} = \frac{-1}{x \cdot x} = -\frac{1}{x^2}

This confirms the power rule for n=1n = -1: f(x)=x1f(x) = x^{-1} gives f(x)=x2=1x2f'(x) = -x^{-2} = -\frac{1}{x^2}.

Practice Problems

  1. Problem 1

    Differentiate f(x)=5x2f(x) = 5x^2 from first principles. [Answer: f(x)=10xf'(x) = 10x]

    Problem 2

    Differentiate f(x)=x2+4x7f(x) = x^2 + 4x - 7 from first principles, and find the gradient of the tangent at x=1x = -1. [Answer: f(x)=2x+4f'(x) = 2x + 4, gradient =2= 2]

    Problem 3

    Using first principles, show that the derivative of f(x)=x32xf(x) = x^3 - 2x is f(x)=3x22f'(x) = 3x^2 - 2.

    Problem 4

    Differentiate f(x)=2x3+x2f(x) = 2x^3 + x^2 from first principles. [Answer: f(x)=6x2+2xf'(x) = 6x^2 + 2x]

    Problem 5

    Find f(x)f'(x) from first principles where f(x)=3xf(x) = \frac{3}{x} and hence find the gradient of the tangent at x=2x = -2. [Answer: f(x)=3x2f'(x) = -\frac{3}{x^2}, gradient =34= -\frac{3}{4}]

Want to check your answers and get step-by-step solutions?

Get it on Google PlayDownload on the App Store

Common Mistakes

  • Forgetting to expand (x+h)n(x + h)^n correctly. Students frequently write (x+h)2=x2+h2(x + h)^2 = x^2 + h^2, omitting the crucial middle term 2xh2xh. Always use the binomial expansion.

  • Not cancelling the x2x^2 (or other) terms. After substituting f(x+h)f(x+h) and f(x)f(x), many terms should cancel. If your numerator still contains terms without hh, something has gone wrong.

  • Dividing by hh before simplifying. You must factorise hh out of the entire numerator first. Attempting to divide individual terms by hh leads to algebraic errors.

  • Dropping the limit notation. Writing expressions without limh0\lim_{h \to 0} and then suddenly substituting h=0h = 0 is mathematically incorrect and loses marks. Maintain the limit notation throughout.

  • Substituting h=0h = 0 too early. If you set h=0h = 0 before cancelling the hh in the denominator, you get 00\frac{0}{0}, which is undefined. The cancellation must happen first.

  • Sign errors with negative terms. When f(x)f(x) contains negative terms, be very careful when computing f(x+h)f(x)f(x+h) - f(x). Distribute the negative sign correctly across all terms.

Frequently Asked Questions

Do I need to know first principles for the exam, or can I just use the power rule?

Yes, you absolutely need to know first principles. Exam boards (AQA, Edexcel, OCR) explicitly test this topic. Questions typically say "differentiate from first principles" or "prove from first principles that...", and you must show the full limit process. The power rule alone will score zero on such questions.

What is the difference between $f'(x)$ and $\frac{dy}{dx}$?

They mean the same thing — the derivative of y=f(x)y = f(x) with respect to xx. The notation f(x)f'(x) (Lagrange notation) is often used when working with named functions, while dydx\frac{dy}{dx} (Leibniz notation) emphasises the rate-of-change interpretation. Both are acceptable at A-Level.

Will I ever need to differentiate functions beyond $x^3$ from first principles?

At AS Level, first principles questions typically involve polynomials up to degree 3, or simple rational functions like 1x\frac{1}{x}. Higher-degree polynomials and more complex functions use the standard differentiation rules. However, understanding the process for xnx^n in general is valuable.

Why can't I just substitute $h = 0$ directly into the difference quotient?

Substituting h=0h = 0 directly gives 00\frac{0}{0}, which is indeterminate. The limit process involves simplifying the expression algebraically (cancelling the hh) so that the resulting expression is well-defined when h=0h = 0. This is the whole point of taking a limit.

Is first principles differentiation the same as finding the gradient from first principles?

Yes. "Finding the gradient of the curve from first principles" and "differentiating from first principles" are the same process. The derivative at a specific point gives the gradient of the tangent to the curve at that point.

Key Takeaways

  • The derivative is a limit. The formal definition f(x)=limh0f(x+h)f(x)hf'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h} is the foundation of all differentiation. Understanding this definition is essential.

  • Geometric meaning is crucial. The derivative at a point equals the gradient of the tangent to the curve at that point. This connects the algebraic process to geometric intuition.

  • The method has clear steps. Substitute into the definition, expand, simplify, factorise hh, cancel, then take the limit. Following these steps systematically prevents errors.

  • First principles proves the power rule. By working through the limit definition for xnx^n, you can derive f(x)=nxn1f'(x) = nx^{n-1} — the rule you use for all other differentiation work.

  • Notation matters. Always include limh0\lim_{h \to 0} in your working until you evaluate the limit. This is a requirement for full marks on exam questions.

  • This topic is explicitly examined. AQA, Edexcel, and OCR all include first principles differentiation in their AS Level specifications. Expect at least one question requiring the full proof.

Ready to Ace Your A-Level maths?

Get instant step-by-step solutions to any problem. Snap a photo and learn with Tutor AI — your personal exam prep companion.

Get it on Google PlayDownload on the App Store