Change of Sign Method

Authors Avatar

                

        Numerical Methods Coursework

Change of Sign Method

To look at how this method I will find the roots of the equation x5-7x+5=0 by the change of sign method. Here is a graph of y=x5-7x+5 and an integer search showing where the roots of x5-7x+5=0:

This equation has 3 roots as shown in the table as the y value changes sign 3 times in the table, one between x=-2 and x=-1 another between x=0 and x=1 and another between x=1 and x=2. This is also shown in the graph. A root can be more accurately found using a decimal search or zooming in on a graph and identifying when a change of sign occurs. I will do this to find the root of this equation between x=-2 and x=-1:

As there is a change in sign between x=-1.8 and x=-1.7 there must be a root between x=-1.8 and x=-1.7 as shown on the graph above. Therefore a decimal search to two decimal places will be more accurate.

Therefore there is a root between x=-1.78 and x=-1.77 which can be more accurately found.

Therefore there is a root between x=-1.771 and x=-1.770

This shows that the root between x=-2 and x=-1 is between x=-1.7705 and x=-1.7704. The accuracy of this method to find roots is stated below.

-1.7705 < x < -1.7704

x = -1.770 (3 d.p.)

x = -1.77045 ± 0.0005

Failure of the Change of Sign Method

When an equation has more than one root between two integers not all or none of the roots may be identified using an integer search. For example the equation x3-19x+31=0 has two roots between x=2 and x=3 as shown in the graph of y= x3-19x+31.


However the integer search does not show a change of sign between x=2 and x=3 and therefore misses the 2 roots shown in the graph:

This is therefore a failure of the change of sign method.Newton Raphson Method

To show how this method can find the roots of an equation I will find all of the roots of the equation x3-2x2-3x+5=0. Here is a graph and an integer search showing where the roots of this equation are so that I have a number to start with.

Join now!

These show that there are three roots. One between x=-2 and x=-1, one between x=1 and x=2 and another one between x=2 and x=3.

To find the root I need to work out the iterative formula for the Newton Raphson. This is:

 

Therefore                         

To find the root between x=-1 and x=-2 I will use a =-1 as this is close to the solution and should find the right root. Here is the table showing how the iterative formula has been used:

This process of Newton Raphson is ...

This is a preview of the whole essay