E. T. S. I. Caminos, Canales y Puertos1 Engineering Computation Lecture 4.

Slides:



Advertisements
Similar presentations
E. T. S. I. Caminos, Canales y Puertos1 Lecture 0 Engineering Computation.
Advertisements

E. T. S. I. Caminos, Canales y Puertos1 Engineering Computation Lecture 6.
E. T. S. I. Caminos, Canales y Puertos1 Engineering Computation Lecture 5.
Engineering Computation
E. T. S. I. Caminos, Canales y Puertos1 Engineering Computation Lecture 7.
E. T. S. I. Caminos, Canales y Puertos1 Lecture 2 Engineering Computation.
E. T. S. I. Caminos, Canales y Puertos1 Lecture 1 Engineering Computation.
Part 2 Chapter 6 Roots: Open Methods
Numerical Computation Lecture 4: Root Finding Methods - II United International College.
Chapter 6: Roots: Open Methods
Lecture 5 Newton-Raphson Method
Part 2 Chapter 6 Roots: Open Methods
Roundoff and truncation errors
CSE 330: Numerical Methods
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.
Engineering Computation
Open Methods Chapter 6 The Islamic University of Gaza
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 7 Roots of Equations Bracketing Methods.
Chapter 4 Roots of Equations
Roots of Equations Open Methods (Part 2).
Chapter 6 Open Methods.
Lecture #18 EEE 574 Dr. Dan Tylavsky Nonlinear Problem Solvers.
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
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 9 Roots of Equations Open Methods.
Systems of Non-Linear Equations
Open Methods Chapter 6 The Islamic University of Gaza
Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis
NUMERICAL METHODS WITH C++ PROGRAMMING
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 8 Roots of Equations Open Methods.
Roots of Equations Open Methods Second Term 05/06.
Fin500J: Mathematical Foundations in Finance Topic 3: Numerical Methods for Solving Non-linear Equations Philip H. Dybvig Reference: Numerical Methods.
Chapter 4 Roots of Polynomials.
Professor Walter W. Olson Department of Mechanical, Industrial and Manufacturing Engineering University of Toledo Solving ODE.
MATH 685/ CSI 700/ OR 682 Lecture Notes Lecture 8. Nonlinear equations.
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
Lecture 8 Numerical Analysis. Solution of Non-Linear Equations Chapter 2.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Roots of Equations ~ Open Methods Chapter 6 Credit:
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
CHAPTER 3 NUMERICAL METHODS
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
Lecture 5 - Single Variable Problems CVEN 302 June 12, 2002.
Solving Non-Linear Equations (Root Finding)
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
CSE 2813 Discrete Structures Solving Recurrence Relations Section 6.2.
SOLVING NONLINEAR EQUATIONS. SECANT METHOD MATH-415 Numerical Analysis 1.
4 Numerical Methods Root Finding.
Project on Newton’s Iteration Method Presented by Dol Nath Khanal Project Advisor- Professor Dexuan Xie 05/11/2015.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 2 / Chapter 5.
Computational Methods EML3041
Read Chapters 5 and 6 of the textbook
Chapter 6.
Numerical Analysis Lecture 7.
Computers in Civil Engineering 53:081 Spring 2003
6.5 Taylor Series Linearization
SOLUTION OF NONLINEAR EQUATIONS
ROOTS OF EQUATIONS.
Newton’s Method and Its Extensions
Fixed- Point Iteration
Chapter 6.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Presentation transcript:

E. T. S. I. Caminos, Canales y Puertos1 Engineering Computation Lecture 4

E. T. S. I. Caminos, Canales y Puertos2 Error Analysis for N-R : Recall that Taylor Series gives: where x r  x  x i and f(x r ) = 0 Open Methods (Newton-Raphson Method)

E. T. S. I. Caminos, Canales y Puertos3 Dividing through by f '(x i ) yields E i+1 is proportional to E i 2 ==> quadratic rate of convergence. OR Open Methods (Newton-Raphson Method)

E. T. S. I. Caminos, Canales y Puertos4 Summary of Newton-Raphson Method: Advantages: 1.Can be fast Disadvantages: 1.May not converge 2. Requires a derivative Open Methods (Newton-Raphson Method)

E. T. S. I. Caminos, Canales y Puertos5 Secant Method Approx. f '(x) with backward FDD: Substitute this into the N-R equation: to obtain the iterative expression: Open Methods (Secant Method)

E. T. S. I. Caminos, Canales y Puertos6 Secant Method x i = x i+1 x f(x) f(x i ) xixi f(x i-1 ) f(x) x i-1 x i+ 1 x f(x i ) xixi f(x i-1 ) x i-1 x i+ 1 Open Methods (Secant Method)

