Fixed-Point Iteration

Similar documents
Accelerating Convergence

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

Mean Value Theorem. MATH 161 Calculus I. J. Robert Buchanan. Summer Department of Mathematics

Review of Power Series

Mean Value Theorem. MATH 161 Calculus I. J. Robert Buchanan. Summer Department of Mathematics

6.2 Deeper Properties of Continuous Functions

Solutions of Equations in One Variable. Newton s Method

ROOT FINDING REVIEW MICHELLE FENG

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

5.5 Deeper Properties of Continuous Functions

Section 4.2: The Mean Value Theorem

Continuity. Chapter 4

Fundamental Theorem of Calculus

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

MATH115. Sequences and Infinite Series. Paolo Lorenzo Bautista. June 29, De La Salle University. PLBautista (DLSU) MATH115 June 29, / 16

Chapter 8: Taylor s theorem and L Hospital s rule

MATH115. Indeterminate Forms and Improper Integrals. Paolo Lorenzo Bautista. June 24, De La Salle University

Thus f is continuous at x 0. Matthew Straughn Math 402 Homework 6

Limit Theorems. MATH 464/506, Real Analysis. J. Robert Buchanan. Summer Department of Mathematics. J. Robert Buchanan Limit Theorems

Taylor and Maclaurin Series

Bisection Method. and compute f (p 1 ). repeat with p 2 = a 2+b 2

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

Riemann Integrable Functions

Math 104: Homework 7 solutions

Absolute Convergence and the Ratio Test

Advanced Calculus I Chapter 2 & 3 Homework Solutions October 30, Prove that f has a limit at 2 and x + 2 find it. f(x) = 2x2 + 3x 2 x + 2

Neville s Method. MATH 375 Numerical Analysis. J. Robert Buchanan. Fall Department of Mathematics. J. Robert Buchanan Neville s Method

Interpolation and the Lagrange Polynomial

Separable Differential Equations

HOMEWORK ASSIGNMENT 5

MAT137 Calculus! Lecture 10

The definition, and some continuity laws. Types of discontinuities. The Squeeze Theorem. Two special limits. The IVT and EVT.

MATH 2053 Calculus I Review for the Final Exam

5.5 Deeper Properties of Continuous Functions

Math 421, Homework #9 Solutions

MATH 409 Advanced Calculus I Lecture 16: Mean value theorem. Taylor s formula.

Hence, (f(x) f(x 0 )) 2 + (g(x) g(x 0 )) 2 < ɛ

f ', the first derivative of a differentiable function, f. Use the

Lecture 10: Finite Differences for ODEs & Nonlinear Equations

Student Study Session. Theorems

Absolute Convergence and the Ratio Test

Section 8.7. Taylor and MacLaurin Series. (1) Definitions, (2) Common Maclaurin Series, (3) Taylor Polynomials, (4) Applications.

Geometric Series and the Ratio and Root Test

Linear Independence. MATH 322, Linear Algebra I. J. Robert Buchanan. Spring Department of Mathematics

Section 10.7 Taylor series

Bessel s Equation. MATH 365 Ordinary Differential Equations. J. Robert Buchanan. Fall Department of Mathematics

Arc Length and Surface Area in Parametric Equations

Math 142 Week-in-Review #4 (Sections , 4.1, and 4.2)

Fixed point iteration Numerical Analysis Math 465/565

Chain Rule. MATH 311, Calculus III. J. Robert Buchanan. Spring Department of Mathematics

Discrete dynamics on the real line

MA 8019: Numerical Analysis I Solution of Nonlinear Equations

MAT01B1: the Mean Value Theorem

Numerical Methods

Linearization and Extreme Values of Functions

Continuity. Matt Rosenzweig

Homework 11. Solutions

BEKG 2452 NUMERICAL METHODS Solution of Nonlinear Equations

Math 117: Honours Calculus I Fall, 2002 List of Theorems. a n k b k. k. Theorem 2.1 (Convergent Bounded) A convergent sequence is bounded.

Section 4.2 The Mean Value Theorem

Math 112 (Calculus I) Final Exam

Chapter 3: Root Finding. September 26, 2005

Continuity. Chapter 4

The First Derivative and Second Derivative Test

Computer Arithmetic. MATH 375 Numerical Analysis. J. Robert Buchanan. Fall Department of Mathematics. J. Robert Buchanan Computer Arithmetic

Chapter 1. Root Finding Methods. 1.1 Bisection method

