where
- is
- : An Orthogonal matrix matrix whose columns are the left singular vectors of .
- : A diagonal matrix containing the singular values of in descending order.
- : The transpose of an Orthogonal matrix where the columns are the right singular vectors of .
Steps
- calculate
- calculate Eigenvalues of by solving , where is identify matrix
- then is from those
- calculate right singular vectors(should be unit vectors), for each ,
- calculate left singular vectors(should be unit vectors), for each ,
3x2 example
ref https://www.geeksforgeeks.org/singular-value-decomposition-svd/
Then we can get some Eigenvalues, and and Singular value and .
we can say
For each of them, calculate eigenvectors
where
RREF it
so and
so do
RREF it
so and
Then for , since it must perpendicular to , we can say and is true. Solve these two equations to get .
Then
Lastly need to find with similar steps.
RREF it
so
RREF it
so
Then
Therefore