Eigenvalues, Eigenvectors, and Decompositions
- Find the eigenvalues of a matrix by solving the characteristic equation and compute corresponding eigenvectors
- Apply the spectral theorem to write a symmetric matrix as A = Q Lambda Q^T and explain why this guarantees real eigenvalues and orthogonal eigenvectors
- Interpret the SVD factors U, Sigma, V^T geometrically and identify what each does to an input vector
- Explain PCA as eigendecomposition of the sample covariance matrix and state what the eigenvalues and eigenvectors represent
- Distinguish positive definite from positive semi-definite matrices by their eigenvalues and identify which arises from covariance matrices
Eigenvalues and Eigenvectors
When a matrix multiplies most vectors, both the direction and magnitude change. An eigenvector is a special nonzero vector whose direction is preserved — it is only scaled:
The scalar is the corresponding eigenvalue. The eigenvector gets stretched (), compressed (), reversed (), or left unchanged () — but never rotated off its line.
Finding Eigenvalues: Characteristic Equation
Rearranging gives . For a nonzero solution to exist, the matrix must be singular:
This is the characteristic equation. For an matrix it produces a degree- polynomial in — the characteristic polynomial — whose roots are the eigenvalues (counted with multiplicity, possibly complex).
Example: 2×2 matrix
For :
Eigenvalues: , . For each, substitute back to find the eigenvector by solving .
Properties
- — trace equals sum of eigenvalues
- — determinant equals product of eigenvalues
- If is an eigenvalue, is singular (verifies the determinant connection)
- Eigenvalues of are
- Eigenvalues of are
Symmetric Matrices: Spectral Theorem
For symmetric matrices (), the eigenstructure is especially clean. The spectral theorem guarantees:
- All eigenvalues are real
- Eigenvectors corresponding to distinct eigenvalues are orthogonal
- There exists a complete orthonormal basis of eigenvectors
This means any symmetric matrix can be decomposed as:
where is an orthogonal matrix whose columns are the eigenvectors, and is the diagonal matrix of eigenvalues. This is the eigendecomposition (or spectral decomposition).
Since is orthogonal (), this can also be written:
Each term is a rank-1 matrix — a scaled outer product. The full matrix is a sum of rank-1 pieces along orthogonal directions.
Positive Definite Matrices
A symmetric matrix is positive definite (PD) if:
Equivalently: all eigenvalues are strictly positive. It is positive semi-definite (PSD) if (eigenvalues ).
Covariance matrices are always PSD (PD when the data has full rank). The 3DGS covariance is PSD by construction — is diagonal with non-negative entries, so has non-negative eigenvalues, and orthogonal preserves the sign.
Singular Value Decomposition (SVD)
The eigendecomposition requires a square matrix. The singular value decomposition generalizes it to any matrix:
where:
- is orthogonal — left singular vectors (columns span the column space of )
- is diagonal — singular values on the diagonal
- is orthogonal — right singular vectors (columns span the row space of )
The singular values are the square roots of the eigenvalues of (equivalently ). The number of nonzero singular values equals the rank of .
Truncated SVD and Low-Rank Approximation
Keeping only the top singular values gives the best rank- approximation of in the Frobenius norm:
This is the mathematical foundation of PCA, latent semantic analysis, and matrix factorization methods. Throwing away small singular values discards the directions of least variance while retaining the most informative structure.
Application: PCA via Eigendecomposition
Given a data matrix ( observations, features, mean-centered), the sample covariance matrix is:
is , symmetric, and positive semi-definite. Its eigendecomposition gives:
- Principal components: the eigenvectors (columns of ) — orthogonal directions of maximum variance
- Explained variance: the eigenvalue is the variance of the data projected onto
- Projection: (where keeps the top eigenvectors) gives the -dimensional PCA embedding
In 3DGS, each Gaussian's scale parameters define the square roots of the eigenvalues of the Gaussian's covariance — they directly encode the variance along the three principal axes of the ellipsoid.
Cholesky Decomposition
For a positive definite matrix , the Cholesky decomposition is:
where is a lower triangular matrix with positive diagonal entries. It is the matrix analogue of the square root. Cholesky is numerically preferred over full eigendecomposition when you only need a factored form — it runs in rather than and is more numerically stable. It is used in multivariate normal sampling and as a preconditioner in optimization.