Homework #12 corrections

The First Derivative and Second Derivative Test

Fundamental Trigonometric Identities

Solutions to Math 41 First Exam October 18, 2012

Math 473: Practice Problems for Test 1, Fall 2011, SOLUTIONS

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

MAT01B1: the Mean Value Theorem

Differentiation - Important Theorems

Problems for Chapter 3.

PRACTICE PROBLEM SET

Geometric Series and the Ratio and Root Test

Limit Laws- Theorem 2.2.1

Power Series. Part 1. J. Gonzalez-Zugasti, University of Massachusetts - Lowell

Properties of Logarithms

Antiderivatives and Indefinite Integrals

Math 151a week 1 discussion notes

Implicit Differentiation and Inverse Trigonometric Functions

Fixed Point Theorems

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

MATH 4211/6211 Optimization Basics of Optimization Problems

Calculus and Parametric Equations

Romberg Integration. MATH 375 Numerical Analysis. J. Robert Buchanan. Spring Department of Mathematics

Announcements. Topics: Homework:

Differentiation. Table of contents Definition Arithmetics Composite and inverse functions... 5

Section 2.9 The Mean Value Theorem

Math 106 Answers to Exam 1a Fall 2015

6.2 Important Theorems

Math 261 Calculus I. Test 1 Study Guide. Name. Decide whether the limit exists. If it exists, find its value. 1) lim x 1. f(x) 2) lim x -1/2 f(x)

Summer Jump-Start Program for Analysis, 2012 Song-Ying Li

MATH 409 Advanced Calculus I Lecture 10: Continuity. Properties of continuous functions.

MAT137 Calculus! Lecture 9

MTAEA Differentiation

