Every matrix A, of any shape, factors as A = UΣVᵀ: orthogonal, diagonal, orthogonal. For a symmetric positive definite matrix this is QΛQᵀ with one Q on both sides, but in general the two orthogonal matrices differ. The goal: an orthonormal basis v₁, …, v_r of the row space that A sends to multiples of an orthonormal basis u₁, …, u_r of the column space, Avᵢ = σᵢuᵢ, so AV = UΣ; orthonormal bases of the two nullspaces complete V and U and give zeros in Σ. To find them, AᵀA = VΣᵀΣVᵀ removes U: the v's are the eigenvectors of AᵀA and the σ² its eigenvalues; likewise the u's are the eigenvectors of AAᵀ, which has the same nonzero eigenvalues. Strang's example (4 4; −3 3) gives AᵀA = (25 7; 7 25) with eigenvalues 32 and 18, v's (1, 1)/√2 and (1, −1)/√2, σ's √32 and √18, and AAᵀ = diag(32, 18); his product came out with a wrong sign in the second row, a puzzle he left for later (taking u₂ = Av₂/σ₂ = (0, −1) fixes it). The rank-one example (4 3; 8 6) has AᵀA = (80 60; 60 45) with eigenvalues 125 and 0, σ₁ = √125, v₁ = (0.8, 0.6), u₁ = (1, 2)/√5. The SVD chooses the right bases for all four fundamental subspaces: orthonormal, and making A diagonal.
capital A v one and so on v sub r equals u one and so on u r sigma one; and so on down the diagonal; sigma sub r, capital A capital V equals capital U capital sigma
The nullspaces cause no difficulty: orthonormal basesvr+1,…,vn of the nullspace and ur+1,…,um of the left nullspace complete V and U to square orthogonal matrices, and they meet zeros in Σ (pp. 3, 5). (Strang says "vr+1 down to vm" and seems to name the two spaces Rm and Rn the other way round for a moment; the v's run to vn in Rn.) Since V is square and orthogonal, V−1=VT and A=UΣVT (p. 5).
capital A ^ capital T capital A equals capital V capital sigma ^ capital T capital U ^ capital T capital U capital sigma capital V ^ capital T equals capital V sigma one squared; and so on down the diagonal; sigma n squared capital V ^ capital T
because UTU=I (p. 6); here σr+1=⋯=σn=0. This is exactly QΛQT for ATA: the v's are its eigenvectors and the σ2's its eigenvalues (p. 7). In the other order the V's drop out (pp. 7, 10):
AAᵀ removes V
AAT=UΣΣTUT
In words
capital A capital A ^ capital T equals capital U capital sigma capital sigma ^ capital T capital U ^ capital T
Its eigenvectors are (1,1), with ATA(1,1)=(32,32), and (1,−1), with eigenvalue18; normalised by 2, they are v1 and v2 (pp. 8–9). So σ1=32 and σ2=18 (p. 9). For U (pp. 10–11):
By luck it is diagonal, with eigenvectors(1,0) and (0,1), and again eigenvalues 32 and 18: no surprise, since AB and BA always have the same eigenvalues (p. 11). Multiplying out, 32/2=4 gives the first row (4,4) correctly, but the second row comes out (3,−3) instead of (−3,3) (p. 12). Strang considers flipping the sign of an eigenvector but does not want a minus sign in Σ, and leaves the puzzle for later (pp. 12–13); the later transcripts do not return to it. Earlier he had remarked that U could also be worked out from the other pieces (p. 10). (The page's own resolution follows that route: each eigenvector is fixed only up to sign, and the choices for u and v must match. Taking u2=Av2/σ2=(0,−6/2)/18=(0,−1) instead of (0,1) makes UΣVT=A exactly, and Σ keeps its positive entries: the sign sits in U.)
Strang states the eigenvalues 0 and 125 at once, the rank being one (p. 16); the trace80+45 confirms the nonzero one. Completing the bases with the nullspace directions, v2=(0.6,−0.8) and u2=(2,−1)/5 (p. 16):
125/5=5, and 5 times the products of (1,2) and (0.8,0.6) gives back whole numbers: A (p. 16). The nullspacevectors are multiplied by the zero (p. 17).
(a) Find the SVD of A=(5−157), using ui=Avi/σi. (b) Find the SVD of the rank-onematrixB=(2−41−2).
(a) AᵀA
ATA=(25+125−725−725+49)=(26181874): trace 100, determinant1924−324=1600, so eigenvalues80 and 20. ATA−80I=(−541818−6) gives v1=(1,3)/10, and v2=(3,−1)/10. Singular valuesσ1=80=45, σ2=20=25.
(a) The u's
Av1=(20,20)/10, so u1=(20,20)/(10⋅45)=(1,1)/2. Av2=(10,−10)/10, so u2=(1,−1)/2. They are orthonormal, and σ1σ2=40=detA=35+5, as it should be for a 2×2matrix with positive determinant.
(b) Rank one
The row space is the line through (2,1) and the column space the line through (1,−2): v1=(2,1)/5, u1=(1,−2)/5. BTB=(2010105) has trace 25 and rank one, so σ1=5. Check: 5u1v1T=55(2−41−2)=B. Complete with v2=(1,−2)/5 (nullspace) and u2=(2,1)/5 (left nullspace).
Any m × n matrix to be factored; in the examples, the matrices with rows (4, 4), (−3, 3) and (4, 3), (8, 6), and the worked example's (5, 5), (−1, 7). Say it: “capital A”.
A rectangular table of numbers, which acts on vectors to give new ones and so describes a linear change of coordinates. Explained in Planes through three points, and matrices.
A square matrix whose columns are perpendicular unit vectors; it rotates or reflects without changing lengths, and its inverse is its transpose. Explained in Orthogonal matrices and Gram–Schmidt.
In a square matrix, the entries running from the top left corner to the bottom right; a diagonal matrix has zeros everywhere else. Explained in The four fundamental subspaces.
Unchanged by some swap, reflection or turn; for an expression in two quantities, unchanged when they are exchanged. Explained in Introduction to Fourier series.
Of a symmetric matrix or quadratic form: always giving a positive value for any nonzero input; equivalently, all its eigenvalues are positive. Explained in Symmetric matrices and positive definiteness.
At right angles; more generally, of two vectors or functions, having a dot product, or an integral of their product, of zero. Explained in Introduction to Fourier series.
A list of numbers written as a column, or more generally anything that can be added and multiplied by numbers. Explained in Orthogonal vectors and subspaces.
A step-by-step method that turns independent vectors into perpendicular unit vectors that span the same space. Explained in Orthogonal matrices and Gram–Schmidt.
A set of independent vectors from which every vector in a space can be built, in exactly one way, as a combination. Explained in Independence, basis and dimension.
Of a square matrix or operator: having an inverse that undoes it; for a matrix this happens exactly when its determinant is not zero. Explained in The geometry of linear equations.
The column space, nullspace, row space and left nullspace of a matrix, whose dimensions are all fixed by its rank. Explained in The four fundamental subspaces.
A single number worked out from a square array of numbers (a matrix), which measures how the matrix stretches areas or volumes. Explained in Determinants and the cross product.
Disappears from an equation, usually because it cancels or appears on both sides.
Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).