Docsity

Theoretical Assignment #1 with Solution - Numerical Linear Algebra | MATH 434, Study notes of Linear Algebra

Toggle sidebar
bg1
MATH 434/534
Theoretical Assignment 1 Solution
Chapter 2
No. 2.0
Answer ”‘True”’ or ”‘False”’ to the following. Give reasons for your answers.
-Solution-
(a) The eigenvalues of an upper triangular matrix T are its diagonal entries.
True by Theorem 2.15-3.
(b) The eigenvalues of a real symmetric matrix are real.
True by Corollary 2.18.
(c) A matrix is nonsingular if and only if all its eigenvalues are nonzero.
True by Theorem 2.7-2
(d) The eigenvalues of an orthogonal matrix are all equal to 1.
False. Consider the following matrix
O= 1 0
0−1!
Then we have
OT= 1 0
0−1!
Then we have OTO=OOT=I. So, Ois an orthogonal matrix. However, the eigenvalues
of Aare λ=±1. In fact all eigenvalues of an orthogonal matrix have modulus one.
(e) An orthogonal matrix is not necessarily invertible.
False, because by the definition of an orthogonal matrix, that is, A square matrix Ois
called orthogonal if it is invertible and O=O−1.
(f) A real symmetric or a complex Hermitian matrix can be always transformed into a
diagonal matrix by similarity transformation.
True by Theorem 2.17 and Theorem 2.20.
(g) Two similar matrices have the same eigenvalues.
True by the property of similar matrices. See page 14.
(h) If two matrices have the same eigenvalues, they must be similar.
False. Again by the property of similar matrices, two similar matrices have the same
eigenvalues. However, the converse is not true. See Page 14.
(i) The product of two upper (lower) triangular matrices does not need to be an upper
(lower) triangular matrix.
False. By Theorem 2.15, the product of two upper (lower) triangular matrices is an upper
(lower) triangular matrix.
pf3
pf4
pf5

Partial preview of the text

Download Theoretical Assignment #1 with Solution - Numerical Linear Algebra | MATH 434 and more Study notes Linear Algebra in PDF only on Docsity!

MATH 434/

Theoretical Assignment 1 Solution

Chapter 2 No. 2. Answer ”‘True”’ or ”‘False”’ to the following. Give reasons for your answers.

-Solution- (a) The eigenvalues of an upper triangular matrix T are its diagonal entries. True by Theorem 2.15-3.

(b) The eigenvalues of a real symmetric matrix are real. True by Corollary 2.18.

(c) A matrix is nonsingular if and only if all its eigenvalues are nonzero. True by Theorem 2.7-

(d) The eigenvalues of an orthogonal matrix are all equal to 1. False. Consider the following matrix

O =

( 1 0 0 − 1

)

Then we have

OT^ =

( 1 0 0 − 1

)

Then we have OT^ O = OOT^ = I. So, O is an orthogonal matrix. However, the eigenvalues of A are λ = ±1. In fact all eigenvalues of an orthogonal matrix have modulus one.

(e) An orthogonal matrix is not necessarily invertible. False, because by the definition of an orthogonal matrix, that is, A square matrix O is called orthogonal if it is invertible and O = O−^1.

(f) A real symmetric or a complex Hermitian matrix can be always transformed into a diagonal matrix by similarity transformation. True by Theorem 2.17 and Theorem 2.20.

(g) Two similar matrices have the same eigenvalues. True by the property of similar matrices. See page 14.

(h) If two matrices have the same eigenvalues, they must be similar. False. Again by the property of similar matrices, two similar matrices have the same eigenvalues. However, the converse is not true. See Page 14.

(i) The product of two upper (lower) triangular matrices does not need to be an upper (lower) triangular matrix. False. By Theorem 2.15, the product of two upper (lower) triangular matrices is an upper (lower) triangular matrix.

(j) ‖I‖ = 1 for any norm. False. For the identity matrix I, ‖I‖ 1 = ‖I‖ 2 = ‖I‖∞ = 1. However, ‖I‖F =

n.

(k) The length of a vector is preserved by an orthogonal multiplication (multiplication of a vector or a matrix by an orthogonal matrix). True. Let O be an orthogonal matrix, that is, OT^ O = OOT^ = I. Then ‖Ox‖^2 = (Ox)T^ (Ox) = xT^ OT^ Ox = xT^ x = ‖x‖^2. This implies ‖Ox‖ = ‖x‖.

