• Join over 1.2 million students every month
  • Accelerate your learning by 29%
  • Unlimited access from just £6.99 per month
Page
  1. 1
    1
  2. 2
    2
  3. 3
    3
  4. 4
    4
  5. 5
    5
  6. 6
    6
  7. 7
    7
  8. 8
    8
  9. 9
    9
  10. 10
    10
  11. 11
    11
  12. 12
    12

Solving Equations using Numerical Methods.

Extracts from this document...

Introduction

A2 Pure Maths Coursework

Solving Equations using Numerical Methods

There are three methods with which you can solve an equation.

  1. Change of Sign Method
  1. Newton-Raphson Method
  1. Rearranging  the equation f(x)=0 in the form x= g(x)

Hardware and Software Used

For the coursework I have used a computer for attaining more accurate results and to avoid errors.

The software I have used are

  • Microsoft Word
  • GraphCalc (A software used for drawing graphs)

Change of Sign Method

x4-4x +2

image00.png

We see that the roots lie in between [0, 1] and [1, 2]

We confirm this by looking for a change of sign

x

0

1

2

f(x)

2

-1

10

...read more.

Middle

0.00275

0.0024

0.00206

x

0.5175

0.5176

0.5177

0.5178

0.5179

0.518

f(x)

0.00172

0.00137

0.00103

0.00068

0.00034

-0.000002

Root is in between [0.5179, 0.5180]


Failure Case

There are some cases where this method cannot be used to solve the equation.

Newton-Raphson Method

image01.png

f `(x) = ∫f(x)

= ∫ (x5 – 4x +1)

= 5x4 -4

Roots are in between [0,1] and [1, 2].


We look for the roots in [0,1]

xn+1 =        xn – f (xn)

                  f ` (xn)

xn+1=    xn - (xn5 – 4xn+1)

                      (5xn4 -4)

When x1= 0

                      x2 =   0 – ((0)5 - 4(0) + 1)

                                     5 (0)4 - 4

                      =     0 - 1

                                -4

                      =  0.25

                x3  =  0.25 - ((0.25)5- 4(0.25) + 1)

                                  5(0.25) 4

 = 0.25024533856722

                x4  =  0.20524 - ((0.20524)5- 4(0.20524) + 1)

                                         5(0.20524) 4

      =   0.25024534093233

Root will be in between 0.250235  and 0.250245

Failure Case

Rearranging the Equation in the form  x=g(x)

We start this method by putting f(x) = 0.

x4

...read more.

Conclusion

1/2

                                  x                

                      xn+1 = (4xn - 2)1/2

                                   xn

x1 = 1 x1 = 2

x2  = 1.414x2 = 1.2247

x3  = 1.352x3 = 1.3901

x4 = 1.3654x4 = 1.3573

x5 = 1.3626x5 = 1.3643

x6= 1.3632x6 = 1.3628

x7 = 1.3630x7 = 1.3631

x8 = 1.3631                                x8 = 1.3631

x9 = 1.3631                                


x = x4 + 2

                         4

is equivalent to solving

        y = x        

        y =   x4 + 2       is y = g(x)        

                4        

The solution is where the line crosses the graph

image02.png

Rearrangement will work if its gradient g’(x) is less than the gradient of y = x otherwise it fails. The gradient of y = x is 1.

| g’(x) |  < 1  method works

| g’(x) |  > 1  method fails

g(x) = x4  +  2

               4        4        

g’(x) =  4x3

          4        

g’(x)        = x3

In [0, 1] , say  x= 0.5

 g’(x)  = (0.5)3

           = 0.625 < 1 . The method works

In [1, 2] , say x= 1.5

 g’(x)  = (1.5) 3

           = 5.0625 > 1. The method fails.        

...read more.

This student written piece of work is one of many that can be found in our AS and A Level Core & Pure Mathematics section.

Found what you're looking for?

  • Start learning 29% faster today
  • 150,000+ documents available
  • Just £6.99 a month

Not the one? Search for your essay title...
  • Join over 1.2 million students every month
  • Accelerate your learning by 29%
  • Unlimited access from just £6.99 per month

