128a_su09_final_sol

128a_su09_final_sol - UCB MATH 128A-2, SUMMER 2009: FINAL...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: UCB MATH 128A-2, SUMMER 2009: FINAL EXAM SOLUTIONS JUSTIN BLANCHARD 1. (a) Prove that the bisection method on [1 , 2] will converge to a root of x 3- x- 1. (b) Find a bound on the absolute error in approximating this root after n iterations. (c) How many iterations are necessary to ensure the relative error is at most 2- 5 ? (Your answer does not have to be exact.) Solution: (a) This function is continuous. Its values at the endpoints are- 1 < 0 and 5 > 0. Therefore, the interval brackets a root and the bisection method will converge. (b) On the n th iteration, the root is known to lie in an interval of width 2- 1 2 n- 1 . Its distance from this intervals midpoint can be at most 1 / 2 n . (The answer 1 / 2 n +1 is also acceptable, depending on how the phrase after n iterations is interpreted.) (c) Since the root lies in [1 , 2], the relative error is at most equal to the absolute error. By (b), we must use n = 5 iterations. 2. (a) Find an algebraic expression for the unique root (in R ) of f ( x ) = x 2- 2 /x . (b) Newtons method searches for this root using the iteration p n +1 = g ( p n ). Find g ( x ). Simplify your answer. (c) Is the convergence linear? Is it at least quadratic? (d) Find the exact order of convergence. Solution: (a) x 2- 2 /x = 0 x 3- 2 = 0 x = 2 1 / 3 . (b) g ( x ) = x- f ( x ) f ( x ) = x- x 2- 2 /x 2 x +2 /x 2 = x- x x 3- 2 2 x 3 +2 = x ( x 3 + 4) 2( x 3 + 1) (c) The convergence is at least quadratic, for either of the following reasons: 2 1 / 3 is a simple root of f ( x ), as f (2 1 / 3 ) = 2 2 1 / 3 + 2 / 2 2 / 3 6 = 0. Alternatively, g (2 1 / 3 ) = 0 after the calculation g ( x ) = (4 x 3 +4)2( x 3 +1)- x ( x 3 +4)(6 x 2 ) 2 2 ( x 3 +1) 2 = 8( x 3 +1) 2- 6 x 3 ( x 3 +4) 2 2 ( x 3 +1) 2 . (d) (This was intended to be a harder problem.) By definition, the order of convergence is iff lim n p n +1- 2 1 / 3 p n- 2 1 / 3 = 6 = 0. If p n = x , this fractions numerator is g ( x )- 2 1 / 3 = x 4- 2 4 / 3 x 3 +4 x- 2 2( x...
View Full Document

This note was uploaded on 04/06/2010 for the course MATH various taught by Professor Tao/analysis during the Spring '10 term at UCLA.

Page1 / 4

128a_su09_final_sol - UCB MATH 128A-2, SUMMER 2009: FINAL...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online