• Join over 1.2 million students every month
  • Accelerate your learning by 29%
  • Unlimited access from just £6.99 per month

numerical solutions-Comparison of the three methods and Newton Raphson

Extracts from this document...


Numerical Solutions of equations

  1. Newton Raphson method

Equation to be solved is x³−5x−1=0  The function f(x)= x³−5x−1is shown below


There are 3 roots. I will first find the root in the interval [2, 3]

I will do the first few lines of calculation manually.

The formula to use is:  xn+1= xn –f(xn)/ f’(xn)

Therefore I must first differentiate x³−5x−1 which is 3x2-5

Using x1=3

X2:   3 – [(33-5 x 3-1)/(3 x 32 -5)] = 2.5

X3:   2.5 – [(2.53-5 x 2.5-1)/(3 x 2.52 -5)] = 2.3455

I will now work out all 3 roots using autograph until 5 significant figures are guaranteedimage01.pngimage06.pngimage07.png

The 3 boxes above show how I obtained the 3 roots of the equation x³−5x−1=0    

Which are -0.20164, -2.1284 and 2.3301

Below is the function f(x)= x³−5x−1 showing where I applied the

...read more.




Error bounds for interval [2, 3]

2.3301 is the root in this interval to 5 significant figures.

Therefore the error is 2.3301 ± 0.00005 I will now perform the change of sign test to confirm it is within these limits.

Lower limit is 2.33005 then f (2.33005) = -0.000098648

Upper limit is 2.33015 then f (2.33015) = 0.0010302

There is a change of sign which confirms root in interval is 2.3301 ± 0.00005

When does this method fail?

The Newton Raphson method does not always work, I will show this Using the equation (5x+4)1/7 =0

This function is shown below with autographs attempt to find the root using tangents to the curve starting at x= -1

The function f(x) = (5x+4)1/7


As you can see from the graph and the Values of x in the table, it was unable to find the root in the interval [-1, 0].image13.png

This is because of the gradient of the curve, where my starting value is very close to a turning point. Then rather than converging towards the root, it is diverging further and further away on the x axis, therefore overflows and is unable to find the root.

Comparison of methods

...read more.


Comparing Ease of use of Hardware and software

It’s very obvious that the hardware and software speeds up the process of working out the solutions dramatically, as manually is very time consuming and easier to make mistakes.

Autograph is very easy to use and therefore Newton Raphson and rearrangement methods are very easy to perform, as you simply have to add the equation and perform the functions required which only require very few steps and choosing the starting point.  However change of sign requires more knowledge of Excel, having to input the formula yourself and choosing appropriate values for x to converge to the root. However once you know how to use excel you are able to drag down and it copies the formula for each value of x without having to retype it. For the manual calculations I was able to use a calculator, although this was time consuming, setting the starting point to “ans” allowed me to quickly get all the values of x by simply pressing the equals button. Autograph also allowed me to zoom in on roots, changing axes, etc, this helped make the process of finding roots and showing failure much easier.

...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

    The Gradient Function

    5 star(s)

    0.353535 3 1.732051 0.2887 4 2 0.25 1/2*1-0.5 = 0.5 1/2*2-0.5 = 0.3535 1/2*3-0.5 = 0.0.2887 1/2*4-0.5 = 0.25 These are exactly the same as the gradient; therefore this proves that I was correct. I shall now try and do the same for when n = 1/4, to prove that

  2. Numerical Solutions of Equations

    x y = x5-3x+1 0.3 0.10243 0.31 0.072863 0.32 0.043355 0.33 0.013914 0.34 -0.01546 It has taken another five steps to find the root to an accuracy of 1 decimal place.

  1. Numerical solutions of equations

    So my starting value for x (x1) would be 0.5. x1 = 0.5 (I substitute x1 = 0.5 into iterative formula to get x2) x2 = 0.701561 (I substitute x2 value into iterative formula to get x3) x3 = 0.676396 x4 = 0.681619 x5 = 0.680600 x6 = 0.680802 x7=

  2. C3 Coursework: Numerical Methods

    This is also because the formula was more complex. Like the previous methods, I used Microsoft Excel when using the x=g(x) method. This method, like the others, was simple to use with Microsoft Excel. It was simple to type in the formula I used as well as the replicate the same formula.

  1. C3 Numerical Solutions to Equations

    = -1.47*10^-6. f(- 2.72115744) = 8.29*10^-7. Therefore there is a root as the function is continuous. f(x)=0 can be rearranged into the form x=g(x)=(x4-2x�+5x�-7x-2)0.2 The x=g(x) iterations are applied to give the results: Therefore x = -2.72115745 � 0.000000005 f(- 2.72115746) = -1.47*10^-6. f(- 2.72115744)

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

    Microsoft Excel can also helpful and therefore a spread sheet is set up: n xn g(xn) g'(x) 1 0.5 =0.5*B2^3-B2^2+1 =(3/2)*B2^2-2*B2 2 =C2 =0.5*B3^3-B3^2+1 =(3/2)*B3^2-2*B3 3 =C3 =0.5*B4^3-B4^2+1 =(3/2)*B4^2-2*B4 -number of iteration done. - value of x - output of x when - gradient of xn n xn g(xn) g'(xn)

  1. MEI numerical Methods

    For this piece of coursework, my equation can be rearranged into two forms. The first one is, x(n+1)=1-k*tan(n) , this can be described as G(x), it can also be arranged into x(n+1) =arctan(1-x(n))/k, the rearranged form can be described as H(x).

  2. C3 COURSEWORK - comparing methods of solving functions

    If I only had a scientific calculator, Newton Raphson will be the fastest way to find the roots. The reason is that it only involves a few calculations and it is easy to calculate them. On the other hand, change of signs method involves a number of tables and it makes it inconvenience for us to find the roots.

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