Singular Value Decomposition (SVD) of a 2×2 Matrix
The singular value decomposition (SVD) factorizes any real matrix ( A \in \mathbb{R}^{m \times n} ) as:
[
A = U \Sigma V^T
]
where:
- ( U \in \mathbb{R}^{m \times m} ) is orthogonal (( U^T U = I )),
- ( \Sigma \in \mathbb{R}^{m \times n} ) is diagonal with non-negative singular values ( \sigma_1 \geq \sigma_2 \geq \cdots \geq 0 ) on the diagonal,
- ( V \in \mathbb{R}^{n \times n} ) is orthogonal (( V^T V = I )).
For a 2×2 matrix, the process is straightforward. Here's the general algorithm:
- Compute ( M = A^T A ) (a 2×2 symmetric positive semi-definite matrix).
- Find the eigenvalues ( \lambda_1 \geq \lambda_2 \geq 0 ) of ( M ); the singular values are ( \sigma_1 = \sqrt{\lambda_1} ), ( \sigma_2 = \sqrt{\lambda_2} ).
- Find orthonormal eigenvectors ( \mathbf{v}_1, \mathbf{v}_2 ) of ( M ) corresponding to ( \lambda_1, \lambda_2 ) (columns of ( V )).
- Compute ( \mathbf{u}_1 = \frac{A \mathbf{v}_1}{\sigma_1} ), ( \mathbf{u}_2 = \frac{A \mathbf{v}_2}{\sigma_2} ) (columns of ( U )).
- Form ( \Sigma = \begin{pmatrix} \sigma_1 & 0 \ 0 & \sigma_2 \end{pmatrix} ).
(If ( \sigma_2 = 0 ), set ( \mathbf{u}_2 ) to any unit vector orthogonal to ( \mathbf{u}_1 ). Signs can be flipped as long as ( U ) and ( V ) are consistent.)
Example: ( A = \begin{pmatrix} 2 & 1 \ 1 & 2 \end{pmatrix} )
-
( A^T A = \begin{pmatrix} 2 & 1 \ 1 & 2 \end{pmatrix} \begin{pmatrix} 2 & 1 \ 1 & 2 \end{pmatrix} = \begin{pmatrix} 5 & 4 \ 4 & 5 \end{pmatrix} ).
-
Characteristic equation: ( \det\begin{pmatrix} 5-\lambda & 4 \ 4 & 5-\lambda \end{pmatrix} = (\lambda-9)(\lambda-1) = 0 ), so ( \lambda_1 = 9 ), ( \lambda_2 = 1 ).
Singular values: ( \sigma_1 = 3 ), ( \sigma_2 = 1 ).
-
Eigenvectors of ( A^T A ):
- For ( \lambda_1 = 9 ): ( \mathbf{v}_1 = \frac{1}{\sqrt{2}} \begin{pmatrix} 1 \ 1 \end{pmatrix} ).
- For ( \lambda_2 = 1 ): ( \mathbf{v}_2 = \frac{1}{\sqrt{2}} \begin{pmatrix} 1 \ -1 \end{pmatrix} ).
( V = \frac{1}{\sqrt{2}} \begin{pmatrix} 1 & 1 \ 1 & -1 \end{pmatrix} ).
-
( \mathbf{u}_1 = \frac{A \mathbf{v}_1}{3} = \frac{1}{\sqrt{2}} \begin{pmatrix} 1 \ 1 \end{pmatrix} ),
( \mathbf{u}_2 = \frac{A \mathbf{v}_2}{1} = \frac{1}{\sqrt{2}} \begin{pmatrix} 1 \ -1 \end{pmatrix} ).
( U = \frac{1}{\sqrt{2}} \begin{pmatrix} 1 & 1 \ 1 & -1 \end{pmatrix} ) (note ( U = V ) since ( A ) is symmetric and positive definite).
-
( \Sigma = \begin{pmatrix} 3 & 0 \ 0 & 1 \end{pmatrix} ).
Verification: ( U \Sigma V^T = A ) (you can multiply to check).
Full SVD:
[
A = \left( \frac{1}{\sqrt{2}} \begin{pmatrix} 1 & 1 \ 1 & -1 \end{pmatrix} \right) \begin{pmatrix} 3 & 0 \ 0 & 1 \end{pmatrix} \left( \frac{1}{\sqrt{2}} \begin{pmatrix} 1 & 1 \ 1 & -1 \end{pmatrix} \right)^T
]
If you provide a specific 2×2 matrix, I can compute its exact SVD! (Tools like NumPy/MATLAB also work for numerical cases.)