Math Lab
Home/Class XI/Ch 12/Derivative from first principles

Derivative from first principles

A derivative measures the rate of change of a function. The formal definition is a limit: f(a)=limh0f(a+h)f(a)h.\boxed{f'(a) = \lim_{h \to 0} \frac{f(a + h) - f(a)}{h}.}

This is called the derivative from first principles (or "ab initio").

Geometric meaning

The quantity f(a+h)f(a)h\dfrac{f(a + h) - f(a)}{h} is the slope of the secant line through (a,f(a))(a, f(a)) and (a+h,f(a+h))(a + h, f(a + h)). As h0h \to 0, the secant rotates and (in the limit) becomes the tangent line at (a,f(a))(a, f(a)).

So f(a)f'(a) = slope of the tangent line to y=f(x)y = f(x) at x=ax = a.

Physical meaning

If s(t)s(t) is the position of a particle at time tt, then s(t+h)s(t)h\dfrac{s(t + h) - s(t)}{h} is the average velocity over the time interval [t,t+h][t, t + h]. As h0h \to 0, this becomes the instantaneous velocity at time tt: v(t)=s(t).v(t) = s'(t).

Notation

  • f(a)f'(a) , Lagrange notation.
  • dfdxx=a\dfrac{df}{dx}\bigg|_{x = a} or dydxx=a\dfrac{dy}{dx}\bigg|_{x = a} , Leibniz notation.
  • f˙(a)\dot{f}(a) , Newton's dot notation, common in physics.

When ff' is well-defined for every aa in some interval, we have a new function ff', called the derivative of ff.

Computing from first principles

To find f(x)f'(x) for a given ff:

  1. Write f(x+h)f(x)h\dfrac{f(x + h) - f(x)}{h}.
  2. Simplify (algebra, factor, etc.).
  3. Take the limit h0h \to 0.

Worked examples

Example 1. Find f(x)f'(x) for f(x)=x2f(x) = x^2.

f(x+h)f(x)h=(x+h)2x2h=2xh+h2h=2x+h2x\dfrac{f(x + h) - f(x)}{h} = \dfrac{(x + h)^2 - x^2}{h} = \dfrac{2 x h + h^2}{h} = 2 x + h \to 2 x as h0h \to 0.

So (x2)=2x(x^2)' = 2 x.

Example 2. Find f(x)f'(x) for f(x)=x3f(x) = x^3.

(x+h)3x3h=3x2h+3xh2+h3h=3x2+3xh+h23x2\dfrac{(x + h)^3 - x^3}{h} = \dfrac{3 x^2 h + 3 x h^2 + h^3}{h} = 3 x^2 + 3 x h + h^2 \to 3 x^2.

So (x3)=3x2(x^3)' = 3 x^2. Pattern: (xn)=nxn1(x^n)' = n x^{n-1}.

Example 3. Find f(x)f'(x) for f(x)=xf(x) = \sqrt{x}.

x+hxh=(x+hx)(x+h+x)h(x+h+x)=hh(x+h+x)=1x+h+x12x\dfrac{\sqrt{x + h} - \sqrt{x}}{h} = \dfrac{(\sqrt{x + h} - \sqrt{x})(\sqrt{x + h} + \sqrt{x})}{h(\sqrt{x + h} + \sqrt{x})} = \dfrac{h}{h(\sqrt{x + h} + \sqrt{x})} = \dfrac{1}{\sqrt{x + h} + \sqrt{x}} \to \dfrac{1}{2 \sqrt{x}}.

So (x)=12x(\sqrt{x})' = \dfrac{1}{2 \sqrt{x}}.

Example 4. Find f(x)f'(x) for f(x)=sinxf(x) = \sin x.

sin(x+h)sinxh=sinxcosh+cosxsinhsinxh=sinxcosh1h+cosxsinhh\dfrac{\sin(x + h) - \sin x}{h} = \dfrac{\sin x \cos h + \cos x \sin h - \sin x}{h} = \sin x \cdot \dfrac{\cos h - 1}{h} + \cos x \cdot \dfrac{\sin h}{h}.

As h0h \to 0: cosh1h0\dfrac{\cos h - 1}{h} \to 0 and sinhh1\dfrac{\sin h}{h} \to 1. So the limit is sinx0+cosx1=cosx\sin x \cdot 0 + \cos x \cdot 1 = \cos x.

Thus (sinx)=cosx(\sin x)' = \cos x.

Example 5. Find f(x)f'(x) for f(x)=1/xf(x) = 1/x.

1/(x+h)1/xh=x(x+h)hx(x+h)=hhx(x+h)=1x(x+h)1x2\dfrac{1/(x + h) - 1/x}{h} = \dfrac{x - (x + h)}{h x (x + h)} = \dfrac{-h}{h x (x + h)} = \dfrac{-1}{x(x + h)} \to \dfrac{-1}{x^2}.

So (1/x)=1/x2(1/x)' = -1/x^2.

Try it yourself

Find f(x)f'(x) from first principles:

  1. f(x)=3x+5f(x) = 3 x + 5.
  2. f(x)=x2+1f(x) = x^2 + 1.
  3. f(x)=x23xf(x) = x^2 - 3 x.
  4. f(x)=5f(x) = 5 (constant).
  5. f(x)=1/x2f(x) = 1/x^2.
  6. f(x)=cosxf(x) = \cos x. (Hint: similar to sinx\sin x.)
  7. f(x)=x4f(x) = x^4.
  8. f(x)=(x+1)2f(x) = (x + 1)^2.
  9. f(x)=x+1f(x) = \sqrt{x + 1}.
  10. f(x)=x+1/xf(x) = x + 1/x. (For x0x \ne 0.)
  11. f(x)=tanxf(x) = \tan x at x=0x = 0.
  12. f(x)=1/xf(x) = 1/\sqrt{x} at x=4x = 4.

Pitfalls / Tricks

  • The "h0h \to 0" is essential , the difference quotient is undefined at h=0h = 0.
  • Always simplify before taking the limit (so the hh in the denominator can be cancelled).
  • For trig derivatives, use sin(A+B)=sinAcosB+cosAsinB\sin(A + B) = \sin A \cos B + \cos A \sin B to expand.
  • Insight. The derivative is the linear approximation: near x=ax = a, f(x)f(a)+f(a)(xa)f(x) \approx f(a) + f'(a)(x - a). This is the tangent line equation.

Practice quiz

Quick check on this topic.

Quiz
Quick check : Derivative from first principles
6 questions · pick the best answer
Q1

Q2

Q3

Q4

Q5

Q6