Docsity

Math 128 Final project, Schemes and Mind Maps of Mathematical Methods for Numerical Analysis and Optimization

Partial preview of the text

Download Math 128 Final project and more Schemes and Mind Maps Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

Final Project: Modified zero-in for root-finding

We would like to find a root of the equation

f (x) = 0, for x ∈ R

given an initial interval [a, b] with

f (a) · f (b) < 0.

with a combination of two methods ▶ (^) bisection method, for its reliability ▶ (^) inverse quadratic interpolation (IQI) method, for its higher order of convergence.

inverse quadratic interpolation (IQI) method

Given three pairs of points (x 0 , f 0 ) , (x 1 , f 1 ) , (x 2 , f 2 ), IQI defines a quadratic polynomial in f that goes through these points,

x (f ) = (f^ −^ f^1 ) (f^ −^ f^2 ) (f 0 − f 1 ) (f 0 − f 2 )

x 0 + (f^ −^ f^0 ) (f^ −^ f^2 ) (f 1 − f 0 ) (f 1 − f 2 )

x 1 + (f^ −^ f^0 ) (f^ −^ f^1 ) (f 2 − f 0 ) (f 2 − f 1 )

x 2

This leads to an estimate for the root x 3 def = x (0):

x 3 = (^) (f f^1 f^2 0 −^ f 1 ) (f 0 −^ f 2 )^

x 0 + (^) (f f^0 f^2 1 −^ f 0 ) (f 1 −^ f 2 )^

x 1 + (^) (f f^0 f^1 2 −^ f 0 ) (f 2 −^ f 1 )^

x 2

Modified zero-in for root-finding in a sketch

For given initial interval [a, b] with f (a) · f (b) < 0.

We would like to find a root of the equation f (x) = 0, for x ∈ R

  1. set x 0 , x 1 , x 2 = a, b, c def = a+ 2 b
  2. let x 3 = IQI (x 0 , x 1 , x 2 ) ▶ (^) if x 3 ̸∈ [a, b] ▶ (^) do bisection steps on [a, b] ▶ (^) set new interval [anew, bnew] ⊂ [a, b] with f (anew) · f (bnew) < 0 , repeat step (1) ▶ (^) else if |f (x 3 )| has not decreased by a factor of 2 within 4 consecutive IQI iterations, ▶ (^) do bisection steps on [a, b] ▶ (^) set new interval [anew, bnew] ⊂ [a, b] with f (anew) · f (bnew) < 0 , repeat step (1) ▶ (^) repeat IQI in step (2)
  3. stop when iteration converged