67
Root finding Methods Solving Non-Linear Equations (Root Finding)

Root Finding Methods_Solving Non-Linear Equations(Root Finding)

Embed Size (px)

Citation preview

Page 1: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 1/67

Root finding Methods

Solving Non-Linear Equations (Root

Finding)

Page 2: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 2/67

Root finding Methods

• What are root finding methods?

• Methods for determining a solution of an

equation.

• Essentially finding a root of a function, that

is, a zero of the function.

Page 3: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 3/67

Root finding Methods

• Where are they used?

• Some applications for root finding are:

systems of equilibrium, elliptical orbits, the

van der Waals equation, and natural

frequencies of spring systems.

Page 4: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 4/67

• The problem of solving non-linear 

equations or sets of non-linear equations is a

common problem in science, appliedmathematics.

Page 5: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 5/67

• The problem of solving non-linear 

equations or sets of non-linear equations is a

common problem in science, appliedmathematics.

• The goal is to solve f(x) = 0 , for the

function f(x).• The values of x which make f(x) = 0 are the

roots of the equation.

Page 6: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 6/67

f(a)=0  f(b)=0 

a,b are roots of thefunction f(x)

f(x) 

Page 7: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 7/67

• More complicated problems are sets of non-

linear equations.

f(x, y, z) = 0

h(x, y, z) = 0

g(x, y, z) = 0 

Page 8: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 8/67

• More complicated problems are sets of non-

linear equations.

f(x, y, z) = 0

h(x, y, z) = 0

g(x, y, z) = 0 

• For N variables (x, y, z ,…), the equations

are solvable if there are N linearly

independent equations.

Page 9: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 9/67

• There are many methods for solving non-linear equations. The methods, which will behighlighted have the following properties:

1. the function f(x) is expected to be continuous. If not the method may fail.

2. the use of the algorithm requires that the

solution be bounded.3. once the solution is bounded, it is refined to

specified tolerance.

Page 10: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 10/67

Four such methods are:

• Interval Halving (Bisection method)

• Regula Falsi (False position)

• Secant method

• Fixed point iteration• Newton’s method 

Page 11: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 11/67

Bisection Method 

Page 12: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 12/67

Bisection Method

• It is the simplest root-

finding algorithm.

• requires previousknowledge of two initial

guesses, a and b, so that

 f (a) and f (b) have

opposite signs.initial pt ‘a’

root ‘d’

initial pt ‘b’

ac b

d

Page 13: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 13/67

Bisection Method

• Two estimates are chosen

so that the solution is

 bracketed. ie f (a) and f (b)have opposite signs.

• In the diagram this f(a)

< 0 and f(b) > 0.

• The root d lies between

a and b!initial pt ‘a’

root ‘d’

initial pt ‘b’

ac b

d

Page 14: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 14/67

Bisection Method

• The root d must always

be bracketed (be

between a and b)!• Iterative method.

initial pt ‘a’

root ‘d’

initial pt ‘b’

ac b

d

Page 15: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 15/67

Bisection Method

• The interval between a

and b is halved by

calculating the average of a and b.

• The new point c =

(a+b)/2. 

• This produces are two

 possible intervals: a < x < c

and c < x < b.

initial pt ‘a’

root ‘d’

initial pt ‘b’

ac b

d

Page 16: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 16/67

Bisection Method

• This produces are two

 possible intervals: a < x < c

and c < x < b.• If f(c ) > 0, then x = d 

must be to the left of 

c :interval a < x < c.

• If f(c ) < 0, then x = d 

must be to the right of 

c :interval c < x < b.

initial pt ‘a’

root ‘d’

initial pt ‘b’

ac b

d

Page 17: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 17/67

Bisection Method

• If f(c ) > 0, let anew = a

and bnew = c and repeat

 process.• If f(c ) < 0, let anew = c

and bnew = b and repeat

 process.

• This reassignment ensures

the root is always

bracketed!!

initial pt ‘a’

root ‘d’

initial pt ‘b’

ac b

d

Page 18: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 18/67

Bisection Method

• This produces are two

 possible intervals: a < x < c

and c < x < b.• If f(c ) > 0, then x = d 

must be to the left of 

c :interval a < x < c.

• If f(c ) < 0, then x = d 

must be to the right of 

c :interval c < x < b.

initial pt ‘a’root ‘d’

initial pt ‘b’

ac b

d

Page 19: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 19/67

Bisection Method

ci = (ai + bi )/2

if f(ci) > 0; ai+1 = a and bi+1 = c

