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

From testwiki
Jump to navigation Jump to search

Problem 5a

State Newton's method for the approximate solution of


f(x)=0


where f(x) is a real-valued function of the real variable x

Solution 5a

xk+1=xkf(xk)f(xk)

Problem 5b

State and prove a convergence result for the method.

Solution 5b

xk+1=xkf(xk)1f(xk)xk+1x*ek+1=xkx*ekf(xk)1f(xk)=f(xk)1[f(xk)ek(f(xk)f(x*)0))=f(xk)1[f(xk)ekek01f(sxk+(1s)x*)ds]=f(xk)1[f(xk)ekf(x*)ekek01(f(sxk+(1s)x*)f(x*))ds]ek+1f(xk)1[Lek2+L2ek2] where L is Lipschitz constant of f=f(xk)132Lek2

Problem 5c

What is the typical order of convergence? Are there situations in which the order of convergence is higher? Explain your answers to these questions.

Solution 5c

The typical order of local convergence is quadratic.


Consider the Newton's method as a fixed point iteration i.e.:


xk+1=xkf(xk)f(xk)g(xk)


Then


g(xk)=1f(xk)2f(xk)f(xk)f(xk)2


g(x*)=0


Expanding g(xk) around x* gives an expression for the error


g(xk)xk+1=g(x*)x*+g(x*)0ek+g(x*)2ek2+g(ξ)6ek3


Note that if g(x*)=0, then we have better than quadratic convergence.

Problem 6


Consider the boundary value problem

{u(x)+u(x)=f(x),0x1u(0)=2,u(1)=0(1)


Problem 6a

Derive a variational formulation for (1).

Solution 6a

Find uH such that for all vH={vH1[0,1]:v(1)=0}


01uvdx+01uva(u,v)=01fv2v(0)f(v)

Problem 6b

What do we mean by Finite Element Approximation uh to u

Solution 6b

Let P={xi}i=0N be a partition of [0,1]. Choose a an appropriate discrete subspace Vh and basis functions {ϕi}i=0N. Then


uh=i=0Nuhiϕi


The coefficients uhi can be found by solving the following system of equations:


For j=0,1,,N


i=0Nuhi01ϕiϕjdx+i=0Nuhi01ϕiϕjdx=01fϕj2ϕj(0)

Problem 6c

State and prove an estimate for


uuh1(01|u(x)uh(x)|2dx+01|u(x)uh(x)|2dx)12


Solution 6c

Cea's Lemma:


uuh1infvVhCuv1


In particular choose vI to be the linear interpolant of u.


Then,


uuhCuh


Alternative Solution 6c

Let {xk}0n be a discrete mesh of [0,1] with step size h. Consider the following integral

xkxk+1|u(x)uh(x)|2dx.

For some ξk[xk,xk+1], u(x)uh(x)=u(ξk)*h as uh is just a linear interpolation on this interval. Hence

xkxk+1|u(x)uh(x)|2dx=xkxk+1h2u(ξk)2dx=h3u(ξk)2h3||u||.

Similarly, we can bound the L2(xk,xk+h) norm of the error in the derivatives with h3||u||. With n=1/h such intervals we have

 ||uuh|22nh3max(||u||2,||u||2)=2h2max(||u||2,||u||2).

Problem 6d

Prove the formula


uuh12=u12uh12

Solution 6d

a(uuh,uuh)uuh12+2a(uuh,uh)0=a(u,u)2a(u,uh)+a(uh,uh)+2a(u,uh)2a(uh,uh)=a(u,u)a(uh,uh)=u12uh12

Problem 7

Consider the initial value problem


y=f(t,y),y(t0)=y0


where f satisfies the Lipschitz condition


|f(t,y)f(t,z)|L|yz|


for all t,y,z. A numerical method called the midpoint rule for solving this problem is defined by


yn+1=yn1+2hf(tn,yn)


where h is a time step and yny(tn) for tn=t0+nh. Here y0 is given and y1 is presumed to be computed by some other method.

Problem 7a

Suppose the problem is posed on a finite interval t0tb where h=(bt0)M. Show directly,i.e., without citing any major results, that the midpoint rule is stable. That is show that if y0^ and y1^ satisfy


|y0y0^|ϵ,|y1y1^|ϵ


then there exists a constant C independent of h such that


|ynyn^|Cϵ


for 0nM

Solution 7a

yn+1=yn1+2hf(tn,yn)y^n+1=y^n1+2hf(tn,y^n)


Subtracting both equations, letting enyny^n, and applying the Lipschitz property yields,


en+1en1+2hLen(1+2hL)max{en,en1}


Therefore,


en(1+2hL)n1ϵ(1+2hL)nϵe2Lhnϵe2L(tnt0)ϵ

Problem 7b

Suppose instead we are interested in the long term behavior of the midpoint rule applied to a particular example f(t,y)=λy. That is, let h be fixed and let n so that the rule is applied over a long time interval. Show that in this case the midpoint rule does not produce an accurate approximation to the solution to the initial value problem.

Solution 7b

Substituting into the midpoint rule we have,


yn+1=yn1+2hλyn


or


yn+12hλynyn1=0


The solution of this equation is given by


yn=C1z1n+C2z2n


where z1,z2 or the roots of the quadratic


z22hλz1


The quadratic formula yields


z=hλ(1±1+44h2λ2)


If λ is a small negative number, than one of the roots will be greater than 1. Hence, yn as n instead of converging to zero since y(t)=eλt.

Template:BookCat