(l) If ‖A‖ < 1, then I − A is nonsingular. True by Theorem 2.27.

(m) If ‖A‖ 2 = 1, then A must be orthogonal. False. Consider the following matrix

A =

( 1 0 (^0 )

)

Then we have

AT^ =

( 1 0 (^0 )

)

AT^ A = AAT^ =

( 1 0 (^0 )

)

So, the eigenvalues of AT^ A are λ 1 = 1 and λ 2 = 14. This implies ‖A‖ 2 = 1. However, AT^ A = AAT^6 = I. Therefore, A is not an orthogonal matrix.

(n) The product of two orthogonal (unitary) matrices is an orthogonal (unitary) matrix. True. Let U 1 and U 2 be unitary matrices. Then U (^) i∗ Ui = UiU (^) i∗ = I for i = 1, 2. (U 1 U 2 )∗(U 1 U 2 ) = U 2 ∗ U 1 ∗ U 1 U 2 = I and (U 1 U 2 )(U 1 U 2 )∗^ = U 1 U 2 U 2 ∗ U 1 ∗ = I. Therefore, the product of two unitary matrices is a unitary matrix. Similarly, it is shown that the product of two orthogonal matrices is an orthogonal matrix.

No. 2. Prove that for a subordinate matrix norm ‖·‖, |λ| ≤ ‖A‖ for every eigenvalues of λ of A.

-Solution- Let λ be an eigenvalue of A and x be an eigenvector of A corresponding to λ. Then we have Ax = λx. By the property of a subordinate matrix norm, we have

‖Ax‖ ≤ ‖A‖ ‖x‖

However, since Ax = λx, we have ‖Ax‖ = ‖λx‖ = |λ| ‖x‖. Therefore, we have

|λ| ‖x‖ ≤ ‖A‖ ‖x‖ ⇒ |λ| ≤ ‖A‖

No. 2.

The inequality holds for either x = 0 or y = 0. If x 6 = 0 and y 6 = 0, then xT^ x 6 = 0 and yT^ y 6 = 0. Therefore we have ∥∥ ∥xyT^

∥∥ ∥ 2 ≤

∥∥ ∥xyT^

∥∥ ∥F

√√ √√∑^ n i=

∑^ n

j=

|xiyj |^2

√√ √√∑^ n i=

|xi|^2

∑n

j=

|yj |^2

√√ √√ ∑n i=

|xi|^2

√√ √√∑^ n j=

|yj |^2

= ‖x‖ 2 ‖y‖ 2

Therefore,

∥∥ ∥xyT^

∥∥ ∥ 2 ≤ ‖x‖ 2 ‖y‖ 2.

No. 2. Let x and y be two orthogonal vectors. Then prove that ‖x + y‖^22 = ‖x‖^22 + ‖y‖^22

-Solution- Since x and y are orthogonal vectors, xT^ y = 0. Now consider ‖x + y‖^22.

‖x + y‖^22 = (x + y)T^ (x + y) = (xT^ x) + 2(xT^ y) + (yT^ y) = ‖x‖^22 + ‖y‖^22

No. 2. Prove that (i) ‖I‖ 2 = 1, and (ii) ‖I‖F =

n.

-Solution- (i)

Since ‖A‖ 2 =

√ maximum eigenvalue of AT^ A, we have ‖I‖ 2 =

√ maximum eigenvalue of IT^ I.

However, IT^ I = I and the eigenvalues of the identity matrix I are 1’s. Therefore, ‖I‖ 2 = 1. (ii) First consider the meaning of

∑n j=

∑n i=1 |aij^ |

(^2) , that is, taking |·| (^2) on each entry of a matrix

A and adding up these results. So, if you take |·|^2 on each entry of the n by n matrix I and

add these up, the sum must be n. Since ‖I‖F =

[∑n j=

∑n i=1 |Iij^ |

2 ]^12 where I ij is the^ ij^ entry of I. You have

‖I‖F =

 

∑^ n

j=

∑^ n

i=

|Iij |^2

 

1 2 = (n)

1 (^2) =

n

No. 2. Prove that if Q and P are orthogonal matrices, then (a) ‖QAP ‖F = ‖A‖F , and (b)‖QAP ‖ 2 = ‖A‖ 2

-Solution- (a) Since P and Q are orthogonal matrices, QT^ Q = QQT^ = I, By a property of the Frobenius

