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

From testwiki
Jump to navigation Jump to search

Problem 4

Suppose that f:RR is smooth and that the boundary value problem


u=f(u) on (0,1),u(0)=(1)=0


has unique solution.

Problem 4a

For N, let xi=1N,i=0,,N. Write down a system of N+1 equations to obtain an approximation ui for the solution u at xi by replacing the second derivatives by a symmetric difference quotient.

Solution 4a

The symmetric difference quotient is given by


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


Hence we have the following system equations that incorporates the initial conditions u(0)=u(1)=0.


1h2[11211211211]A[u0u1u2un]U=[0f(u1)f(u2)f(un1)0]f

Problem 4b

Write the system of equations in the form F(U)=0. Define domain and range of F and explain the meaning of the variable U.



Solution 4b

AUfF(U)=0


Domain: RN+1


Range: RN+1


U is a vector containing N+1 approximations ui for the solution u at xi


Problem 4c

Formulate Newton's method for the solution of the system in (b) with U(0)=0. Give explicit expressions for all objects involved (as far as this is reasonable). Determine a sufficient condition that ensures that the iterates U(k) in the Newton scheme are defined. Without doing any further calculations, can you decide whether the sequence U(k) converges. Why or why not?


Solution 4c

Newton's Method

Uk+1=UkJ(F(U(k))1F(U(k))


where J(A) denotes the Jacobian of a matrix A.


Specifically,


J(F(U(k))=J(AUF)=AJ(F)

Sufficient Condition

If J(F(U(k))1 exists, then U(k) iterates are defined.


Convergence of sequence

We cannot decide if the sequence converges since Newton's method only guarantees local convergence.


In general, for local convergence of Newton's method we need:


  • F differentriable


  • D(F(U*)) invertible


  • D(F) Lipschitz


  • U(0) close to solution U*

Problem 5

Consider the boundary value problem


u=f,0<x<1


with boundary conditions u(0)=0 and u(1)+αu(1)=0. Here α is a given positive number.


Problem 5a

Describe a Galerkin method to solve this problem using piecewise linear functions with respect to a uniform mesh.

Weak Formulation

Find uU={uH1:u(0)=0} such that for all vU


01uv=01fv


which after integrating by parts and plugging in initial conditions we have


01uv=01fvαu(1)v(1)


Let {xi}i=0N+1 be the nodes of a uniform partition of [0,1] where x0=0 and xi=ih.


Let {ϕi}i=0N+1 be the standard "hat" functions defined as follows:


For i=1,2,N


ϕi={xxi1h for x[xi1,xi]xi+1xh for x[xi,xi+1]0 otherwise 


ϕN+1={xxNh for x[xN,xN+1]0 otherwise 


Also ϕ0=0 since u(0)=0


Then {ϕi}i=0N+1 forms a basis for the discrete space Uh={uH1[0,1]:u(0)=0,u piecewise linear }

Problem 5b

Derive the matrix equations for this Galerkin method. Write out explicitly that equation of the linear system which involves α


Discrete Weak Formulation

Find uhUh such that for all vUh


01uhvh=01fvhαu(1)v(1)


Since {ϕi}i=0N+1 forms a basis, we have


uh=i=0N+1uhiϕi


Also for j=1,,N+1


i=0N+1uhi01ϕiϕj=01fϕj+αi=0N+1uhiϕi(1)ϕj(1)


In matrix form

[2h1h1h2h1h1h2h+α][uh1uh2uhN+1]=[01fϕ101fϕ201fϕN+1]

Problem 6

Consider the linear multistep method


yn+1=43yn13yn1+23hf(xn+1,yn+1)


for the solution of the initial value problem y(x)=f(x,y(x)),y(0)=y0

Problem 6a

Show that the truncation error is of order 2.


Problem 6b

State the condition for consistency of a linear multistep method and verify it for the scheme in this problem.

Solution 6b

yn+1=j=0pajynj+hj=1pbjf(tnj,ynj)=a0yn+a1yn1++apynp+h[b1f(tn+1,yn+1)+b0f(tn,yn)+b1f(tn1,yn1)++bpf(tnp,ynp)]


Conditions:


(i) j=0paj=1


43+13=1


(ii)j=1pbjj=0pjaj=1


23(043+113)=1

Problem 6c

Does the scheme satisfy the root condition and or the strong root condition?


The scheme satisfies the root condition but not the strong root condition since the roots are given by


λ=43±169432


which implies λ1=1 and λ2=13

Template:BookCat