Numerical Method Course Work

Authors Avatar

Numerical Method Course Work

  1. Problem Specification

Finding all the roots of equation (x+1) sin (1/x)=0 for 0.05<x<1.The reason for why I use numerical methods is I can’t solve this equation by any analytical method. And it lies beyond my mathematics knowledge to solve by an algebraic method.

  1. Strategy

I am not sure which method I will use for finding all roots of the equation. So I want to see which method is most efficient method for finding a root, efficient method means can find the roots most quickly. The methods are shown below,

 Bisection Method with the formula: If a root lies between X = X0 and X = X1, then X2 = 0.5 ( X0 + X1 ) will give an approximation to the roots;

 Secant Method     with the formula: If X = X0 and X1 are approximation to a root of X = X0. A better approximation to the root will usually be given by X = X1 – (X1 - X0 )*f (X1 )/[f(X1 )-f(X0 )];

 Linear Iteration    If x = a and x = b are approximations to a root of f (x) = 0 and if x = a and x = b straddle the root, the method of linear iteration given a better approximation to the root as X = [a F (b) – b F (a)]/[F (b)- F (a)].

 Newton-Raphson Method: Xr+1 = Xr – f (Xr)/ f’ (Xr), X0 is given.

Fix-point iteration: The reason why I don’t use Fixed-point method is because to rearrange the formula to x= g (x) is very difficult and I tried this method but found the duration didn’t go to convergence. (Appendix 1) So I didn’t use this method any more.

Join now!

As the spreadsheet (Appendix 2) shown Newton-Raphson method is most efficient method to find a root. ( It just required 4 steps to find the root.)

  1. Formula Application

The sequence of values generated by

                Xr+1 = Xr – f (Xr)/ f’ (Xr), X0 is given. This will usually converge to a root of f (x) = 0 near to x = x0. The method is called the Newton-Raphson method and has second order convergence. (Appendix 5)

In my course work, the equation is  (x+1) sin (1/x) = 0.

So differentiate this function by using chain rule, product rule, and trig. Differentiation.

...

This is a preview of the whole essay