CS321. Numerical Analysis and Computing

Similar documents
CS537. Numerical Analysis and Computing

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

Topic 9 - Taylor and MacLaurin Series

Chapter 2 The Solution of Numerical Algebraic and Transcendental Equations

Root Finding COS 323

Some Variants of Newton's Method with Fifth-Order and Fourth-Order Convergence for Solving Nonlinear Equations

Notes on iteration and Newton s method. Iteration

Root Finding COS 323

Lecture 11. Solution of Nonlinear Equations - III

Modification of Weerakoon-Fernando s Method with Fourth-Order of Convergence for Solving Nonlinear Equation

PC5215 Numerical Recipes with Applications - Review Problems

Maclaurin and Taylor series

Numerical Solution of Non-linear Equations

TAYLOR AND MACLAURIN SERIES

Taylor Polynomials and Approximations - Classwork

ENGI 9420 Lecture Notes 3 - Numerical Methods Page 3.01

The picture in figure 1.1 helps us to see that the area represents the distance traveled. Figure 1: Area represents distance travelled

6.3 Testing Series With Positive Terms

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

e to approximate (using 4

ENGI 4430 Advanced Calculus for Engineering Faculty of Engineering and Applied Science Problem Set 4 Solutions [Numerical Methods]

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

Error for power series (Day 2) YOU MAY USE YOUR CALCULATOR TO COMPUTE FRACTIONS AND OTHER SIMPLE OPERATIONS

Solving a Nonlinear Equation Using a New Two-Step Derivative Free Iterative Methods

Most text will write ordinary derivatives using either Leibniz notation 2 3. y + 5y= e and y y. xx tt t

Newton s Method. y f x 1 x x 1 f x 1. Letting y 0 and solving for x produces. x x 1 f x 1. x 1. x 2 x 1 f x 1. f x 1. x 3 x 2 f x 2 f x 2.

ENGI 9420 Engineering Analysis Assignment 3 Solutions

CHAPTER 6c. NUMERICAL INTERPOLATION

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

Castiel, Supernatural, Season 6, Episode 18

Chapter 2: Numerical Methods

1. (25 points) Use the limit definition of the definite integral and the sum formulas 1 to compute

Real Variables II Homework Set #5

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

Chapter 2 The Monte Carlo Method

Polynomials. Computer Programming for Engineers (2014 Spring)

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

Beyond simple iteration of a single function, or even a finite sequence of functions, results

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

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

International Journal of Mathematical Archive-4(9), 2013, 1-5 Available online through ISSN

PRELIMINARY MATHEMATICS LECTURE 5

μ are complex parameters. Other

Infinite Sequences and Series

, 4 is the second term U 2

Math 312 Lecture Notes One Dimensional Maps

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

Newton s Method. Video

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

(A sequence also can be thought of as the list of function values attained for a function f :ℵ X, where f (n) = x n for n 1.) x 1 x N +k x N +4 x 3

Complex Analysis Spring 2001 Homework I Solution

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

2.29 Numerical Fluid Mechanics Fall 2011 Lecture 3

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

SOLUTIONS TO EXAM 3. Solution: Note that this defines two convergent geometric series with respective radii r 1 = 2/5 < 1 and r 2 = 1/5 < 1.

Research Article A New Second-Order Iteration Method for Solving Nonlinear Equations

Fundamental Concepts: Surfaces and Curves

A NUMERICAL METHOD OF SOLVING CAUCHY PROBLEM FOR DIFFERENTIAL EQUATIONS BASED ON A LINEAR APPROXIMATION

Taylor expansion: Show that the TE of f(x)= sin(x) around. sin(x) = x - + 3! 5! L 7 & 8: MHD/ZAH

Numerical Integration Formulas

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 =

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

Two-step Extrapolated Newton s Method with High Efficiency Index

Representing Functions as Power Series. 3 n ...

-ORDER CONVERGENCE FOR FINDING SIMPLE ROOT OF A POLYNOMIAL EQUATION

Sequences A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence

A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence

Optimization Methods MIT 2.098/6.255/ Final exam

CHAPTER 6d. NUMERICAL INTERPOLATION

STAT 516 Answers Homework 6 April 2, 2008 Solutions by Mark Daniel Ward PROBLEMS

Recursive Algorithms. Recurrences. Recursive Algorithms Analysis

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!

1 Approximating Integrals using Taylor Polynomials

Maximum and Minimum Values

Numerical Solution of the First-Order Hyperbolic Partial Differential Equation with Point-Wise Advance

Roberto s Notes on Series Chapter 2: Convergence tests Section 7. Alternating series

Mathematics Extension 1

Math Solutions to homework 6

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

Fall 2013 MTH431/531 Real analysis Section Notes

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

MA131 - Analysis 1. Workbook 3 Sequences II

Analytic Continuation

Finite Difference Approximation for Transport Equation with Shifts Arising in Neuronal Variability

Applied Mathematics Letters

Sequences and Series of Functions

ITERATIVE SOLUTION OF TWO MATRIX EQUATIONS

Introduction to Optimization Techniques. How to Solve Equations

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

MATH301 Real Analysis (2008 Fall) Tutorial Note #7. k=1 f k (x) converges pointwise to S(x) on E if and

PRELIM PROBLEM SOLUTIONS

Fuzzy n-normed Space and Fuzzy n-inner Product Space

Assignment 5: Solutions

NUMERICAL METHODS FOR SOLVING EQUATIONS

SOLUTIONS OF ALGEBRAIC AND TRANSCENDENTAL EQUATIONS

Statistical Inference Based on Extremum Estimators

MATH 10550, EXAM 3 SOLUTIONS

Topics Machine learning: lecture 2. Review: the learning problem. Hypotheses and estimation. Estimation criterion cont d. Estimation criterion

MAT1026 Calculus II Basic Convergence Tests for Series

CHAPTER 1 SEQUENCES AND INFINITE SERIES

Transcription:

CS Numerical Aalysis ad Computig Lecture Locatig Roots o Equatios Proessor Ju Zhag Departmet o Computer Sciece Uiversity o Ketucky Leigto KY 456-6 September 8 5

What is the Root May physical system ca be writte i the orm o a equatio This equatio represets the relatioship betwee the depedet variables ad idepedet variables The root o a oliear equatio is the solutio o that equatio It ca also be said to be the solutio o a oliear system Most oliear equatios are too complicated to have a aalytical solutio I practice we are more iterested i idig some umerical solutios eplicit umbers approimate solutios

Roots Zeroso a Fuctio

Roots Zeroso a Fuctio 4

Roots o a Fuctios Let be a uctio that has values o opposite sigs at the two eds o a give iterval [ab] with a < b i.e. a b <. I is cotiuous o [ab] the there eists a umber c i [ab] such that c c is called a root o uctio Eample. The uctio has a root i the iterval []. It has two roots i the iterval [-5] Remark: roots are ot ecessarily uique i a give iterval Need some root idig algorithms or geeral uctios 5

A Root o a Fuctio 6

A Fuctio with Four Roots 7

Bisectio Method Give a iterval [ab] ad a cotiuous uctio i a b < the must have a root i [ab]. How to id it? We suppose a > ad b < b a b a Step. Compute the midpoit c stop i is small ad take c as the root Step. Evaluate c i c a root is oud Step. I c the either c > or c < Step 4. I c < a root must be i [ac] Step 5. Let b c b c go to Step. 8

Bisectio Process 9

Bisectio Process Fid a root o the uctio

Bisectio Process

Covergece Aalysis Let r be a root o i the iterval [a b ]. Let c be the midpoit the I we use the bisectio algorithm we compute ad have a b c a b c the Sice the iterval legth is halved at each step we have Hece which is the maimum error i we take c as a approimate to the root r b a a b c r a b c r a b a b a b a b c r

Liear Covergece A sequece { } has liear covergece to a limit i there eists a costat C i the iterval [ such that By recursio we have Or equivaletly a liear covergece satisies For some positive umber A C C The bisectio algorithm has a liear covergece rate with C ½ ad A b -a / C C C AC <

Stoppig Criterio What is our goal? Whe to stop? How may iteratios? Our goal is to id r Є [ab] such that r With the bisectio algorithm we geerate a sequece such that r c < ε or some prescribed umber ε > i.e. we id a poit c iside the iterval [ab] that is very close to the root r. We the use c as a approimate to r It is ot guarateed however that c is very close to 4

How May Iteratios I we wat the approimate root c is close to the true root r i.e. we wat c < ε The the umber o bisectio steps satisies b a < ε Or log b a logε > log r Eample. Fid a root i [67] up to machie sigle precisio a. b. so r must have a biary orm r.***. We have a total o 4 bits 5 is already ied. The accuracy will be up to aother 9 bits which is betwee -9 ad -. We choose є -. Sice b a we eed > yieldig 5

Newto s Method Give a uctio ad a poit i we kow the derivative o at we ca costruct a liear uctio that passes through with a slope as l ' Sice l is close to at i is close to r we ca use the root o l as a approimate to r the root o ' may ot be close to r eough we repeat the procedure to id Uder certai coditios { } coverges to r ' 6

Newto s Method 7

From Taylor Series I but is close to r we may assume that they dier by h i.e. h r or h r Usig Taylor series epasios h h ' " Igorig the higher order terms we have Or h ' h ' Sice h does ot satisy h we use h ' as a approimate to r ad repeat the process 8

First Few Approimatios 9

Fast Covergece Fid a root or the ollowig uctio startig at 4 4 ' Each iteratio gais double digits o accuracy ad decreases quadratically to

Eample

Covergece Aalysis Let the uctio have cotiuous irst ad secod derivatives ad ad r be a simple root o with r. I is suicietly close to r the Newto s method coverges to r quadratically. r c r I diers rom r by at most oe uit i the kth decimal place i.e. The or c we have r r The umber o correct decimal digits doubles ater aother iteratio k k

Covergece Proo Let e r. Newto s method geerates a sequece { } such that Usig Taylor s epasio there eists a poit betwee ad r or which It ollows that ' ' ' ' e e r r e " ' e e e r ξ " ' e e ξ

4 Covergece Proo Cot. We thus have Deie a upper boud We ca choose δ small so that This is to guaratee that is close to r withi a distace o δ ' " e e ξ ' mi " ma > δ δ δ δ c r r ξ δ r ad δ r e

For very small δ > we have Covergece Proo Cot. With ρ δcδ < i δ is small eough thereore is also close to r withi a distace o δ. By recursio i is close to r the e Sice ρ < this is to say e " ξ e c δ e ' δ c δ e r e ρ e ρ e e δ ρ e ρ e ρ e lim e as 5

Weakess o Newto s Method Newto s method coverges ast oly whe is chose close to r. I practice there might also be a umber o problems. eeds derivative value ad availability. startig poit must be close to r. lose quadratic covergece i multiple root 4. iterates may ru away ot i covergece domai 5. lat spot with 6. cyclig iterates aroud r 6

Problems o Newto s Method 7

Newto s Method Cyclig 8

9 Systems o Noliear Equatios Newto s method is really useul or idig zero o a system o oliear equatios Writte i vector orm as Where We have k J k is the Jacobia matri T T ] [' k k k k

A Equatio Eample Usig Taylor epasio Let be a approimate solutio ad the computed correctio be. Hece h h h h h h i i i i i T T h h h h h ' h

Eample Cot. The Jacobia matri is It ollows that Hece the ew iterate is I practice we solve the Jacobia matri i So that J ] -[' h ] [' ]h [J k k k h k k k

Secat Method I Newto s method We eed to evaluate ad at each iteratio We ca approimate the derivative at by Thus the secat method geerates iterates Oly oe uctioal evaluatio at each iteratio ' '

Secat Method

Commets Secat method eeds two iterates to start with we ca use bisectio method to geerate the secod iterate Secat method does ot eed to kow the derivative o I - is small the computatio may lose sigiicat digits ad becomes ustable The covergece rate o the secat method is superliear e C e With α 5.6. Its covergece rate is betwee that o the bisectio method ad the Newto s method α

Hybrid Approaches I practice hybrid methods are usually used For eample we ca use Bisectio Method to geerate iitial iterates that are close to the root so that Newto s method ca be applied Whe the evaluatio o derivative is epesive the Secat Method should be used to replace the Newto s method The trade-os betwee Bisectio Method ad Newto s Method are robustess ad ast covergece The Secat Method is supposed to come betwee these two methods to take the advatages o both ad avoid the disadvatages o either 5