Numerical Methods Qualification Exam Problems and Solutions (University of Maryland)/Jan07 667

From testwiki
Jump to navigation Jump to search

Problem 4

Let 𝐟:ℝnℝn, suppose 𝐟(x*)=0 and assume 𝐟(x*) is nonsingular . Consider the following iteration

xk+1=xkBk1𝐟(xk),(k0)

Problem 4a

Derive the following error equation for ek+1=xk+1x*

ek+1=Bk1((Bk𝐟(x*))ek01(𝐟(sxk+(1s)x*)𝐟(x*))ekds)

Solution 4a

Note the following identity

F(x)F(y)=01F(sx+(1s)y)(xy)ds(*)


The error ek+1 is given by

ek+1=xk+1x*=xkx*ekBk1f(xk)=ekBk1(f(xk)f(x*)0)=Bk1{(Bkf(x*))ek01[f(sxk+(1s)x*)f(x*)]ekds}

Problem 4b

Let Bk=Bℝn×n be a fixed matrix. Find conditions on B that guarentee local convergence. What rate of convergence do you expect and why?

Solution 4b

Assume B is invertible, Bf(x*) is bounded, and f is Lipschitz.

ek+1B1{Bf(x*)ek01f(sxk+(1s)x*)f(x*)Lsxk+(1s)x*x*ekds}B1{Bf(x*)ek01Lek2sds}B1{Bf(x*)L2ek}ek


This implies local superlinear convergence.

Problem 4c

Find sufficient conditions on Bk𝐟(xk) for the convergence to be superlinear. What choice of Bk corresponds to the Newton method and what rate of convergence do you expect?

Solution 4c

Super linear convergence

ek+1ek0 as k

Find condition for super linear convergence

From part(b)


ek+1ekBk1{Bkf(x*)L2ek}


Since ek0 as k, if


Bkf(x*)0


as k0, we have super linear convergence i.e.


Bk=f(xk) Newton Iteration form

Problem 5

Let f(t,y) be uniformly Lipschitz with respect to y. Let y(t) be the solution to the initial value problem : y=f(t,y),y(0)=y0. Consider the trapezoid method

(1)yi+1=yi+h2(f(ti,yi)+f(ti+1,yi+1)),(i0).

Problem 5a

Find a condition on the stepsize h that ensures (1) can be solved uniquely for yi+1.

Solution 5a

The implicit method can be viewed as a fix point iteration:


yi+1=yi+h2(f(ti,yi)+f(ti+1,yi+1))g(yi+1)


We want |g(yi+1)yi+1|<1


which implies


h<2|f(ti+1,yi+1)yi+1|

Problem 5b

Define a local truncation error and estimate it. Examine the additional regularity of f needed for this estimate.

Solution 5b

Re-writing (1) and replacing yk with y(tk) and f(tk,yk) with y(tk) we have a formula for consistency of order p:


y(ti+1)y(ti)h2y(ti)h2y(ti+1)=π’ͺ(hp+1)


For uniform stepsize h

ti+1=ti+h

Expanding in Taylor Series about ti gives

Problem 5c

Prove a global error estimate for (1)

Solution 5c

Problem 6

Consider the 2-point boundary value problem

(2)au+bu=f(x),0<x<1,u(0)=u0,u(1)=u1,

with a,b>0 constants and fC[0,1]. Let 𝒫={xi}i=0n+1 be a uniform partition of [0,1] with meshsize h.

Problem 6a

Use centered finite differences to discretize (2). Write the system as

A𝐔=𝐅

and identify Aℝn×n and π”,𝐅ℝn. Prove that A is nonsingular.

Solution 6a

Using Taylor Expansions, we can approximate the second derivative as follows


u(x)=u(x+h)2u(x)+u(xh)h2


We can eliminate two equations from the n+2 equations by substituting the initial conditions u(0)=u0,u(1)=u1 into the equations for U1 and Un respectively.


We then have the system


[2ah2+bah2ah22ah2+bah2ah22ah2+bah2ah22ah2+b]A[U1U2U3Un]U=[f(x1)+ah2u0f(x2)f(x3)f(xn)+ah2u1]F


A is nonsingular since it is diagonally dominant.

Problem 6b

Define truncation error and derive a bound for this method in terms of h. State without proof an error estimate of the form

max1in|u(xi)Ui|Chs

and specify the order s.

Solution 6b

Local Truncation Error

LTE=u(xi+h)+u(xih)2u(xi)h2u(xi)=u(4)(ξ)12h2

Bound for Local Truncation Error

112u(4)h2

Derive Bound for Max Error

Let L=axx+b, Lh=A, and Rh is the local truncation error.


Then


Lu=fLhu=f+RhLhU=f


Subtracting the two last equations gives


Lh(uU)=Rh


Hence,


uULh1Rh

uUCh2, that is the error has order 2.

Problem 6c

Prove the following discrete monotonicity property: If 𝐔i is the solution corresponding to a forcing fi, for i=1,2, and f1f2 then 𝐔1𝐔2 componentwise.

Solution 6c

Note that A is a M matrix and hence the discrete maximum principle applies. (See January 05 667 test for definition of M matrix)


Discrete Maximum Principle

AU=F


If F0, then U0.


Specifically let F=f1f2, then U1U20 which implies U1U2


Template:BookCat