The Singular Value Decomposition

Every linear map distorts space in three ways. It can stretch, rotate, and possibly collapse dimensions. How can we measure this distortion in the cleanest possible way? The Singular Value Decomposition (SVD) answers this question. It finds two orthonormal bases — one for the domain, one for the codomain. Between these bases, the map acts as pure diagonal scaling. No other decomposition applies to every linear map between inner product spaces. This holds regardless of whether the map is square, invertible, or normal. The SVD matters because it isolates exactly the numerical invariants of a linear map. These invariants survive under orthonormal change of basis: the singular values. These numbers quantify how much the map stretches vectors. They measure stretching in the "best-fitting" orthogonal directions. They also generalize eigenvalues to maps that are not even square. Eigenvalues can be complex, negative, or simply nonexistent for a satisfactory basis. Singular values, by contrast, are always real and nonnegative. An orthonormal eigenbasis-like structure always exists for them. The construction proceeds through the positive operator T∗TT^*T. Its eigenvalues are nonnegative real numbers. Its square roots are precisely the singular values of TT. This ties the SVD tightly to the theory of Positive Operators and Square Roots. It also connects closely to The Adjoint of a Linear Map. Both are prerequisites for the argument given here. The output is a clean geometric picture. TT sends an orthonormal basis of eigenvectors of T∗TT^*T to orthogonal vectors. The lengths of these vectors are the singular values. This article builds the SVD from first principles. It defines singular values via T∗TT^*T. It proves the existence of the full decomposition with matching orthonormal bases. It shows how to read the decomposition as a diagonal matrix representation. It closes by connecting the SVD to two of its major descendants. These are the Polar Decomposition and Least Squares Approximation.

Key takeaways
  • Singular values of T:V→WT: V \to W are the nonnegative square roots of the eigenvalues of the positive operator T∗TT^*T on VV.
  • The SVD produces orthonormal bases e1,…,ene_1,\dots,e_n of VV and f1,…,fnf_1,\dots,f_n of range⁡T\operatorname{range} T (extendable to all of WW) with Tej=sjfjTe_j = s_j f_j.
  • Every linear map T:V→WT:V\to W between finite-dimensional inner product spaces admits such a decomposition — no invertibility or squareness required.
  • In matrix language, A=UΣV∗A = U\Sigma V^* with U,VU,V unitary/orthogonal and Σ\Sigma diagonal with nonnegative entries.
  • The number of nonzero singular values equals rank⁡T\operatorname{rank} T; the largest singular value equals the operator norm ∥T∥\|T\|.
  • Key idea: diagonalize the positive operator T∗TT^*T, take square roots of its eigenvalues, and transport the eigenbasis forward through TT to get an orthogonal target basis.

Where this lives today

The SVD underlies principal component analysis in statistics and machine learning, where the singular vectors of a data matrix reveal the directions of maximal variance. It gives the theoretically optimal low-rank matrix approximation (the Eckart–Young theorem), used in image compression, recommender systems, and model reduction. In numerical linear algebra, the SVD provides the most numerically stable way to compute the rank, condition number, and pseudoinverse of a matrix, and underlies the Least Squares Approximation solution to overdetermined linear systems via the Moore–Penrose pseudoinverse. In signal processing, it powers noise reduction and system identification. In quantum information theory, the analogous "Schmidt decomposition" of a bipartite quantum state is precisely an SVD of the state's coefficient matrix, and it quantifies entanglement. In cryptography and coding theory, spectral norms bounded via the largest singular value control error propagation and security parameters of certain lattice-based schemes. The SVD is also the computational engine behind the Polar Decomposition, writing any operator as an isometry composed with a positive operator, which in turn is used in continuum mechanics to separate rotation from stretching in deformation gradients.

Ask the tutor: How does truncating the SVD to its largest kk singular values give the provably best rank-kk approximation of a matrix?

DefinitionSingular Values and the Singular Value Decomposition

Let VV and WW be finite-dimensional inner product spaces over F\mathbf{F} (F=R\mathbf{F} = \mathbf{R} or C\mathbf{C}), and let T∈L(V,W)T \in \mathcal{L}(V,W).

Singular values. The operator T∗T∈L(V)T^*T \in \mathcal{L}(V) is positive (self-adjoint with ⟨T∗Tv,v⟩=∥Tv∥2≥0\langle T^*Tv,v\rangle = \|Tv\|^2 \ge 0 for all vv). By the spectral theorem for positive operators, T∗TT^*T has an orthonormal eigenbasis with nonnegative eigenvalues. The singular values of TT are the numbers

sj=λj,j=1,…,n=dim⁡V,s_j = \sqrt{\lambda_j}, \qquad j = 1,\dots,n=\dim V,

where λ1,…,λn≥0\lambda_1,\dots,\lambda_n \ge 0 are the eigenvalues of T∗TT^*T (with multiplicity), conventionally listed in decreasing order s1≥s2≥⋯≥sn≥0s_1 \ge s_2 \ge \cdots \ge s_n \ge 0.