norm, we have ‖A‖^2 F = trace(AT^ A). Now consider ‖QAP ‖^2 F.

‖QAP ‖^2 F = trace((QAP )T^ (QAP )) = trace(P T^ (QA)T^ QAP ) = trace(P T^ AT^ QT^ QAP ) = trace(P T^ AT^ AP ) = trace(AT^ A) = ‖A‖^2 F

Therefore, ‖QAP ‖F = ‖A‖F.

(b) Since P and Q are orthogonal matrices, QT^ Q = QQT^ = I. By the definition of ‖QAP ‖ 2 , we

have ‖QAP ‖ 2 =

√ max eigenvalue of (QAP )T^ (QAP ).

(QAP )T^ (QAP ) = P T^ (QA)T^ (QAP ) = P T^ AT^ QT^ QAP = P T^ AT^ AP

Since (AT^ A)T^ = AT^ A, AT^ A is symmetric. Since AT^ A is symmetric and P is an orthogonal matrix. By Theorem 2.17, we have

(QAP )T^ (QAP ) = P T^ AT^ AP = D

where D is a diagonal matrix whose diagonal entries are the eigenvalues of AT^ A. For i =

1 , 2 ,... , n, let λi be the eigenvalues of AT^ A. Therefore, ‖QAP ‖ 2 =

√ max(λ 1 , λ 2 ,... , λn) =

‖A‖ 2

No. 2. Prove that (i)

∥∥ ∥AT^

∥∥ ∥ 2 = ‖A‖ 2 , and (ii)

∥∥ ∥AT^ A

∥∥ ∥ 2

= ‖A‖^22

-Solution- (i) For A ∈ Rm×n, by Singular Value Decomposition, there exist orthogonal matrices U ∈ Rm×m and V ∈ Rn×n^ such that A = U ΣV T^ where Σ = diag(σ 1 , σ 2 ,... , σp) ∈ because of the property of a subordinate matrix norm, ‖Ax‖p ≤ ‖A‖p ‖x‖p. Since ‖B‖^2 F = ∑n i=1 ‖bi‖

2 2 , we have

‖AB‖^2 F ≤ ‖A‖^22

( ‖b 1 ‖^22 + · · · + ‖bl‖^22

) = ‖A‖^22 ‖B‖^2 F

Therefore, ‖AB‖F ≤ ‖A‖ 2 ‖B‖F. Note By the compatibility of F -norm, ‖Ax‖ 2 ≤ ‖A‖F ‖x‖ 2 (see Page 20), similarly part (a) can be shown.

No. 2. Let trace(A) =

∑n i=1 aii. Then prove the following.

-Solution- (a) trace(AB) = trace(BA) Let aij and bij be entries of matrices Amn and Bnm, respectively. AB is an m × m matrix and BA is an n × n matrix.

Diagonal entries of (AB) = (the ith^ row of A) · (the ith^ column of B)

Now consider AB and BA

trace(AB) =

∑^ n

j=

∑^ m

i=

(aij bji)

trace(BA) =

∑^ m

j=

∑^ n

i=

(bij aji) =

∑^ n

i=

∑^ m

j=

(ajibij ) = trace(AB)

(b) trace(AA∗) =

∑m i=

∑n j=1 |aij^ |

(^2) , where A = (a ij ) is^ m^ ×^ n.

Let aij be an entry of A. Since A∗^ =

( A¯

)T where A¯ is the complex conjugate of A and A is an m × n matrix, A∗^ is an n × m matrix and each entry of A∗^ is ¯aji. Similarly, we have

trace(AA∗) =

∑^ m

i=

∑^ n

j=

(aij a¯ji) =

∑^ m

i=

∑^ n

j=

(|aij |^2 )

because z z¯ = |z|^2 where z is a complex number.

(c) trace(A+B)=trace(A)+trace(B) To carry out A + B, the size of A must be the same as the size of B. Suppose the size of these matrices is m × n.

trace(A + B) = (a 11 + b 22 ) + (a 22 + b 22 ) + · · · + (amm + bmm) = (a 11 + a 22 + · · · + amm) + (b 11 + b 22 + · · · + bmm) = trace(A) + trace(B)

(d) trace(T AT −^1 ) = trace(A) Using (a), we have

trace(T AT −^1 ) = trace((T A)T −^1 ) = trace(T −^1 (T A)) = trace(A)