Starting from:
$30

$24

Assignment #1 Solution

Read carefully the introductory parts in the book: Lecture 1 and Lecture 2. Note that the notions of orthogonal matrix and unitary matrix are essentially the same: a unitary matrix is an orthogonal matrix with possibly complex entries (and then one needs to suitably apply conjugations to the complex numbers in the definitions).




Do Q. 1.1, page 9. Use Matlab for the computations (and turn in the Matlab code you have used, too). Do also q. 2.3, page 15. For the latter, you may assume that the matrix is symmetric
(i.e., A is real-valued, and A′ = A), and may examine there expressions of the form Ax, y .




Let Q be an m × m real matrix that satisfies, for every vector x ∈ RM,



Qx = x . ℵ






x := p
P
M


Here,
I=1 xI2.
Show that 1 is the only eigenvalue of Q′Q, i.e., show that σ(Q′Q) = {1}.



It is known that every symmetric matrix A is diagonalizable, i.e., can be written as A =



P DP −1, for some diagonal D, and invertible P . Prove that Q′Q is symmetric (for any matrix Q), and use that in order to show that the matrix Q in this question (i.e., the one that satisfies (ℵ)) is orthogonal.




To this end, note: for every vectors x, y ∈ RM and any real matrix QM×M,




x 2 = x, x , Qx, y = x, Q′y .







(3)




Copy from our web site the file demos/qr/sloppy qr.m into a directory in your account where you run Matlab. The code in that file QR factors a matrix AM×N (m ≥ n) into QM×MRM×N.







Assuming that A is square, you need to find the complexity of the algorithm used in that file for the QR factorization, i.e., the number of operations. For that, run the code on square matrices A of different sizes, and keep an operation count for each run (the number of operations of each line of code is listed as a comment in the .m file). Based on the experiment, determine the complexity in the form cnK . (If you cannot do that, try at least to find the order of the algorithm i.e., determine the k in the O(nK) order of the algorithm. Take one of your test matrices to be of large order, say 100 × 100)




1

More products