Singular Value Decomposition. A singular value decomposition of TT consists of:

  • an orthonormal basis e1,…,ene_1,\dots,e_n of VV consisting of eigenvectors of T∗TT^*T, with T∗Tej=sj2ejT^*Te_j = s_j^2 e_j;
  • an orthonormal list f1,…,fnf_1,\dots,f_n in WW;

such that

Tv=∑j=1nsj⟨v,ej⟩fjfor all v∈V.Tv = \sum_{j=1}^n s_j \langle v, e_j\rangle f_j \qquad \text{for all } v \in V.

Equivalently, Tej=sjfjTe_j = s_j f_j for each jj, and TT is represented as a diagonal matrix with entries s1,…,sns_1,\dots,s_n with respect to the bases (ej)(e_j) and (any extension of) (fj)(f_j).

Intuition

Think of TT as a machine that takes an input vector and produces an output vector, possibly changing its length, direction, and even the ambient dimension. The SVD says: however complicated TT looks in arbitrary coordinates, there is one specific orthonormal basis of the input space that TT treats as "principal axes." Feed TT a unit vector along one of these axes, and out comes a vector along a corresponding orthogonal axis in the output space, scaled by a factor sj≥0s_j \geq 0 — the singular value. Geometrically, TT maps the unit sphere of VV to an ellipsoid in WW (possibly degenerate, if some sj=0s_j = 0). The singular values are exactly the semi-axis lengths of that ellipsoid, and the vectors eje_j are the directions in the domain that map onto those semi-axes. This is why the SVD works for every linear map: the image of a sphere under any linear map is always an ellipsoid (possibly flattened into a lower-dimensional one), and every ellipsoid has well-defined principal axes.

Figure
The unit ball in VV maps to an ellipsoid in WW with semi-axes s1,s2s_1, s_2
e₁ e₂ unit ball in V T s₁f₁ s₂f₂ ellipsoid image T(ball)

The key algebraic fact making this picture rigorous is that T∗TT^*T is positive, hence orthogonally diagonalizable with nonnegative eigenvalues — a fact borrowed directly from the theory of positive operators. Taking square roots of those eigenvalues gives lengths, not just abstract scalars, and the adjoint relationship T∗TT^*T (rather than TT∗TT^* or some asymmetric combination) is exactly what forces the images TejTe_j to be mutually orthogonal, as the proof below verifies.

TheoremExistence of the Singular Value Decomposition

Let V,WV,W be finite-dimensional inner product spaces over F\mathbf F, with dim⁡V=n\dim V = n, and let T∈L(V,W)T \in \mathcal L(V,W). Let s1,…,sn≥0s_1,\dots,s_n \ge 0 be the singular values of TT (square roots of the eigenvalues of T∗TT^*T, listed with multiplicity). Then there exists an orthonormal basis e1,…,ene_1,\dots,e_n of VV and an orthonormal list f1,…,fnf_1,\dots,f_n in WW such that

Tv=∑j=1nsj⟨v,ej⟩fjfor all v∈V.Tv = \sum_{j=1}^n s_j\langle v,e_j\rangle f_j \quad \text{for all } v \in V.

Moreover: 1. The number of nonzero sjs_j equals rank⁡T\operatorname{rank} T. 2. s1=max⁡{∥Tv∥:v∈V,∥v∥=1}s_1 = \max\{\|Tv\| : v \in V, \|v\|=1\}, i.e. the largest singular value is the operator norm ∥T∥\|T\|. 3. The list f1,…,fnf_1,\dots,f_n can be extended to an orthonormal basis of WW, and with respect to the bases (ej)(e_j) of VV and this extended basis of WW, the matrix of TT is diagonal with entries s1,…,sns_1,\dots,s_n (padded with zero rows if dim⁡W>n\dim W > n).

Proof

Step 1: Set-up via the spectral theorem for positive operators. The operator T∗T∈L(V)T^*T \in \mathcal L(V) satisfies (T∗T)∗=T∗T∗∗=T∗T(T^*T)^* = T^*T^{**} = T^*T, so T∗TT^*T is self-adjoint. For every v∈Vv \in V,

⟨T∗Tv,v⟩=⟨Tv,Tv⟩=∥Tv∥2≥0,\langle T^*Tv, v\rangle = \langle Tv, Tv\rangle = \|Tv\|^2 \ge 0,

using the defining property of the adjoint (see The Adjoint of a Linear Map). Hence T∗TT^*T is a positive operator. By the spectral theorem for positive (in particular, self-adjoint) operators — established under Positive Operators and Square Roots — there is an orthonormal basis e1,…,ene_1,\dots,e_n of VV consisting of eigenvectors of T∗TT^*T, with corresponding eigenvalues λ1,…,λn≥0\lambda_1,\dots,\lambda_n \ge 0. Define sj=λj≥0s_j = \sqrt{\lambda_j} \ge 0; these are the singular values of TT by definition, and we order them s1≥⋯≥sn≥0s_1 \ge \cdots \ge s_n \ge 0 (relabeling the eje_j if necessary).

