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

From testwiki
Jump to navigation Jump to search


Problem 4

Consider the problem of solving a nonlinear system of ODE


y=f(t,y)


by an implicit method. The n-th step consists of solving for the unknown y a non-linear algebraic system of the form


y=αhf(tn,y)+gn1(1)


where gn1n is known, α>0 and h is the stepsize. Let fC1

Problem 4a

Write (1) as a fixed point iteration and find conditions in h and f(tn,y) that local convergence for this iteration

ononon

Solution 4a

Fixed point iteration

Equation (1) is conveniently in fixed point iteration form.


ynj+1=αhf(tn,ynj)+gn1ϕ(ynj)


Notice that the right hand side is only a function of ynj since α,h,tn,gn1 are fixed when solving for the fixed point yn* where ϕ(yn*)=yn*


Also note that j is the fixed point iteration index.

Conditions for local convergence

The fixed point iteration will converge when the norm of the Jacobian of ϕ is less than 1 i.e.


D(ϕ)<1


Since D(ϕ)=αhD(f), we equivalently have the condition


D(f)<1αh

Problem 4b

Write the Newton iteration for (1) and give conditions on h and f(tn,y) that guarantee local convergence for this iteration. State precise additional assumptions on f that guarantee quadratic convergence

Solution 4b

Newton iteration

The Newton iteration solves ψ(y)=0 and the iteration is given by


yi+1=yiD(ψ(yi))1ψ(yi)


Let ψ(y)=yϕ(y)

Conditions for local convergence

If D(ψ(y))1 exists, i.e. D(ψ(y)) is invertible or equivalently non-singular, then local convergence is guaranteed.


Note that


D(ψ(y))=ID(ϕ(y))

Conditions for quadratic convergence

If D(ψ(y)) is Lipschitz, then we have quadratic convergence and ψ(y) is twice continuously differentiable in a neighborhood of the root

Problem 5


This problem is about choosing between a specific single-step and a specific multi-step methods for solving ODE:


y=f(t,y)

Problem 5a

Write the trapezoid method, define its local truncation error and estimate it.

Solution 5a

Trapezoid method (Implicit, Adams-Moulton)

yn+1=yn+12h(f(tn+1,yn+1)+f(tn,yn))

Define Local Truncation Error

The local truncation error is given as follows:

error=(y(tn+1)y(tn))12h(f(tn+1,y(tn+1))+f(tn,yn))

Find Local Truncation Error Using Taylor Expansion

Note that yiy(ti). The uniform step size is h. Hence,


ti+1=ti+h


Therefore, the given equation may be written as


y(ti+h)y(ti)12h(y(ti+h)+y(tn))

Expand Left Hand Side

Expanding about tn, we get


Ordery(tn+h)y(tn)Σ0y(tn)y(tn)01y(tn)h0y(tn)h212!y(tn)h2012y(tn)h2313!y(tn)h3016y(tn)h34𝒪(h4)0𝒪(h4)

Expand Right Hand side

Also expanding about tn gives

Order h12hy(tn+h)12hy(tn)Σ0000112hy(tn)12hy(tn)y(tn)h212hy(tn)h012y(tn)h2312hy2(tn)h20y4(tn)h34𝒪(h4)𝒪(h4)𝒪(h4)

Calculate local truncation error

Since the order 3 terms of h do not agree (y(tn)6h3y(tn)4h3), the error is of order h2.

Problem 5b

Show that the truncation error for the following multistep method is of the same order as in (a):

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

Solution 5b

We need to show that y(tn+1)2y(tn)+y(tn1)+hy(tn1)hy(tn)=𝒪(h3)


Again, note that tn+1=tn+htn1=tnh


Order of hy(tn+h)2y(tn)y(tnh)hy(tnh)hy(tn)Σ0y(tn)2y(tn)y(tn)0001y(tn)h0y(tn)hy(tn)hy(tn)0212y(tn)h2012y(tn)h2y(tn)h200316y(tn)h3016y(tn)h312y(tn)h3012y(tn)h3

So this method is also consistency order 2.

Problem 5c

What could be said about the global convergence rate for these two methods? Justify your conclusions for both methods.

Solution 5c

