MA/CS/EGR 537: Assignment 3

This is due Thursday, October 2 in class. Please e-mail your Matlab script(s) to

before class. Please bring to class the pencil and paper part and the code part.

Theory

Assume that A is real, symmetric, positive definite, and N by N. Use the definition of the conjugate gradient method for solving Ax+b=0 given in class:

Rigorously prove the results below, where indicated.

Lemma 2: The parameter betak is chosen so that (wk+1,Awk)=0.

Lemma 3: For 0<=q<=k,

Lemma 4: alphak = (rk+1,rk+1) / (rk+1,Ark).

Lemma 5: betak = (rk+1,rk+1) / (rk,rk).

Computation

Assume that M=n2, where n>1. For your calculations, use n=4. Use a matrix A that is block tridiagonal. Both block matrices are n by n. Let

A can be generated in Matlab easily by The vector b should have random elements, which can be generated easily by Take your initial guess x0=0.

You should run the CG algorithm until the residual norm has been reduced by a factor of 10-6, i.e., run until

You will have to modify the definition of the CG algorithm to reflect this stopping criterion. How many iterations did your code take to meet this stopping criterion?

Cheers,
Craig C. Douglas