Root Finding COS 323

Similar documents
Root Finding COS 323

THE SOLUTION OF NONLINEAR EQUATIONS f( x ) = 0.

CS537. Numerical Analysis and Computing

CS321. Numerical Analysis and Computing

Chapter 2 The Solution of Numerical Algebraic and Transcendental Equations

Notes on iteration and Newton s method. Iteration

PC5215 Numerical Recipes with Applications - Review Problems

We are mainly going to be concerned with power series in x, such as. (x)} converges - that is, lims N n

AP Calculus BC Review Applications of Derivatives (Chapter 4) and f,

In algebra one spends much time finding common denominators and thus simplifying rational expressions. For example:

2.29 Numerical Fluid Mechanics Fall 2011 Lecture 3

SIDDHARTH GROUP OF INSTITUTIONS :: PUTTUR Siddharth Nagar, Narayanavanam Road QUESTION BANK (DESCRIPTIVE)

f t dt. Write the third-degree Taylor polynomial for G

Section A assesses the Units Numerical Analysis 1 and 2 Section B assesses the Unit Mathematics for Applied Mathematics

6.3 Testing Series With Positive Terms

Castiel, Supernatural, Season 6, Episode 18

x c the remainder is Pc ().

Calculus 2 - D. Yuen Final Exam Review (Version 11/22/2017. Please report any possible typos.)

MA131 - Analysis 1. Workbook 3 Sequences II

x x x Using a second Taylor polynomial with remainder, find the best constant C so that for x 0,

ENGI 9420 Engineering Analysis Assignment 3 Solutions

Differentiable Convex Functions

9.3 Power Series: Taylor & Maclaurin Series

Power Series: A power series about the center, x = 0, is a function of x of the form

Recursive Algorithms. Recurrences. Recursive Algorithms Analysis

MATH 10550, EXAM 3 SOLUTIONS

Numerical Solution of Non-linear Equations

Apply change-of-basis formula to rewrite x as a linear combination of eigenvectors v j.

62. Power series Definition 16. (Power series) Given a sequence {c n }, the series. c n x n = c 0 + c 1 x + c 2 x 2 + c 3 x 3 +

NUMERICAL METHODS FOR SOLVING EQUATIONS

x x x 2x x N ( ) p NUMERICAL METHODS UNIT-I-SOLUTION OF EQUATIONS AND EIGENVALUE PROBLEMS By Newton-Raphson formula

Lecture 6 Chi Square Distribution (χ 2 ) and Least Squares Fitting

CALCULUS BASIC SUMMER REVIEW

Quiz. Use either the RATIO or ROOT TEST to determine whether the series is convergent or not.

Taylor Series (BC Only)

Lecture 6 Chi Square Distribution (χ 2 ) and Least Squares Fitting

Newton Homotopy Solution for Nonlinear Equations Using Maple14. Abstract

The type of limit that is used to find TANGENTS and VELOCITIES gives rise to the central idea in DIFFERENTIAL CALCULUS, the DERIVATIVE.

Section 11.8: Power Series

Topic 9 - Taylor and MacLaurin Series

A widely used display of protein shapes is based on the coordinates of the alpha carbons - - C α

Math 312 Lecture Notes One Dimensional Maps

P.3 Polynomials and Special products

Lecture 11. Solution of Nonlinear Equations - III

SOLUTIONS OF ALGEBRAIC AND TRANSCENDENTAL EQUATIONS

Infinite Sequences and Series

Math 299 Supplement: Real Analysis Nov 2013

CHAPTER I: Vector Spaces

Two-step Extrapolated Newton s Method with High Efficiency Index

Math 113 Exam 3 Practice

Chapter 10: Power Series

Math 113 Exam 4 Practice

(c) Write, but do not evaluate, an integral expression for the volume of the solid generated when R is

4x 2. (n+1) x 3 n+1. = lim. 4x 2 n+1 n3 n. n 4x 2 = lim = 3

Math 113, Calculus II Winter 2007 Final Exam Solutions

MA131 - Analysis 1. Workbook 2 Sequences I

Part I: Covers Sequence through Series Comparison Tests

September 2012 C1 Note. C1 Notes (Edexcel) Copyright - For AS, A2 notes and IGCSE / GCSE worksheets 1

Higher-order iterative methods by using Householder's method for solving certain nonlinear equations

(a) (b) All real numbers. (c) All real numbers. (d) None. to show the. (a) 3. (b) [ 7, 1) (c) ( 7, 1) (d) At x = 7. (a) (b)

