Professional Documents
Culture Documents
Chapter 8. Orthogonality
§8-6. Singular Value Decomposition
Le Chen1
Emory University, 2020 Fall
(last updated on 11/16/2020)
1
Slides are adapted from those by Karen Seyffarth from University of Calgary.
Singular Value Decomposition
Examples
Fundamental Subspaces
Applications
Singular Value Decomposition
Definition
Let A be an m × n matrix. The singular values of A are the square roots of
the nonzero eigenvalues of AT A. Singular Value Decomposition (SVD) can
be thought of as a generalization of orthogonal diagonalization of a
symmetric matrix to an arbitrary m × n matrix.
Given an m × n matrix A, we will see how to express A as a product
A = UΣVT
where
Proof.
Suppose A is an m × n matrix, and suppose that λ is a nonzero eigenvalue
of AT A. Then there exists a nonzero vector ~x ∈ Rn such that
Since λ 6= 0 and ~x 6= ~0n , λ~x 6= ~0n , and thus by equation (1), (AT A)~x 6= ~0n ;
thus AT (A~x) 6= ~0n , implying that A~x 6= ~0m .
Therefore A~x is an eigenvector of AAT corresponding to eigenvalue λ. An
analogous argument can be used to show that every nonzero eigenvalue of
AAT is an eigenvalue of AT A, thus completing the proof.
Examples
Example
1 −1 3
Let A = . Then
3 1 1
1 3
T 1 −1 3 −1 11 5
AA = 1 = .
3 1 1 5 11
3 1
1 3 10 2 6
1 −1 3
AT A = −1 1 = 2 2 −2 .
3 1 1
3 1 6 −2 10
Example (continued)
Since AAT is 2 × 2 while AT A is 3 × 3, and AAT and AT A have the same
nonzero eigenvalues, compute cAAT (x) (because it’s easier to compute than
cAT A (x)).
x − 11 −5
cAAT (x) = det(xI − AAT ) =
−5 x − 11
= (x − 11)2 − 25
= x2 − 22x + 121 − 25
= x2 − 22x + 96
= (x − 16)(x − 6).
Let
1 1 1 −1 1 −1
v1 = √
~ 0 v2 = √
,~ −1 v3 = √
,~ 2 .
2 1 3 1 6 1
Then
√ √
1 3 −√2 −1
V = √ √0 −√2 2 .
6 3 2 1
Also,
4 √0 0
Σ= ,
0 6 0
T
and we use A, V , and Σ to find U.
Example (continued)
T
and A = UΣV
Since V is orthogonal that AV = UΣ. Let
, it follows
V = ~v1 ~v2 ~v3 , and let U = ~u1 ~u2 , where ~u1 and ~u2 are the two
columns of U. Then we have
A ~
v1 ~
v2 ~
v3 = ~
u1 ~
u2 Σ
A~
v1 A~
v2 A~
v3 = σ1 ~
u1 + 0~
u2 0~
u1 + σ2~
u2 0~
u1 + 0~
u2
~
= σ1 ~
u1 σ2~
u2 0
√
which implies that A~v1 = σ1~u1 = 4~u1 and A~v2 = σ2~u2 = 6~u2 . Thus,
1 1
1 1 1
1
1 −1 3 4 1
~
u1 = v1 =
A~ √ 0 = √ = √ ,
4 4 3 1 1 2 4 2 4 2 1
1
and
1 1
1 −1 1
1
1 −1 3 3 1
u2 = √ A~
~ v2 = √ √ −1 = √ = √ .
6 6 3 1 1 3 3 2 −3 2 −1
1
Example (continued)
Therefore,
1 1 1
U= √ ,
2 1 −1
and
1 −1 3
A =
3 1 1
√ √
√3 √0 √3
1 4 1
= √
1 1 √0 0 √ − 2 − 2 2 .
2 1 −1 0 6 0 6 −1 2 1
Problem
−1
Find an SVD for A = 2 .
2
Solution
Since A is 3 × 1, AT A is a 1 × 1 matrix whose eigenvalues are easier to find
than the eigenvalues of the 3 × 3 matrix AAT .
−1
AT A = −1 2 2 2 = 9 .
is a basis of R3 . Set
−1 1 0
~f1 = 2 , ~x2 = 0 , ~x3 = 1 ,
2 0 0
Therefore,
4 0
1 1
~u2 = √ 1 , ~u3 = √ 1 ,
18 1 2 −1
and
− 13 √4
18
0
2 √1 √1
U= .
3 18 2
2 √1
3 18
− √12
Finally,
1 √4
−3 0
−1 18 3
A = 2 = 23 √1 √1
0 1 .
18 2
2 √1
2 3 18
− √12 0
Problem
1 4
Find a singular value decomposition of A = .
2 8
Solution
√
1 4 1 1 −2 85 0 1 1 −4
= √ √ .
2 8 5 2 1 0 0 17 4 1
Remark
Since there is only one non-zero eigenvalue, ~u2 (the second column of U)
can not be found using the formula ~u2 = σ12 A~v2 . However, ~u2 can be chosen
−2
to be any unit vector orthogonal to ~u1 ; in this case, ~u2 = √15 .
1
Problem
−1 1 0
Find a singular value decomposition of A = .
0 −1 1
Solution
−1 1 0
0 −1 1
||
√
√1 −2 √1
1 −1 1 3 0 0 1
√ √ − 3
√ √0 √3
2 1 1 0 1 0 6 2 2 2
Fundamental Subspaces
Full Singular Value Decomposition
Full
Singular Value Decomposition
Applications
A = UΣVT = UΣU T
| {z } UV T
| {z }
nonneg. def. rotation
Definition
A real n × n matrix G is nonnegative definite (or positive in the book) if it
is symmetric and for all ~x ∈ Rn
~xT G~x ≥ 0.
Example (Generalized inverse)
Example (Image of unit ball under linear transform A)
Let A = UΣVT be the full SVD for an m × n matrix A. We will see how
the unit ball will be mapped:
{A~x | ||~x|| ≤ 1}
n
X
A≈ σi~ui~viT
i=1