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

From testwiki
Jump to navigation Jump to search

Problem 4a

Describe Newton's method for finding a root of a smooth function f:RR


Solution 4a

Newton's method:

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

Problem 4b

Assume that f:RR is a smooth function, satisfies


f(x)>0,f(x)>0, for all xR


and has a root x*. Draw a geometric picture illustrating the convergence of the method and give an analytic proof that Newton's method converges to x* for any initial guess x0R

Solution 4b

From the picture, notice that if xk<x*, then after one step xk+1 will be greater than x*. This is because from hypothesis, the function is always increasing and concave up.


Then without loss of generality assume xk>x*.


Subtracting x* from both sides of Newton's method gives an expression for the relationship between consecutive errors.


xk+1x*ek+1=xkx*ekf(xk)f(xk)(*)


Expanding f(xk) around f(x*) using Taylor expansion gives


f(xk)=f(x*)0+f(ξ)(xkx*)ek


where ξ[x*,xk]


Substituting this expression into (*), we have


ek+1=(1f(ξ)f(xk)M)ek


Since f(x)>0 and is always increasing (from hypothesis), M is a positive number less than 1. Therefore the error decreases as k increases which implies the method always converges.

Problem 5

The goal of this problem is to solve the boundary value problem


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


in a suitable finite element space.

Problem 5a

For N, let xi=i/N,i=0,,N. Define a suitable N1 dimensional subspace VN in H01 associated with the points xi. Let ϕ1,,ϕN1 be any basis in VN. Explain how you can determine the coefficients ui in the representation element solution


uN=i=1N1uiϕi


by solving a linear system. Prove that there exists a unique solution

Solution 5a

Define Suitable Subspace

VN={vH01[0,1]:v piecewise linear}


which has a basis the hat functions {ϕi}i=1N1 defined as follows:


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

How to Determine Coefficients

The discrete weak variational form is given as such:


Find uNVN such that for all vVN


01uNvNa(uN,vN)=01fvNF(vN)


Since we have a basis {ϕi}i=1N1, we have a system of equations (that can be expressed in matrix form):


For j=1,2,,N1


i=1N1ui01ϕiϕj=01fϕj

Existence of Unique Solution

The existence of a unique solution follows from Lax-Milgram.


Note the following:


  • bilinear form continuous (bounded) e.g. a(uN,vN)uN1vN1


a(u,v)=uv|u|1|v|1 Cauchy Schwartz in L2 u1v1 dominance of spaces 


  • bilinear form coercive e.g. a(uN,uN)CuN12


a(v,v)=v'2=|v|12Cv12 Poincare inequality


Poincare Inequality: v0v1C|v|1


  • F(vN)CvN1


fvf0v0f1v1

Problem 5b

Show that


a(u,v)=01uvdx


defines an inner product on H01 and thus a notion of orthogonality in H01

Solution 5b

  • a(u,v)=a(v,u)


  • a(αu,v)=αuv=αuv=αa(u,v)


  • a(u+w,v)=(u+w)v=uv+wv=a(u,v)+a(w,v)


  • a(u,u)=u'20 if u0

Problem 5c

Let ϕ1=12|x12| be the basis of the one-dimensional space V2. Find an orthogonal basis in V4 that contains the basis function ϕ1. Sketch the basis functions. Indicate how you would construct a basis of V2n that contains the basis of V2n1

Solution 5c

ϕ1={2x for x[0,12]22x for x[12,1]


ϕ2={8x for x[0,14]8(x12) for x[14,12]0 otherwise 


ϕ3={8(x12) for x[12,34]8(x1) for x[14,1]0 otherwise 

Define a new hat function on each new pair of adjoining subintervals. The hat functions should have all have the same height as the previous basis's hat functions.

Problem 5d

What is the structure of the linear system in (a) for this special basis?


Solution 5d

For our system in (a), this system yields a diagonal matrix.

Problem 6

For solving the equation y=f(x,y), consider the scheme


yn+1=yn+h2(yn+y'n+1)+h212(y'ny'n+1)


where yn=f(xn,yn) and yn=fx(xn,yn)+f(xn,yn)fy(xn,yn)


Problem 6a

Show that this scheme is fourth-order accurate.

Solution 6a

Ordery(t+h)y(t)h2y(t)h2y(t+h)h212y(t)h212y(t+h)Σ0y(t)y(t)000001y(t)h0h2y(t)h2y(t)0002y(t)h2200h2y(t)hh212y(t)h212y(t)03y(t)h3600h2y(t)2h20h212y(t)h04y(t)h42400h2y(t)h360h212y(t)h2205O(h5)00O(h5)0O(h5)O(h5)

Problem 6b

For stability analysis, one takes f(x,y)=λy. State what it means for λ=hλ to belong to the region of absolute stability for this scheme, and show that the region of absolute stability contains the entire negative real axis.

Solution 6b

yn=ddxλy+λyddyλy=λ2y


yn+1=yn+h2λyn+h2λyn+1+h212[λ2ynλ2yn+1]


Letting z=hλ and rearranging terms gives


yn+1=(1+z2+z2121z2+z212)Myn


If z is a negative real number, then M<1 Template:BookCat