• 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
  13. 13
    13
  14. 14
    14
  15. 15
    15
  16. 16
    16

Examining, analysing and comparing three different ways in which to find the roots to an equation.

Extracts from this document...

Introduction

Advanced Mathematics (C3) Coursework Introduction: For my investigation, I will be examining, analysing and comparing three different ways in which to find the roots to an equation. It will include the "Change of Sign Method", the "Newton-Raphson Method" and finally the method of rearranging "f(x) = 0" into the form "x = g(x)". I will be finding roots of equations using the methods, and hence compare the merits and flaws of the methods with each other. I will analyse which is the best in terms of factors such as a speed of convergence and ease of use with available software and hardware. Change of Sign Method: This method finds a root to an equation by looking at when values of f(x) change sign from positive to negative or vice versa. This works because when the value of f(x) changes its sign, it must have passed through the x axis, and thus the root is somewhere between the two values that changed. The technique of the method can be done in many ways such as by interval bisection or linear interpolation. However, I will be using the decimal search method. With decimal search, you first draw the graph of the curve that is to be investigated, and look for where the curve passes through the x axis, as these points are where the roots are. But as you cannot guess exactly where the roots are, you take intervals: the two points surrounding where the curve passes through the x axis. These points are taken as whole numbers. The next step is then to investigate where exactly between this interval, the value of f(x) changes to positive, or negative. To do this you go one decimal point further between these values. For example if the root was between 3 and 4, you would now investigate every 0.1 value, such as 3.1, 3.2, 3.3 and so on. ...read more.

Middle

These were the results: x1 0.281250000000 x2 0.255561828613 x3 0.254172803842 x4 0.254105133149 x5 0.254101855184 x6 0.254101696443 x7 0.254101688756 x8 0.254101688384 x9 0.254101688366 x10 0.254101688365 x11 0.254101688365 As shown, the values converge to a single point, 0.254101688365, which is the root to the degree of accuracy of 12 decimal places. The convergence of these values is shown on the graph on the following page, which illustrates each of the approximations that were taken, showing how they got closer and closer to the root, and finally reached it: The magnitude of g`(x) could be calculated by first finding g`(x) of the equation which was done by differentiation: g`(x) = 3x/4 So with a starting point of 1, the gradient of the line at that point would be: (3 x 1)/4 = 0.75 As the value was less than 1, but still higher than -1, the iteration converged towards the root, and didn't diverge. Failure of Rearranging Method: This method can fail when the gradient, g`(x), of "a" is above 1 or less than -1, as then the iteration does not converge towards the root, and instead diverges away from it. This can be shown in the example below. By taking the same equation, I rearranged it in a different way, giving the resulting equation: x = x� - 3x + 1 I then drew the graph to see where the roots were: I then chose to try and investigate one of the roots. I picked the root at the interval, [1, 2] and chose the starting value of 2. The results of the iteration were as follows: x1 2.0000000000 x2 3.097656250000 x3 7.680870190263 x4 113.534706794433 x5 365869.522500695000 x6 12243869989713700.000000000000 As the results showed, the iteration was not converging towards a root, but instead was diverging, and eventually the program failed as it was "overflowing". This happened as the gradient of "a" was larger than 1, and thus the iteration will not converge towards the root. ...read more.

Conclusion

Comparison of Speed of Convergence: The speed of convergence for the Newton-Raphson was much faster than that of the Rearranging Method. This is because by finding the tangent to the curve each time, it is getting closer to the root of the equation faster, rather than finding the points of intersection between the curve y = g(x) and y =x, as that takes more iterations in order to reach the root. For the equation, it took the Newton-Raphson method only 5 steps to reach the answer, whereas it took the Rearranging Method 11 steps, thus over twice as slow. However, both of these methods are faster than that of the Change of Sign method, as for that you must examine a huge amount of values of x in order to find where the sign changes, and it takes a very long time to find the root to the same amount of accuracy as the rest. The actual number of calculations needed was 132, compared to that of 5 and 11 steps for the other methods, makes it a very tedious method. Comparison of Ease of Use with Available Software and Hardware: The Rearranging Method and Newton-Raphson Method are relatively similar in their demands for software and hardware, as they both require a machine and software that is able to plot graphs, so that the roots can be spotted and fixed point estimations can be made. The Change of Sign Method however, does not require this as it can simply see when the sign changes and thus discover the roots. The iterations of the Newton Raphson Method and Rearranging Method can be calculated via easy formulas in a spreadsheet program such as Excel, though they require no more hardware or software than that of the Change of Sign method, which also uses simple spreadsheet formulas to calculate the value of f(x). However, the Change of Sign method does require more hard disk space as the calculations can be very large at times in comparison with the other methods. Daniel Hoij 13.6 DCGS Centre No. 52205 Candidate No. 8670 ...read more.

