Kolton Ndoj

Derivative: slope at a point

The derivative is what the slope of a secant line settles to when its two points merge.

f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x)=\lim_{h\to0}\frac{f(x+h)-f(x)}{h}

What the symbols mean

hh
a tiny step along x
f(x+h)−f(x)f(x+h)-f(x)
how much the curve rises over that step
f′(x)f'(x)
the slope of the curve exactly at x

Why it works — the picture

Pick two points on a curve and draw the line through them. Its slope is rise over run. Slide one point toward the other and the line pivots until it just kisses the curve: the tangent. For f = x squared, the secant slope is exactly 2x + h, and as h shrinks to 0 the slope becomes 2x, a perfectly clean number. The derivative is speed when f is position.

Graph for Derivative: slope at a point -338-8
Secant slope of x squared at each t. It is the line 2t + h. Slide h down toward 0 and the line becomes the exact slope 2t. (drawn with the default slider values — move the sliders live)

Try it yourself

Where it’s used in real life

Velocity from position, optimisation of any quantity, and every machine-learning training loop.

The story behind it

Newton and Leibniz independently developed calculus in the late 1600s.

Related

Play with it live →

Math · Calculus · Intermediate