if f(ci) < 0; ai+1 = c and bi+1 = b

Page 20: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 20/67

Bisection Method

• Bisection is an iterative

 process, where the initial

interval is halved until the sizeof the interval decreases until

it is below some predefined

tolerance : |a-b|   or f(x)

falls below a tolerance :|f(c ) – f(c-1)|  .

 

 

Page 21: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 21/67

Bisection Method

• Advantages

1. Is guaranteed to work if f(x) is continuous

and the root is bracketed.

2. The number of iterations to get the root to

specified tolerance is known in advance

Page 22: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 22/67

Bisection Method

• Disadvantages

1. Slow convergence.

2. Not applicable when here are multiple

roots. Will only find one root at a time.

Page 23: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 23/67

Linear Interpolation Methods

Page 24: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 24/67

Linear Interpolation Methods

• Most functions can be approximated by a

straight line over a small interval. The two

methods :- secant and false position are based on this.

Page 25: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 25/67

Secant Method

Page 26: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 26/67

Secant Method

Page 27: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 27/67

Overview of Secant Method

• Again to initial guessesare chosen.

• However there is notrequirement that the rootis bracketed!

• The method proceeds bydrawing a line through

the points to get a new point closer to the root.

• This is repeated until theroot is found.

Page 28: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 28/67

Secant Method

• First we find two

 points(x0,x1), which are

hopefully near the root(we may use the

 bisection method).

• A line is then drawn

through the two pointsand we find where the

line intercepts the x-axis,

x2.

Page 29: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 29/67

Secant Method

• If f(x) were truly linear,

the straight line would

intercept the x-axis at theroot.

• However since it is not

linear, the intercept is

not at the root but itshould be close to it.

Page 30: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 30/67

Secant Method

• From similar triangles

we can write that,

10

10

1

21

 x f   x f   x x

 x f   x x

1 x

0 x

2 x

1 x f 

0

 x f 

Page 31: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 31/67

Secant Method

• From similar triangles

we can write that,

• Solving for x2 we get:

10

10

1

21

 x f   x f   x x

 x f   x x

10

10112

 x f   x f   x x x f   x x

Page 32: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 32/67

Secant Method

• Iteratively this is

written as:

nn

nnnnn x f   x f  

 x x x f   x x

1

1

1

Page 33: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 33/67

Algorithm

• Given two guesses x0, x1 near the root,

• If then

• Swap x0 and x1.• Repeat

• Set

• Set x0 = x1 • Set x1 = x2 

• Until < tolerance value.

10

x f   x f  

10

10

112*

 x f   x f  

 x x x f   x x

2

 x f  

Page 34: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 34/67

• Because the new point should be closer the

root after the 2nd iteration we usually choose

the last two points.• After the first iteration there is only one

new point. However x1 is chosen so that it is

closer to root that x0.• This is not a “hard and fast rule”! 

Page 35: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 35/67

Discussion of Secant Method

• The secant method has better convergence

than the bisection method( see pg40 of 

Applied Numerical Analysis).• Because the root is not bracketed there are

 pathological cases where the algorithm

diverges from the root.• May fail if the function is not continuous.

Page 36: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 36/67

Pathological Case

• See Fig 1.2 page 40

Page 37: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 37/67

False Position

Page 38: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 38/67

False Position

Page 39: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 39/67

False Position

• The method of false position is seen as an

improvement on the secant method.

• The method of false position avoids the problems of the secant method by ensuring

that the root is bracketed between the two

starting points and remains bracketing between successive pairs.

Page 40: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 40/67

False Position

• This technique is similar to the bisection

method except that the next iterate is taken

as the line of interception between the pair of x-values and the x-axis rather than at the

midpoint.

Page 41: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 41/67

False Position

Page 42: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 42/67

Algorithm

• Given two guesses x0, x1 that bracket the root,

• Repeat

• Set• If is of opposite sign to then

• Set x1 = x2 

• Else Set x0 = x1 • End If 

• Until < tolerance value.

10

10

112 *  x f   x f  

 x x

 x f   x x

2

 x f  

2

 x f   0

 x f  

Page 43: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 43/67

Discussion of False Position Method

• This method achieves better convergence

 but a more complicated algorithm.

• May fail if the function is not continuous.

Page 44: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 44/67

 Newton’s Method 

Page 45: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 45/67

 Newton’s Method 

• The bisection method is useful up to a point.

• In order to get a good accuracy a large

number of iterations must be carried out.

• A second inadequacy occurs when there are

multiple roots to be found.