The above preview is unformatted text

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. Change of Sign Method.

    x -0.9180 -0.9179 -0.9178 -0.9177 -0.9176 f(x) 0.003827368 0.00331297766 0.00279857225 0.00228415177 0.00176971622 x -0.9175 -0.9174 -0.9173 -0.9172 f(x) 0.00125526563 0.0007408 0.00022631928 -0.00028817645 Therefore the root lies between -0.9173 and -0.9172. Correct to three decimal places the root is -0.917. When x = -0.9165, f(-0.9165)

  2. In my coursework I will be using three equations to investigate their solutions using ...

    < 0 and f(-0.763932) > 0 And my error bounds are (x= -0.763932 � 0.0000005) Here is an example of which Newton Raphson method fails to find a particular root despite using a starting value close to it. Rearrangement method Rearranging equations- any equation f(x)

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

    Check X Y -0.34500825 -0.345008213 -0.34500815 -0.34500824 X g'(x) -0.34500825 -0.271173069 -0.34500815 -0.271173032 Below shows the formulae for using in the Excel: x x=(2x�+3x�-2)/5 n g'(x) 0 =(2*A4^3+3*A4^2-2)/5 0 =(6*A4^2+6*A4)/5 =B4 =(2*A4^3+3*A4^2-2)/6 1 =(6*A4^2+6*A4)/6 =B5 =(2*A4^3+3*A4^2-2)/7 2 =(6*A4^2+6*A4)/7 =B6 =(2*A4^3+3*A4^2-2)/8 3 =(6*A4^2+6*A4)/8 =B7 =(2*A4^3+3*A4^2-2)/9 4 =(6*A4^2+6*A4)/9 =B8 =(2*A4^3+3*A4^2-2)/10 5 =(6*A4^2+6*A4)/10 =B9 =(2*A4^3+3*A4^2-2)/11 6 =(6*A4^2+6*A4)/11 =B10 =(2*A4^3+3*A4^2-2)/12 7 =(6*A4^2+6*A4)/12 =B11

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

    0.03125 6 0.6875 0.002319336 0.71875 -0.049697876 0.703125 -0.023702621 0.015625 7 0.6875 0.002319336 0.703125 -0.023702621 0.6953125 -0.010694265 0.0078125 8 0.6875 0.002319336 0.6953125 -0.010694265 0.69140625 -0.004188031 0.00390625 9 0.6875 0.002319336 0.69140625 -0.004188031 0.689453125 -0.000934478 0.001953125 10 0.6875 0.002319336 0.689453125 -0.000934478 0.688476563 0.000692398 0.000976563 11 0.688476563 0.000692398 0.689453125 -0.000934478 0.688964844 -0.000121048 0.000488281 12

  1. Numerical solution of equations, Interval bisection---change of sign methods, Fixed point iteration ---the Newton-Raphson ...

    1 1.5 -1 1.25 -0.15625 0.25 3 1 1 1.25 -0.15625 1.125 0.39453125 0.125 4 1.125 0.39453125 1.25 -0.15625 1.188 0.11083984 0.0625 5 1.1875 0.110839844 1.25 -0.15625 1.219 -0.0249634 0.03125 6 1.1875 0.110839844 1.21875 -0.0249633 1.203 0.04239655 0.015625 7 1.203125 0.042396545 1.21875 -0.0249633 1.211 0.0085783 0.0078125 8 1.210938 0.0085783 1.21875

  2. Different methods of solving equations compared. From the Excel tables of each method, we ...

    Let Use Autograph to draw the graph of and. Suppose we want to find the root that lies between x=-1 and x=0. With a starting point at x=-1, we can see that it finally diverges away from the required root and enters a recursive cycle.

  1. The method I am going to use to solve x&amp;amp;#8722;3x-1=0 is the Change ...

    work because when I substitute x=0 into the iterative formula, f '(x)=0 which f(x)/f '(x) is undefined. Therefore, the Newton-Raphson method would not work whenever f '(x)=0. In spite of the example above, there are still situations in which Newton-Raphson method will not work, they are: 1)

  2. Functions. Mappings transform one set of numbers into another set of numbers. We could ...

    have to factorise first ==> If we have fractions in the numerator or denominator, multiply to remove the fraction Multiplying and Dividing ==> Multiply the numerators and multiply the denominators. ==> Cancel where necessary ==> Where one fraction is divided by another, invert/flip the second fraction and multiply.

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