Docsity

5 Problems on Numerical Analysis - Midterm Examination 1 | MATH 128A, Exams of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
MATH 128A
Midterm #1
Closed book, no calculators, no cheating...
Each problem is worth 20 points.
Problem 1
a) Find the Taylor polynomial of order 3 for the function f(x) = sin xaround
x0=π.
b) Use the Taylor polynomial of order 4 for sin xaround x0= 0 to estimate
Z1
0
sin x−x
x3dx.
c) Show that the error in the above estimate has magnitude less than 1
5! .
Problem 2 Suppose that the real numbers are represented with a 4-bit
mantissa fand a 3-bit characteristic cshifted by 4, i.e. 2c−4(1 + f).
a) How many positive real numbers are contained in such a representation?
b) What is the largest number that can be represented with this system?
Problem 3 Suppose that you want to use Newton’s method to find the
zero of the function f(x) = (x−3)1
3.Does Newton’s method converge? If
you answer ”no” explain why. If you answer ”yes”, what is the order of
convergence?
Hint: Express xn+1 −3 as a function of xn
−3.
Problem 4 Let g(x) = 3x4+ 4x3.
a) Show that p= 0 and ˆp=−1 are fixed points for the function g(x).
b) Assume that you use fixed-point iteration with some initial approximation
p0which is sufficiently close to p= 0 so that the sequence of approxima-
tions p0, p1, p2, . . . converges to 0.What is the order of convergence of the
sequence?
c) Similarly for ˆp=−1.
Problem 5
a) Use Horner’s method to evaluate the polynomial p(x) = x3+x2
−x−1
at x0= 2.
b) Use part a) to find q(x) and csuch that p(x) = (x−2)q(x) + c.

Partial preview of the text

Download 5 Problems on Numerical Analysis - Midterm Examination 1 | MATH 128A and more Exams Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

MATH 128A

Midterm #

Closed book, no calculators, no cheating...

Each problem is worth 20 points.

Problem 1 a) Find the Taylor polynomial of order 3 for the function f (x) = sin x around x 0 = π. b) Use the Taylor polynomial of order 4 for sin x around x 0 = 0 to estimate ∫ (^1)

0

sin x − x x^3

dx.

c) Show that the error in the above estimate has magnitude less than (^) 5!^1.

Problem 2 Suppose that the real numbers are represented with a 4-bit mantissa f and a 3-bit characteristic c shifted by 4, i.e. 2c−^4 (1 + f ). a) How many positive real numbers are contained in such a representation? b) What is the largest number that can be represented with this system?

Problem 3 Suppose that you want to use Newton’s method to find the zero of the function f (x) = (x − 3)

1 (^3). Does Newton’s method converge? If you answer ”no” explain why. If you answer ”yes”, what is the order of convergence? Hint: Express xn+1 − 3 as a function of xn − 3.

Problem 4 Let g(x) = 3x^4 + 4x^3. a) Show that p = 0 and ˆp = −1 are fixed points for the function g(x). b) Assume that you use fixed-point iteration with some initial approximation p 0 which is sufficiently close to p = 0 so that the sequence of approxima- tions p 0 , p 1 , p 2 ,... converges to 0. What is the order of convergence of the sequence? c) Similarly for ˆp = − 1.

Problem 5 a) Use Horner’s method to evaluate the polynomial p(x) = x^3 + x^2 − x − 1 at x 0 = 2. b) Use part a) to find q(x) and c such that p(x) = (x − 2)q(x) + c.