Exercise 2. Prove that [ 1, 1] is the set of all the limit points of ( 1, 1] = {x R : 1 <

(b) Write the DTDS: s t+1 =

Transcription:

Fixed-Point Iteration MATH 375 Numerical Analysis J. Robert Buchanan Department of Mathematics Fall 2013

Motivation Several root-finding algorithms operate by repeatedly evaluating a function until its value does not change (or changes by a suitably small amount).

Motivation Several root-finding algorithms operate by repeatedly evaluating a function until its value does not change (or changes by a suitably small amount). Definition A fixed-point for a function f is a number p such that f (p) = p.

Equivalence The process of root-finding and the process of finding fixed points are equivalent in the following sense. Suppose g(x) is a function with a root at x = p, then f (x) = g(x) + x has a fixed point at x = p. Suppose f (x) is a function with a fixed point at x = p, then g(x) = x f (x) has a root at x = p.

Examples Find the fixed points (if any) of the following functions. f (x) = x f (x) = 2x f (x) = x sin πx

Graphical Interpretation 2 1 2 1 1 2 x 1 2

Existence and Uniqueness Theorem (Brouwer) Suppose g C[a, b] and g(x) [a, b] for all x [a, b]. Then 1 g has a fixed point in [a, b] (existence), and 2 if, in addition, g (x) exists on (a, b) and if there exists a constant 0 < k < 1 such that g (x) k, for all x (a, b), then there is exactly one fixed point in [a, b] (uniqueness).

Graphical Interpretation b p g p a a x Note: g(a) a and g(b) b. If g(a) = a or if g(b) = b then g has a fixed point in [a, b].

Proof (1 of 2) Suppose g(a) > a and g(b) < b. Define h(x) = g(x) x. The function h C[a, b]. h(b) < 0 < h(a) so by the Intermediate Value Theorem there exists p (a, b) such that h(p) = 0 0 = h(p) g(p) = p = g(p) p

Proof (2 of 2) Now suppose g (x) exists on (a, b) and there exists a constant 0 < k < 1 such that g (x) k for all x (a, b).

Proof (2 of 2) Now suppose g (x) exists on (a, b) and there exists a constant 0 < k < 1 such that g (x) k for all x (a, b). For the purposes of contradiction suppose g has two fixed points p and q with p q.

Proof (2 of 2) Now suppose g (x) exists on (a, b) and there exists a constant 0 < k < 1 such that g (x) k for all x (a, b). For the purposes of contradiction suppose g has two fixed points p and q with p q. According to the Mean Value Theorem there exists a < c < b for which g(p) g(q) p q = p q p q = 1 = g (c). This contradicts the assumption that g (x) k < 1 for all x (a, b).

Example Show that g(x) = 2 x has a unique fixed point on [0, 1].

Example Show that g(x) = 2 x has a unique fixed point on [0, 1]. g C[0, 1] and g (x) = (ln 2)2 x < 0 which implies g is monotone decreasing. g(0) = 1 and g(1) = 1/2 > 0. Since g is decreasing then g(x) [0, 1] for all x [0, 1]. By the first conclusion of the Brouwer Theorem, g has a fixed point in [0, 1].

Example Show that g(x) = 2 x has a unique fixed point on [0, 1]. g C[0, 1] and g (x) = (ln 2)2 x < 0 which implies g is monotone decreasing. g(0) = 1 and g(1) = 1/2 > 0. Since g is decreasing then g(x) [0, 1] for all x [0, 1]. By the first conclusion of the Brouwer Theorem, g has a fixed point in [0, 1]. g (x) = (ln 2)2 x ln 2 < 1 for x (0, 1). By the second conclusion of the Brouwer Theorem, the fixed point is unique.

Estimating the Fixed Point (1 of 2) Let p be the unknown fixed point of g(x) = 2 x and suppose ˆp is an approximation to p. g(p) g(ˆp) p ˆp = g (y) (for some y between p and ˆp)

Estimating the Fixed Point (1 of 2) Let p be the unknown fixed point of g(x) = 2 x and suppose ˆp is an approximation to p. g(p) g(ˆp) = g (y) (for some y between p and ˆp) p ˆp g(p) g(ˆp) = g (y) p ˆp p 2 ˆp = (ln 2)2 y p ˆp }{{} <1

Estimating the Fixed Point (1 of 2) Let p be the unknown fixed point of g(x) = 2 x and suppose ˆp is an approximation to p. g(p) g(ˆp) = g (y) (for some y between p and ˆp) p ˆp g(p) g(ˆp) = g (y) p ˆp p 2 ˆp = (ln 2)2 y p ˆp }{{} <1 p 2 ˆp < p ˆp

Estimating the Fixed Point (1 of 2) Let p be the unknown fixed point of g(x) = 2 x and suppose ˆp is an approximation to p. g(p) g(ˆp) = g (y) (for some y between p and ˆp) p ˆp g(p) g(ˆp) = g (y) p ˆp p 2 ˆp = (ln 2)2 y p ˆp }{{} <1 p 2 ˆp < p ˆp Conclusion: 2 ˆp is a better approximation to p than ˆp was.

Estimating the Fixed Point (2 of 2) Let g(x) = 2 x and let x 0 = 1/2. Given x n 1 then define x n = g(x n 1 ). n x n g(x n ) 0 0.5 0.707107 1 0.707107 0.612547 2 0.612547 0.654041 3 0.654041 0.635498 4 0.635498 0.643719 5 0.643719 0.640061 6 0.640061 0.641686 7 0.641686 0.640964 8 0.640964 0.641285 9 0.641285 0.641142

Cobweb Diagram 0.8 0.7 0.6 0.5 x

Fixed-Point Iteration Given g(x): INPUT p 0, tolerance ɛ, maximum iterations N STEP 1 Set i = 1. STEP 2 While i N do STEPS 3 6. STEP 3 Set p = g(p 0 ). STEP 4 If p p 0 < ɛ then OUTPUT p; STOP. STEP 5 Set i = i + 1. STEP 6 Set p 0 = p. STEP 7 OUTPUT The method failed after N iterations. ; STOP.

Example (1 of 2) Approximate a solution to x 3 x 1 = 0 on [1, 2] using fixed point iteration.

Example (1 of 2) Approximate a solution to x 3 x 1 = 0 on [1, 2] using fixed point iteration. If we let g(x) = x 3 1 then finding a fixed point of g is equivalent to finding a root of the original equation.

Example (1 of 2) Approximate a solution to x 3 x 1 = 0 on [1, 2] using fixed point iteration. If we let g(x) = x 3 1 then finding a fixed point of g is equivalent to finding a root of the original equation. However; g(x) maps the interval [1, 2] to the interval [1, 7].

Example (1 of 2) Approximate a solution to x 3 x 1 = 0 on [1, 2] using fixed point iteration. If we let g(x) = x 3 1 then finding a fixed point of g is equivalent to finding a root of the original equation. However; g(x) maps the interval [1, 2] to the interval [1, 7]. Can you find another function g which maps [1, 2] into itself?

Example (2 of 2) x 3 x 1 = 0 x 3 = x + 1 x = 3 x + 1 = g(x) Function g maps [1, 2] into [1, 2]. Starting with p 0 = 1 the sequence of approximations to the fixed point is {1.0, 1.25992, 1.31229, 1.32235, 1.32427, 1.32463, 1.32470}

Fixed-Point Theorem Theorem (Fixed-Point) Suppose g C[a, b] and g(x) [a, b] for all x [a, b]. Furthermore suppose that g exists on (a, b) and that there exists a constant 0 < k < 1 such that g (x) k, for x [a, b]. Then for any p 0 [a, b] the sequence defined by p n = g(p n 1 ), for n 1 converges to the unique fixed point p in [a, b].

Proof (1 of 2) According to Brouwer s Theorem the unique fixed point p exists in [a, b]. The sequence {p n } n=0 has the property that p n [a, b] for all n. By the MVT g(p 0 ) g(p) p 0 p = g (ξ 0 ) (with ξ 0 [a, b]) p 1 p = g (ξ 0 ) p0 p p 1 p k p 0 p.

Proof (2 of 2) Suppose p n p k n p 0 p for some n 1. By the MVT g(p n ) g(p) p n p = g (ξ n ) (with ξ n [a, b]) p n+1 p = g (ξ n ) p n p p n+1 p k p n p p n+1 p k n+1 p 0 p. Since 0 < k < 1, the lim n p n p = 0.

Error Estimate While the Fixed-Point Theorem justifies that the algorithm will converge to a fixed-point/solution of the function/equation, it does not tell us anything directly about the error present in each stage of the algorithm.

Error Estimate While the Fixed-Point Theorem justifies that the algorithm will converge to a fixed-point/solution of the function/equation, it does not tell us anything directly about the error present in each stage of the algorithm. Corollary If g satisfies the hypotheses of the Fixed-Point Theorem, then bounds for the error involved in using p n to approximate p are p n p k n max{p 0 a, b p 0 } and p n p k n 1 k p 1 p, for n 1.

Proof (1 of 2) According to the Fixed-Point Theorem p n p k n p 0 p k n max{p 0 a, b p 0 }.

Proof (1 of 2) According to the Fixed-Point Theorem p n p k n p 0 p k n max{p 0 a, b p 0 }. Using the MVT again we see that p n+1 p n = g(p n ) g(p n 1 ) k p n p n 1 k 2 p n 1 p n 2. k n p 1 p 0.

Proof (2 of 2) Assume 1 n < m then p m p n = p m p m 1 + p m 1 + p n+1 p n p m p m 1 + p m 1 p m 2 + + p n+1 p n k m 1 p 1 p 0 + k m 2 p 1 p 0 + + k n p 1 p 0 = k n (1 + k + k 2 + + k m n 1 ) p 1 p 0 ( ) k n k i p 1 p 0 = i=0 k n 1 k p 1 p 0

Example Consider the equation x 3 + 4x 2 10 = 0. Develop a fixed point function to approximate a solution to this equation on the interval [1, 2]. Determine the number of iterations necessary to estimate the solution to within 10 6. Estimate the solution.

Solution Among other possibilities: 0 = x 3 + 4x 2 10 x 2 (x + 4) = 10 10 x = x + 4 = g(x).

Solution Among other possibilities: 0 = x 3 + 4x 2 10 x 2 (x + 4) = 10 10 x = x + 4 = g(x). Upon taking the derivative of g(x) we see that on [1, 2], g (x) = 5 10(x + 4) 3/2 5 < 0.1415 = k. 10 (5) 3/2 If p 0 = 1 then p 1 = 2 and k n p p n 1 k p 1 p 0 = 0.1415n 1 0.1415 2 1 < 10 6 n 7

Solution Among other possibilities: 0 = x 3 + 4x 2 10 x 2 (x + 4) = 10 10 x = x + 4 = g(x). Upon taking the derivative of g(x) we see that on [1, 2], g (x) = 5 10(x + 4) 3/2 5 < 0.1415 = k. 10 (5) 3/2 If p 0 = 1 then p 1 = 2 and k n p p n 1 k p 1 p 0 = 0.1415n 1 0.1415 2 1 < 10 6 n 7 p 7 1.365230

Challenge For a given equation f (x) = 0, find a fixed point function which satisfies the conditions of the Fixed-Point Theorem.

Homework Read Section 2.2. Exercises: 1, 2, 3, 7, 13, 16, 23