Top Banner
CS 357: Numerical Methods Nonlinear Equations Eric Shaffer Some slides adapted from: Scientific Computing: An Introductory Survey, 2nd ed., McGraw-Hill, 2002. By Michael T. Heath
30

CS 357: Numerical Methods Nonlinear Equations · CS 357: Numerical Methods Nonlinear Equations ... o System of n coupled nonlinear equations in n unknowns, where Solution is vector

Apr 19, 2018

Download

Documents

vokhue
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: CS 357: Numerical Methods Nonlinear Equations · CS 357: Numerical Methods Nonlinear Equations ... o System of n coupled nonlinear equations in n unknowns, where Solution is vector

CS 357: Numerical Methods

Nonlinear Equations

Eric Shaffer

Some slides adapted from:Scientific Computing: An Introductory Survey, 2nd ed., McGraw-Hill, 2002. By Michael T. Heath

Page 2: CS 357: Numerical Methods Nonlinear Equations · CS 357: Numerical Methods Nonlinear Equations ... o System of n coupled nonlinear equations in n unknowns, where Solution is vector

Nonlinear Equations

Page 3: CS 357: Numerical Methods Nonlinear Equations · CS 357: Numerical Methods Nonlinear Equations ... o System of n coupled nonlinear equations in n unknowns, where Solution is vector

What you should learn….

Page 4: CS 357: Numerical Methods Nonlinear Equations · CS 357: Numerical Methods Nonlinear Equations ... o System of n coupled nonlinear equations in n unknowns, where Solution is vector

Solving Equations as Root-finding

Page 5: CS 357: Numerical Methods Nonlinear Equations · CS 357: Numerical Methods Nonlinear Equations ... o System of n coupled nonlinear equations in n unknowns, where Solution is vector

Non-linear Equations

Page 6: CS 357: Numerical Methods Nonlinear Equations · CS 357: Numerical Methods Nonlinear Equations ... o System of n coupled nonlinear equations in n unknowns, where Solution is vector

Examples: One Dimension

Page 7: CS 357: Numerical Methods Nonlinear Equations · CS 357: Numerical Methods Nonlinear Equations ... o System of n coupled nonlinear equations in n unknowns, where Solution is vector

Examples: Non-linear Equations

Page 8: CS 357: Numerical Methods Nonlinear Equations · CS 357: Numerical Methods Nonlinear Equations ... o System of n coupled nonlinear equations in n unknowns, where Solution is vector

Existence and Uniqueness

Page 9: CS 357: Numerical Methods Nonlinear Equations · CS 357: Numerical Methods Nonlinear Equations ... o System of n coupled nonlinear equations in n unknowns, where Solution is vector

Bisection Method

Page 10: CS 357: Numerical Methods Nonlinear Equations · CS 357: Numerical Methods Nonlinear Equations ... o System of n coupled nonlinear equations in n unknowns, where Solution is vector

Bisection Method

Page 11: CS 357: Numerical Methods Nonlinear Equations · CS 357: Numerical Methods Nonlinear Equations ... o System of n coupled nonlinear equations in n unknowns, where Solution is vector

Convergence Rate

Page 12: CS 357: Numerical Methods Nonlinear Equations · CS 357: Numerical Methods Nonlinear Equations ... o System of n coupled nonlinear equations in n unknowns, where Solution is vector

Convergence Rate

Page 13: CS 357: Numerical Methods Nonlinear Equations · CS 357: Numerical Methods Nonlinear Equations ... o System of n coupled nonlinear equations in n unknowns, where Solution is vector

Convergence Rate

Page 14: CS 357: Numerical Methods Nonlinear Equations · CS 357: Numerical Methods Nonlinear Equations ... o System of n coupled nonlinear equations in n unknowns, where Solution is vector

Convergence Rate For Bisection

Page 15: CS 357: Numerical Methods Nonlinear Equations · CS 357: Numerical Methods Nonlinear Equations ... o System of n coupled nonlinear equations in n unknowns, where Solution is vector

Bisection Method

Page 16: CS 357: Numerical Methods Nonlinear Equations · CS 357: Numerical Methods Nonlinear Equations ... o System of n coupled nonlinear equations in n unknowns, where Solution is vector

Newton’s Method

Page 17: CS 357: Numerical Methods Nonlinear Equations · CS 357: Numerical Methods Nonlinear Equations ... o System of n coupled nonlinear equations in n unknowns, where Solution is vector

Newton’s Method

Page 18: CS 357: Numerical Methods Nonlinear Equations · CS 357: Numerical Methods Nonlinear Equations ... o System of n coupled nonlinear equations in n unknowns, where Solution is vector

Newton’s Method: Example

Page 19: CS 357: Numerical Methods Nonlinear Equations · CS 357: Numerical Methods Nonlinear Equations ... o System of n coupled nonlinear equations in n unknowns, where Solution is vector

Convergence of Newton’s Method

Page 20: CS 357: Numerical Methods Nonlinear Equations · CS 357: Numerical Methods Nonlinear Equations ... o System of n coupled nonlinear equations in n unknowns, where Solution is vector

Secant Method

Page 21: CS 357: Numerical Methods Nonlinear Equations · CS 357: Numerical Methods Nonlinear Equations ... o System of n coupled nonlinear equations in n unknowns, where Solution is vector

Secant Method

Page 22: CS 357: Numerical Methods Nonlinear Equations · CS 357: Numerical Methods Nonlinear Equations ... o System of n coupled nonlinear equations in n unknowns, where Solution is vector

Safeguarded Methods

Page 23: CS 357: Numerical Methods Nonlinear Equations · CS 357: Numerical Methods Nonlinear Equations ... o System of n coupled nonlinear equations in n unknowns, where Solution is vector

Systems of Non-linear Equations

Page 24: CS 357: Numerical Methods Nonlinear Equations · CS 357: Numerical Methods Nonlinear Equations ... o System of n coupled nonlinear equations in n unknowns, where Solution is vector

Newton’s Method

Page 25: CS 357: Numerical Methods Nonlinear Equations · CS 357: Numerical Methods Nonlinear Equations ... o System of n coupled nonlinear equations in n unknowns, where Solution is vector

Newton’s Method: Example

Page 26: CS 357: Numerical Methods Nonlinear Equations · CS 357: Numerical Methods Nonlinear Equations ... o System of n coupled nonlinear equations in n unknowns, where Solution is vector

Newton’s Method: Example

Page 27: CS 357: Numerical Methods Nonlinear Equations · CS 357: Numerical Methods Nonlinear Equations ... o System of n coupled nonlinear equations in n unknowns, where Solution is vector

Newton’s Method

Convergence is quadratic

Assuming method starts close to the solution

Computational cost

Computing Jacobian matrix costs O(n2) function evaluations

Solving the linear system is O(n3) operations

Page 28: CS 357: Numerical Methods Nonlinear Equations · CS 357: Numerical Methods Nonlinear Equations ... o System of n coupled nonlinear equations in n unknowns, where Solution is vector

Secant Updating Methods

Page 29: CS 357: Numerical Methods Nonlinear Equations · CS 357: Numerical Methods Nonlinear Equations ... o System of n coupled nonlinear equations in n unknowns, where Solution is vector

Robust Newton-Like Methods

Page 30: CS 357: Numerical Methods Nonlinear Equations · CS 357: Numerical Methods Nonlinear Equations ... o System of n coupled nonlinear equations in n unknowns, where Solution is vector

Trust-Region Methods