Numerical Methods Qualification Exam Problems and Solutions (University of Maryland)/August 2003

From testwiki
Jump to navigation Jump to search

Problem 1


Solution 1

Problem 2


Solution 2

Problem 3

Let A,BRn×n be symmetric and positive definite matrices, and let bRn. Consider the quadratic function Q(x)=12xTAxxTb for xRn and a descent method to approximate the solution of Ax=b:


xk+1=xk+αkdk

Problem 3a

Define the concept of steepest descent dk and show how to compute the optimal stepsize αk

Descent Direction

Q(xk)dk<0

Optimal step size

Choose αk such that Q(xk+αkdk) is minimized i.e.


αk:minαkQ(xk+αkdk)


Q(xk+αkdk)=xk+αkdk,Axk+αkAdkxk+αkdk,b


ddαQ(xk+αkdk)=Adk,xk+αkAdk,dkdk,b


Setting the above expression equal to zero gives the optimal αk:


αk=dk,bAxkAdk,dk


Note that since A is symmetric


dk,Axk=Adk,xk

Problem 3b

Formulate the steepest descent (or gradient method) method and write a pseudocode which implements it.

Solution 3b

Note that dk=Q(xk)=bAxk=rk. Then the minimal αk is given by rk,rkrk,rkA

Given x0Rn

For k=0,1,2,
 rk=bAxkIf rk=0, then quit dk=rkαk=rk,rkrk,rkAxk+1=xk+αkdk

Problem 3c

Let B1 be a preconditioner of A. Show how to modify the steepest descent method to work for B1Ax=B1b and write a pseudocode. Note that B1A may not be symmetric. (Hint: proceed as with the conjugate gradient method).

Solution 3

Since B is symmetric, positive definite, B=ETE where E is upper triangular (Cholesky Factorization).


Then B1=E1ET


Hence,


B1Ax=B1bE1ETAx=E1ETbETAx=ETbETAE1A~Exx~=ETbb~


A~ is symmetric:


(ETAE1)T=ETAE1 since A symmetric


A~ is positive definite:


xTETAE1x=(E1x)TA(E1x)>0 since A positive definite


Pseudocode

Given x0Rn

For k=0,1,2,
 xk~=Exkrk=b~A~xk~If rk=0, then quit dk=rkαk=rk,rkrk,rkA~xk+1=xk+αkdk

Template:BookCat