SOLVING NONLINEAR EQUATIONS. SECANT METHOD MATH-415 Numerical Analysis 1.

Slides:



Advertisements
Similar presentations
Lecture 5 Newton-Raphson Method
Advertisements

Roundoff and truncation errors
CSE 330: Numerical Methods
Roots: Bracketing Methods
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 One-Dimensional Unconstrained Optimization Chapter.
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.
Regula-Falsi Method. Type of Algorithm (Equation Solver) The Regula-Falsi Method (sometimes called the False Position Method) is a method used to find.
Bisection Method (Midpoint Method for Equations).
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
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.
Second Term 05/061 Roots of Equations Bracketing 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.
Roots of Equations Bracketing Methods.
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.
NUMERICAL METHODS WITH C++ PROGRAMMING
Bracketing Methods Chapter 5 The Islamic University of Gaza
Roots of Equations Open Methods Second Term 05/06.
Chapter 3 Root Finding.
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
MATH 175: NUMERICAL ANALYSIS II Lecturer: Jomar Fajardo Rabajante IMSP, UPLB 2 nd Semester AY
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.
Part 2 Chapter 5 Roots: Bracketing Methods PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The McGraw-Hill.
Lecture 3 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:
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.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 71.
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
Numerical Methods.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Roots of Equations ~ Bracketing Methods Chapter 5.
Newton’s Method, Root Finding with MATLAB and Excel
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.
ME 142 Engineering Computation I Root Finding & Iterative Solutions.
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)
Solution of Nonlinear Equations Topic: Bisection method
Numerical Methods Solution of Equation.
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
Yasser F. O. Mohammad Assiut University Egypt. Previously in NM Bracketing Methods Bisection False Position Fixed Point Iteration Local Convergence Methods.
INTRO TO OPTIMIZATION MATH-415 Numerical Analysis 1.
CSE 330: Numerical Methods. What is true error? True error is the difference between the true value (also called the exact value) and the approximate.
Lecture 4 Numerical Analysis. Solution of Non-Linear Equations Chapter 2.
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.
Newton’s Method for Systems of Non Linear Equations
CS B553: Algorithms for Optimization and Learning
Computational Methods EML3041
Read Chapters 5 and 6 of the textbook
Numerical Analysis Lecture 7.
Computers in Civil Engineering 53:081 Spring 2003
MATH 175: Numerical Analysis II
SOLUTION OF NONLINEAR EQUATIONS
ROOTS OF EQUATIONS.
1 Newton’s Method.
Solutions for Nonlinear Equations
Presentation transcript:

SOLVING NONLINEAR EQUATIONS. SECANT METHOD MATH-415 Numerical Analysis 1

by Lale Yurttas, Texas A&M University 2 Nonlinear Equation Solvers Bracketing Bisection False Position (Regula-Falsi ) GraphicalOpen Methods Newton Raphson Secant All Methods are iterative

by Lale Yurttas, Texas A&M University 3 Nonlinear Equation Solvers Bracketing Bisection False Position (Regula-Falsi ) Graphical Open Methods Newton Raphson Secant All Methods are iterative

The Secant Method Basic idea: most nonlinear functions can be approximated by a set of straight lines over small intervals: 4

The Secant Method The secant method reduces finding a root of a nonlinear equation to finding a point where some linear equation determined by the approximating linear function has a root as close as possible to the root we are looking for 5

The Secant Method 6 Requires two initial estimates of x : x o, x 1. However, because f(x) is not required to change signs between estimates, it is not classified as a “bracketing” method Convergence is not guaranteed for an arbitrary chosen x o.

The Secant Method 7 … … …

The Secant Method: Preliminaries The secant method should be used to find a root of f(x)=0 A root should be estimated first. It can be done by plotting a graph of f(x) and choosing an initial interval close to a point where f(x)=0 8

The Secant Method: Algorithm Determine  - the tolerance value to ensure the appropriate true or approximate accuracy of a solution Determine x 0 and x 1 close enough to the projected root If then swap x 0 and x 1 Step 1. Set Step 2 (true error). If, then stop and x 2 is a root, else go to Step 1 Alternative Step 2. If, then stop and x 2 is a root, (approximate error) else go to Step 1 9

The Secant Method: Analysis The secant method converges faster than the bisection method However, if the function is far from linear near the root, the successive iterations can fly off to points far from the root:

by Lale Yurttas, Texas A&M University 11 Nonlinear Equation Solvers Bracketing Bisection False Position (Regula-Falsi ) GraphicalOpen Methods Newton Raphson Secant All Methods are iterative

by Lale Yurttas, Texas A&M University 12 Nonlinear Equation Solvers Bracketing Bisection False Position (Regula-Falsi ) Graphical Open Methods Newton Raphson Secant All Methods are iterative

The False Position Method The method of false position takes care of bracketing a root Unlike the bisection method, this method determines its step taking not the midpoint between the two x-values, but taking the intersection point of a line between the pair of x-values and the x-axis 13

14 The False-Position Method (Regula-Falsi) If a real root is bounded by x 0 and x 1 of f(x)=0, then we can approximate the solution by doing a linear interpolation between the points [x 0, f(x 0 )] and [x 1, f(x 1 )] to find the x 2 value such that L(x 2 )=0, where L(x) is the linear approximation of f(x)

The False Position Method : Preliminaries The false position method should be used to find a root of f(x)=0 A root should be estimated first. It can be done by plotting a graph of f(x) and narrowing an interval around a point where f(x)=0. Then the initial values x o, x 1 should be chosen such that f(x o ), f(x 1 ) are of opposite sign 15

The False Position Method: Algorithm Determine  - the tolerance value to ensure the appropriate true or approximate accuracy of a solution Determine x 0 and x 1 close enough to the projected root such that Step 1. Set Step 2. If, then set else set Step 3(true error). If, then stop and x 2 is a root, else go to Step 1 Alternative Step 3. If, then stop and x 2 is a root, (approximate error) else go to Step 1 16

The False Position Method: Analysis The false position method converges faster than the bisection method, but may yield to the secant method The false position method always converges for a single root with a high accuracy, while the secant method may fly off to points far from the root As well as the bisection method, the false position method cannot work if a root cannot be bracketed 17

Secant and False Position: Comparison 18

Which method is better? There is no best method. All of them have advantages and disadvantages. Bisection  the number of iterations can be exactly predicted from a desired accuracy, but it yields to the secant and false positions methods in speed of convergence Secant  the fastest method in general, but may fly off a root False position  faster than bisection, but they both do not work when a root cannot be bracketed 19