Example 2. Find the upper bound for the remainder for the approximation from Example 1.

Chapter 6 Infinite Series

Precalculus MATH Sections 3.1, 3.2, 3.3. Exponential, Logistic and Logarithmic Functions

Fooling Newton s Method

( 1) n (4x + 1) n. n=0

Problem Cosider the curve give parametrically as x = si t ad y = + cos t for» t» ß: (a) Describe the path this traverses: Where does it start (whe t =

Polynomial Functions and Their Graphs

( ) ( ) ( ) ( ) ( + ) ( )

Inverse Matrix. A meaning that matrix B is an inverse of matrix A.

-ORDER CONVERGENCE FOR FINDING SIMPLE ROOT OF A POLYNOMIAL EQUATION

Sequences. Notation. Convergence of a Sequence

We will conclude the chapter with the study a few methods and techniques which are useful

Maximum and Minimum Values

Algebra II Notes Unit Seven: Powers, Roots, and Radicals

*X203/701* X203/701. APPLIED MATHEMATICS ADVANCED HIGHER Numerical Analysis. Read carefully

Advanced Analysis. Min Yan Department of Mathematics Hong Kong University of Science and Technology

ENGI Series Page 6-01

Math F15 Rahman

Northwest High School s Algebra 2/Honors Algebra 2 Summer Review Packet

MIDTERM 3 CALCULUS 2. Monday, December 3, :15 PM to 6:45 PM. Name PRACTICE EXAM SOLUTIONS

Ma 530 Infinite Series I

CHAPTER 1 SEQUENCES AND INFINITE SERIES

CALCULUS IN A NUTSHELL INTRODUCTION:

Math 113 Exam 3 Practice

A.1 Algebra Review: Polynomials/Rationals. Definitions:

CHAPTER 10 INFINITE SEQUENCES AND SERIES

v = -!g(x 0 ) Ûg Ûx 1 Ûx 2 Ú If we work out the details in the partial derivatives, we get a pleasing result. n Ûx k, i x i - 2 b k

ENGI 9420 Lecture Notes 3 - Numerical Methods Page 3.01

Linear Differential Equations of Higher Order Basic Theory: Initial-Value Problems d y d y dy

Chapter 7 Maximum Likelihood Estimate (MLE)

The Method of Least Squares. To understand least squares fitting of data.

It is often useful to approximate complicated functions using simpler ones. We consider the task of approximating a function by a polynomial.

L 5 & 6: RelHydro/Basel. f(x)= ( ) f( ) ( ) ( ) ( ) n! 1! 2! 3! If the TE of f(x)= sin(x) around x 0 is: sin(x) = x - 3! 5!

Lesson 10: Limits and Continuity

Fourier Series and the Wave Equation

Exam II Covers. STA 291 Lecture 19. Exam II Next Tuesday 5-7pm Memorial Hall (Same place as exam I) Makeup Exam 7:15pm 9:15pm Location CB 234

Comparison Study of Series Approximation. and Convergence between Chebyshev. and Legendre Series

CHAPTER 5. Theory and Solution Using Matrix Techniques

Zeros of Polynomials

Transcription:

Root Fidig COS 323

Remider Sig up for Piazza Assigmet 0 is posted, due Tue 9/25

Last time.. Floatig poit umbers ad precisio Machie epsilo Sources of error Sesitivity ad coditioig Stability ad accuracy Asymptotic aalysis ad covergece order

Today Root fidig defiitio & motivatio Stadard techiques for root fidig Algorithms, covergece, tradeoffs Eample applicatios of Newto s Method Root fidig i > 1 dimesio

1-D Root Fidig Give some fuctio, fid locatio where f0

Why Root Fidig? Solve for i ay equatio: f b where? fid root of g f b 0 Might ot be able to solve for directly e.g., f e -0.2 si3-0.5 Evaluatig f might itself require solvig a differetial equatio, ruig a simulatio, etc.

Why Root Fidig? Egieerig applicatios: Predict depedet variable e.g., temperature, force, voltage give idepedet variables e.g., time, positio Focus o fidig real roots

Bracket-Based Methods Give: Poits that bracket the root A well-behaved fuctio Ca always fid some root f + > 0 f < 0

What Goes Wrog? Taget poit: very difficult to fid Sigularity: brackets do t surroud root Pathological case: ifiite umber of roots e.g. si1/

Bisectio Method Give poits + ad that bracket a root, fid half ½ + + ad evaluate f half If positive, + half else half Stop whe + ad close eough If fuctio is cotiuous, this will succeed i fidig some root

Error Covergece of Iterative Methods Absolute error boud ε at step : ε bouds estimated at step true Covergece: describes how ε +1 relates to ε Liear covergece: ε +1 c ε for some c 0,1 Superliear covergece: ε +1 c ε q for some c 0,1, q > 1

Liear: Superliear: Subliear:

Bisectio Error Covergece Very robust method: guarateed to fid root! Covergece rate: Error bouded by size of [ + ] iterval Iterval shriks i half at each iteratio So, error boud cut i half at each iteratio: ε +1 ½ ε Liear covergece! Oe etra bit of accuracy i at each iteratio

Faster Root-Fidig Facier methods get super-liear covergece Typical approach: model fuctio locally by somethig whose root you ca fid eactly Model did t match fuctio eactly, so iterate I may cases, these are less safe tha bisectio

Secat Method Iterpolate or etrapolate through two most recet poits 3 2 1 4

Secat Method Covergece Faster tha bisectio: ε +1 c ε 1.6 Faster tha liear: umber of correct bits multiplied by 1.6 Drawback: oly true if sufficietly close to a root of a sufficietly smooth fuctio Does ot guaratee that root remais bracketed

False Positio Method Similar to secat, but guaratees bracketig 4 3 2 1 Stable, but liear i bad cases

False Positio Failure 2 1 3

Other Iterpolatio Strategies Ridders method: fit epoetial to f +, f, ad f half Va Wijgaarde-Dekker-Bret method: iverse quadratic fit to 3 most recet poits if withi bracket, else bisectio Both of these safe if fuctio is asty, but fast super-liear if fuctio is ice

Demo

Newto-Raphso Best-kow algorithm for gettig quadratic covergece whe derivative is easy to evaluate Quadratic: # correct bits doubles each iteratio! ε +1 c ε 2 Aother variat o the etrapolatio theme 3 4 2 1 Slope derivative at 1 + 1 f f

Newto-Raphso covergece Begi with Taylor series Divide by derivative ca t be zero! f +δ f +δ f +δ 2 f 2 +... wat 0 2 1 2 2 2 ~ 2 0 2 0 2 Newto Newto f f f f f f f f ε ε δ δ δ δ δ δ δ δ + + + + +

Newto-Raphso Method fragile: ca easily get cofused Good startig poit critical Newto popular for polishig off a root foud approimately usig a more robust method Quadratic oly for simple root

Newto-Raphso Covergece Ca talk about basi of covergece : rage of 0 for which method fids a root Ca be etremely comple: here s a eample i 2-D with 4 roots

Commo Eample of Newto: Square Root Let f 2 a: zero of this is square root of a f 2, so Newto iteratio is Divide ad average method ~2000 B.C. a a + + 2 1 2 1 2 1 f f +

Reciprocal via Newto Divisio is slowest of basic operatios O some computers, hardware divide ot available!: simulate i software Need oly subtract ad multiply b b a b b f b f a + 2 0 * 2 2 1 1 1 1 1 1

Rootfidig i >1D Behavior ca be comple: e.g. i 2D wat f, y wat g, y 0 0

Rootfidig i >1D Ca t bracket ad bisect Result: few geeral methods

Newto i Higher Dimesios Start with Write as vector-valued fuctio 0, 0, wat wat y g y f,, y g y f f

Newto i Higher Dimesios Epad i terms of Taylor series wat f + δ f + f δ +... 0 f is a Jacobia f f J y f

Newto i Higher Dimesios 1-dimesioal case: δ f / f N-dimesioal: Solve for δ δ J 1 f Requires matri iversio we ll see this later Ofte fragile must be careful Keep track of whether error decreases If ot, try a smaller step i directio δ

Recap: Tradeoffs Bracketig methods Bisectio, False-positio Stable, slow Ope methods Secat, Newto Possibly diverget, fast Newto requires derivative Hybrid methods Bret Combie bracketig & ope methods i a pricipled way

Practical otes Root-fidig i Matlab: fzero: For fidig root of a sigle fuctio Combies safe ad fast methods roots: For fidig polyomial roots Ecel: Goal Seek: Drive a equatio to 0 by adjustig 1 parameter Solver: Ca vary multiple parameters simultaeously, also miimize & maimize Tip: Plot your fuctio first!!!