Docsity

Math 105A Summer Session I 2003-04 Practice Midterm Exam Solutions, Exams of Mathematical Methods for Numerical Analysis and Optimization

Partial preview of the text

Download Math 105A Summer Session I 2003-04 Practice Midterm Exam Solutions and more Exams Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

Jim Lambers Math 105A Summer Session I 2003- Practice Midterm Exam

  1. Let f (x) = sin 2x + cos 2x.

(a) Write down the 2nd Taylor polynomial P 2 (x) of f (x) centered around x 0 = 0. (b) Write down the corresponding Taylor remainder R 2 (x). (c) Suppose P 2 (x) is used to approximate f (x) on the interval [−π, π]. How large in mag- nitude can the absolute error in this approximation be?

  1. Consider the expression (^) √ 6 + h −

h

which is to be evaluated for some small positive constant h.

(a) Compute the value of this expression with h = 0.0001 using five decimal digits of preci- sion and chopping. Given that the exact value, to eight decimal places, is 0.20412329, explain why your computed value is so inaccurate. (b) Rewrite the expression and repeat the computation, again with five-digit chopping arith- metic.

  1. Given f (x) = 9x^2 − 1 ,

use the bisection method to compute a solution of f (x) = 0 that is accurate to within 1/16, given that a solution lies within the interval [0, 1 /2].

  1. Given g(x) = ex/^4

(a) Show that g(x) has a unique fixed point in the interval [1, 2]. (b) Perform three iterations of Fixed-point Iteration with x 0 = 1.5 to find an approximation to the fixed point.

  1. Suppose that fixed-point iteration is applied to the function

g(x) = x^2 − 2 x + 2.

Given that the fixed point occurs at x = 1, state the rate of convergence and the asymptotic error constant.

  1. Suppose that fixed-point iteration is applied to the function

g(x) =

x + 2,

and that the first several iterates are

x 0 = 1, x 1 = 1. 7321 , x 2 = 1. 9319 , x 3 = 1. 9829 , x 4 = 1. 9957.

Use Aitken’s ∆^2 method to compute the first three iterates of a sequence {ˆxk}∞ k=0 that con- verges more rapidly to the fixed point of g.