



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Theoretical Assignment 7 Solution
Chapter 7
Let H = I −
2 uu
T
u T u
be a Householder matrix. Then prove the followings
(i) Hu = −u.
(ii) Hv = v if u
T u = 0.
-Solution-
(i)
uu
T
u
T u
Hu = (I − 2
uu
u
T u
)u
= u − 2
uu
T u
u
T u
= u − 2 u = −u
(ii)
Hv = (I − 2
uu
T
u
T u
v = v − 2
uu
T v
u
Y u
= v − 0 = v because v
T u = 0.
This implies that u
T v = 0.
Let x be an n-vector. Develop an algorithm to compute a Householder matrix H = I − 2
uu
T
u T u
such that Hx has zeros in positions (r + 1) through n; r < n.
How many flops will be required to implement this algorithm?
Given x = (1, 2 , 3)
T , apply your algorithm to construct H such that Hx has a zero in the
third position.
-Solution-
For x = (x 1 ,... , x n
T , let
y =
x 1
x n
Now find û such that
̂ H = I −
2 ̂ûu
T
̂ u T ̂ u
and
̂ Hy =
∗
Then u = (0,... , 0
︸ ︷︷ ︸
r− 1 zeros
, û)
T will generate a Householder transform H such that
Hx = ( ∗,... , ∗
︸ ︷︷ ︸
r non−zeros
, 0 ,... , 0). This takes 3(n − r) flops.
Using the Cholesky decomposition of A
T A, where A is m×n(m ≥ n) and has full rank, prove
that A has a unique reduced QR factorization with positive diagonal entries of R. What
are the computational drawbacks of this approach for finding a reduced QR factorization
numerically? Illustrate the difficulties with an example.
-Solution-
Let A
T A = HH
T = R
T
1
1 , where R 1 is an upper triangular matrix with positive diagonal
entries. Let Q 1
− 1
1
. Then we have A = Q 1
1
. Now considering Q
T
1
1 , we have
T
1
1
T
1
− 1 A
T AR
− 1
1
T
1
− 1 R
T
1
1
− 1
1
This shows that Q 1 is an orthogonal matrix. Thus, A = Q 1
1 is a reduced QR factorization
of A.
In order to prove the uniqueness, we assume that A = Q
1
1
1
1
be another reduced QR fac-
torization of A. Thus, (Q
1
1
T Q
T
1
and R
1
1
is upper triangular with positive diagonal entries.
Then, we have
T A = (R
T
1
T (Q
T
1
T Q
T
1
T
1
Therefore, (R
T
1
T R
1
1
is the Cholesky factorization of A
T A. Since the Cholesky factorization
is unique, R
1
1
1
. Furthermore, we have
1
1
1
1
− 1 = AR
− 1
1
1
Therefore, the reduced QR factorization of A is unique.
Computational Drawbacks
The matrix A
T A may not be formed accurately. Then the column of the matrix Q may be
far from orthogonal and the entries of the matrix R may not be computed accurately.
(a)
Let A be m × n, and let U and V be orthogonal. Then, using the definition of singular val-
ues. Prove that the singular values of A and V
T AV are the same. What about the singular
vectors?
(b)
How are the singular vectors of A related with those of U
T AV?
(c)
How are the singular values of a symmetric matrix related to its eigenvalues?
-Solution-
(a)
Applying the singular value decomposition to a matrix A, we have A = U 1
1
T
1
. Now
multiplying A = U 1
1
T
1
by orthogonal matrices V
T and V , we have
T AV = V
T U 1
1
T
1
1
where P = V
T U 1 and Q = V
T
1 V are orthogonal. Therefore, A and V
T AV have the same
singular values.
Looking at Σ
T Σ and ΣΣ
T , we can see
σ 1
0 σ 2
0 0 · · · σn
m×n
σ 1
0 σ 2
0 0 · · · σ n
n×m
σ
2
1
0 σ
2
2
0 0 · · · σ
2
n
m×m
Similarly, we can obtain
T Σ =
σ
2
1
0 σ
2
2
0 0 · · · σ
2
n
n×n
From (1) and (2), the singular values of AA
T and A
T A are σ
2
1
, σ
2
2
,... , σ
2
n
. Therefore, the
number of nonzero singular values of AA
T is equal to the number of nonzero singular values
of A
T A, that is, rank(AA
T ) = rank(A
T A).
Also, from the facts that the singular values of A are σ 1 , σ 2 ,... , σ n and that the singular
values of AA
T are σ
2
1
, σ
2
2
,... , σ
2
n
, the number of nonzero singular values of A is equal to the
number of nonzero singular values of AA
T
. Therefore, rank(A) = rank(AA
T ).
Finally, we showed that
rank(A
T A) = rank(AA
T ) = rank(A) = rank(A
T ).
(ii)
By the Singular Value Decomposition, we have
T where Σ m×n = diag(σ 1 , σ 2 , · · · , σ n
T = V Σ
T U
T where Σn×m = diag(σ 1 , sigma 2 ,... , σn)
By the definition of singular values, for a real matrix A, the square roots of the eigenvalues
of A
T A are called the singular values of A, that is, the eigenvalues of A
T A are σ
2
1
, σ
2
2
,... , σ
2
n
Since AA
(
T
) T
T and the singular values of A
T are σ 1 , σ 2 ,... , σn, the eigenvalues
of AA
(
T
) T
A are σ
2
1
, σ
2
2
,... , σ
2
n
. Therefore, A
T A and AA
T have the same nonzero
eigenvalues.
(iii)
Suppose that the eigenvectors u 1 and u 2 of A
T A are orthogonal. Then we have
T A)u 1 = λ 1 u 1
T A)u 2 = λ 2 u 2
u
T
1
u 2 = u
T
2
u 1
Then consider (Au 1
T (Ay 2 ) and (Au 2
t (Au 1 ). Using (2) and (3), we have
(Au 1 )
T (Au 2 ) = u 1 A
T Au 2 = u
T
1
(λ 2 u 2 ) = λ 2 u
T
1
u 2 = 0
Similarly, using (1) and (2), we have
(Au 2
T (Au 1 ) = u 2
T Au 1 = u
T
2
(λ 1 u 1 ) = λ 1 u
T
2
u 1
Therefore, Au 1 and Au 2 are orthogonal.
Let U have orthogonal columns. Then using SVD, prove that
(i) ‖AU ‖ 2
2
(ii) ‖AU ‖ F
F
-Solution-
Again without the loss of generality, we will assume that m ≥ n for all problems of No. 7.21.
Since U has orthogonal columns, U = [u 1 u 2 · · · u n
m×n
, where u i is the i
th column vector
expressed as u i = (u 1 i , u 2 i ,... , u mi
T and satisfying
u
T
i
u j
{
0 if i 6 = j
1 if i = j
This implies
T U =
u
T
1
u
T
2
. . .
u
T
n
n×m
(
u 1 u 2 · · · u
T
n
)
m×n
= In×n
Therefore, U is an orthogonal matrix.
From the Singular Value Decomposition, for a matrix A, there exist orthogonal matrices
̂ U
and
̂ V such that A =
̂ U Σ
̂ V
T , where Σ = diag(σ 1 , σ 2 ,... , σ n
Now multiplying A =
̂ U Σ
̂ V
T by U , we have
̂ U Σ
̂ V
T U
Since the product of orthogonal matrices is an orthogonal matrix, letting W
̂ V
T U , we
have
̂ U ΣW
T · · · (∗)
(i)
Since ‖A‖ 2
= σ max , from (∗) we have ‖AU ‖ 2
= σ max
. Therefore, ‖AU ‖ 2
2
By the Singular Value Decomposition, we have A = U Σ m×n
T
. Therefore, ‖A‖ 2
= σ max
σ 1
. Also, we have A
T = V Σ n×n
T
. Considering A
T A, we have
T A = U Σ
T
n×m
T Σ m×n
T U
T
Since ΣΣ
T
m×m
= diag(σ
2
1
, σ
2
2
,... σ
2
n
∥ ∥ ∥A
T A
∥ ∥ ∥
2
= σ
2
max
= σ
2
1
. Therefore, ‖A‖
2
2
∥ ∥ ∥A
T A
∥ ∥ ∥
2
(ii)
Cond 2 (A
T A) =
σmax of (A
T A)
σ min of (A
T A)
σ max of (A
2 )
σmin of (A
2 )
(σ max of A)
2
(σ min of A)
2
= (Cond 2
2
(iii)
By the Singular Value Decomposition, we have
T ⇒ U
T AV = Σ
Since Cond 2
σmax
σmin
, we have
Cond 2
T AV ) = Cond 2
σ max
σ min
Also, Cond 2
σmax
σmin
. Therefore, we have Cond 2 (A) = Cond 2
T AV ).
(b)
Let
m×n
a 11 a 12 · · · a 1 n
a 21 a 22 · · · a 2 n
a m 1 a m 2 · · · a mn
m×n
Then we have
Bm×r =
a 11 a 12 · · · a 1 r
a 21 a 22 · · · a 2 r
a m 1 a m 2 · · · a mr
m×r
Since rank(A) = n, the number of nonzero singular values of A is n. This tell us that
σ min = σ n ≤ σ r
. Therefore, we have
Cond 2
σ max
σ min
σ 1
σ n
σ 1
σ r
= Cond 2