Step 2: The images TejTe_j are pairwise orthogonal with the right lengths. For j≠kj \ne k,

⟨Tej,Tek⟩=⟨T∗Tej,ek⟩=⟨sj2ej,ek⟩=sj2⟨ej,ek⟩=0,\langle Te_j, Te_k\rangle = \langle T^*Te_j, e_k\rangle = \langle s_j^2 e_j, e_k\rangle = s_j^2\langle e_j,e_k\rangle = 0,

since ej⊥eke_j \perp e_k (orthonormality of the eigenbasis). Also

∥Tej∥2=⟨Tej,Tej⟩=⟨T∗Tej,ej⟩=sj2⟨ej,ej⟩=sj2,\|Te_j\|^2 = \langle Te_j,Te_j\rangle = \langle T^*Te_j,e_j\rangle = s_j^2\langle e_j,e_j\rangle = s_j^2,

so ∥Tej∥=sj\|Te_j\| = s_j.

Step 3: Define fjf_j and verify the formula. For each jj with sj>0s_j > 0, define

fj=1sjTej.f_j = \frac{1}{s_j}Te_j.

By Step 2, ∥fj∥=1\|f_j\| = 1 and fj⊥fkf_j \perp f_k whenever j≠kj \ne k and both sj,sk>0s_j, s_k > 0 (the orthogonality computed above divides through by nonzero scalars without changing the conclusion). For indices jj with sj=0s_j = 0, choose fjf_j to be any unit vectors in WW, orthonormal to each other and to all fkf_k already chosen for sk>0s_k > 0; this is possible by the Gram–Schmidt procedure applied within a suitable finite-dimensional subspace of WW (extend the partial orthonormal list to an orthonormal basis of WW, using dim⁡W<∞\dim W < \infty, and use as many new vectors as needed). This yields an orthonormal list f1,…,fnf_1,\dots,f_n in WW, well-defined regardless of whether some sjs_j vanish, satisfying

Tej=sjfjfor every j=1,…,n,Te_j = s_j f_j \quad \text{for every } j = 1,\dots,n,

since for sj>0s_j > 0 this is the definition of fjf_j rearranged, and for sj=0s_j = 0 both sides equal 00 (the left side because ∥Tej∥=sj=0\|Te_j\| = s_j = 0). Now for arbitrary v∈Vv \in V, since e1,…,ene_1,\dots,e_n is an orthonormal basis of VV, we may write

v=∑j=1n⟨v,ej⟩ej.v = \sum_{j=1}^n \langle v,e_j\rangle e_j.

Applying TT and using linearity together with Tej=sjfjTe_j = s_jf_j,

Tv=∑j=1n⟨v,ej⟩Tej=∑j=1nsj⟨v,ej⟩fj.Tv = \sum_{j=1}^n \langle v,e_j\rangle Te_j = \sum_{j=1}^n s_j\langle v,e_j\rangle f_j.

This proves the main assertion.

Step 4: Rank equals the number of nonzero singular values. From Tv=∑jsj⟨v,ej⟩fjTv = \sum_j s_j\langle v,e_j\rangle f_j, the range of TT is spanned by {fj:sj≠0}\{f_j : s_j \ne 0\}: indeed each such fj=1sjTejf_j = \frac{1}{s_j}Te_j lies in range⁡T\operatorname{range} T, and every TvTv is a linear combination of these fjf_j (terms with sj=0s_j = 0 vanish). Since the fjf_j with sj≠0s_j \ne 0 are orthonormal, hence linearly independent, they form a basis of range⁡T\operatorname{range} T. Therefore

rank⁡T=dim⁡range⁡T=#{j:sj≠0}.\operatorname{rank} T = \dim \operatorname{range} T = \#\{j : s_j \ne 0\}.

Step 5: The largest singular value is the operator norm. Let v∈Vv \in V with ∥v∥=1\|v\|=1. Write v=∑jcjejv = \sum_j c_j e_j with cj=⟨v,ej⟩c_j = \langle v,e_j\rangle, so ∑j∣cj∣2=∥v∥2=1\sum_j |c_j|^2 = \|v\|^2 = 1 by Parseval's identity (orthonormality of (ej)(e_j)). Then, using that (fj)(f_j) is orthonormal so ∥Tv∥2=∑jsj2∣cj∣2\|Tv\|^2 = \sum_j s_j^2|c_j|^2 by the Pythagorean theorem applied to the orthogonal vectors sjcjfjs_jc_jf_j,

