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

From testwiki
Jump to navigation Jump to search

Problem 4a

Given a smooth function f(x), state the secant method for the approximate solution of nonlinear equation in


f(x)=0

Solution 4a

xk+1=xkxkxk1f(xk)f(xk1)f(xk)

Problem 4b

State the order of convergence for this method, and explain how to derive it.

Solution 4b

If f(x) is bounded and x0 is close to x*, then the secant method has convergence order ϕ=1+521.6180339887 (the Golden ratio).

A partial proof of this can be found here

Problem 4c

Are there situations in which the order of convergence is higher? Explain your answers.

Solution 4c

Problem 5

Consider the initial value problem


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


Problem 5a

Write the ODE in integral form and explain how to use the trapezoidal quadrature rule to derive the trapezoidal method with uniform time step h=TN:


yn+1=yn+h2(f(tn+1,yn+1)+f(tn,yn))

Solution 5a

y(tn+1)y(tn)=tntn+1y=tntn+1f(t,y)h2(f(tn+1,yn+1)+f(tn,yn))

Problem 5b

Define the concept of absolute stability. That is, consider applying the method to the case f(t,y)=λy with real λ. Show that the region of absolute stability contains the entire negative real axis of the complex hλ plane.

Solution 5b

Letting f(t,y)=λy, we have


yn+1=yn+h2λyn+1+h2λyn


If we let hλ=z, and rearrange the equation we have


yn+1=(1+z21z2)Myn


We require M<1. This is true if λ is a negative real number.

Problem 5c

Suppose that f(t,y)=Ay where ARn×n is a symmetric matrix and yRn. Examine the properties of A which guarantee that the method is absolutely stable (Hint: study the eigenvalues of A).

Solution 5

We now want instead

1+h2A1h2A<1


i.e.


1+h2A<1h2A


or (since A is symmetric)


ρ(I+h2QΛQT)<ρ(Ih2QΛQT)


or (since multiplying by orthogonal matrices does not affect the norm)


ρ(I+h2Λ)<ρ(Ih2Λ)


or (by definition)


maxi{1+h2λi}<maxi{1h2λi}


If A is negative definite (all its eigenvalues are negative), the above inequality holds.

Problem 6

Consider the following two-point boundary value problem in (0,1):


(1)uxx+u=1,u(0)=u(1)=0

Problem 6a

Give a variation formulation of (1), i.e, express it it as

(2)uH:a(u,v)=F(v), for all vH


Define the function space H, the bilinear form a, and the linear functional F and state the relation between (1) and (2). Show that the solution u is unique.

Solution 6a

Variational Form

Derive the variational form by multiplying by test function vH and integrating from 0 to 1. Use integration by parts and substitute initial conditions to then have:


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


01uv+01uva(u,v)=01vF(v)


Relationship between (1) and (2)

(2) is an equivalent formulation of (1) but it does not involve second derivatives.


Existence of Unique Solution

By the Lax-Milgram theorem, we have the existence of a unique solution.


  • bilinear form continuous/bounded: a(u,v)Cu1v1


  • bilinear form coercive: a(u,u)1u12


  • functional bounded: F(v)v1


v=1v1v0v1

Problem 6b

Write the finite element method with piecewise linear elements over a uniform partition P={xi=(i1)h}i=1N with meshsize h=1N1. If U=(ui)i=1N is the vector of nodal values of the finite element solution, find the stiffness matrix A and right hand side F such that AU=F. Show that A is symmetric and positive definite. Show that solution U is unique

Solution 6b

Define hat functions {ϕi}i=1N as basis of the discrete space. Note that ϕ0 and ϕn have only half the support as the other basis functions. Using this basis we have


[h3+1hh61hh61h23h+2hh61hh61hh3+1h]A[u1u2un]U=[h2hh2]F


Observe that A is symmetric. It is positive definite by Gergoshin's theorem. The solution U is unique since A is diagonally dominant.

Problem 6c

Consider two partitions P1 and P2 of [0,1], with P2 a refinement of P1. Let V1 and V2 be the corresponding piecewise linear finite element spaces. Show that V1 is a subspace of V2

Solution 6c

If vV1 then it is also in V2 since P2 is a refinement of P1. In other words, since V1 is piecewise linear over each intervals, it is also piecewise linear over a refinement of its interval.

Problem 6d

Let u1V1 and u2V2 be the finite element solutions. Show the orthogonality equality.


uu1H12=uu2H12+u1u2H12

Solution 6

From orthogonality of error, we have


a(uuh,vh)=0 for all vVh


Specifically,


a(uu2,u1u2)=0


Then


a(uu1,uu1)uu1H12+2a(uu2,u1u2)0=a(uu2,uu2)uu2H12+a(u1u2,u1u2)u1u2H12


Template:BookCat