notesonly.in

One notebook for every subject — open it anywhere.

Log in

Derivative from First Principles: Explained with Examples

The derivative measures how fast a function changes at a single instant — the slope of its tangent line. But how is this slope actually defined? The answer comes from first principles: start with the slope of a secant line between two nearby points, then let the points merge by taking a limit. The result is the exact derivative, built from nothing but the limit idea.

This matters because first principles is the definition every differentiation rule is proved from. When you meet a new function and no rule covers it, you can always fall back to this method. It also makes the meaning of a derivative concrete: a limit of average rates of change over shrinking intervals.

Key Concepts

  • Difference quotient: [f(x + h) − f(x)]/h, the slope of the secant line through (x, f(x)) and (x + h, f(x + h)).
  • Derivative definition: f'(x) = lim(h → 0) [f(x + h) − f(x)]/h. The secant slopes settle onto the tangent slope as h shrinks to zero.
  • Tangent versus secant: a secant cuts the curve at two points; the tangent touches it at one point with the limiting slope.
  • Notation: f'(x) and dy/dx both denote the derivative of y = f(x).

Formulas

  • f'(x) = lim(h → 0) [f(x + h) − f(x)]/h.
  • Four steps: (1) write the difference quotient, (2) expand and simplify the numerator, (3) cancel h from numerator and denominator, (4) let h → 0.
  • For f(x) = x²: [(x + h)² − x²]/h = [2xh + h²]/h = 2x + h → 2x.
  • For f(x) = xⁿ, first principles yields f'(x) = n·xⁿ⁻¹ (the power rule, proved).

Worked Example

Use first principles to find the derivative of f(x) = x², then compute f'(3).

Step 1: write the quotient: [f(3 + h) − f(3)]/h evaluated at x = 3, or in general [f(x + h) − f(x)]/h. Step 2: expand the numerator: (x + h)² − x² = x² + 2xh + h² − x² = 2xh + h². Step 3: divide by h and cancel: (2xh + h²)/h = 2x + h, valid for h ≠ 0. Step 4: take the limit as h → 0: 2x + h → 2x. So f'(x) = 2x. At x = 3, f'(3) = 6. A secant check confirms it: with h = 0.01, [f(3.01) − f(3)]/0.01 = (9.0601 − 9)/0.01 = 6.01, already nearly 6. The secant slopes are converging to the tangent slope 6.

Common Misconceptions

  • The derivative is just the difference quotient. The quotient alone gives secant slopes. The derivative is the limit of those slopes as h → 0.
  • You can set h = 0 directly. That gives 0/0, which is meaningless. You must simplify and cancel h first, then take the limit.
  • First principles is only for easy functions. It works for any differentiable function; it is just algebraically heavier, which is why shortcut rules were invented.

Real-World Applications

  • Velocity: instantaneous velocity is the first-principles derivative of the position function.
  • Marginal cost: the cost of one more unit is the derivative of the total cost function.
  • Reaction rates: chemists define reaction speed as the limit of concentration change over shrinking time intervals.
  • Gradient descent: machine-learning optimizers follow derivatives that are defined exactly this way.

In short, the derivative from first principles is a limit of secant slopes: write the difference quotient, simplify, cancel h, and let h vanish. Every differentiation shortcut you will ever learn is just this process pre-computed for a common pattern.