lesson

Updated 1 month ago Β· 7 views
If you zoom in close enough on any smooth curve, it looks almost entirely like a straight line. What if we use that simple line to hunt down impossible roots that no algebra formula can solve directly?
The Tangent Line as a Stepping Stone
A root is any input value x where a function crosses zero, meaning f(x)=0. When an exact root is out of reach, we make an initial guess x0β and draw the tangent line to the curve at that point.
πInteractive diagram
The tangent line acts as a linear approximation of the curve. Where the tangent line hits the x-axis becomes our next, much closer guess: xn+1β.
How do we write an exact formula to calculate where this tangent line hits the x-axis?
Deriving the Formula
Every line with slope m passing through a point (xnβ,ynβ) follows the point-slope equation: yβynβ=m(xβxnβ). Since the slope of a curve at xnβ is given by the derivative fβ²(xnβ), the tangent line at (xnβ,f(xnβ)) is:
yβf(xnβ)=fβ²(xnβ)(xβxnβ)
To find the new x-intercept xn+1β, we set y=0 and replace x with xn+1β:
0βf(xnβ)=fβ²(xnβ)(xn+1ββxnβ)
πInteractive diagram
Dividing both sides by fβ²(xnβ) and adding xnβ gives the Newton-Raphson formula: xn+1β=xnββfβ²(xnβ)f(xnβ)β