| s1 | 0 | 0 | ... | 0 | ... | 0 |
| 0 | s2 | 0 | ... | 0 | ... | 0 |
| ... | ... | ... | ... | ... | ... | ... |
| 0 | 0 | 0 | ... | sr | ... | 0 |
| 0 | 0 | 0 | ... | 0 | ... | 0 |
| ... | ... | ... | ... | ... | ... | ... |
| 0 | 0 | 0 | ... | 0 | ... | 0 |
Then we note that
$\|Sz - c \|^2 = \sum_{k=1}^r (s_kz_k-c_k)^2
+\sum_{k=r+1}^n c_k^2$
Choosing $z_k = c_k/s_k$ for $ k = 1 ... r$ and $z_k = 0$ for $k = r+1 ... n$ then yields $\|Sz - c \|^2= \sum_{k=r+1}^n c_k^2$, which not only solves the problem, but also gives the solution $x = Vz$ with smallest length $\| x \| = \|z\|$.
ATA vk = zk vk
vkT AT A vk =
zk vkT vk
|| A vk ||2 = zk || vk
||2
|| A vk ||2 = zk (||
vk || =1 )
This calculation also shows that a vector v is in the null space of A
if and only if it is an eigenvecor corresponding to the eigenvalue
0. If r = rank(A), then "rank + nullity = # of columns" tells us that
the the nullity(A) = n - r. This means that there are r eigenvectors
for the remaining eigenvalues. List these as z1 >=
z2 >= ... >= zr > 0. Our input basis is
now chosen as {v1, ..., vr, vr+1,
..., vn }. The numbering is the same as that for the
eigenvalues. We now define the matrix V via
V = [ v1 ... vr vr+1
... vn ].
S = [ [z11/2 u1]U [z21/2 u2]U ... [zk1/2 ur]U [ 0 ]U ... [ 0 ]U ]
S = [ z11/2 [u1]U ... zr1/2 [ur]U 0 ... 0 ]
S = [ z11/2 e1 ... zr1/2 er 0 ... 0 ].
If we let sk = zk1/2 for k = 1, ..., r, we get the same S as the one given in the statement of the theorem. These sk's are the singular values of A. The matrix S is related to A via multiplication by change-of-basis matrices. The matrix U changes from new output to old output bases, and V changes from new input to old input bases. Since VT = V-1, we have that VT changes from old input to new input bases. In the end, this gives us A =USVT
2 -2 1 1 -2 2Here, ATA =
9 -7 -7 9The eigenvalues of this matrix are z1 = 16 and z2 = 2. The singular values are s1 = 4 and s2 = 21/2. We can immediately write out what S is. We have S =
4 0 0 21/2 0 0The eigenvector corresponding to 16 is v1 = 2-1/2(1,-1)T, and the one corresponding to 4 is v2 = 2-1/2(1,1)T. Hence, we see that V =
2-1/2 2-1/2 -2-1/2 2-1/2Next, we find the u's.
u1 = A v1 / z11/2
u1 = 2-1/2 (4, 0, -4)T/4
u1 =( 2-1/2 , 0, - 2-1/2 )T.
A simlar calculation gives us
u2 =( 0, 1, 0 )T.
We now have to add to these to a "fill" vector
u3 =( 2-1/2 , 0, 2-1/2 )T
to complete the new output basis. This finally yields U =
2-1/2 0 2-1/2 0 1 0 -2-1/2 0 2-1/2