Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit

Math 318 Homework 8

(1) SVD of Symmetric and PSD matrices

(a) Compute the SVD of the symmetric matrix (using Julia or otherwise)

B = 【(【) 2   4

3 Ⅰ(n)

6 Ⅰ

(b) If A is a symmetric matrix of size n x n, argue that σi = iλi i for all i. Here σi  is the ith singular value of A and λi  is the ith eigenvalue of A.

(c) Based on what you just did, how would you convert a diagonalization of a     general symmetric matrix C to the SVD of C? Say in words what steps need to be taken.

(d) If A is a PSD matrix of size n x n then what is the relationship between its singular values and eigenvalues? What is the SVD of A?

(2) Rank one matrices

(a) Argue that for any two matrices A and B, rank|A + B; s rank|A; + rank|B;.   Hint: What can you say about the columns of A + B and the column space of A + B in relation to the column spaces of A and B? How does the dimension of Col|A + B; relate to the sum of the dimensions of Col|A; and Col|B;. You     can use the fact that if S and T are two sets of vectors in Rn  then                     dim|span{S v T}; s dim|span{S}; + dim|span{T};.

(b) Use SVD to argue that every rank one matrix in Rm ×n  is of the form uvT  for u e Rm  and v e Rn .

(c) Find two rank one matrices whose sum is still rank 1 and two rank one matrices whose sum has rank 2.

(d) If the columns of A e Rm ×k  are al , . . . , ak  and the rows of B e Rk ×n  are b l(T) , . . . , bk(T)  argue that AB = ab l(T) + ab2(T) + … + abk(T) .

Hint: You could show that the |i, j;-entry on the left side is the same at the |i, j;-entry on the right side. Warm up by checking that if

A = |c   d|

then

AB = |c(a)| [e

and   B = |h   i   j |

f   g] + |d(b)| [h   i   j] .

(3) Rank one decomposition of symmetric and PSD matrices

(a) Argue that all rank one PSD matrices of size n x n can be written as bbT  for a vector b e Rn .

(b) Describe 3 x 3 PSD matrices of rank 1 that have 0s and 1s on the diagonal.     Hint: Use part (a) to deduce what any rank one matrix looks like, then find  necessary conditions for the diagonals of your psd matrix to be 0 or 1. You do not need to explicitly give all matrices but you should argue how many you    could get (double counting is ok) and explain how you get them.

(c) Argue that a PSD matrix of rank r is the sum of r rank one PSD matrices.      This means that you can get an expression of the form Ml + M2 + … + Mr  where each Mi  is PSD and rank one.

(d) Can a symmetric matrix of rank r also be written as Ml + M2 + … + Mr  where each Mi  is PSD and rank one? Explain your answer.

(4) 十 Projection with an orthonormal basis

In class we learned that if V s Rn  is a subspace with basis al , . . . , ak  and A e Rn ×k is the matrix with columns al , . . . , ak , then projection onto V is achieved by the      linear transformation with matrix A|AT A;-l AT . In this exercise we are going to see how this formula simplifies if we had started with an orthonormal basis of V .

(a) Suppose ql , . . . , qk  is an orthonormal basis of V and Q e Rn ×k  is the matrix with columns ql , . . . , qk .

(i) Show that the projection matrix P = Q|QT Q;-l QT  is

qq l(T) + qq2(T) + … + qqk(T) .

(ii) Using (i) compute projV b, the projection of b e Rn  onto V . (Your answer should be a linear combination of ql , . . . , qk .)

(iii) From (ii), what are the coordinates of projV b in the basis ql , . . . , qk ?

(iv) Use your knowledge of orthogonal projectors to write down the matrix that projects onto Vi .

(v) Using this projector to find projVi b.

(b) Suppose we find additional vectors so that ql , . . . , qk , qk+l , . . . , qn  is an

orthonormal basis of Rn . Check for yourself that {qk+l , . . . , qn } is an orthonormal basis of Vi .

(i) Apply what you learned in (a) to the basis {qk+l , . . . , qn } of Vi  to compute projVi b, the projection of b onto Vi .

(ii) Equating your answer above and the answer in (a) (v), express b as a linear combination of ql , . . . , qn .

(iii) What are the coordinates of b in the basis ql , . . . , qn ?

(c) (4.1, #17) Let L be the line spanned by |1, 1, 1;T .

(i) Find a vector u so that projection onto L is x → uuTx.

|2 ì

(ii) Compute the projection of b = 13 1 onto L and Li . Show all work. |4J