Differentiation from First Principles

The gradient of the chord PQ is [f(a + h) − f(a)] ÷ h. Shrink h and the chord swings onto the tangent, so its gradient closes in on dy/dx.

Chord PQ and the tangent at P
Curve
h 1.00