Category: Calculus Level: 301
f'(1) = limh → 0 (f(1 + h) - f(1))/h = limh → 0 (2 + h) = 2
A secant line through two points of a curve has a slope you can compute. Slide the second point toward the first and the secant slopes close in on the slope of the tangent line.
The point P = (1, 1) sits on the parabola y = x². Find the steepness of the curve exactly at P.
f(x) = x2, P = (1, 1)
Take a second point Q = (3, 9), a distance h = 2 to the right. The line through P and Q rises 8 over a run of 2.
slope = (f(3) - f(1))/2 = 8/2 = 4
With h = 1 the point Q = (2, 4) is closer to P. The secant line tilts down and its slope drops.
slope = (f(2) - f(1))/1 = 3/1 = 3
With h = 0.5 the secant line nearly matches the curve near P. Each slope equals 2 + h, so the slopes shrink toward 2.
slope = (2.25 - 1)/0.5 = 2.5
As h shrinks to zero, Q slides onto P and the secant lines settle on one line. That limit is the tangent line, and its slope 2 is the derivative at x = 1.
f'(1) = limh → 0 (2 + h) = 2
cd svg-generator python3 -m svgmath render secant-to-tangent --out /tmp/secant-to-tangent
Source: svgmath/diagrams/limits.py