The trapezoid is stable because its satisfies the root condition. (The root of the characteristic equation is 1 and has a simple root)


The second method is not stable because the characteristic equation has a double root of 1.


Both the trapezoid method and second method are consistent with order h2


Note that convergence occurs if and only the method is both stable and consistent.


Therefore, the trapezoid method converges in general but the second method does not. mkmkmkmlmklml

Problem 6

Consider the boundary value problem

L(u)=u+bu=f,xI[0,1],u(0)=u(1)=0(2)

where b0 is constant. Let {0=x0<x1<<xn=1} be a uniform meshsize h.

Let

Vh={vC[0,1]:v|[xi1,xi] is linear for each i, v(0)=v(1)=0}

be the corresponding finite element space, and let uh=Rh(u) be the corresponding finite element solution of (2). Note that Rh is a projection operator, the Ritz projector, onto the finite dimensional space Vh with respect to the element scalar product a(,) induced by problem (2).


Problem 6a

Let ||1 be the H1-seminorm, namely |v|12=I|v|2 for all vH01(I). Find the constant Λ in terms of the parameter b such that


|uh|1Λ|u|1


Hint: recall the Poincare inequality v012|v|1 for all vH01(I) where 0 denotes the L2-norm

Solution 6a

Weak Form

Integrating by parts gives, for all vV


uv+buv=fv


Specifically,


uuh+buuh=fuh

Discretized Form (Finite Element Formulation)

Similarly, the finite element formulation is find uhVh such that for all vhVh


uhvh+buhvh=fvh


Specifically,


uhuh+buhuh=fuh

Equate Both Sides and Apply Inequalities

01uhuh+b01uhuh=01uuh+b01uuh|u|1|uh|1+bu0uh0 Cauchy-Schwartz|u|1|uh|1+b12|u|112|uh|1 Poincare=|uh|1(1+b4)|u|1


Hence we have,


|uh|12|uh|12+buh02|uh|1(1+b4)|u|1|uh|12|uh|1(1+b4)|u|1|uh|1(1+b4)|u|1

Problem 6b


If IhuVh is the Lagrange interpolant of u, then prove Rh(Ihu)=Ihu. Deduce


|uhIhu|1Λ|uIhu|1


Solution 6b

Prove equality

We have for all vH01(0,1)


a(u,v)=uvdx+buvdx=fv


Specifically, for all vhVh


a(u,vh)=uvhdx+buvhdx=fvh(1)


The discrete form of the energy scalar product is for all uh,vhVh


a(uh,vh)=uhvhdx+buhvhdx=fvh(2)


Subtracting equation (2) from equation (1), we have


a(uuh,vh)=0


Let Rh(Ihu)=uhVh. Note that by hypothesis IhuVh. Then,


a(Ihuuh,Ihuuh)=0


By ellipticity,


0=a(Ihuuh,Ihuuh)αIhuuh2


which implies


Ihuuh=0


i.e.


Ihu=uh

Deduce inequality

Hence we have


Rh(uIhu)=uhIhu


Arguing as we did in part (a), we have


|uhIhu|1Λ|uIhu|1

Problem 6c

Use (b) to derive the error estimate


|uuh|1(1+Λ)|uIhu|1


and bound the right hand side by suitable power of h. Make explicit the required regularity of u

Solution 6c

Show inequality

|uuh|1=|uIhu+Ihuuh|1|uIhu|1+|Ihuuh|1|uIhu|1+Λ|uIhu|1=(1+Λ)|uIhu|1

Bound Right Hand Side

For x[xi1,xi], Newton's polynomial interpolation error gives for some ξi[xi1,xi]

|uIhu|12=|u(2)(ξi)2(xxi)(xxi1)|12dx=01([u(2)(ξi)2(xxi)(xxi1)])2=(u(2)(ξi)2)201[(xxi1)h(xxi)h]dx(u(2)(ξi)h)2


Therefore the error on the entire interval is given by


|uIhu|12i=1n(u(2)(ξi)h)2max0<ξ<1(u(2)(ξ)h)2n


which implies


|uIhu|1max0<ξ<1u(2)(ξi)nh


u needs to be twice differentiable. Template:BookCat