Numerical solutions of equations

Authors Avatar

Kosturi Ash 12/3

A2 Mathematics Coursework C3

Year 12

Numerical solutions of equations

Solving 0 = x5+x-5 using the “Change Of Sign” Method

The method I will use to solve 0 = x5+x-5 is the Change of Sign Method involving the Decimal Search method. I have drawn this graph using the Autograph Software, and the print screen of this is below:

        

        

From my graph above, I can see that the root of this equation is between x =1 and x = 1.5. The table of x values and f(x) values is shown below. I can work out the f(x) values by substituting the x-values into the equation.

From my table of values above, it is clear that the change of sign from negative to positive occurs between x = 1.2 and x = 1.3. So, I can narrow these values down further to find another change of sign.

I can see that the change of sign is between x = 1.29 and x = 1.30.

The change of sign is in the interval [1.299, 1.300]

The root of this equation lies in the interval [1.2991, 1.2992]. This means that I can take the root to be x = 1.29915 (5 decimal places).

The maximum error of the root would be   0.00005

However, there are some functions for which the Decimal Search method would not work. An example is (1.55x+3.4)4=0. This would not work because the curve is touching the x-axis, so there would not be a change of sign. The graph of this function and the calculations are below:

I can see that the root lies between x = -2 and x = -3.

As I have rightly guessed, there is no change of sign according to my calculations above. This is because the equation has an even power in it. Therefore, the Decimal Search method has failed to find the root of (1.55x+3.4)4=0.

Solving 0=x4+x-1 using the “Newton-Raphson” method

As stated above, the equation I will use for the “Newton-Raphson” method is     x4+x-1=0. I can see from the graph that two roots need to be found using this method. The graph of this is below (or see Figure 3).

The iterative formula for the “Newton-Raphson” method is:

xn+1=xn- f(xn)

           f’(xn)

For my equation, f’(xn) = 4x3+1 when my function is differentiated to find the gradient function. The iterative formula I will use to find the roots of this function is:

                                xn+1 = xn- xn4+xn-1

                                               4xn3+1

I will start by finding out the negative root first. By looking at the diagram (see Figure 3), I can see that my starting value (x1) is –1.5.

Join now!

x1 = -1.5

x2 = -1.295 (I substituted x1 = -1.5 into the iterative formula to get the value for x2)

x3 = -1.227690 (I substituted x2 = -1.295 into the iterative formula to get x3)

x4 = -1.220812

x5 = -1.220744

x6 = -1.220744085

x7 = -1.220744085

I can see some convergence from x5. There has been no change in the x-values between x6 and x7 for this number of decimal places. I know that this method for finding the root has worked.

My negative root is x = -1.220744 (6 decimal places)

Now I will find the positive root of this function. The starting ...

This is a preview of the whole essay

Here's what a star student thought of this essay