Page 46: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 46/67

 Newton’s Method 

• The bisection method is useful up to a point.

• In order to get a good accuracy a large

number of iterations must be carried out.

• A second inadequacy occurs when there are

multiple roots to be found.

• Newton’s method is a much better algorithm.

Page 47: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 47/67

 Newton’s Method 

• Newton’s method relies on calculus and

uses linear approximation to the function by

finding the tangent to the curve.

Page 48: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 48/67

 Newton’s Method 

• Algorithm requires an

initial guess, x0, which is

close to the root.

• The point where thetangent line to the function

(f (x)) meets the x-axis is

the next approximation, x1.

• This procedure is repeateduntil the value of ‘x’ is

sufficiently close to zero.

Page 49: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 49/67

 Newton’s Method 

• The equation for 

 Newton’s Method can

 be determined

graphically!

Page 50: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 50/67

 Newton’s Method 

• The equation for 

 Newton’s Method can be

determined graphically!

• From the diagram tan Ө

= ƒ'(x0) = ƒ(x0)/(x0  – x1)

Page 51: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 51/67

 Newton’s Method 

• The equation for 

 Newton’s Method can be

determined graphically!

• From the diagram tan Ө

= ƒ'(x0) = ƒ(x0)/(x0  – x1)

• Thus, x1=x0 -ƒ(x0)/ƒ'(x0).

Page 52: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 52/67

 Newton’s Method 

• The general form of 

 Newton’s Method is:

xn+1 = xn  – f(xn)/ƒ'(xn)

Page 53: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 53/67

 Newton’s Method 

• The general form of 

 Newton’s Method is:

xn+1 = xn  – f(xn)/ƒ'(xn)

• Algorithm

• Pick a starting value for x

• Repeat

• x:= x –  f(x)/ƒ'(x) 

• Return x

Page 54: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 54/67

Fixed point iteration

Page 55: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 55/67

Fixed point iteration

Page 56: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 56/67

Fixed point iteration

• Newton’s method is a special case of the

final algorithm: fixed point iteration.

Page 57: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 57/67

Fixed point iteration

• Newton’s method is a special case of the

final algorithm: fixed point iteration.

• The method relies on the Fixed pointTheorem: 

•  If g(x) and g'(x) are continuous on an interval 

containing a root of the equation g(x) = x, and if |g'(x)| < 1 for all x in the interval then the series

 xn+1 = g(xn ) will converge to the root.

Page 58: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 58/67

• For Newton’s method g(x) = x –  f(x)/ƒ'(x).

• However for fixed point, f(x) = 0 thus

g(x)=x.

Page 59: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 59/67

• The fixed point iteration method requires us torewrite the equation f ( x) = 0 in the form x = g (x),then finding  x=a such that a = g (a), which is

equivalent to f (a) = 0.• The value of  x such that x = g ( x) is called a fixed

 point of  g ( x).

• Fixed point iteration essentially solves twofunctions simultaneously: x( x) and g ( x).

• The point of intersection of these two functions isthe solution to x = g ( x), and thus to f ( x) = 0.

Page 60: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 60/67

Fixed point iteration

• Consider the example on page 54.

Page 61: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 61/67

Fixed point iteration

Page 62: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 62/67

Fixed point iteration

• We get successive

iterates as follows:

• Start at the initial xvalue on the x-axis( p0)

• Go vertically to the

curve.

• Then to the line y=x

Page 63: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 63/67

• We get successive

iterates as follows:

• Start at the initial xvalue on the x-axis( p0)

• Go vertically to the

curve.

• Then to the line y=x

• Then to the curve

• Then the line. Repeat!

Page 64: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 64/67

Fixed point iteration

• Algorithm

• Pick a starting value for x.

• Repeat• x := g(x)

• Return x

Page 65: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 65/67

Fixed point iteration

• The procedure starts from an initial guess of 

 x, which is improved by iteration until

convergence is achieved.• For convergence to occur, the derivative

(d g /d x) must be smaller than 1 in magnitude

for the x values that are encountered duringthe iterations.

Page 66: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 66/67

Fixed point iteration

• Convergence is established by requiring that

the change in x from one iteration to the

next be no greater in magnitude than somesmall quantity ε. 

Page 67: Root Finding Methods_Solving Non-Linear Equations(Root Finding)

7/27/2019 Root Finding Methods_Solving Non-Linear Equations(Root Finding)

http://slidepdf.com/reader/full/root-finding-methodssolving-non-linear-equationsroot-finding 67/67

Fixed point iteration

• Alternative algorithm: