Derivatives · Class 11 & 12 · Lesson 02

Derivative from first principles: the limit behind every rule.

Short answer

Finding a derivative from first principles means using the definition directly:

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

For \(f(x) = x^2\): \(\dfrac{(x + h)^2 - x^2}{h} = 2x + h\), which tends to \(2x\) as \(h \to 0\). So \(f'(x) = 2x\).

Class 11Class 12HSC & CBSE
01

What first principles means

Every derivative formula you will ever use, \(\dfrac{d}{dx}x^n = nx^{n-1}\), \(\dfrac{d}{dx}\sin x = \cos x\) and the rest, was first worked out from one definition. Finding a derivative from first principles means going back to that definition instead of using a ready-made formula. Some textbooks call it the ab initio method or the delta method.

The derivative is the slope of the tangent to a curve. The trouble is that a tangent touches the curve at one point, and you need two points to work out a slope. So we cheat a little. Take a second point \(Q\) a small distance \(h\) away from \(P\), find the slope of the line \(PQ\), and then let \(h\) shrink to zero.

The curve y = x squared with two secants through P that approach the tangent at P x y x x + h P Q secants PQ tangent at P
For \(y = x^2\) at \(x = 1\), the green secant \(PQ\) has slope \(\dfrac{f(1 + h) - f(1)}{h} = 2 + h\). As \(Q\) slides down the curve towards \(P\), \(h\) shrinks and the secant swings round until it lies along the orange tangent, whose slope is \(2\). That limiting slope is the derivative.
Definition

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

At a particular point \(x = a\)

\(f'(a) = \displaystyle\lim_{h \to 0}\frac{f(a + h) - f(a)}{h}\), provided the limit exists.

You will also see it written with \(\delta x\) in place of \(h\): \(\dfrac{dy}{dx} = \displaystyle\lim_{\delta x \to 0}\dfrac{\delta y}{\delta x}\). It is the same idea with different letters.

02

The method in four steps

  1. Write \(f(x + h)\). Replace every \(x\) in the function with \(x + h\).
  2. Subtract \(f(x)\). Expand and simplify. Every term without an \(h\) should cancel.
  3. Divide by \(h\). Simplify until the \(h\) on its own in the denominator has gone. For square roots, rationalise. For trig functions, use a sum-to-product identity.
  4. Let \(h \to 0\). Only now do you put \(h = 0\), or use a standard limit.

Step 3 is where the work is. If you put \(h = 0\) before it, you get \(\dfrac{0}{0}\), which tells you nothing.

Limits and identities you will need

Standard limit or identityUsed for
\(\displaystyle\lim_{\theta \to 0}\frac{\sin\theta}{\theta} = 1\) (\(\theta\) in radians)\(\sin x\), \(\cos x\), \(\tan x\)
\(\displaystyle\lim_{h \to 0}\frac{e^h - 1}{h} = 1\)\(e^x\)
\(\displaystyle\lim_{h \to 0}\frac{a^h - 1}{h} = \log a\)\(a^x\)
\(\displaystyle\lim_{t \to 0}\frac{\log(1 + t)}{t} = 1\)\(\log x\)
\(\sin A - \sin B = 2\cos\dfrac{A + B}{2}\sin\dfrac{A - B}{2}\)\(\sin x\)
\(\cos A - \cos B = -2\sin\dfrac{A + B}{2}\sin\dfrac{A - B}{2}\)\(\cos x\)
\(\tan A - \tan B = \dfrac{\sin(A - B)}{\cos A\cos B}\)\(\tan x\)
03

Solved examples

Example 1: A cube

Easy

Find the derivative of \(f(x) = x^3\) from first principles.

  1. \(f(x + h) = (x + h)^3 = x^3 + 3x^2h + 3xh^2 + h^3\).
  2. \(f(x + h) - f(x) = 3x^2h + 3xh^2 + h^3\).
  3. Divide by \(h\): \(3x^2 + 3xh + h^2\).
  4. Let \(h \to 0\): the last two terms vanish.

Answer\(f'(x) = 3x^2\)

Example 2: The derivative at a point

Easy

Using the definition, find \(f'(3)\) for \(f(x) = x^2 - 4x\).

  1. \(f(3 + h) = 9 + 6h + h^2 - 12 - 4h = h^2 + 2h - 3\), and \(f(3) = -3\).
  2. \(f(3 + h) - f(3) = h^2 + 2h\).
  3. Divide by \(h\): \(h + 2\). Let \(h \to 0\).

Answer\(f'(3) = 2\)

Example 3: A reciprocal

Easy

Differentiate \(f(x) = \dfrac{1}{x}\) from first principles, for \(x \ne 0\).

  1. \(f(x + h) - f(x) = \dfrac{1}{x + h} - \dfrac{1}{x} = \dfrac{x - (x + h)}{x(x + h)} = \dfrac{-h}{x(x + h)}\).
  2. Divide by \(h\): \(\dfrac{-1}{x(x + h)}\).
  3. Let \(h \to 0\): \(\dfrac{-1}{x \cdot x}\).

Answer\(f'(x) = -\dfrac{1}{x^2}\)

Example 4: A square root

Medium

Find \(\dfrac{d}{dx}\sqrt{x}\) from first principles, for \(x > 0\).

  1. \(\dfrac{f(x + h) - f(x)}{h} = \dfrac{\sqrt{x + h} - \sqrt{x}}{h}\). Putting \(h = 0\) now gives \(\tfrac{0}{0}\), so rationalise first.
  2. Multiply top and bottom by \(\sqrt{x + h} + \sqrt{x}\): \(\dfrac{(x + h) - x}{h\left(\sqrt{x + h} + \sqrt{x}\right)} = \dfrac{1}{\sqrt{x + h} + \sqrt{x}}\).
  3. Let \(h \to 0\): \(\dfrac{1}{\sqrt{x} + \sqrt{x}}\).

Answer\(\dfrac{d}{dx}\sqrt{x} = \dfrac{1}{2\sqrt{x}}\)

Example 5: Sine

Medium

Prove from first principles that \(\dfrac{d}{dx}\sin x = \cos x\).

  1. \(\sin(x + h) - \sin x = 2\cos\left(x + \dfrac{h}{2}\right)\sin\dfrac{h}{2}\), using the \(\sin A - \sin B\) identity.
  2. Divide by \(h\) and rearrange: \(\cos\left(x + \dfrac{h}{2}\right)\cdot\dfrac{\sin(h/2)}{h/2}\).
  3. As \(h \to 0\), \(\cos\left(x + \tfrac{h}{2}\right) \to \cos x\) and \(\dfrac{\sin(h/2)}{h/2} \to 1\).

Answer\(\dfrac{d}{dx}\sin x = \cos x\)

Example 6: The exponential

Medium

Show that \(\dfrac{d}{dx}e^x = e^x\) from first principles.

  1. \(e^{x + h} - e^x = e^x\left(e^h - 1\right)\).
  2. Divide by \(h\): \(e^x\cdot\dfrac{e^h - 1}{h}\). The \(e^x\) does not depend on \(h\), so it just sits there.
  3. Use \(\displaystyle\lim_{h \to 0}\frac{e^h - 1}{h} = 1\).

Answer\(\dfrac{d}{dx}e^x = e^x\)

Example 7: Tangent

Exam level

Find the derivative of \(\tan x\) from first principles.

  1. \(\tan(x + h) - \tan x = \dfrac{\sin\big((x + h) - x\big)}{\cos(x + h)\cos x} = \dfrac{\sin h}{\cos(x + h)\cos x}\).
  2. Divide by \(h\): \(\dfrac{\sin h}{h}\cdot\dfrac{1}{\cos(x + h)\cos x}\).
  3. Let \(h \to 0\): \(1 \cdot \dfrac{1}{\cos x \cdot \cos x}\).

Answer\(\dfrac{d}{dx}\tan x = \sec^2 x\)

Example 8: Logarithm

Exam level

Find the derivative of \(\log x\) (natural log, \(x > 0\)) from first principles.

  1. \(\log(x + h) - \log x = \log\dfrac{x + h}{x} = \log\left(1 + \dfrac{h}{x}\right)\).
  2. Divide by \(h\) and write it so the standard limit appears: \(\dfrac{1}{x}\cdot\dfrac{\log(1 + h/x)}{h/x}\).
  3. As \(h \to 0\), \(t = \tfrac{h}{x} \to 0\) too, and \(\dfrac{\log(1 + t)}{t} \to 1\).

Answer\(\dfrac{d}{dx}\log x = \dfrac{1}{x}\)

Vipul Sir's tip

In the board paper, write the definition as your first line, even if it feels obvious. Examiners give a mark for it, and it keeps you honest: if you skip straight to the answer, you have not used first principles at all.

04

Common mistakes

1. Putting \(h = 0\) too early

\(\dfrac{\sqrt{x + h} - \sqrt{x}}{h}\) at \(h = 0\) is \(\dfrac{0}{0}\). Simplify until \(h\) is no longer alone in the denominator, then take the limit.

2. Expanding \((x + h)^2\) as \(x^2 + h^2\)

\((x + h)^2 = x^2 + 2xh + h^2\). The middle term \(2xh\) is the one that gives the answer \(2x\). Drop it and everything collapses to 0.

3. Quoting the formula instead of deriving it

If the question says "by first principles", writing \(\dfrac{d}{dx}x^3 = 3x^2\) gets no marks, even though it is correct. The method is what is being tested.

4. Working in degrees

\(\displaystyle\lim_{\theta \to 0}\frac{\sin\theta}{\theta} = 1\) only when \(\theta\) is in radians. Every trig derivative in calculus assumes radians.

05

Practice questions

Try each one on paper before you open the answer.

Q1Find \(\dfrac{d}{dx}(x^2 + 3x)\) from first principles.

\(\dfrac{(x + h)^2 + 3(x + h) - x^2 - 3x}{h} = \dfrac{2xh + h^2 + 3h}{h} = 2x + h + 3 \to 2x + 3\).

Q2Prove that \(\dfrac{d}{dx}\cos x = -\sin x\) from first principles.

\(\cos(x + h) - \cos x = -2\sin\left(x + \tfrac{h}{2}\right)\sin\tfrac{h}{2}\). Divide by \(h\): \(-\sin\left(x + \tfrac{h}{2}\right)\cdot\dfrac{\sin(h/2)}{h/2} \to -\sin x\).

Q3Find the derivative of \(\dfrac{1}{x^2}\) from first principles.

\(\dfrac{1}{(x + h)^2} - \dfrac{1}{x^2} = \dfrac{-(2xh + h^2)}{x^2(x + h)^2}\). Divide by \(h\): \(\dfrac{-(2x + h)}{x^2(x + h)^2} \to -\dfrac{2}{x^3}\).

Q4Find \(\dfrac{d}{dx}\sqrt{2x + 1}\) from first principles.

Rationalise: \(\dfrac{(2x + 2h + 1) - (2x + 1)}{h\left(\sqrt{2x + 2h + 1} + \sqrt{2x + 1}\right)} = \dfrac{2}{\sqrt{2x + 2h + 1} + \sqrt{2x + 1}} \to \dfrac{1}{\sqrt{2x + 1}}\).

Q5Find \(\dfrac{d}{dx}\sin 2x\) from first principles.

\(\sin(2x + 2h) - \sin 2x = 2\cos(2x + h)\sin h\). Divide by \(h\): \(2\cos(2x + h)\cdot\dfrac{\sin h}{h} \to 2\cos 2x\).

Q6Show that \(\dfrac{d}{dx}a^x = a^x\log a\) from first principles.

\(\dfrac{a^{x + h} - a^x}{h} = a^x\cdot\dfrac{a^h - 1}{h} \to a^x\log a\).

Stuck on a question?

Bring it to a free demo class and work through it with Vipul Sir. Book on WhatsApp.

06

Frequently asked questions

What does "first principles" mean in differentiation?

It means finding the derivative straight from its definition, \(f'(x) = \displaystyle\lim_{h \to 0}\dfrac{f(x + h) - f(x)}{h}\), without using any of the standard derivative formulas. It is also called the ab initio or delta method.

Why can't I just put h = 0 in the fraction?

Because the top and the bottom both become 0, and \(\tfrac{0}{0}\) has no value. You have to simplify the fraction first so that the \(h\) in the denominator cancels. Only then is it safe to let \(h \to 0\).

Is first principles the same as the definition of the derivative?

Yes. The limit \(\displaystyle\lim_{h \to 0}\dfrac{f(x + h) - f(x)}{h}\) is the definition. Using it to work out a derivative is what "from first principles" means.

Which functions come up most in exams?

Simple ones: \(x^n\) for small \(n\), \(\dfrac{1}{x}\), \(\sqrt{x}\), \(\sin x\), \(\cos x\), \(\tan x\), \(e^x\) and \(\log x\). Learn the trick for each one, such as rationalising for square roots and sum-to-product for sine and cosine, and you can handle almost any first-principles question.

Related lessons

← All derivatives lessons
Vipul Sir
Written by Vipul Sir

Vipul Sir has taught mathematics for over 15 years to HSC, CBSE, ICSE, IGCSE/IB, Diploma, Engineering and BSc students at VVS Classes in Goregaon and Vile Parle, Mumbai. He teaches every class himself, concepts first and exam technique second.

Class 11 & 12 Maths

Differentiation gets easy once the basics click.

Concept-first classes in small batches in Goregaon and Vile Parle, or online, for HSC, CBSE and ICSE students. Your first class is free.

WhatsApp↗