∥Tv∥2=∥∑jsjcjfj∥2=∑jsj2∣cj∣2≤s12∑j∣cj∣2=s12,\|Tv\|^2 = \left\|\sum_j s_jc_jf_j\right\|^2 = \sum_j s_j^2|c_j|^2 \le s_1^2\sum_j|c_j|^2 = s_1^2,

since sj≤s1s_j \le s_1 for all jj. Hence ∥Tv∥≤s1\|Tv\| \le s_1 for all unit vv, so ∥T∥≤s1\|T\| \le s_1. Equality is attained at v=e1v = e_1: ∥Te1∥=s1\|Te_1\| = s_1 by Step 2. Therefore ∥T∥=s1\|T\| = s_1.

Step 6: Diagonal matrix representation. By Step 3, f1,…,fnf_1,\dots,f_n is an orthonormal list in WW; extend it (via Gram–Schmidt, using dim⁡W<∞\dim W < \infty) to an orthonormal basis f1,…,fn,fn+1,…,fmf_1,\dots,f_n,f_{n+1},\dots,f_m of WW where m=dim⁡Wm = \dim W. With respect to the basis (ej)j=1n(e_j)_{j=1}^n of VV and this basis of WW, the matrix of TT has jj-th column equal to the coordinate vector of Tej=sjfjTe_j = s_jf_j in the basis (fi)(f_i), which is sjs_j times the standard basis vector in coordinate jj. Thus the matrix is diagonal (an m×nm \times n matrix, square only if m=nm=n) with diagonal entries s1,…,sns_1,\dots,s_n and all other entries zero. This completes the proof.

∎

Worked examples

Example 1: A non-square, asymmetric 3×23\times 2 real matrix. Let T:R2→R3T: \mathbf R^2 \to \mathbf R^3 be given, in standard bases, by the matrix

A=(200011).A = \begin{pmatrix} 2 & 0 \\ 0 & 0 \\ 1 & 1 \end{pmatrix}.

We compute A∗A=ATAA^*A = A^TA:

ATA=(201001)(200011)=(5111).A^TA = \begin{pmatrix} 2 & 0 & 1 \\ 0 & 0 & 1\end{pmatrix}\begin{pmatrix} 2 & 0 \\ 0 & 0 \\ 1 & 1\end{pmatrix} = \begin{pmatrix} 5 & 1 \\ 1 & 1 \end{pmatrix}.

This is a symmetric 2×22\times 2 real matrix, hence self-adjoint on R2\mathbf R^2 with the standard inner product; it is positive since it equals ATAA^TA. Its characteristic polynomial is

det⁡(ATA−λI)=(5−λ)(1−λ)−1=λ2−6λ+4.\det(A^TA - \lambda I) = (5-\lambda)(1-\lambda) - 1 = \lambda^2 - 6\lambda + 4.

The eigenvalues are λ=6±36−162=3±5\lambda = \dfrac{6 \pm \sqrt{36-16}}{2} = 3 \pm \sqrt5. Both are positive (since 5<3\sqrt5 < 3), consistent with positivity of ATAA^TA. The singular values of TT are

s1=3+5,s2=3−5.s_1 = \sqrt{3+\sqrt5}, \qquad s_2 = \sqrt{3-\sqrt5}.

Numerically, 5≈2.2361\sqrt5 \approx 2.2361, so s1≈5.2361≈2.2882s_1 \approx \sqrt{5.2361}\approx 2.2882 and s2≈0.7639≈0.8740s_2 \approx \sqrt{0.7639}\approx 0.8740. Eigenvectors of ATAA^TA. For λ1=3+5\lambda_1 = 3+\sqrt5: solve (5−λ1)x1+x2=0(5-\lambda_1)x_1 + x_2 = 0, i.e. x2=(λ1−5)x1=(5−2)x1x_2 = (\lambda_1-5)x_1 = (\sqrt5 - 2)x_1. Take x1=1x_1 = 1, x2=5−2≈0.2361x_2 = \sqrt5-2 \approx 0.2361. Normalizing: ∥(1,5−2)∥2=1+(5−2)2=1+9−45=10−45≈1.0557\|(1,\sqrt5-2)\|^2 = 1 + (\sqrt5-2)^2 = 1 + 9 - 4\sqrt5 = 10-4\sqrt5 \approx 1.0557, so norm ≈1.0275\approx 1.0275. Thus

e1≈(0.9732, 0.2298).e_1 \approx (0.9732,\ 0.2298).

For λ2=3−5\lambda_2 = 3-\sqrt5: x2=(λ2−5)x1=(−5−2)x1x_2 = (\lambda_2-5)x_1 = (-\sqrt5-2)x_1; take x1=1x_1=1, x2=−5−2≈−4.2361x_2 = -\sqrt5-2\approx -4.2361, normalize by 1+(5+2)2=1+9+45=10+45≈18.944≈4.3524\sqrt{1+(\sqrt5+2)^2} = \sqrt{1+9+4\sqrt5} = \sqrt{10+4\sqrt5}\approx\sqrt{18.944}\approx 4.3524:

