Today’s class Roots of equation Finish up incremental search

Slides:



Advertisements
Similar presentations
Part 2 Chapter 6 Roots: Open Methods
Advertisements

Chapter 6: Roots: Open Methods
Lecture 5 Newton-Raphson Method
Part 2 Chapter 6 Roots: Open Methods
Roundoff and truncation errors
Roots of Equations Our first real numerical method – Root finding
Open Methods Chapter 6 The Islamic University of Gaza
ROOTS OF EQUATIONS Student Notes ENGR 351 Numerical Methods for Engineers Southern Illinois University Carbondale College of Engineering Dr. L.R. Chevalier.
Today’s class Romberg integration Gauss quadrature Numerical Methods
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 61.
Open Methods Chapter 6 The Islamic University of Gaza
Open Methods Chapter 6 The Islamic University of Gaza
Open Methods.
Chapter 4 Roots of Equations
PHYS2020 NUMERICAL ALGORITHM NOTES ROOTS OF EQUATIONS.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 51.
Roots of Equations Open Methods (Part 2).
Chapter 6 Open Methods.
A few words about convergence We have been looking at e a as our measure of convergence A more technical means of differentiating the speed of convergence.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 6 Roots of Equations Bracketing Methods.
Open Methods (Part 1) Fixed Point Iteration & Newton-Raphson Methods
Roots of Equations Bracketing Methods.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 9 Roots of Equations Open Methods.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Martin Mendez UASLP Chapter 61 Unit II.
Systems of Non-Linear Equations
Open Methods Chapter 6 The Islamic University of Gaza
Dr. Marco A. Arocha Aug,  “Roots” problems occur when some function f can be written in terms of one or more dependent variables x, where the.
Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 8 Roots of Equations Open Methods.
Roots of Equations Open Methods Second Term 05/06.
Roots of Equations Chapter 3. Roots of Equations Also called “zeroes” of the equation –A value x such that f(x) = 0 Extremely important in applications.
MATH 685/ CSI 700/ OR 682 Lecture Notes Lecture 8. Nonlinear equations.
Today’s class Numerical Integration Newton-Cotes Numerical Methods
Solving Non-Linear Equations (Root Finding)
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 2 Roots of Equations Why? But.
Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis
Review Taylor Series and Error Analysis Roots of Equations
Today’s class Spline Interpolation Quadratic Spline Cubic Spline Fourier Approximation Numerical Methods Lecture 21 Prof. Jinbo Bi CSE, UConn 1.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Roots of Equations ~ Open Methods Chapter 6 Credit:
1 Nonlinear Equations Jyun-Ming Chen. 2 Contents Bisection False Position Newton Quasi-Newton Inverse Interpolation Method Comparison.
Lecture 6 Numerical Analysis. Solution of Non-Linear Equations Chapter 2.
Chapter 3 Roots of Equations. Objectives Understanding what roots problems are and where they occur in engineering and science Knowing how to determine.
Numerical Methods for Engineering MECN 3500
Today’s class Numerical Differentiation Finite Difference Methods Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 1.
Numerical Methods Root Finding 4. Fixed-Point Iteration---- Successive Approximation Many problems also take on the specialized form: g(x)=x, where we.
MECN 3500 Inter - Bayamon Lecture 6 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
4 Numerical Methods Root Finding Secant Method Modified Secant
linear  2.3 Newton’s Method ( Newton-Raphson Method ) 1/12 Chapter 2 Solutions of Equations in One Variable – Newton’s Method Idea: Linearize a nonlinear.
ROOTS OF EQUATIONS. Bracketing Methods The Bisection Method The False-Position Method Open Methods Simple Fixed-Point Iteration The Secant Method.
Lecture 5 - Single Variable Problems CVEN 302 June 12, 2002.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 5 Bracketing Methods.
Solving Non-Linear Equations (Root Finding)
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Applied Numerical Methods With MATLAB ® for Engineers.
Today’s class Numerical differentiation Roots of equation Bracketing methods Numerical Methods, Lecture 4 1 Prof. Jinbo Bi CSE, UConn.
4 Numerical Methods Root Finding Secant Method Modified Secant
Today’s class Ordinary Differential Equations Runge-Kutta Methods
4 Numerical Methods Root Finding.
Exam 1 Oct 3, closed book Place ITE 119, Time:12:30-1:45pm One double-sided cheat sheet (8.5in x 11in) allowed Bring your calculator to the exam Chapters.
6/13/ Secant Method Computer Engineering Majors Authors: Autar Kaw, Jai Paul
CSE 330: Numerical Methods. Introduction The bisection and false position method require bracketing of the root by two guesses Such methods are called.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 2 / Chapter 5.
Part 2 Chapter 6 Roots: Open Methods
§2.2: Estimating Instantaneous Rate of Change
Chapter 6.
Solution of Equations by Iteration
Today’s class Multiple Variable Linear Regression
Computers in Civil Engineering 53:081 Spring 2003
Chapter 6.
Part 2 Chapter 6 Roots: Open Methods
Presentation transcript:

