Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lecture 6 Numerical Analysis. Solution of Non-Linear Equations Chapter 2.

Similar presentations


Presentation on theme: "Lecture 6 Numerical Analysis. Solution of Non-Linear Equations Chapter 2."— Presentation transcript:

1 Lecture 6 Numerical Analysis

2 Solution of Non-Linear Equations Chapter 2

3 Introduction Bisection Method Regula-Falsi Method Method of iteration Newton - Raphson Method Secant Method Muller’s Method Graeffe’s Root Squaring Method

4 Bisection Method (Bolzano)

5 Regula-Falsi Method Method of false position

6 Method of Iteration

7 Let x = a is the desired root Suppose x 0 is its initial approximation. The first and successive approximations to the root can be obtained as

8

9 Newton - Raphson Method

10 An approximation to the root is given by

11 Better and successive approximations x 2, x 3, …, x n to the root are obtained from N-R Formula

12 Example Find a real root of the equation x 3 – x – 1 = 0 using Newton - Raphson method, correct to four decimal places.

13 Solution Let f (x) = x 3 –x – 1, Then f (1) = – 1, f (2) = 5 Therefore, the root lies in the interval (1, 2).

14 Further f’ (x) = 3x 2 – 1, f” (x) =6x Since f (2) and f”(2) are of the same sign, we choose x 0 = 2 as the first approximation to the root.

15 The second approximation is computed using Newton-Raphson method as and

16 The successive approximations are Hence, the required root is 1.3247.

17 Note ! Methods such as bisection method and the false position method of finding roots of a nonlinear equation f( x ) = 0 require bracketing of the root by two guesses. Such methods are called bracketing methods.

18 These methods are always convergent since they are based on reducing the interval between the two guesses to zero in on the root.

19 In the Newton-Raphson method, the root is not bracketed. Only one initial guess of the root is needed to get the iterative process started to find the root of an equation. Hence, the method falls in the category of open methods.

20 Newton - Raphson method is based on the principle that if the initial guess of the root of f( x ) = 0 is at x i, then if one draws the tangent to the curve at f( x i ), the point x i+1 where the tangent crosses the x-axis is an improved estimate of the root

21

22 Draw backs of N-R Method Divergence at inflection points: If the selection of a guess or an iterated value turns out to be close to the inflection point of f ( x ), [where f”( x ) = 0 ], the roots start to diverge away from the root.

23 Division of zero or near zero: If an iteration, we come across the division by zero or a near- zero number, then we get a large magnitude for the next value, x i+1.

24 Root jumping: In some case where the function f (x) is oscillating and has a number of roots, one may choose an initial guess close to a root. However, the guesses may jump and converge to some other root.

25 Oscillations near local maximum and minimum : Results obtained from N-R method may oscillate about the local max or min without converging on a root but converging on the local max or min. Eventually, it may lead to division to a number close to zero and may diverge.

26 Convergence of N-R Method

27 Let us compare the N-R formula with the general iteration formula

28 The iteration method converges if Therefore, N-R formula converges, provided in the interval considered.

29 Newton-Raphson formula therefore converges, provided the initial approximation x 0 is chosen sufficiently close to the root and are continuous and bounded in any small interval containing the root.

30 DefinitionLet where is a root of f (x) = 0. If we can prove that where K is a constant and is the error involved at the n - th step, while finding the root by an iterative method, then the rate of convergence of the method is p.

31 The N-R method converges quadratic ally where is a root of f (x) = 0 and is the error involved at the n-th step, while finding the root by N-R formula

32

33 Using Taylor’s expansion, we get

34 Since is a root, Therefore, the above expression simplifies to

35 On neglecting terms of order and higher powers, we obtain Where It shows that N-R method has second order convergence or converges quadratic ally.

36 Example Set up Newton’s scheme of iteration for finding the square root of a positive number N.

37 Solution The square root of N can be carried out as a root of the equation Let

38 By Newton’s method, we have In this Problem Therefore

39 Example Evaluate, by Newton’s formula. SolutionSince we take

40 Hence

41 Lecture 6 Lecture 6 Numerical Analysis


Download ppt "Lecture 6 Numerical Analysis. Solution of Non-Linear Equations Chapter 2."

Similar presentations


Ads by Google