e2≈(0.2298, −0.9732).e_2 \approx (0.2298,\ -0.9732).

As a check, e1⋅e2≈0.9732(0.2298)+0.2298(−0.9732)=0e_1 \cdot e_2 \approx 0.9732(0.2298) + 0.2298(-0.9732) = 0, confirming orthogonality. Computing fj=1sjAejf_j = \frac{1}{s_j}Ae_j.

Ae1≈(2(0.9732)00.9732+0.2298)=(1.946401.2030),∥Ae1∥≈3.7885+1.4472=5.2357≈2.2882=s1. ✓Ae_1 \approx \begin{pmatrix}2(0.9732)\\0\\0.9732+0.2298\end{pmatrix} = \begin{pmatrix}1.9464\\0\\1.2030\end{pmatrix},\qquad \|Ae_1\| \approx \sqrt{3.7885+1.4472}=\sqrt{5.2357}\approx 2.2882 = s_1.\ \checkmark

So

f1≈12.2882(1.9464, 0, 1.2030)≈(0.8507, 0, 0.5258).f_1 \approx \frac{1}{2.2882}(1.9464,\,0,\,1.2030) \approx (0.8507,\ 0,\ 0.5258).

Similarly,

Ae2≈(2(0.2298)00.2298−0.9732)=(0.45960−0.7434),∥Ae2∥≈0.2113+0.5526=0.7639≈0.8740=s2. ✓Ae_2 \approx \begin{pmatrix}2(0.2298)\\0\\0.2298-0.9732\end{pmatrix} = \begin{pmatrix}0.4596\\0\\-0.7434\end{pmatrix}, \qquad \|Ae_2\|\approx\sqrt{0.2113+0.5526}=\sqrt{0.7639}\approx0.8740 = s_2.\ \checkmark

So

f2≈10.8740(0.4596, 0, −0.7434)≈(0.5259, 0, −0.8507).f_2 \approx \frac{1}{0.8740}(0.4596,\,0,\,-0.7434) \approx (0.5259,\ 0,\ -0.8507).

Check orthogonality: f1⋅f2≈0.8507(0.5259)+0+0.5258(−0.8507)≈0.4475−0.4474≈0f_1\cdot f_2 \approx 0.8507(0.5259) + 0 + 0.5258(-0.8507) \approx 0.4475 - 0.4474 \approx 0. Good. Since rank⁡A=2\operatorname{rank} A = 2 (both singular values are nonzero, the columns of AA are visibly independent), we extend f1,f2f_1,f_2 to an orthonormal basis of R3\mathbf R^3 by adjoining any unit vector f3f_3 orthogonal to both, e.g. via the cross product f1×f2f_1 \times f_2, normalized. This exhibits the full diagonal representation

Ae1=s1f1,Ae2=s2f2,Ae_1 = s_1f_1,\qquad Ae_2 = s_2f_2,

with TT represented as diag⁡(s1,s2)\operatorname{diag}(s_1,s_2) (padded with a zero row) in the bases (e1,e2)(e_1,e_2) and (f1,f2,f3)(f_1,f_2,f_3).

Example 2: A singular 2×22\times 2 complex matrix (rank deficient, illustrating a zero singular value). Let T:C2→C2T:\mathbf C^2\to\mathbf C^2 be given by

A=(1i22i).A = \begin{pmatrix} 1 & i \\ 2 & 2i\end{pmatrix}.

Note the second row is 22 times the first, so rank⁡A=1\operatorname{rank} A = 1; we expect exactly one nonzero singular value. Compute A∗=A‾T=(12−i−2i)A^* = \overline{A}^T = \begin{pmatrix}1 & 2\\ -i & -2i\end{pmatrix}, so

A∗A=(12−i−2i)(1i22i)=(1+4i+4i−i−4i1+4)=(55i−5i5).A^*A = \begin{pmatrix}1 & 2\\ -i & -2i\end{pmatrix}\begin{pmatrix}1 & i\\ 2 & 2i\end{pmatrix} = \begin{pmatrix}1+4 & i+4i\\ -i-4i & 1+4\end{pmatrix} = \begin{pmatrix}5 & 5i\\ -5i & 5\end{pmatrix}.

Check self-adjointness: (A∗A)∗=(5−5i‾5i‾5)=(55i−5i5)=A∗A(A^*A)^* = \begin{pmatrix}5 & \overline{-5i}\\ \overline{5i} & 5\end{pmatrix} = \begin{pmatrix}5 & 5i\\-5i&5\end{pmatrix} = A^*A. Good, and it should be positive since it equals A∗AA^*A. Eigenvalues: det⁡(A∗A−λI)=(5−λ)2−(5i)(−5i)=(5−λ)2−25=0\det(A^*A - \lambda I) = (5-\lambda)^2 - (5i)(-5i) = (5-\lambda)^2 - 25 = 0, so (5−λ)2=25(5-\lambda)^2 = 25, giving 5−λ=±55-\lambda = \pm5, i.e. λ=0\lambda = 0 or λ=10\lambda = 10. Both nonnegative, as required. Singular values:

