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

From testwiki
Jump to navigation Jump to search

Problem 4

Given the two-point boundary value problem

{u+αu=f(x),0x1,α>0u(0)=A,u(1)=B

Problem 4a

Set up the finite element approximation for this problem, based on piecewise linear elements in equidistant points. Determine the convergence rate in an appropriate norm

Solution 4a

Let V={vH1[0,1]}

Find uV such that for all vV


01uv+α01uv=01fv


or after integrating by parts and including initial conditions

01uv+α01uv=01fv+Bv(1)Av(0)

Discrete Variational Form

Vh={vH1[0,1]:v= piecewise linear }


{ϕi}i=0N+1 is basis for Vh;h=1N+2


For i=1,2,,N


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

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

ϕiϕj={23h for i=j16h for |ij|=10 otherwise

ϕiϕj={2h for i=j1h for |ij|=10 otherwise

ϕ0={x1xh for x[x0,x1]0 otherwise 


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


Find uhVh such that for all vVh


uhvh+α01uhvh=01fvh+Bv(1)Av(0)


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


uh=i=0N+1uhiϕi


Therefore we have system of equations


For j=0,1,,N+1


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


[α13h+1hα6h1hα61hα23h+2hα6h1hα6h16α23h+2hα6h1hα6h1hα13h+1h][uh0uh1uhNuhN+1]=[01fϕ0A01fϕ101fϕN01fϕN+1+B]


Convergence Rate

In general terms, we can use Cea's Lemma to obtain


uuh1CinfvhVhuvh1


In particular, we can consider vh as the Lagrange interpolant, which we denote by vI. Then,


uuh1CuvI1ChuH2(0,1).


It's easy to prove that the finite element solution is nodally exact. Then it coincides with the Lagrange interpolant, and we have the following punctual estimation:


u(x)uh(x)L([xi1,xi])maxx[xi1,xi]u(2)(x)(2)!(h2)2

Problem 4b

Explain whether α>0 is necessary for the convergence in part (a).

Solution 4b

If α0, then the stiffness matrix is diagonally dominant and hence solvable.

Solution 4

Problem 5


Solution 5

Problem 6


Solution 6

Template:BookCat