Systems of Nonlinear Equations

Slides:



Advertisements
Similar presentations
Numerical Computation Lecture 4: Root Finding Methods - II United International College.
Advertisements

Lecture 5 Newton-Raphson Method
Numerical Solution of Nonlinear Equations
Line Search.
CSE 541 – Numerical Methods
CS B553: A LGORITHMS FOR O PTIMIZATION AND L EARNING Univariate optimization.
Open Methods Chapter 6 The Islamic University of Gaza
Optimisation The general problem: Want to minimise some function F(x) subject to constraints, a i (x) = 0, i=1,2,…,m 1 b i (x)  0, i=1,2,…,m 2 where x.
Optimization Introduction & 1-D Unconstrained Optimization
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 61.
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.
Revision.
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
Newton's Method for Functions of Several Variables
Why Function Optimization ?
Fin500J: Mathematical Foundations in Finance Topic 3: Numerical Methods for Solving Non-linear Equations Philip H. Dybvig Reference: Numerical Methods.
Chapter 3 Root Finding.
MATH 175: NUMERICAL ANALYSIS II Lecturer: Jomar Fajardo Rabajante IMSP, UPLB 2 nd Semester AY
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.
I. Finding Roots II. Integrating Functions
MATH 685/ CSI 700/ OR 682 Lecture Notes Lecture 8. Nonlinear equations.
Scientific Computing Algorithm Convergence and Root Finding Methods.
Solving Non-Linear Equations (Root Finding)
ITERATIVE TECHNIQUES FOR SOLVING NON-LINEAR SYSTEMS (AND LINEAR SYSTEMS)
MA/CS 375 Fall MA/CS 375 Fall 2002 Lecture 31.
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.
1.6 – Tangent Lines and Slopes Slope of Secant Line Slope of Tangent Line Equation of Tangent Line Equation of Normal Line Slope of Tangent =
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
Quadrature rules 1Michael Sokolov / Numerical Methods for Chemical Engineers / Numerical Quadrature Michael Sokolov ETH Zurich, Institut für Chemie- und.
Numerical Methods.
Numerical Methods Root Finding 4. Fixed-Point Iteration---- Successive Approximation Many problems also take on the specialized form: g(x)=x, where we.
Newton’s Method, Root Finding with MATLAB and Excel
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)
Numerical Methods Solution of Equation.
4 Numerical Methods Root Finding Secant Method Modified Secant
SOLVING NONLINEAR EQUATIONS. SECANT METHOD MATH-415 Numerical Analysis 1.
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.
Solution of Nonlinear Equations ( Root Finding Problems ) Definitions Classification of Methods  Analytical Solutions  Graphical Methods  Numerical.
MATH342: Numerical Analysis Sunjae Kim.
Solution of Nonlinear Equations ( Root Finding Problems )
4 Numerical Methods Root Finding Secant Method Modified Secant
Solution of Nonlinear Equations (Root finding Problems
Numerical Methods and Analysis
Newton’s Method for Systems of Non Linear Equations
CS B553: Algorithms for Optimization and Learning
Multiple Shooting: No One Injured !
Read Chapters 5 and 6 of the textbook
Chapter 6.
Computers in Civil Engineering 53:081 Spring 2003
Chapter 10. Numerical Solutions of Nonlinear Systems of Equations
Roots of equations Class IX.
4 Numerical Methods Root Finding.
3.8 Newton’s Method How do you find a root of the following function without a graphing calculator? This is what Newton did.
Newton’s Method and Its Extensions
Some Comments on Root finding
Chapter 6.
Comp 208 Computers in Engineering Yi Lin Winter, 2007
Numerical Analysis – Solving Nonlinear Equations
Solutions for Nonlinear Equations
Presentation transcript:

Systems of Nonlinear Equations Paul Heckbert Computer Science Department Carnegie Mellon University 2 Oct. 2000 15-859B - Introduction to Scientific Computing

15-859B - Introduction to Scientific Computing Nonlinear Systems One dimensional: f : R  R e.g. f(x) = ax-b = 0 (linear) or f(x) = sin(2x)-x = 0 (nonlinear) Multidimensional f : Rn  Rn e.g. f(x) = Ax-b = 0 (linear system) or {x2+y2+xy-1=0, x2+y2-xy-1=0} (nonlinear: two ellipses) also known as root finding 2 Oct. 2000 15-859B - Introduction to Scientific Computing

Four 1-D Root-Finding Methods Bisection Method Newton’s Method Secant Method Linear Fractional Interpolation 2 Oct. 2000 15-859B - Introduction to Scientific Computing

Bisection Method (Binary Search) Given f(), tol, and [a,b] such that sign(f(a))  sign(f(b)): while b-a>tol m = (a+b)/2 midpoint if sign(f(a)) = sign(f(m)): then a = m recurse on right half else b = m recurse on left half Guaranteed convergence! (if you can find initial a,b) but only at a linear rate: |errork+1|  c|errork|, c<1 2 Oct. 2000 15-859B - Introduction to Scientific Computing

15-859B - Introduction to Scientific Computing Newton’s Method Given f(), f’(), tol, and initial guess x0 k = 0 do xk+1 = xk - f(xk)/f’(xk) k++ while xk - xk-1 > tol Can diverge (especially if f’  0). If it converges, does so at quadratic rate: |ek+1|  c|ek|2. Requires derivative computation. 2 Oct. 2000 15-859B - Introduction to Scientific Computing

15-859B - Introduction to Scientific Computing Secant Method Like Newton, but approximates slope using point pairs Given f(), tol, and initial guesses x0, x1 k = 1 do xk+1 = xk - f(xk)(xk - xk-1)/(f(xk)-f(xk-1)) k++ while xk - xk-1 < tol Can diverge. If it converges, does so at rate 1.618: |ek+1|  c|ek|1.618. 2 Oct. 2000 15-859B - Introduction to Scientific Computing

Linear Fractional Interpolation Instead of linear approximation, fit with fractional linear approximation: f(x)  (x-u)/(vx-w) for some u,v,w Given f(), tol, and initial guesses a, b, c, fa=f(a), fb=f(b) do h = (a-c)(b-c)(fa-fb)fc / [(a-c)(fc-fb)fa-(b-c)(fc-fa)fb] a = b; fa = fb b = c; fb = fc c += h; fc = f(c) while h > tol If it converges, does so at rate 1.839: |ek+1|  c|ek|1.839. 2 Oct. 2000 15-859B - Introduction to Scientific Computing

1-D Root-Finding Summary Bisection: safe: never diverges, but slow. Newton’s method: risky but fast! Secant method & linear fractional interpolation : less risky, mid-speed. Hybrids: use a safe method where function poorly behaved, Newton’s method where it’s well-behaved. 2 Oct. 2000 15-859B - Introduction to Scientific Computing

Multidimensional Newton’s Method f and x are n-vectors First order Taylor series approx.: f(x+h)  f(x)+f’(x)h f(x+h)=0 implies h=-J-1f (don’t compute J-1, but solve Jh=f ) so iteration should be xk+1 = xk - J-1(xk)f(xk) Method requires calculation of Jacobian – can be expensive 2 Oct. 2000 15-859B - Introduction to Scientific Computing

Example: Intersection of Ellipses 2 equations in 2 unknowns: x2+y2+xy-1=0 x2+y2-xy-1=0 2 Oct. 2000 15-859B - Introduction to Scientific Computing