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.