Nonlinearity Root-finding Bisection Fixed Point Iteration Newton s Method Secant Method Conclusion. Nonlinear Systems

Similar documents
Nonlinearity Root-finding Bisection Fixed Point Iteration Newton s Method Secant Method Conclusion. Nonlinear Systems

Computational Methods. Solving Equations

STOP, a i+ 1 is the desired root. )f(a i) > 0. Else If f(a i+ 1. Set a i+1 = a i+ 1 and b i+1 = b Else Set a i+1 = a i and b i+1 = a i+ 1

Computational Methods CMSC/AMSC/MAPL 460. Solving nonlinear equations and zero finding. Finding zeroes of functions

Nonlinear Equations and Continuous Optimization

CHAPTER-II ROOTS OF EQUATIONS

CS 323: Numerical Analysis and Computing

Jim Lambers MAT 460/560 Fall Semester Practice Final Exam

CS 323: Numerical Analysis and Computing

Outline. Math Numerical Analysis. Intermediate Value Theorem. Lecture Notes Zeros and Roots. Joseph M. Mahaffy,

Math Numerical Analysis

Nonlinear Equations. Chapter The Bisection Method

Scientific Computing: An Introductory Survey

Unit 2: Solving Scalar Equations. Notes prepared by: Amos Ron, Yunpeng Li, Mark Cowlishaw, Steve Wright Instructor: Steve Wright

Ordinary Differential Equations I

Ordinary Differential Equations I

SOLUTION OF ALGEBRAIC AND TRANSCENDENTAL EQUATIONS BISECTION METHOD

Solving Non-Linear Equations (Root Finding)

Roots of Equations. ITCS 4133/5133: Introduction to Numerical Methods 1 Roots of Equations

Line Search Methods. Shefali Kulkarni-Thaker

Optimization II: Unconstrained Multivariable

Ordinary Differential Equations I

Homework for Section 1.4, Continuity and One sided Limits. Study 1.4, # 1 21, 27, 31, 37 41, 45 53, 61, 69, 87, 91, 93. Class Notes: Prof. G.

3.1 Introduction. Solve non-linear real equation f(x) = 0 for real root or zero x. E.g. x x 1.5 =0, tan x x =0.

Root Finding Convergence Analysis

PART I Lecture Notes on Numerical Solution of Root Finding Problems MATH 435

Numerical Methods in Informatics

Nonlinear Equations. Not guaranteed to have any real solutions, but generally do for astrophysical problems.

1. Method 1: bisection. The bisection methods starts from two points a 0 and b 0 such that

Intermediate Value Theorem

Variable. Peter W. White Fall 2018 / Numerical Analysis. Department of Mathematics Tarleton State University

MA 8019: Numerical Analysis I Solution of Nonlinear Equations

Root Finding: Close Methods. Bisection and False Position Dr. Marco A. Arocha Aug, 2014

THE SECANT METHOD. q(x) = a 0 + a 1 x. with

Lecture Notes to Accompany. Scientific Computing An Introductory Survey. by Michael T. Heath. Chapter 5. Nonlinear Equations

Numerical Methods. Root Finding

Optimization II: Unconstrained Multivariable

Outline. Scientific Computing: An Introductory Survey. Nonlinear Equations. Nonlinear Equations. Examples: Nonlinear Equations

Root Finding (and Optimisation)

Chapter 3: Root Finding. September 26, 2005

Simple Iteration, cont d

Solution of Nonlinear Equations

MATH 3795 Lecture 12. Numerical Solution of Nonlinear Equations.

Numerical Solution of f(x) = 0

ROOT FINDING REVIEW MICHELLE FENG

Nonlinear equations. Norms for R n. Convergence orders for iterative methods

Bisection and False Position Dr. Marco A. Arocha Aug, 2014

1.1: The bisection method. September 2017

Numerical Methods Dr. Sanjeev Kumar Department of Mathematics Indian Institute of Technology Roorkee Lecture No 7 Regula Falsi and Secant Methods

NON-LINEAR ALGEBRAIC EQUATIONS Lec. 5.1: Nonlinear Equation in Single Variable

Lecture 5: Random numbers and Monte Carlo (Numerical Recipes, Chapter 7) Motivations for generating random numbers

CLASS NOTES Models, Algorithms and Data: Introduction to computing 2018

Norms, Sensitivity and Conditioning

Numerical Methods Lecture 3

Motivation: We have already seen an example of a system of nonlinear equations when we studied Gaussian integration (p.8 of integration notes)

Figure 1: Graph of y = x cos(x)

Appendix 8 Numerical Methods for Solving Nonlinear Equations 1

Eigenproblems II: Computation

Lecture 7: Minimization or maximization of functions (Recipes Chapter 10)

Numerical Methods. Roots of Equations

An Improved Hybrid Algorithm to Bisection Method and Newton-Raphson Method

Determining the Roots of Non-Linear Equations Part I

Queens College, CUNY, Department of Computer Science Numerical Methods CSCI 361 / 761 Spring 2018 Instructor: Dr. Sateesh Mane.

Midterm Review. Igor Yanovsky (Math 151A TA)

Practical Numerical Analysis: Sheet 3 Solutions

Math 131. Rolle s and Mean Value Theorems Larson Section 3.2

CS 221 Lecture 9. Tuesday, 1 November 2011

Finding the Roots of f(x) = 0. Gerald W. Recktenwald Department of Mechanical Engineering Portland State University

Finding the Roots of f(x) = 0

University of Houston, Department of Mathematics Numerical Analysis, Fall 2005

ROOTFINDING. We assume the interest rate r holds over all N in +N out periods. h P in (1 + r) N out. N in 1 i h i

Section 1.4 Tangents and Velocity

Test 2 Review Math 1111 College Algebra

CS 450 Numerical Analysis. Chapter 5: Nonlinear Equations

Maximum and Minimum Values (4.2)

MATH 131A: REAL ANALYSIS (BIG IDEAS)

Numerical Optimization

x 2 x n r n J(x + t(x x ))(x x )dt. For warming-up we start with methods for solving a single equation of one variable.

Chapter 4. Solution of Non-linear Equation. Module No. 1. Newton s Method to Solve Transcendental Equation

Definition: For nonempty sets X and Y, a function, f, from X to Y is a relation that associates with each element of X exactly one element of Y.

p 1 p 0 (p 1, f(p 1 )) (p 0, f(p 0 )) The geometric construction of p 2 for the se- cant method.

Math Numerical Analysis Mid-Term Test Solutions

Today s class. Numerical differentiation Roots of equation Bracketing methods. Numerical Methods, Fall 2011 Lecture 4. Prof. Jinbo Bi CSE, UConn

Scientific Computing. Roots of Equations

Numerical Analysis. EE, NCKU Tien-Hao Chang (Darby Chang)

DRAFT - Math 101 Lecture Note - Dr. Said Algarni

Solving nonlinear equations (See online notes and lecture notes for full details) 1.3: Newton s Method

Solution of Algebric & Transcendental Equations

Optimization. CS Summer 2008 Jonathan Kaldor

Numerics and Error Analysis

Contraction Mappings Consider the equation

SOLVING EQUATIONS OF ONE VARIABLE

A Review of Bracketing Methods for Finding Zeros of Nonlinear Functions

Nonlinear Equations. Your nonlinearity confuses me.

Math 471. Numerical methods Root-finding algorithms for nonlinear equations

CHAPTER 4 ROOTS OF EQUATIONS

Chapter 1. Root Finding Methods. 1.1 Bisection method

BSM510 Numerical Analysis

Continuity. MATH 161 Calculus I. J. Robert Buchanan. Fall Department of Mathematics

Lecture 7. Root finding I. 1 Introduction. 2 Graphical solution

Transcription:

Nonlinear Systems CS 205A: Mathematical Methods for Robotics, Vision, and Graphics Doug James (and Justin Solomon) CS 205A: Mathematical Methods Nonlinear Systems 1 / 27

Part III: Nonlinear Problems Not all numerical problems can be solved with \ in Matlab. CS 205A: Mathematical Methods Nonlinear Systems 2 / 27

Question Have we already seen a nonlinear problem? CS 205A: Mathematical Methods Nonlinear Systems 3 / 27

Question Have we already seen a nonlinear problem? minimize A x 2 such that x 2 = 1 nonlinear! CS 205A: Mathematical Methods Nonlinear Systems 3 / 27

Root-Finding Problem Given: f : R n R m Find: x with f( x ) = 0 CS 205A: Mathematical Methods Nonlinear Systems 4 / 27

Root-Finding Applications Collision detection (graphics, astronomy) Graphics rendering (ray intersection) Robotics (kinematics) Optimization (line search) CS 205A: Mathematical Methods Nonlinear Systems 5 / 27

Issue: Regularizing Assumptions f(x) = { 1 when x 0 1 when x > 0 CS 205A: Mathematical Methods Nonlinear Systems 6 / 27

Issue: Regularizing Assumptions f(x) = g(x) = { 1 when x 0 1 when x > 0 { 1 when x Q 1 when x Q CS 205A: Mathematical Methods Nonlinear Systems 6 / 27

Typical Regularizing Assumptions Continuous f( x) f( y) as x y CS 205A: Mathematical Methods Nonlinear Systems 7 / 27

Typical Regularizing Assumptions Continuous f( x) f( y) as x y Lipschitz f( x) f( y) 2 c x y 2 for all x, y (same c) CS 205A: Mathematical Methods Nonlinear Systems 7 / 27

Typical Regularizing Assumptions Continuous f( x) f( y) as x y Lipschitz f( x) f( y) 2 c x y 2 for all x, y (same c) Differentiable Df( x) exists for all x CS 205A: Mathematical Methods Nonlinear Systems 7 / 27

Typical Regularizing Assumptions Continuous f( x) f( y) as x y Lipschitz f( x) f( y) 2 c x y 2 for all x, y (same c) Differentiable Df( x) exists for all x C k k derivatives exist and are continuous CS 205A: Mathematical Methods Nonlinear Systems 7 / 27

Today f : R R CS 205A: Mathematical Methods Nonlinear Systems 8 / 27

Property of Continuous Functions Intermediate Value Theorem Suppose that f : [a, b] R is continuous and that f(a) < u < f(b) or f(b) < u < f(a). Then, there exists z (a, b) such that f(z) = u CS 205A: Mathematical Methods Nonlinear Systems 9 / 27

Reasonable Input Continuous function f(x) l, r R with f(l) f(r) < 0 (why?) CS 205A: Mathematical Methods Nonlinear Systems 10 / 27

Bisection Algorithm 1. Compute c = l+r /2. 2. If f(c) = 0, return x = c. 3. If f(l) f(c) < 0, take r c. Otherwise take l c. 4. Return to step 1 until r l < ε; then return c. CS 205A: Mathematical Methods Nonlinear Systems 11 / 27

Bisection: Illustration f(x) f(x) > 0 l c x r x f(x) < 0 CS 205A: Mathematical Methods Nonlinear Systems 12 / 27

Two Important Questions 1. Does it converge? CS 205A: Mathematical Methods Nonlinear Systems 13 / 27

Two Important Questions 1. Does it converge? Yes! Unconditionally. CS 205A: Mathematical Methods Nonlinear Systems 13 / 27

Two Important Questions 1. Does it converge? Yes! Unconditionally. 2. How quickly? CS 205A: Mathematical Methods Nonlinear Systems 13 / 27

Convergence Analysis Examine E k with x k x < E k. CS 205A: Mathematical Methods Nonlinear Systems 14 / 27

Bisection: Linear Convergence E k+1 1 2 E k for E k r k l k CS 205A: Mathematical Methods Nonlinear Systems 15 / 27

Fixed Points g(x ) = x CS 205A: Mathematical Methods Nonlinear Systems 16 / 27

Fixed Points g(x ) = x Question: Same as root-finding? CS 205A: Mathematical Methods Nonlinear Systems 16 / 27

Simple Strategy x k+1 = g(x k ) CS 205A: Mathematical Methods Nonlinear Systems 17 / 27

Convergence Criterion E k x k x = g(x k 1 ) g(x ) CS 205A: Mathematical Methods Nonlinear Systems 18 / 27

Convergence Criterion E k x k x = g(x k 1 ) g(x ) c x k 1 x if g is Lipschitz = ce k 1 CS 205A: Mathematical Methods Nonlinear Systems 18 / 27

Convergence Criterion E k x k x = g(x k 1 ) g(x ) c x k 1 x = ce k 1 if g is Lipschitz = E k c k E 0 0 as k (c < 1) CS 205A: Mathematical Methods Nonlinear Systems 18 / 27

Alternative Criterion Lipschitz near x with good starting point. CS 205A: Mathematical Methods Nonlinear Systems 19 / 27

Alternative Criterion Lipschitz near x with good starting point. e.g. C 1 with g (x ) < 1 CS 205A: Mathematical Methods Nonlinear Systems 19 / 27

Convergence Rate of Fixed Point When it converges... Always linear (why?) CS 205A: Mathematical Methods Nonlinear Systems 20 / 27

Convergence Rate of Fixed Point When it converges... Always linear (why?) Often quadratic! ( board) CS 205A: Mathematical Methods Nonlinear Systems 20 / 27

Approach for Differentiable f(x) f(x) x 0 x 1 x 2 x CS 205A: Mathematical Methods Nonlinear Systems 21 / 27

Newton s Method x k+1 = x k f(x k) f (x k ) CS 205A: Mathematical Methods Nonlinear Systems 22 / 27

Newton s Method x k+1 = x k f(x k) f (x k ) Fixed point iteration on g(x) x f(x) f (x) CS 205A: Mathematical Methods Nonlinear Systems 22 / 27

Convergence of Newton Simple Root A root x with f (x ) 0. CS 205A: Mathematical Methods Nonlinear Systems 23 / 27

Convergence of Newton Simple Root A root x with f (x ) 0. Quadratic convergence in this case! ( board) CS 205A: Mathematical Methods Nonlinear Systems 23 / 27

Issue Differentiation is hard! CS 205A: Mathematical Methods Nonlinear Systems 24 / 27

Secant Method x k+1 = x k f(x k)(x k x k 1 ) f(x k ) f(x k 1 ) CS 205A: Mathematical Methods Nonlinear Systems 25 / 27

Secant Method x k+1 = x k f(x k)(x k x k 1 ) f(x k ) f(x k 1 ) Trivia: Converges at rate 1+ 5 2 1.6180339887... CS 205A: Mathematical Methods Nonlinear Systems 25 / 27

Secant Method x k+1 = x k f(x k)(x k x k 1 ) f(x k ) f(x k 1 ) Trivia: Converges at rate 1+ 5 2 1.6180339887... ( Golden Ratio ) CS 205A: Mathematical Methods Nonlinear Systems 25 / 27

Hybrid Methods Want: Convergence rate of secant/newton with convergence guarantees of bisection CS 205A: Mathematical Methods Nonlinear Systems 26 / 27

Hybrid Methods Want: Convergence rate of secant/newton with convergence guarantees of bisection e.g. Dekker s Method: Take secant step if it is in the bracket, bisection step otherwise CS 205A: Mathematical Methods Nonlinear Systems 26 / 27

Single-Variable Conclusion Unlikely to solve exactly, so we settle for iterative methods Must check that method converges at all Convergence rates: Linear: Ek+1 CE k for some 0 C < 1 Superlinear: E k+1 CEk r for some r > 1 Quadratic: r = 2 Cubic: r = 3 Time per iteration also important Next CS 205A: Mathematical Methods Nonlinear Systems 27 / 27