Category: Calculus Level: 301
f(1 + h) ≈ f(1) + f'(1) h = 1 + 2h for small h
Zoom in on a smooth curve and it straightens out. The line it turns into is the tangent line, and its slope is the derivative.
The parabola y = x² bends a lot between x = 0 and x = 2. Mark the point (1, 1) and draw a smaller window around it.
f(x) = x2, point (1, 1)
Blow up the pink window around (1, 1). The same curve now bends only a little.
window: 1 ± 0.25
Blow up the orange window. Now the curve is hard to tell from a ruler line. Curves are just lines that zoomed out too far.
window: 1 ± 0.0625
Lay the line y = 1 + 2(x − 1) over every panel. The gap between curve and line is h², so it shrinks sixteen times with each zoom while the window shrinks four times.
gap = x2 - (1 + 2h) = h2, window height = 4h
cd svg-generator python3 -m svgmath render local-linearity --out /tmp/local-linearity
Source: svgmath/diagrams/derivatives.py