See related essaysSee related essays

Related AS and A Level Core & Pure Mathematics essays

  1. Marked by a teacher

    C3 Coursework - different methods of solving equations.

    5 star(s)

    If that g'(x) < -1 or g'(x) > 1, then we know that the function will not converge to the root but will diverge away. e.g. Let us take a the last g(x) function possible from my f(x) function. x= x5 + 6x2 + 4 --> g(x)

  2. Arctic Research (Maths Coursework)

    Base Camp (B.C) 1 to Observation site A The angle at which the wind will act on the plane is the same as from the original base camp, which was in the middle, to observation site A, as the movement of the base camp only has a vertical component.

  1. Numerical solutions of equations

    x6 = 0.680769 x7 = 0.680769 I can see a definite convergence from x6. So the root is x = 0.680769 which is similar to what I obtained when finding the same root using the Rearrangement method and the Decimal Search method.

  2. I am going to solve equations by using three different numerical methods in this ...

    =2*B4^3-3*B4^2-8*B4+9 =2*C4^3-3*C4^2-8*C4+9 =(B4+C4)/4 =2*F4^3-3*F4^2-8*F4+9 =IF(G4>0,B4,F6) =IF(G4>0,F4,C6) =2*B4^3-3*B4^2-8*B4+10 =2*C4^3-3*C4^2-8*C4+10 =(B4+C4)/5 =2*F4^3-3*F4^2-8*F4+10 =IF(G4>0,B4,F7) =IF(G4>0,F4,C7) =2*B4^3-3*B4^2-8*B4+11 =2*C4^3-3*C4^2-8*C4+11 =(B4+C4)/6 =2*F4^3-3*F4^2-8*F4+11 =IF(G4>0,B4,F8) =IF(G4>0,F4,C8) =2*B4^3-3*B4^2-8*B4+12 =2*C4^3-3*C4^2-8*C4+12 =(B4+C4)/7 =2*F4^3-3*F4^2-8*F4+12 =IF(G4>0,B4,F9) =IF(G4>0,F4,C9) =2*B4^3-3*B4^2-8*B4+13 =2*C4^3-3*C4^2-8*C4+13 =(B4+C4)/8 =2*F4^3-3*F4^2-8*F4+13 =IF(G4>0,B4,F10) =IF(G4>0,F4,C10) =2*B4^3-3*B4^2-8*B4+14 =2*C4^3-3*C4^2-8*C4+14 =(B4+C4)/9 =2*F4^3-3*F4^2-8*F4+14 =IF(G4>0,B4,F11) =IF(G4>0,F4,C11) =2*B4^3-3*B4^2-8*B4+15 =2*C4^3-3*C4^2-8*C4+15 =(B4+C4)/10 =2*F4^3-3*F4^2-8*F4+15 =IF(G4>0,B4,F12)

  1. Solving Equations. Three numerical methods are discussed in this investigation. There are advantages and ...

    - Output of the function when x=b - The mid point of a and b - Output of the function when x=c - Possible error can occur in the result. n a f(a) b f(b) C f(c) error 1 0 2 2 -2 1 2 1 2 1 2 2

  2. C3 COURSEWORK - comparing methods of solving functions

    y= x³+3x²–3 The fact is that f (0) is negative and f (1) is positive, which tells us that the graph must cross along the x axis between 0 and 1. Hence there must be a root in the range [0, 1] F (0.87939)

  1. Solving Equations Using Numerical Methods

    The second step was to move closer by entering into Excel by entering -3.5 to -3.4 (in 0.01?s) with the same formula in the next column. This gave me the answer as to where the change of sign was ? between -3.5 and -3.49.

  2. Evaluating Three Methods of Solving Equations.

    are no roots because the curve goes through the x-axis and then comes up again within the search field, unless of course the initial search field itself is narrowed considerably which may be difficult to ascertain. An example of such an equation is: y=x3+0.12075x2-14.1508x+19.9297 As you can see, if we

  • Over 160,000 pieces
    of student written work
  • Annotated by
    experienced teachers
  • Ideas and feedback to
    improve your own work