Dr. Marco A. Arocha Aug, 2014 1.  “Roots” problems occur when some function f can be written in terms of one or more dependent variables x, where the.

Slides:



Advertisements
Similar presentations
Lecture 5 Newton-Raphson Method
Advertisements

Roundoff and truncation errors
CSE 330: Numerical Methods
Roots: Bracketing Methods
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).
Open Methods Chapter 6 The Islamic University of Gaza
Unit-I Roots of Equation
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 7 Roots of Equations Bracketing Methods.
Chapter 4 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.
Open Methods (Part 1) Fixed Point Iteration & Newton-Raphson Methods
Roots of Equations Bracketing Methods.
Lecture 1: Numerical Solution 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
Bracketing Methods Chapter 5 The Islamic University of Gaza
Roots of Equations Open Methods Second Term 05/06.
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.
CMPSC 200 Spring 2013 Lecture 38 November 18 or 20, 2013 (depending on section)
Chapter 6 Finding the Roots of Equations
Introduction This chapter gives you several methods which can be used to solve complicated equations to given levels of accuracy These are similar to.
Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis
Part 2 Chapter 5 Roots: Bracketing Methods PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The McGraw-Hill.
1 Solution of Nonlinear Equation Dr. Asaf Varol
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
Today’s class Roots of equation Finish up incremental search
Numerical methods You have encountered equations that can be solved by a direct algebraic method – for example any linear or quadratic function can be.
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)
Numerical Methods Solution of Equation.
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.
Roots: Bracketing Methods
4 Numerical Methods Root Finding Secant Method Modified Secant
SOLVING NONLINEAR EQUATIONS. SECANT METHOD 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.
Solution of Nonlinear Equations ( Root Finding Problems ) Definitions Classification of Methods  Analytical Solutions  Graphical Methods  Numerical.
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.
Solution of Nonlinear Equations ( Root Finding Problems )
Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis
4 Numerical Methods Root Finding Secant Method Modified Secant
Bracketing Methods (Bisection Method)
~ Roots of Equations ~ Bracketing Methods Chapter 5
Lecture 4: Numerical Methods
2.3 Linear Inequalities Understand basic terminology related to inequalities Solve linear inequalities symbolically Solve linear inequalities graphically.
Part 2 / Chapter 5.
Computers in Civil Engineering 53:081 Spring 2003
Roots: Bracketing Methods
ROOTS OF EQUATIONS.
Roots: Bracketing Methods
Presentation transcript:

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 solutions to f(x)=0 yields the solution to the problem.  Examples:  These problems often occur when a design problem presents an implicit equation (as oppose to an explicit equation) for a required parameter. 2

 Finding the roots of these equations is equivalent to finding the values of x for which f(x) and g(x) are “zero”  For this reason the procedure of solving equations (3) and (4) is frequently referred to as finding the “zeros” of the equations. 3

 Methods that exploit the fact that a function typically changes sign in the vicinity of a root are called bracketing methods.  Two initial guesses for the root are required.  Guesses must “bracket” or be on either side of the root.  The particular methods employ different strategies to systematically reduce the width of the bracket and, hence, home in on the correct answer. 4

 A simple method for obtaining the estimate of the root of the equation f(x)=0 is to make a plot of the function as f(x) vs x and observe where it crosses the x-axis.  Graphing the function can also indicate where roots may be and where some root-finding methods may fail: a) Same sign, no roots b) Different sign, one root c) Same sign, two roots d) Different sign, three roots 5 who is doing this one?

Some difficult cases:  Multiple roots that occurs when the function is tangential to the x axis. For this case, although the end points are of opposite signs, there are an even number of axis intersections for the interval.  Discontinuous function where end points of opposite sign bracket an even number of roots.  Special strategies are required for determining the roots for these cases. 6

 Graphical techniques alone are of limited practical value because they are not precise.  However, graphical methods can be utilized to obtain rough estimates of roots.  These estimates can be employed as starting guesses for numerical methods.  Graphical interpretations are important tools for understanding the properties of the functions and anticipating the pitfalls of the numerical methods. 7

 The bisection method is a search method in which the interval is progresively divided in half.  If a function changes sign over an interval, the function value at the midpoint is evaluated.  The location of the root is then determined as lying within the subinterval where the sign change occurs.  The absolute error is reduced by a factor of 2 for each iteration. 8

9

10

11

INPUT xl, xu, es, imax xr = (xl + xu) / 2 iter = 0 DO xrold = xr xr = (xl + xu) / 2 iter = iter + 1 IF xr ≠ 0 THEN% to avoid division by zero ea = ABS((xr - xrold) / xr) * 100 END IF test = f(xl) * f(xr) IF test < 0 THEN xu = xr ELSE IF test > 0 THEN xl = xr ELSE ea = 0 END IF IF ea < es OR iter ≥ imax EXIT END DO BisectResult = xr END PROGRAM 12

 An alternative method to bisection, sometimes faster.  Exploits a graphical perception, join f(x l ) and f(x u ) by a straight line. The intersection of this line with the x axis represents an improved estimate of the root.  The fact that the replacement of the curve by a straight line gives a “false position” of the root is the origin of the name, method of false position, or in Latin, regula falsi.  It is also called the linear interpolation method. 13

 Can derive the method’s formula by using similar triangles. The intersection of the straight line with the x axis can be estimated as  which can be solved for x r 14

 The value of x r so computed then replaces whichever of the two initial guesses, x l or x u, yields a function value with the same sign as f(x r ).  By this way, the values of x l and x u always bracket the true root. The process is repeated until the root is estimated.  The algorithm is identical to the one for bisection with the exception that the above eq. is used for step 2 (slide 9).  The same stopping criteria are used to terminate the computation (slides 10 and 11). 15

16 for some cases false-position method may show slow convergence