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

CS 323: Numerical Analysis and Computing

CS 323: Numerical Analysis and Computing

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

Nonlinear Equations and Continuous Optimization

Ordinary Differential Equations I

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

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

Scientific Computing: An Introductory Survey

Jim Lambers MAT 460/560 Fall Semester Practice Final Exam

Ordinary Differential Equations I

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

Math Numerical Analysis

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

Optimization II: Unconstrained Multivariable

Simple Iteration, cont d

Optimization II: Unconstrained Multivariable

CHAPTER-II ROOTS OF EQUATIONS

MA 8019: Numerical Analysis I Solution of Nonlinear Equations

1.1: The bisection method. September 2017

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

Numerical Methods Lecture 3

Nonlinear Equations. Chapter The Bisection Method

CS412: Introduction to Numerical Methods

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

Ordinary Differential Equations I

CS 221 Lecture 9. Tuesday, 1 November 2011

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.

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

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.

Solving Non-Linear Equations (Root Finding)

Test 2 Review Math 1111 College Algebra

CS 450 Numerical Analysis. Chapter 5: Nonlinear Equations

Numerical Methods in Informatics

Numerical Optimization

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

SOLUTION OF ALGEBRAIC AND TRANSCENDENTAL EQUATIONS BISECTION METHOD

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

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

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

Numerical Analysis Fall. Roots: Open Methods

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

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

Optimization. CS Summer 2008 Jonathan Kaldor

Numerical Methods. Roots of Equations

CHAPTER 4 ROOTS OF EQUATIONS

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

Chapter 1. Root Finding Methods. 1.1 Bisection method

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

Nonlinear Equations. Your nonlinearity confuses me.

BSM510 Numerical Analysis

CHAPTER 2 POLYNOMIALS KEY POINTS

Lecture 8. Root finding II

MATH 3795 Lecture 12. Numerical Solution of Nonlinear Equations.

Root Finding Convergence Analysis

Midterm Review. Igor Yanovsky (Math 151A TA)

ROOT FINDING REVIEW MICHELLE FENG

Root Finding (and Optimisation)

GENG2140, S2, 2012 Week 7: Curve fitting

Line Search Methods. Shefali Kulkarni-Thaker

MATH 131A: REAL ANALYSIS (BIG IDEAS)

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

Ordinary Differential Equations II

Math 551 Homework Assignment 3 Page 1 of 6

Numerical Methods. Root Finding

1 The best of all possible worlds

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 6. Nonlinear Equations. 6.1 The Problem of Nonlinear Root-finding. 6.2 Rate of Convergence

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

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

Ordinary Differential Equations II

Math 273a: Optimization Netwon s methods

Numerical Solution of f(x) = 0

Chapter 3: Root Finding. September 26, 2005

Appendix 8 Numerical Methods for Solving Nonlinear Equations 1

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.

INTRODUCTION TO NUMERICAL ANALYSIS

MATH 4211/6211 Optimization Basics of Optimization Problems

Solution of Nonlinear Equations

Conjugate Gradients I: Setup

Zeroes of Transcendental and Polynomial Equations. Bisection method, Regula-falsi method and Newton-Raphson method

Single Variable Minimization

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

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

1 Review of Interpolation using Cubic Splines

MS 2001: Test 1 B Solutions

Unconstrained optimization I Gradient-type methods

8 Numerical methods for unconstrained problems

Chapter 4: Numerical Methods for Common Mathematical Problems

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

Math 320: Real Analysis MWF 1pm, Campion Hall 302 Homework 8 Solutions Please write neatly, and in complete sentences when possible.

4. We accept without proofs that the following functions are differentiable: (e x ) = e x, sin x = cos x, cos x = sin x, log (x) = 1 sin x

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

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

Quiescent Steady State (DC) Analysis The Newton-Raphson Method

Line Search Techniques

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

Solution of Nonlinear Equations: Graphical and Incremental Sea

Exam 2. Average: 85.6 Median: 87.0 Maximum: Minimum: 55.0 Standard Deviation: Numerical Methods Fall 2011 Lecture 20

Transcription:

Nonlinear Systems CS 205A: Mathematical Methods for Robotics, Vision, and Graphics Justin Solomon CS 205A: Mathematical Methods Nonlinear Systems 1 / 24

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

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

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 / 24

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

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

Issue: Regularizing Assumptions f(x) = { 1 x 0 1 x > 0 f(x) = { 1 x Q 1 otherwise CS 205A: Mathematical Methods Nonlinear Systems 5 / 24

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

Typical Regularizing Assumptions Continuous f( x) f( y) as x y Lipschitz f( x) f( y) C x y CS 205A: Mathematical Methods Nonlinear Systems 6 / 24

Typical Regularizing Assumptions Continuous f( x) f( y) as x y Lipschitz f( x) f( y) C x y Differentiable Df( x) exists for all x CS 205A: Mathematical Methods Nonlinear Systems 6 / 24

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

Today f : R R CS 205A: Mathematical Methods Nonlinear Systems 7 / 24

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

Property of Continuous Functions Intermediate Value Theorem Suppose f : [a, b] R is continuous. Suppose f(x) < u < f(y). Then, there exists z between x and y such that f(z) = u. Used in Homework 1! CS 205A: Mathematical Methods Nonlinear Systems 8 / 24

Reasonable Starting Point f(l) f(r) < 0 CS 205A: Mathematical Methods Nonlinear Systems 9 / 24

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?? until r l < ε; then return c. CS 205A: Mathematical Methods Nonlinear Systems 10 / 24

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

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

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

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

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

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

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

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

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

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 16 / 24

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

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

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

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

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

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 19 / 24

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

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

Convergence of Newton Simple Root A root x with f (x ) 0. Quadratic convergence in this case! Higher-order approximations? CS 205A: Mathematical Methods Nonlinear Systems 20 / 24

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

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 22 / 24

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 22 / 24

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 22 / 24

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

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 23 / 24

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 24 / 24