s1=10,s2=0.s_1 = \sqrt{10}, \qquad s_2 = 0.

Eigenvector for λ1=10\lambda_1=10: solve (5−10)x1+5ix2=0⇒−5x1+5ix2=0⇒x1=ix2(5-10)x_1 + 5ix_2 = 0 \Rightarrow -5x_1 + 5ix_2 = 0 \Rightarrow x_1 = ix_2. Take x2=1x_2=1, x1=ix_1 = i: vector (i,1)(i,1), norm ∣i∣2+12=2\sqrt{|i|^2+1^2}=\sqrt2. So

e1=12(i,1).e_1 = \frac{1}{\sqrt2}(i,1).

Eigenvector for λ2=0\lambda_2=0: solve 5x1+5ix2=0⇒x1=−ix25x_1+5ix_2=0 \Rightarrow x_1 = -ix_2. Take x2=1,x1=−ix_2=1,x_1=-i: vector (−i,1)(-i,1), norm 2\sqrt2. So

e2=12(−i,1).e_2 = \frac{1}{\sqrt2}(-i,1).

Check orthonormality: ⟨e1,e2⟩=12(i(−i)‾+1⋅1‾)=12(i⋅i+1)=12(−1+1)=0\langle e_1,e_2\rangle = \frac{1}{2}\left(i\overline{(-i)} + 1\cdot\overline{1}\right) = \frac12(i\cdot i + 1) = \frac12(-1+1)=0. Good (using the convention ⟨u,v⟩=∑ukvk‾\langle u,v\rangle = \sum u_k\overline{v_k}). Compute f1=1s1Ae1f_1 = \frac{1}{s_1}Ae_1:

Ae1=12(1i22i)(i1)=12(i⋅1+i⋅12i+2i)=12(2i4i)=12(2i,4i).Ae_1 = \frac{1}{\sqrt2}\begin{pmatrix}1&i\\2&2i\end{pmatrix}\begin{pmatrix}i\\1\end{pmatrix} = \frac{1}{\sqrt2}\begin{pmatrix}i\cdot1 + i\cdot1\\ 2i+2i\end{pmatrix}=\frac{1}{\sqrt2}\begin{pmatrix}2i\\4i\end{pmatrix} = \frac{1}{\sqrt2}(2i,4i).

Norm: ∥12(2i,4i)∥=124+16=202=10=s1. ✓\left\|\frac{1}{\sqrt2}(2i,4i)\right\| = \frac{1}{\sqrt2}\sqrt{4+16} = \frac{\sqrt{20}}{\sqrt2} = \sqrt{10} = s_1.\ \checkmark So

f1=110⋅12(2i,4i)=120(2i,4i)=15(i,2i).f_1 = \frac{1}{\sqrt{10}}\cdot\frac{1}{\sqrt2}(2i,4i) = \frac{1}{\sqrt{20}}(2i,4i) = \frac{1}{\sqrt5}(i,2i).

Since s2=0s_2 = 0, Ae2=0Ae_2 = 0 automatically (check: Ae2=12(1i22i)(−i1)=12(−i⋅1+i−2i+2i)=12(0,0)=0Ae_2 = \frac{1}{\sqrt2}\begin{pmatrix}1&i\\2&2i\end{pmatrix}\begin{pmatrix}-i\\1\end{pmatrix} = \frac1{\sqrt2}\begin{pmatrix}-i\cdot1+i\\-2i+2i\end{pmatrix}=\frac1{\sqrt2}(0,0)=0, confirming), and we choose f2f_2 to be any unit vector orthogonal to f1f_1 in C2\mathbf C^2, e.g.

f2=15(2,−1),f_2 = \frac{1}{\sqrt5}(2,-1),

since ⟨f1,f2⟩=15⋅15(i⋅2+2i⋅(−1))=15(2i−2i)=0\langle f_1,f_2\rangle = \frac{1}{\sqrt5}\cdot\frac{1}{\sqrt5}(i\cdot 2 + 2i\cdot(-1)) = \frac15(2i-2i)=0. This gives the SVD Ae1=10 f1Ae_1 = \sqrt{10}\,f_1, Ae2=0Ae_2 = 0, matching rank⁡A=1\operatorname{rank} A = 1.

CounterexampleWhy T∗TT^*T, and not an arbitrary self-adjoint operator, is required

