←
Grade 12 Calculus · Lesson 32 · Newton's method · about 6 minutes
Sliding down the tangent
score 0

Sliding down the tangent

Most equations have no formula for their roots: x2=5x^2 = 5 has one, x3−2x−5=0x^3 - 2x - 5 = 0 does not. Newton's method finds a root of f(x)=0f(x) = 0 anyway, to any accuracy, by riding tangent lines. Start with a guess x0x_0, read aloud x nought. Draw the tangent to ff at x0x_0: module 2's line, y=f(x0)+f′(x0)(x−x0)y = f(x_0) + f'(x_0)(x - x_0). A line is easy to solve: it crosses the xx-axis where 0=f(x0)+f′(x0)(x−x0)0 = f(x_0) + f'(x_0)(x - x_0), which rearranges to the next guess, x1x_1, x one: x1=x0−f(x0)f′(x0)x_1 = x_0 - \dfrac{f(x_0)}{f'(x_0)}, read aloud: x one equals x nought minus f of x nought over f prime of x nought. Here f(x0)f(x_0) is the height of the curve at the guess and f′(x0)f'(x_0) the slope there, and the quotient is how far the tangent runs before it reaches the axis: the correction, subtracted from the guess. Then do it again from x1x_1 to get x2x_2, and again, until the digits stop changing.

For f(x)=x2−5f(x) = x^2 - 5 from x0=2x_0 = 2: f(2)=−1f(2) = -1, f′(x)=2xf'(x) = 2x gives f′(2)=4f'(2) = 4, so x1=2−−14=2.25x_1 = 2 - \dfrac{-1}{4} = 2.25. From there, f(2.25)=0.0625f(2.25) = 0.0625 and f′(2.25)=4.5f'(2.25) = 4.5, so x2=2.25−0.06254.5=2.23611x_2 = 2.25 - \dfrac{0.0625}{4.5} = 2.23611, against 5=2.23607\sqrt{5} = 2.23607: the error went from 0.24 to 0.014 to 0.00004, roughly squaring each time, which is why the method is the one calculators use. Each step is the same formula with fresh inputs; the formula never changes, ff and f′f' are re-evaluated at the newest guess every time.