0:00 / 0:00

Newton's Method

Often we can not find solutions to equations algebraically. A powerful iterative process for finding roots is Newton's Method.

Newton's Method

If xnx_n is an approximate solution to f(x)=0f(x)=0, and f(x)0f'(x) \ne0 then the next approximation, xn+1x_{n+1} , is given by

xn+1=xnf(xn)f(xn)\boxed{x_{n+1}=x_n-\frac{f(x_n)}{f'(x_n)}}

Watch Out!
When f(xn)f'(x_n) is close to 00 you may obtain bad approximations!

Example: Newton's Method

Apply Newton’s Method three times to the function f(x)=x34x+5f\left(x\right)=x^3-4x+5 to approximate a solution to the equation x34x=5.x^3-4x=-5.
Start with x0=2.x_0=−2.

xn+1=xnf(xn)f(xn)\boxed{x_{n+1}=x_n-\frac{f(x_n)}{f'(x_n)}}

f(2)=(2)34(2)+5=5f\left(-2\right)=\left(-2\right)^3-4\left(-2\right)+5=5

f(x)=3x24            f(2)=3(2)24=8f'\left(x\right)=3x^2-4\ \ \ \ \ \ \ \ \ \ \ \ f'\left(-2\right)=3\left(-2\right)^2-4=8

xn+1=xnxn34xn+53xn24x_{n+1}=x_n-\frac{x_n^3-4x_n+5}{3x_n^2-4}

x1=2(2)34(2)+53(2)24=218=2.625x_1=-2-\frac{\left(-2\right)^3-4\left(-2\right)+5}{3\left(-2\right)^2-4}=\frac{-21}{8}=-2.625

x2=2.625(2.625)34(2.625)+53(2.625)24=2.470x_2=-2.625-\frac{\left(-2.625\right)^3-4\left(-2.625\right)+5}{3\left(-2.625\right)^2-4}=-2.470

x3=2.470(2.470)34(2.470)+53(2.470)24=2.457x_3=-2.470-\frac{\left(-2.470\right)^3-4\left(-2.470\right)+5}{3\left(-2.470\right)^2-4}=-2.457
0:00 / 0:00

Example: Newton's Method

Approximate 3\sqrt{3} to 3 decimal places using Newton's method.

Notice that 3\sqrt{3} is a solution to the equation x23=0x^2-3=0. Take f(x)=x23f(x)=x^2-3; then f(x)=2xf'(x)=2x, and for n0n \geq 0,
xn+1=xnxn232xn.x_{n+1}=x_n-\dfrac{x_n^2-3}{2x_n}.
Since we know 12=134=22132,1^2=1 \leq 3 \leq 4=2^2 \rightarrow1 \leq \sqrt{3} \leq 2,let's take x0=1x_0=1. Since we're looking for three decimal places of accuracy, I'll round all results to four decimal places:

x1=11232(1)=2x2=22232(2)=1.75x3=1.751.75232(1.75)=1.7321x4=1.73211.7321232(1.7321)=1.7321\begin{array}{l} x_1=1-\dfrac{1^2-3}{2(1)} = 2 \\[+1em] x_2 = 2-\dfrac{2^2-3}{2(2)}=1.75\\[+1em] x_3=1.75-\dfrac{1.75^2-3}{2(1.75)}=1.7321\\[+1em] x_4=1.7321-\dfrac{1.7321^2-3}{2(1.7321)}=1.7321 \end{array}
Since x3,x4x_3,x_4 agree to (at least) three decimal places, we take 31.732.\sqrt{3} \approx 1.732.

Practice: Newton's Method

Use Newton's Method to approximate a solution to f(x)=x4x10f(x)=x^4-x-10

Starting with x1=1x_1=1 , x2=?x_2=?
Given y=15x5+4x3+36x1000y=\frac{1}{5}x^5+4x^3+36x-1000, what starting points would make Newton's method fail? Find a formula for the iterate xn+1x_{n+1} in term of xnx_n.
Extra Practice