Docsity

Problems on Orthogonal Iteration - Numerical Analysis Computing | COT 4501, Quizzes of Computer Science

Toggle sidebar
bg1
Quiz 3 Due on Friday, 12/8
This is, obviously, a take-home quiz. You can pretty much do anything you
like to complete the quiz except discussing the problems with another person.
You should finish the problems yourself. If you answer the two problems below
correctly, you will receive two extra (percentage) points for your final grade.
Each problem is worth one point. The quiz looks long only because I try to
write out as much details as possible so that nobody should get confused about
the problems.
Problem 1 Orthogonal Iteration
On Tuesday (11/28), we talked about power method for finding the eigenvector
corresponding to the largest eigenvalue of a matrix A. This method can be gen-
eralized directly to find all the eigenvectors of Ain the form of “QR iteration”.
Here, we are going to explicitly demonstrate this algorithm (QR iteration) us-
ing MATLAB. Let’s start with three vectors, a= [1 −1 3]t, b = [1 2 −1]tand
c= [−1 1 −1]t.
A. Show that these three vectors are linear independent. (You can use any
method you like to prove this. However, write out your argument clearly).
B. Let Xbe the matrix whose columns are these three vectors :
X=
1 1 −1
−1 2 1
3−1−1
,
and Dbe the following diagonal matrix
D=
10 0 0
0 3 0
0 0 1
.
Now, let A=XDX −1. What are the eigenvalues and eigenvectors of A? You
should not calculate anything for this question.
C. The orthogonal iteration for computing eigenvalues and eigenvectors of Ais
shown in the figure below. According to this algorithm, ˆ
Qkwill converge (for
sufficiently large k) to some orthogonal matrix ˆ
Q, and Rkwill also converge (for
our particular matrix A) to an upper triangular matrix R. The eigenvalues of
Aarranged in descending order are the diagonal entries of R. The eigenvectors
of Acan be computed from entries of Rand columns of Q.
Let X0be the following matrix
X0=
0.9501 0.4860 0.4565
0.2311 0.8913 0.0185
0.6068 0.7621 0.8214
.
1
pf3
pf4

Partial preview of the text

Download Problems on Orthogonal Iteration - Numerical Analysis Computing | COT 4501 and more Quizzes Computer Science in PDF only on Docsity!

Quiz 3 Due on Friday, 12/

This is, obviously, a take-home quiz. You can pretty much do anything you

like to complete the quiz except discussing the problems with another person.

You should finish the problems yourself. If you answer the two problems below correctly, you will receive two extra (percentage) points for your final grade. Each problem is worth one point. The quiz looks long only because I try to write out as much details as possible so that nobody should get confused about the problems.

Problem 1 Orthogonal Iteration

On Tuesday (11/28), we talked about power method for finding the eigenvector corresponding to the largest eigenvalue of a matrix A. This method can be gen- eralized directly to find all the eigenvectors of A in the form of “QR iteration”. Here, we are going to explicitly demonstrate this algorithm (QR iteration) us- ing MATLAB. Let’s start with three vectors, a = [1 − 1 3]t, b = [1 2 − 1]t^ and c = [−1 1 − 1]t.

A. Show that these three vectors are linear independent. (You can use any

method you like to prove this. However, write out your argument clearly).

B. Let X be the matrix whose columns are these three vectors :

X =

and D be the following diagonal matrix

D =

Now, let A = XDX−^1. What are the eigenvalues and eigenvectors of A? You should not calculate anything for this question.

C. The orthogonal iteration for computing eigenvalues and eigenvectors of A is

shown in the figure below. According to this algorithm, Qˆk will converge (for sufficiently large k) to some orthogonal matrix Qˆ, and Rk will also converge (for our particular matrix A) to an upper triangular matrix R. The eigenvalues of A arranged in descending order are the diagonal entries of R. The eigenvectors of A can be computed from entries of R and columns of Q. Let X 0 be the following matrix

X 0 =

Orthogonal Iteration

X 0 = arbitrary n × p matrix of rank p.

for k = 1, 2 , · · · do Q^ ˆkRk = Xk− 1 Reduced QR factorization of Xk− 1 Xk = A Qˆk end for

Show the upper triangular matrices R 1 , R 2 , R 3 , R 4 , R 6. Write out all these ma- trices for me to see. For this part, you need to use MATLAB. (The MATLAB command ’qr’ does the QR factorization and to compute X−^1 , use ’inv(X)’). You do not need to show the MATLAB code you use. However, the code should not be longer than 7-8 lines. Of course, you are allowed to compute R 7 , R 8 , · · · for your own enlightenment.

That is, we do not take the sum of products of components as before. Instead, we modify it a little bit so that the products are between the conjugates of the components of the vector v and the component of u^1. In vector notation, this is < v, w >H = ¯vtw.

In the above, ¯v is a vector whose components are conjugates of components of v. For example, if v = [2 + 3i 3 − 4 i]t, ¯v = [2 − 3 i 3 + 4i]t

A. Show that the Hermitian inner product of the vector v = [i i]t^ above is 2.

B. Show that if λ is any complex number, then

< v, λw >H = λ < v, w >H. (1) < λv, w >H = ¯λ < v, w >H. (2)

C. Show that if v and w are real vectors, their Hermitian inner product is the

same as the usual inner product.

D. Show that if A is a real symmetric matrix,

< v, Aw >H =< Av, w >H.

E. Using Part D and Equations 1 and 2, show that if λ is an eigenvalue of a

symmetric matrix A, then λ is real. (The argument is very short .... Take v to be an eigenvector).

In the following A will denote a symmetric matrix. We now show that eigen- vectors of A form an orthonormal basis.

F. Let v be an eigenvector of A. We know from Part E that v is a real vector

(because it has real eigenvalues). Let S be the subspace orthogonal to v. That is, every vector x ∈ S is perpendicular to v:

S = {x | < x, v >= 0}.

Show that S is an invariant space, i.e. if x ∈ S, Ax is also in S. (Hint: The argument should be short.)

The proof is then simple after we have reached this point. If v 1 is an eigenvector of A, then, from Part F above, A is a symmetric matrix on the subspace S orthogonal to v. Then, from Parts E and F, we can find another eigenvector of A, say, v 2 in S, and v 2 is perpendicular to v 1. Now, we look at the subspace S 2 which is orthogonal to both v 1 and v 2. Part F shows that A will again be a symmetric matrix on S 2 , and so on. At the end, we get a sequence of orthonormal eigenvectors of A, v 1 , v 2 , · · · , vn, which finishes the proof.

(^1) For a complex number a + ib, its conjugate is a − ib.