Numerical Solutions of Equations

Authors Avatar

P2 Maths Coursework                

Numerical Solutions of Equations                Page  of

P2 Maths Coursework

Numerical Solutions of Equations

Introduction

The aim of this coursework is to compare three different numerical methods of solving equations. This will allow us to determine which one is the most efficient, quickest and easiest method to use.

The three methods I will use are:

  • Decimal Search method
  • Newton-Raphson method
  • Rearranging method

Decimal Search

The decimal search is named as it employs the tactic of splitting the current interval of x values into 10 equal intervals of equal size and looking for a change of sign.

This process is then repeated, again splitting the current interval into 10 equal intervals of equal size and this can be continued until the root has been found to the required degree of accuracy.

The equation that I have chosen to solve is y = x5 – 2.7x + 1.8

It is illustrated by the graph below.

This is the same equation but has been zoomed in.

y = x5 – 2.7x + 1.8

                                   

y = x5 – 2.7x + 1.8 crosses the x-axis between  x = -2 and x = -1. To find the smallest root, I will take x = -4 as my starting value, and see the number of iterations required to find the root.

                                                     

   

                                                                 

     

        


                                             

                                                                   

                                     

        

       

        

I have now found the root to an accuracy of

five decimal places. It lies in the interval [-1.41118, -1.41119] and

X = -1.411985 ± 0.00005.

 This change of sign means that the root lies between these two values for x.

Error Bounds

We can therefore establish that the smallest root of the

equation is = -1.411985 ± 0.00005.


Failure of Sign method

Equation   y = x3 + 5x2 + x + 0.051

This equation has two solutions, one of them can be solved using the Change of Sign search, but the other cannot

In this case the function touches the x-axis but doesn't cross it, so no change of sign exists; hence we can’t use this method to calculate an estimate of the root


Newton Raphson Method

This method involves fixed-point estimation, whereby a tangent to the curve from an initial value of x is drawn then it is calculated where the tangent intercepts the x-axis. This gives the next approximation to the root.  Repeating the process gives more and more accurate values for the root.

Newton-Raphson formula is:  

f(x) = x³-13x+14

 Using the Newton-Raphson method, I will choose a starting point (x1) of positive 3 and will draw a tangent to the line at this point on the x-axis – where x = 3.  Where the tangent cuts the x-axis, I will have as my x2, my second point.  I will draw a new tangent here and continue the process.  I will illustrate this root graphically, but the other two purely numerically.  I need to differentiate this equation, in order to use this method as the Newton-Raphson formula is as follows.

Join now!

Differentiate the equation    f’(x) = 3x²-13.

x2= 3 – 3³- (13*3)+14

        (3*3²)-13

x2= 3 -  2

        14

x2= 2.85714

By using this same method, but shortened significantly by using the ANS button on my calculator, I will find x3,, x4 etc

x3 = 2.84423

x4 = 2.84181

x5 = 2.84134

x6 = 2.84125

x7 = 2.84123

x8 = 2.84122

x9 = 2.84122

The graph shows the process

The root is 2.84122 to 5 significant figures ( + or - 0.00005) as there has been repetition to this level of significance

To ...

This is a preview of the whole essay