The theorem's proof relies on T∗TT^*T specifically being positive — this is what forces sj2≥0s_j^2 \ge 0 and lets us take real square roots. If one instead tried to build a "singular value decomposition" from the eigenvalues of an arbitrary self-adjoint operator SS unrelated to TT via S=T∗TS = T^*T, the construction collapses. Concretely, let V=W=R2V=W=\mathbf R^2 and let TT be represented by

A=(01−10)(a rotation by 90∘).A = \begin{pmatrix}0&1\\-1&0\end{pmatrix}\quad\text{(a rotation by }90^\circ\text{)}.

Suppose we tried to shortcut the construction by diagonalizing AA itself instead of ATAA^TA, treating the eigenvalues of AA as "singular values." The characteristic polynomial of AA is λ2+1=0\lambda^2+1=0, so AA has no real eigenvalues at all — there is no real orthonormal eigenbasis to even attempt this with. The shortcut fails immediately because AA is not self-adjoint (AT=−A≠AA^T = -A \ne A), so the spectral theorem for self-adjoint operators simply does not apply to AA. Contrast this with the correct construction: ATA=(0−110)(01−10)=(1001)=IA^TA = \begin{pmatrix}0&-1\\1&0\end{pmatrix}\begin{pmatrix}0&1\\-1&0\end{pmatrix} = \begin{pmatrix}1&0\\0&1\end{pmatrix} = I, which is self-adjoint and positive, with the (repeated) eigenvalue 11, giving singular values s1=s2=1s_1=s_2=1 — correctly reflecting that a rotation preserves lengths. The hypothesis "diagonalize T∗TT^*T," not "diagonalize TT itself" or "diagonalize some other self-adjoint operator," is essential; dropping it produces either nonsense (complex eigenvalues where none should appear) or simply the wrong numbers.

Scope, edge cases & common traps

