Secant Lines to a Tangent Line

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.

Step through it

Watch it

Animated walkthrough

Step by step

Step 1: Pick a point on the curve

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)

Step 1: Pick a point on the curve

Step 2: Draw a secant line

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

Step 2: Draw a secant line

Step 3: Move Q closer

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

Step 3: Move Q closer

Step 4: Move Q closer again

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

Step 4: Move Q closer again

Step 5: Let h go to zero

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

Step 5: Let h go to zero

All steps at once

Storyboard

Generate it yourself

cd svg-generator
python3 -m svgmath render secant-to-tangent --out /tmp/secant-to-tangent

Source: svgmath/diagrams/limits.py