Today’s class Roots of equation Finish up incremental search Open methods Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

False Position Method Although the interval [a,b] where the root becomes iteratively closer with the false position method, unlike the bisection method, the size of the interval does not necessarily converge to zero. Sometimes it can cause the false position to converge slower than bisection Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

False Position Method Numerical Methods, Prof. Jinbo Bi CSE, UConn Lecture 5 Prof. Jinbo Bi CSE, UConn

False Position Method Modified False Position Method Detect when you get stuck and use a bisection method Can get you to convergence faster Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Incremental Searches Dependent on knowing the bracket in which the root falls Can use bracketed incremental search to speed up exhaustive search How big a bracket or increment can determine how long the search will take Too small increment and it will take too long Too big increment may miss roots, in partular, the multiple roots Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Incremental Searches Numerical Methods, Prof. Jinbo Bi CSE, UConn Lecture 5 Prof. Jinbo Bi CSE, UConn

Open Methods Bracket methods depend on knowing the interval in which the root resides What if you don’t know the upper and lower bound on the root? Open methods Use a single estimate of the root Use two starting points but not bracketing the root May not converge on root Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Open Methods Numerical Methods, Prof. Jinbo Bi CSE, UConn Lecture 5 As shown in this Figure, Bracket methods shrinks the search interval, by repeating this process, it always results in better estimate of true root. This means convergence. Now for open method, we start from one single estimate, or perhaps two estimates that do not necessarily bracket the root. Then we apply a formula to get next estimate. This does not guarantee convergence. Look at this figure. Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Open Methods Fixed-Point Iteration One-point iteration Successive substitution Start with equation f(x) = 0 and rearrange so x is on left hand side. If algebraic manipulation doesn’t work, just add x to both sides Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Fixed-point iteration The function transformation allows us to use g(x) to calculate a new guess of x Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Example Find root of f(x)=e-x-x Transform f(x)=0 to x=g(x)=e-x Start with an estimate of x0=0 x1=g(x0)=e-0=1 Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Example true value of the root: 0.56714329 Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Example Numerical Methods, Prof. Jinbo Bi CSE, UConn Lecture 5 Here are the two graphical methods to determine the root of the function f(x). One method is the standard way that we draw the curve that corresponds to the function itself, then we look at where this curve intersects with the x-axis to find a root. The other method is to examine the function so we find finding the root of f(x) is the same as finding the value of x so that this e(-x) = x, which means we look at the intersection of the two functions, one is e(-x), the other is f(x) = x. So the fixed point method follows the idea of the second graphical method. Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Fixed-point iteration Convergence properties If converge, much faster than bracketing methods May not converge Depends on the curve characteristics Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Fixed-point iteration Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Fixed-point iteration Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Fixed-point iteration Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Fixed-point iteration Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Convergence Analysis Assume xr is the true root Combine with the iterative relationship Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Fixed-point iteration Use derivative mean-value theorem If the derivative is less than 1, the error will get smaller with each iteration (monotonic or oscillating). If the derivative is greater than 1, the error will get larger with each iteration. Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Newton-Raphson Method Similar idea to False Position Method Use tangent to guide you to the root Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Example Find root of f(x)=e-x-x Start with an estimate of x0=0 Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Example true value of the root: 0.56714329 Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Newton-Raphson Method Convergence analysis First-order Taylor series expansion At root Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Newton-Raphson Method Newton-Raphson method is quadratically convergent If Newton-Raphson method does converge, The error at each iteration is roughly proportional to the square of the previous error. This means that the number of correct decimal places approximately doubles with each iteration. Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Newton-Raphson Method Problems and Pitfalls Slow convergence when initial guess is not close enough May not converge at all Problems with multiple roots Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Newton-Raphson Method Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Newton-Raphson Method Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Newton-Raphson Method Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Newton-Raphson Method Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Newton-Raphson Method Algorithm should guard against slow convergence or divergence If slow convergence or divergence detected, use another method Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Secant method Newton-Raphson method requires calculation of the derivative Instead, approximate the derivative using backward finite divided difference Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Secant method From Newton-Raphson method Replace with backward finite difference approximation Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Example Find root of f(x)=e-x-x Start with an estimate of x-1=0 and x0=1 Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Example true value of the root: 0.56714329 Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Secant Method vs. False-Position Method False-Position method always brackets the root False-Position will always converge Secant method may not converge Secant method usually converges much faster Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Secant Method vs. False-Position Method Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Modified Secant Method Instead of using backward finite difference to estimate the derivative, use a small delta Substitute back into Newton-Raphson formula Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Example Find root of f(x)=e-x-x Start with an estimate of x0=1 and δ=0.01 Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Example true value of the root: 0.56714329 Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn

Next class Polynomial roots Read Chapter 7 Numerical Methods, Lecture 5 Prof. Jinbo Bi CSE, UConn