Using Decimal search

Authors Avatar

Rameez Sheikh 13I

Pure 2 Coursework

Using Decimal search

In this investigation, I have chosen  x^5-14x+2=0. Such an equation cannot be solved algebraically.

The following graph represents y= f(x):

  • Graph  1 –

The graph shows me that  x^5-14x+2=0 has three roots, lying in the intervals (-2,-1) , (0, 1) , (1,2).

 

Within the change of sign methods, decimal search method shall be used to find out an approximate value for roots of  x^5-14x+2=0.

In this method I first take increments of x of size 0.1 within the interval (1,2). I do this until I find a change in sign.

There is a sign change, and therefore a root, in the interval (1.8,1.9).

I can now continue with increments of 0.01 within the interval (1.8,1.9).

This shows that the root lies in the interval (1.89,1.90).

We can express this information as, the root can be taken as 1.895 with maximum error of + 0.005

This can be shown graphically:

  • Graph 2 –

I have also chosen 10x^3-2.5x+0.2=0 which again cannot be solved algebraically.

The following graph represents y=f(x)

  • Graph 3 -

The graph shows me that 10x^3-2.5x+0.2=0 has three roots, lying in the intervals (-1,0), (0,1).

 

I can stop here as there is no change of sign in interval (0,1). Even though no root is indicated, the graph shows 2 roots which this method fails to retrieve.

Using the Newton- Raphson Iteration Method

For a graph that works using Newton- Raphson method.

        Xn+1 = Xn – f  (Xn)

                      f’(Xn)

Where  f (X1) = x^3+3x^2+1.4x-1

          f ’(X) = dy = 3x^2+6x+1.4

                     dx

The following graph represents y=f(x)

  • Graph 4 –

The graph shows me that  x^3+3x^2+1.4x-1 =0 has 3 roots, lying in the intervals (-3,-2) (-2,-1) (0,1).

Therefore         Xn+1  = x – (x^3+3x^2+1.4x-1)

                                   3x^2+6x+1.4

                      = x(3x^2+6x+1.4)-( x^3+3x^2+1.4x-1) 

                                 3x^2+6x+1.4

                      = 3x^3+6x^2+1.4x- x^3-3x^2-1.4x+1

                                 3x^2+6x+1.4

  Xn+1 =  2x^3+3x^2+1        => The Newton-Raphson method for eq’n

Join now!

            3x^2+6x+1.4              x^3+3x^2+1.4x-1 = 0

For root indicated in interval (0,1), results are as follows:

- Graph 5 -

We can express this information as; the root can be taken as 0.37510 with maximum error of + 0.000005. Therefore 0.375095 < X < 0.375105.

To check for the different signs,

f(0.375095) = x^3+3x^2+1.4x-1= -3.76959E-06

f(0.375105) = x^3+3x^2+1.4x-1= 3.69674E-05

 - Graph 6 -

For root indicated in interval (-2,-1), results are as follows:

- Graph 7  -

We can express this information as; the root can be ...

This is a preview of the whole essay