Three-Stage SVD Unit Circle → Hyperellipse Decomposition Lab
Step through Vᵀ (rotate), Σ (stretch by σ₁, σ₂), and U (rotate).
Factor any matrix A = U Σ Vᵀ into an input rotation Vᵀ, principal axis stretch Σ, and output rotation U.
Principal Component Analysis (PCA), low-rank image compression, pseudoinverse robot kinematics A⁺, and latent semantic recommendation matrices.
What happens when a matrix is rectangular or defective and lacks an eigenbasis—is there still an orthogonal coordinate decomposition that always works?
Singular Value Decomposition factors every matrix (square, rectangular, or singular) as : an input orthonormal rotation/reflection , axis-aligned non-negative stretches , and an output orthonormal frame .
Geometrically, SVD shows that every linear transformation turns orthogonal axes into the orthogonal semi-axes of a stretched hyperellipse, unlocking optimal low-rank data compression.
How can ANY matrix—even a rank-deficient shear or rectangular matrix with zero eigenvectors—always turn an orthogonal pair of input axes into an orthogonal pair of ellipse semi-axes?
Step continuously from Stage 0 to Stage 3 (x → Vᵀx → ΣVᵀx → UΣVᵀx) and toggle the rank-1 outer product σ₁u₁v₁ᵀ overlay to inspect compression energy capture.
While SVD generalizes orthogonal axes to arbitrary rectangular matrices, complex square operators split into Hermitian, Skew-Hermitian, and Unitary spectral classes unified by the Cayley–Hamilton Theorem in Chapter 2.3.4.
Preparing interactive canvas & numerical solver…
wanna math drafting viewport
Every matrix—even non-square or defective—maps an orthonormal input basis onto orthogonal semi-axes .
Right singular vectors diagonalize , guaranteeing orthogonal principal directions with non-negative stretches .
Dropping smaller singular terms yields the provably optimal low-rank compression across image, PCA, and recommender pipelines.
Diagonalizing the symmetric positive-semidefinite Gram matrix yields ordered singular values and orthonormal inputs . Mapping each positive direction forward produces unit vectors , which extend to orthonormal bases of and .
The first columns of span row space while the remaining span ; in output space, the last columns of span left nullspace , giving orthogonal bases for all four fundamental subspaces.
The spectral condition number measures sensitivity to perturbation, while the Moore–Penrose pseudoinverse returns the minimum-norm least-squares solution. By Eckart–Young–Mirsky, rank- truncation achieves optimal error and .
Step through Vᵀ (rotate), Σ (stretch by σ₁, σ₂), and U (rotate).
Three-Stage SVD Factorization Stepper
Factor any matrix into input rotation (), orthogonal axis stretch (), and output rotation ().
Exact SVD Matrix Factors
Singular Spectrum & Compression Readout