SituationWhat happens
TT is invertible (square, ker⁡T=0\ker T = 0)All sj>0s_j > 0; SVD coincides with writing TT through its polar decomposition T=ST∗TT = S\sqrt{T^*T} times an isometry.
TT is not injectiveSome sj=0s_j = 0; corresponding ej∈ker⁡Te_j \in \ker T, since T∗Tej=0⇒∥Tej∥2=⟨T∗Tej,ej⟩=0T^*Te_j=0 \Rightarrow \|Te_j\|^2 = \langle T^*Te_j,e_j\rangle = 0.
dim⁡V≠dim⁡W\dim V \ne \dim WSVD still exists; the diagonal matrix is rectangular (m×nm\times n), padded with zero rows or the fjf_j list is simply shorter than a full basis of WW.
TT already self-adjoint/positiveSingular values equal ∣λi∣|\lambda_i| where λi\lambda_i are eigenvalues of TT; ej,fje_j, f_j coincide up to sign when λj≥0\lambda_j \geq 0.
Repeated singular value sjs_jThe eigenspace of T∗TT^*T for λj=sj2\lambda_j = s_j^2 has dimension >1>1; the choice of orthonormal basis within that eigenspace (and correspondingly of fjf_j's) is not unique, but the decomposition still holds for any such choice.
Choosing fjf_j when sj=0s_j = 0These vectors are not determined by TT — any orthonormal completion works, since Tej=0Te_j = 0 regardless of fjf_j.

The mathematician behind it

Origins · 1 minEugenio Beltrami and how this was discovered
EB
Eugenio Beltrami
1835–1900 · Italian differential geometer working on quadratic forms and bilinear forms

Beltrami is credited with an early form of the singular value decomposition for real square matrices, published in 1873, arising from his work on bilinear forms and their canonical reduction under orthogonal substitutions. Working independently, Camille Jordan (1874) and James Joseph Sylvester (1889) developed related canonical forms; the theory was later extended to complex matrices and to general linear operators between inner product spaces, with the operator-theoretic viewpoint (via T∗TT^*T and the spectral theorem for positive operators) becoming standard in twentieth-century functional analysis and numerical linear algebra.

History
- 1873: Eugenio Beltrami derives a diagonalization of a bilinear form via orthogonal substitutions on both sides, an early real SVD.
- 1874–1889: Camille Jordan and James J. Sylvester independently develop related canonical reductions of bilinear/quadratic forms.
- 1907: Erhard Schmidt extends related ideas to integral operators, connecting the decomposition to what are now called Schmidt pairs in operator theory.
- 1936: Carl Eckart and Gale Young establish the low-rank approximation property of the SVD (best rank-kk approximation in operator norm and Frobenius norm), foundational for statistics and numerical analysis.
- 1965: Gene Golub and William Kahan develop a numerically stable algorithm for computing the SVD, making it a practical computational tool.
Does every linear map have a singular value decomposition, even if it is not square or not invertible?

Yes. The existence theorem places no restriction on dim⁡V\dim V versus dim⁡W\dim W, nor does it require TT to be injective or surjective. The construction only uses that T∗TT^*T is a positive operator on VV, which holds for every T∈L(V,W)T \in \mathcal L(V,W) with V,WV, W finite-dimensional inner product spaces. When TT is not injective, some singular values equal zero, and the corresponding eigenvectors of T∗TT^*T span ker⁡T\ker T. When TT is not surjective, the orthonormal list f1,…,fnf_1,\dots,f_n simply does not span all of WW, and must be extended arbitrarily to a full basis if a genuinely square diagonal matrix representation of WW's basis is desired.

How does the SVD relate to eigenvalues of TT when TT is a square matrix?

In general, singular values and eigenvalues are different numbers computed from different operators: eigenvalues come from TT, singular values from T∗TT^*T. They coincide (up to absolute value) exactly when TT is normal, i.e. TT∗=T∗TTT^*=T^*T, because normal operators admit an orthonormal eigenbasis with possibly complex eigenvalues λj\lambda_j, and one can show the singular values equal ∣λj∣|\lambda_j|. For a general (non-normal) square matrix, the eigenvalues can be wildly different from the singular values; a classic example is a nilpotent matrix with all eigenvalues zero but nonzero singular values, since it moves some vectors a positive distance even though it has no long-term "stretching direction" fixed by an eigenvector.

Why are singular values always real and nonnegative, unlike eigenvalues?

Singular values are defined as square roots of eigenvalues of T∗TT^*T, and T∗TT^*T is always a positive operator, regardless of what TT looks like. Positivity means ⟨T∗Tv,v⟩=∥Tv∥2≥0\langle T^*Tv,v\rangle = \|Tv\|^2 \ge 0 for every vv, which forces all eigenvalues of T∗TT^*T to be real and nonnegative — this is a general fact about positive (in particular self-adjoint) operators proved via the spectral theorem. Taking square roots of nonnegative reals always yields nonnegative reals. This is precisely the mechanism that lets singular values exist and behave well even for maps like nilpotent operators or non-square matrices, where genuine eigenvalues may be complex, absent, or degenerate.

What is the connection between the SVD and the operator norm?

The largest singular value s1s_1 equals the operator norm ∥T∥=max⁡∥v∥=1∥Tv∥\|T\| = \max_{\|v\|=1}\|Tv\|, as proved directly from the Pythagorean identity applied to the orthogonal expansion Tv=∑jsj⟨v,ej⟩fjTv = \sum_j s_j\langle v,e_j\rangle f_j. More generally, the kk-th singular value sks_k equals the operator norm of TT restricted to the orthogonal complement of the span of e1,…,ek−1e_1,\dots,e_{k-1}, giving a full hierarchy of "best-fit" norms. This is the theoretical basis for the Eckart–Young theorem: truncating the SVD to its top kk terms gives the best rank-kk approximation of TT in operator norm (and in Frobenius norm), a fact central to low-rank data compression.

Is the SVD unique?

The singular values themselves are unique, since they are determined as the (ordered) eigenvalues of T∗TT^*T, and eigenvalues with multiplicity are basis-independent invariants of an operator. The orthonormal bases (ej)(e_j) and (fj)(f_j), however, are generally not unique. Whenever a singular value has multiplicity greater than one, any orthonormal basis of the corresponding eigenspace of T∗TT^*T works equally well, and the corresponding fjf_j's change correspondingly. Whenever a singular value is zero, the associated fjf_j can be chosen arbitrarily (subject to orthonormality with the rest), since it plays no role in the formula for TvTv.

How does the SVD relate to the matrix factorization A=UΣV∗A = U\Sigma V^* often seen in linear algebra courses?

This is the same object phrased in matrix language. If T:V→WT:V\to W has matrix AA in some initial orthonormal bases, and (ej)(e_j), (fj)(f_j) are as in the SVD, let V0V_0 be the (unitary or orthogonal) change-of-basis matrix whose columns are the coordinate vectors of eje_j, and UU the matrix whose columns are the coordinate vectors of fjf_j (extended to a full basis of WW if needed). Then the diagonal representation of TT translates exactly into A=UΣV0∗A = U\Sigma V_0^*, where Σ\Sigma is the diagonal matrix of singular values. The operator-theoretic proof given here is basis-free, but choosing any orthonormal bases to write matrices recovers the familiar factorization.

Why is the SVD sometimes described as more fundamental than eigendecomposition?

Eigendecomposition (diagonalization by a single similarity transformation) requires TT to be a square operator with enough eigenvectors to form a basis — a strong and not always satisfied condition, even among self-adjoint-like operators over R\mathbf R if the operator isn't self-adjoint. Even when eigenvectors exist, the change-of-basis matrix need not be orthogonal, so geometric distances and angles are not preserved by the eigenbasis. The SVD, in contrast, exists for every linear map between finite-dimensional inner product spaces, uses genuinely orthonormal bases on both sides, and always yields real nonnegative diagonal entries — properties that make it the natural generalization of diagonalization to arbitrary linear maps.

Before this

Where this leads