E. T. S. I. Caminos, Canales y Puertos7 1) Requires two initial estimates: x i-1 and x i These do NOT have to bracket root ! 2) Maintains a strict sequence: Repeated until: a. | f(x i+1 ) | < k with k = small number b. c. Max. number of iterations is reached. 3. If x i and x i+1 were to bracket the root, this would be the same as the False-Position Method. BUT WE DON'T! Open Methods (Secant Method)

E. T. S. I. Caminos, Canales y Puertos8 Fixed point Method  predict a value of x i+1 as a function of x i. Convert f(x) = 0 to x = g(x)  iteration steps:x i+1 = g(x i ) x(new) = g(x(old) ) Open Methods (Fixed point method)

E. T. S. I. Caminos, Canales y Puertos9 Example II: x = sin(x) –> x i+1 = sin(x i ) OR x = arcsin(x) –> x i+1 = arcsin(x i ) Example I: Open Methods (Fixed point method)

E. T. S. I. Caminos, Canales y Puertos10 Convergence: Does x move closer to real root (?) Depends on: 1. nature of the function 2. accuracy of the initial estimate Interested in: 1. Will it converge or will it diverge? 2. How fast will it converge ? (rate of convergence) Open Methods (Fixed point method)

E. T. S. I. Caminos, Canales y Puertos11 Convergence of the Fixed point Method: Root satisfies: x r = g(x r ) The Taylor series for function g is: x i+1 = g(x r ) + g'(x)(x i - x r )x r < x < x i Subtracting the second equation from the first yields (x r – x i+1 ) = g'(x) (x r – x i ) or 1. True error for next iteration is smaller than the true error in the previous iteration if |g'(x)| < 1.0 (it will converge). 2. Because g'(x) is almost constant, the new error is directly proportional to the old error (linear rate of convergence). Open Methods (Fixed point method)

E. T. S. I. Caminos, Canales y Puertos12 Further Considerations: Convergence depends on how f(x) = 0 is converted into x = g(x) So... Convergence may be improved by recasting the problem. Open Methods (Fixed point method)

E. T. S. I. Caminos, Canales y Puertos13 can be small, even though x new is not close to root. Remedy: Do not completely rely on  a to ensure that the problem is solved. Check to make sure |f(x new ) | < . Convergence Problem: For slowly converging functions Open Methods (Fixed point method)

E. T. S. I. Caminos, Canales y Puertos14 Open Methods (Fixed point method)

E. T. S. I. Caminos, Canales y Puertos15 Open Methods

E. T. S. I. Caminos, Canales y Puertos16 Why do open methods fail? Function may not look linear. Remedy: recast into a linear form. For example, Is a poorly constrained problem in that there is a large, nearly flat zone for which the derivative is near zero. Recast as: i f(i) = 0 = 7,500 i [ 1 - (1+i) -20 ] Open Methods

E. T. S. I. Caminos, Canales y Puertos17 Recast as:i f(i) = 0 = 7,500 i [ 1 - (1+i) -20 ] –The recast function, "i f(i) will have the same roots as f(i) plus an additional root at i = 0. –It will not have a large, flat zone, thus: h(i) = i f(i) = 7,500 i – 1000 [ 1 – (1+ i) –20 ] – To apply N-R we also need the first derivative: h'(i) = 7, ,000 (1+ i) -21 Open Methods

E. T. S. I. Caminos, Canales y Puertos18 Cases of Multiple Roots Multiple Roots: f(x) = (x – 2) 2 (x – 4) x = 2 represents two of the three roots. Open Methods

E. T. S. I. Caminos, Canales y Puertos19 Problems and Approaches: Cases of Multiple Roots 1.Bracketing Methods fail locating x = 2. Note that f(x ) f(x r ) > At x = 2, f(x) = f '(x) = 0. Newton-Raphson and Secant methods may experience problems. Rate of convergence drops to linear. Luckily, f(x)  0 faster than f '(x)  0 3. Other remedies, recasting problem: Find x such that u(x) = 0 where : Note that u(x) and f(x) have same roots. Open Methods

E. T. S. I. Caminos, Canales y Puertos20 m = 1: linear convergence m = 2: quadratic convergence Method m Bisection1 False Position1 Secant, mult. root1 NR, mult. root1 Secant, single root1.618"super linear" NR, single root2 Accel. NR, mult. root (f(x)/f'(x)=0)2 Summary -- Rates of Convergence

E. T. S. I. Caminos, Canales y Puertos21 A real rootfinding problem can be viewed as having three phases: 1) Opening moves: One needs to find the region of the parameter space in which desired root can be found. Understanding of problem, physical insight, and common sense are valuable. 2) Middle Game: Use robust algorithm to reduce initial region of uncertainty. 3) End game: Generate a highly accurate solution in a few iterations. Three Phase Rootfinding Strategy