Docsity

Final Exam - Numerical Analysis - Fall 2004 | MATH 128A, Exams of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
Final Exam, Math 128A, Fall 2004
1. (a) Find the matrix Pwhich implements orthogonal projection onto the
plane Econsisting of all 3-vectors perpendicular to v= (4,2,1)T.
(b) Find x∈R2minimizing kAx −bk2where
A=
0−1
−1 2
2 0
, b =
1
0
0
.
(c) Compute the 2-norm condition number for the problem of multiplying
I−Pinto an arbitrary vector c∈R3, in terms of the angle θbetween cand
E. Explain from general principles why the condition number must become
infinite as θ→0.
2. (a) Find all solutions x= (x1, x2)Tof the 2 ×2 nonlinear system
f(x1, x2) = x1x2−1,1
2(x2
1−x2
2)T
= (0,0)T.
(b) Determine whether the fixed point iteration x(k+1) =ϕ(x(k)) with
ϕ(x) = 1
2(x2, x1)T+1
x2
1+x2
2
(x1, x2)T
is the same as Newton’s method for solving f= 0.
(c) Start from x(0) = (0,1)Tand compute two iterates x(1) and x(2).
(d) Compute the errors in x(1) and x(2). Define, estimate and explain the
rate of convergence.
3. Let P(x) be the quadratic polynomial that interpolates f(x) = 1/(1 + x2)
at x= 0, 1 and −1.
(a) Use the Aitken-Neville technique to evaluate Pat x= 2.
(b) Bound the relative error e(x) = |f(x)−P(x)|/|f(x)|on the interval
1≤x≤1 + hfor any h≥0. Why does your bound increase as hincreases?
(c) State the general formula which gives the error at a point tin the degree-
npolynomial Pwhich interpolates a smooth function fat n+ 1 p oints tjin
[a, b]. Separate the error into a product of three factors and explain why two
of them are inevitable.
4. Suppose that a numerical integration rule with nodes xj∈[0,1], weights
wj, and error
Ep(f) = Z1
0
f(x)dx −
p
X
j=1
wjf(xj)
is exact for polynomials of degree d:Ep(f) = 0 whenever fis a polynomial
of degree d.
(a) Assume fcan be approximated by a degree-dpolynomial within error
on the whole interval [0,1]. Prove that |Ep(f)| ≤ Λwhere Λ = 1+Pp
j=1 |wj|.
What is the best possible value of Λ and when does it occur?
1
pf2

Partial preview of the text

Download Final Exam - Numerical Analysis - Fall 2004 | MATH 128A and more Exams Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

Final Exam, Math 128A, Fall 2004

  1. (a) Find the matrix P which implements orthogonal projection onto the plane E consisting of all 3-vectors perpendicular to v = (4, 2 , 1)T^. (b) Find x ∈ R^2 minimizing ‖Ax − b‖ 2 where

A =

 (^) , b =

(c) Compute the 2-norm condition number for the problem of multiplying I − P into an arbitrary vector c ∈ R^3 , in terms of the angle θ between c and E. Explain from general principles why the condition number must become infinite as θ → 0.

  1. (a) Find all solutions x = (x 1 , x 2 )T^ of the 2 × 2 nonlinear system

f (x 1 , x 2 ) =

x 1 x 2 − 1 ,

(x^21 − x^22 )

)T

= (0, 0)T^.

(b) Determine whether the fixed point iteration x(k+1)^ = ϕ(x(k)) with

ϕ(x) =

(x 2 , x 1 )T^ +

x^21 + x^22

(x 1 , x 2 )T

is the same as Newton’s method for solving f = 0. (c) Start from x(0)^ = (0, 1)T^ and compute two iterates x(1)^ and x(2). (d) Compute the errors in x(1)^ and x(2). Define, estimate and explain the rate of convergence.

  1. Let P (x) be the quadratic polynomial that interpolates f (x) = 1/(1 + x^2 ) at x = 0, 1 and −1. (a) Use the Aitken-Neville technique to evaluate P at x = 2. (b) Bound the relative error e(x) = |f (x) − P (x)|/|f (x)| on the interval 1 ≤ x ≤ 1 + h for any h ≥ 0. Why does your bound increase as h increases? (c) State the general formula which gives the error at a point t in the degree- n polynomial P which interpolates a smooth function f at n + 1 points tj in [a, b]. Separate the error into a product of three factors and explain why two of them are inevitable.
  2. Suppose that a numerical integration rule with nodes xj ∈ [0, 1], weights wj , and error

Ep(f ) =

0

f (x)dx −

∑^ p

j=

wj f (xj )

is exact for polynomials of degree d: Ep(f ) = 0 whenever f is a polynomial of degree d. (a) Assume f can be approximated by a degree-d polynomial within error  on the whole interval [0, 1]. Prove that |Ep(f )| ≤ Λ where Λ = 1+

∑p j=1 |wj^ |. What is the best possible value of Λ and when does it occur?

(b) Prove that the best possible error  which we can hope to achieve in (a) is less than some constant times the maximum absolute value of the pth derivative f (p)^ over the interval [0, 1]. (c) If the nodes xj are equidistant on [0, 1], with x 1 = 0 and xp = 1, what is the biggest possible value of d? What are the resulting rules called? (d) If you get to choose the nodes xj anywhere in [0, 1], how big can you make d? What are the resulting rules called?

  1. Suppose that a numerical integration rule with nodes xj ∈ [0, 1] and weights wj has an error of the form

∫ (^1)

0

f (x)dx −

∑^ p

j=

wj f (xj ) = Cf (q)(ξ)

for some unknown ξ. (a) Prove that the nodes tj = hxj in the interval [0, h] and the weights uj = hwj satisfy the error estimate ∫ (^) h

0

g(t)dt −

∑^ p

j=

uj g(tj ) = Chq+1g(q)(ξ)

for some unknown ξ. (b) For arbitrary a and b and N = np, write down formulas for nodes sj ∈ [a, b] and weights vj such that

∫ (^) b

a

g(s)ds −

∑^ N

j=

vj g(sj ) ≤ C|b − a|hq^ max a≤s≤b |g(q)(s)|

where h = (b − a)/n. (c) Find the weights vj and nodes sj on an arbitrary interval [a, b] for the special case with p = 2 equidistant nodes x 1 = 0, x 2 = 1 and q = 2.

  1. (a) Find a numerical integration rule of the form ∫ (^1)

0

f (x)dx = af (0) + bf (−1)

which is exact for polynomials of the highest possible degree. (b) Use the result of (a) to design a scheme

un+1 = un + αf (tn, un) + βf (tn− 1 , un− 1 )

for solving the initial value problem

y′^ = f (t, y), y(0) = y 0.

(c) Define the local truncation error τ. Evaluate the local truncation error of your scheme from (b) by Taylor expansion. Express your answer in the form τ = O(hm) for the best possible m. (d) Does the result of (c) guarantee that your scheme will give accurate answers as the time step h → 0?