This time consider hx2x22x13 Find the exact root by using th
Solution
The given function is quadratic and we can easily find its zeros using the quadratic formulas. However we start with this example in order to be able to compare the zero found using Newton\'s method with the one using the quadratic formulas.
How to use Newton\'s method to find the largest zero of f?
First we need to find a close approximation to the zero. This can be done graphically. The graph of f below clearly shows that f has two zeros, both of them negative and the largest one is closer to zero. We can use zero as a starting value in the Newton\'s method procedure
We now calculate the first derivative f \'
f \'(x) = 2x - 2
Now we start the procedure as follows:
Let x0 = 0 . This is the starting approximate value to the largest zero. You might decide to take another value as long as it is close to the zero you are approximating.
We now calculate x1 using the above procedure for n = 0 as follows:
x1 = x0 - f(x0) / f \'(x0)
Substitute x0 by its value 0 and calculate x1
x1 = 0 - f(0) / f \'(0)
= - ((0) 2 + (0)x + 13) / (2(0) - 2)
= -13/2
We now calculate x2 as follows
x2 = x1 - f(x1) / f \'(x1)
x2 = -1/3 - f(-1/3) / f \'(-1/3) -0.38095238
We now calculate x3 as follows
x3 = x2 - f(x2) / f \'(x2)
x3 -0.38196555
Continue with the procedure to find
x4 -0.38196601
x5 -0.38196601
Since x5 x4 there is no need to continue as we will not be able to make any more progress in approximating the zero.
We now compare x5 to the exact value of the largest zero which is ( -3 + sqrt (5)) / 2 -0.38196601 and we can say that they are equal up to 8 decimal places. Another way to check the accuracy of our approximation is to compute
f(x5) 2.8 10-9
Since f(x5) is very close to zero, x5 -0.38196601 is a good approximate value to the zero of f.

