How the singular value decomposition defines the pseudoinverse, why it gives the least-squares solution of minimum norm, and how the null-space component separates choosing a solution from recovering lost information.
Two measurements read 4 and 3, and they come from three unknown inputs through x1+x3=4 and x2+x3=3. Every input (4−t,3−t,t) produces exactly these readings, so the data alone cannot say which input was used. This lesson builds the pseudoinverse from the singular value decomposition and shows that it picks the solution of smallest length, or, when no exact solution exists, the least-squares solution of smallest length. That choice is a stated rule for selecting one representative, and it does not recover the part of the input that the measurements never saw. Tuples such as (4−t,3−t,t) stand for column vectors throughout.
Key terms
Pseudoinverse of the diagonal factor
Definition Let Σ be an m×n rectangular diagonal matrix with diagonal entries σ1≥⋯≥σq≥0, where q=min(m,n), and let r be the number of positive entries. Its pseudoinverse Σ+ is the n×m rectangular diagonal matrix whose diagonal entries are 1/σ1,…,1/σr followed by q−r zeros. So the shape is transposed, every positive entry is replaced by its reciprocal, and every zero stays zero. The m×m product ΣΣ+ and the n×n product Σ+Σ are both diagonal, with r leading ones on the diagonal and zeros everywhere else. The rule depends on whether an entry is exactly zero. A small positive entry gets a large reciprocal, and replacing it by zero instead is truncation, a different procedure that needs its own stated criterion.
In plain words Undo every stretch that can be undone, and put zero wherever the map erased a coordinate. An erased coordinate left no trace in the output, so there is nothing to divide back.
Example For the 2×3 factor of rank 2,
Σ=[300100],Σ+=1/300010,
and ΣΣ+=I2 while Σ+Σ=diag(1,1,0). For the rank-one factor with rows (2,0), (0,0) and (0,0), the pseudoinverse has rows (21,0,0) and (0,0,0), and ΣΣ+=diag(1,0,0). The invertible matrix diag(1,0.01) has pseudoinverse diag(1,100), its ordinary inverse, while diag(1,0) has pseudoinverse diag(1,0).
Pseudoinverse
Definition Let A be a real m×n matrix with a singular value decomposition A=UΣV⊤. Its pseudoinverse is the n×m matrix
A+=VΣ+U⊤.
It does not depend on which SVD is used, because for every b the vector A+b is the unique least-squares solution of Ax=b of smallest norm, as the last card shows. If A has rank r≥1, only the first r columns of U and V meet nonzero entries of Σ+, so a compact SVD A=UrΣrVr⊤ already gives A+=VrΣr−1Ur⊤. The two products of A+ with A are
AA+A+A=UΣΣ+U⊤,=VΣ+ΣV⊤.
Since ΣΣ+ keeps exactly the coordinates along u1,…,ur and Σ+Σ exactly those along v1,…,vr, the first product is the orthogonal projection of Rm onto ColA and the second is the orthogonal projection of Rn onto RowA. The first equals Im only when r=m, and the second equals In only when r=n. When A is square and invertible, A+=A−1. When A has full row rank m, A+=A⊤(AA⊤)−1, and when A has full column rank n, A+=(A⊤A)−1A⊤. These two formulas need their rank conditions, since otherwise the matrix to be inverted is singular. Transposing an SVD shows that (A⊤)+=(A+)⊤.
In plain words The pseudoinverse reads an output along the left singular directions, divides each reachable coordinate by its stretch, drops the coordinates the map cannot reach, sets every erased input coordinate to zero, and rebuilds an input. It inverts the map on the directions the map can see and makes a definite choice about the rest.
Example The matrix
A=[100111]
has full row rank, and AA⊤ has rows (2,1) and (1,2) and determinant 3. So
The same matrix comes from VΣ+U⊤ with the SVD of A that has singular values 3 and 1. Since ColA=R2, the product AA+ is I2, whereas
A+A=312−11−121112=I−31nn⊤
with n=(−1,−1,1), the projection that removes the component along the kernel direction n. For the transpose C=A⊤ the pseudoinverse is C+=(A+)⊤, with rows 31(2,−1,1) and 31(−1,2,1), and it equals (C⊤C)−1C⊤ because C has full column rank.
Null-space component
Definition Let A be a real m×n matrix. Because RowA and NullA are orthogonal complements in Rn, every input splits uniquely as x=xrow+xnull with xrow in RowA and xnull in NullA, namely
xrowxnull=A+Ax,=(I−A+A)x.
The vector xnull is the null-space component of x. It has no effect on the output, Ax=Axrow, and by the Pythagorean theorem ∥x∥2=∥xrow∥2+∥xnull∥2. Two inputs give the same output exactly when their difference lies in NullA, that is, exactly when they have the same row-space component and differ only in their null-space components.
In plain words The null-space component is the part of an input that the measurements cannot see. Any amount of it can be added or removed without changing the output, so the output carries no information about how much of it was present.
Example For the matrix A above, the inputs (4,3,0) and (2,1,2) both give (4,3), and their difference (2,2,−2)=−2n lies in the kernel. Both have the row-space component A+A(4,3,0)=(35,32,37), and their null-space components are (37,37,−37)=−37n and (31,31,−31)=−31n. For the first input the lengths add up as they should, ∥(4,3,0)∥2=25=326+349. If the true input happens to be (4,3,0), the readings (4,3) carry no trace of its component −37n, and no formula applied to the readings can restore it.
Minimum-norm solution
Definition Let A be a real m×n matrix and b a vector in ColA, so that Ax=b is consistent. Among its solutions there is exactly one of smallest Euclidean norm, the minimum-norm solution x+, and
x+=A+b.
It is the unique solution in RowA, equivalently the unique solution orthogonal to NullA. Indeed A+b lies in RowA, since the columns of VΣ+ lie in the span of v1,…,vr with r=rankA, and AA+b=b, since AA+ projects onto ColA, which contains b. Every solution has the form x++h with h in NullA, and
∥x++h∥2=∥x+∥2+∥h∥2,
so every h=0 makes the norm strictly larger. When A has full row rank every b is consistent and x+=A⊤(AA⊤)−1b. The criterion uses Euclidean length in the given coordinates. If the unknowns carry unrelated units, rescaling them can change which solution is selected, so the scaling has to be chosen deliberately.
In plain words The solutions of a consistent system with a nonzero kernel form a flat set parallel to the kernel, a line, a plane or a higher-dimensional flat that misses the origin unless b=0. The minimum-norm solution is the point of that set closest to the origin, the foot of the perpendicular, and it is the only solution with no null-space component.
Example For the matrix A above and b=(4,3),
A+b=318−3−4+64+3=5/32/37/3.
It solves the system, since 35+37=4 and 32+37=3, and it is the member t=37 of the family (4−t,3−t,t). Its dot product with the kernel direction n is (−5−2+7)/3=0. Along the whole family,
∥(4−t,3−t,t)∥2=3t2−14t+25=3(t−37)2+326,
so the squared norm is smallest, equal to 326, exactly at t=37.
Least-squares solution of minimum norm
Definition Let A be a real m×n matrix of rank r and let b be any vector in Rm. Among all least-squares solutions of Ax=b there is exactly one of smallest Euclidean norm, and it is A+b. To prove it, take an SVD A=UΣV⊤ and write β=U⊤b and c=V⊤x. Orthogonal matrices preserve length, so
The second sum does not depend on x, and it is empty when r=m. So x is a least-squares solution exactly when ci=βi/σi for i=1,…,r, while cr+1,…,cn are free. Among these the norm is smallest exactly when every free coordinate is 0. That choice is c=Σ+β, which means x=VΣ+U⊤b=A+b. If b lies in ColA, the residual is zero and this is the minimum-norm solution of the previous card. If A has full column rank, so r=n, nothing is free, the least-squares solution is unique, and it equals (A⊤A)−1A⊤b.
In plain words Least squares pins down the input coordinates along the directions the map stretches, which span the row space, and leaves the null-space coordinates free. The pseudoinverse sets those free coordinates to zero. In effect it projects the data onto the column space and then picks the shortest input that produces the projection.
Example Let C=A⊤, which sends (x1,x2) to (x1,x2,x1+x2), and b=(1,1,0). No exact solution exists, since the first two outputs force x1=x2=1 and then the third output would be 2. With the pseudoinverse C+ found above,
C+b=31[2−1+0−1+2+0]=[1/31/3].
The predictions are C(31,31)=(31,31,32) and the residual is (32,32,−32). The residual is orthogonal to both columns of C, since 32+0−32=0 and 0+32−32=0, so the predictions are the projection of b onto ColC, and the smallest squared error is 3⋅94=34. The columns of C are independent, so this is the only least-squares solution, and the minimum-norm rule has nothing extra to choose here.
Check yourself
Let D be the 2×3 matrix with rows (3,0,0) and (0,0,0), and let b=(6,1). Find D+, all least-squares solutions of Dx=b, and the one of minimum norm.
Show the answer
The matrix D is already rectangular diagonal with entries 3≥0, so it has an SVD with U=I2, Σ=D and V=I3, and D+ is the 3×2 matrix with rows (31,0), (0,0) and (0,0). Since Dx=(3x1,0),
∥b−Dx∥2=(6−3x1)2+1,
so the least-squares solutions are (2,s,t) for all s and t, with residual (0,1) that no input can remove. The pseudoinverse gives D+b=(2,0,0), the member with s=t=0 and the shortest one. The second reading is the component of b along e2, which is orthogonal to ColD, so it is ignored, and the coordinates x2 and x3 are invisible and set to zero.
The equation x1+2x2+2x3=9 is solved by (9,0,0). Find the null-space component of this solution and the minimum-norm solution.
Show the answer
The coefficient matrix is the row [122], whose row space is the line spanned by a=(1,2,2), with ∥a∥2=9. The row-space component of (9,0,0) is its projection onto that line,
a⋅a(9,0,0)⋅aa=99a=(1,2,2),
so the null-space component is (9,0,0)−(1,2,2)=(8,−2,−2). It is orthogonal to a, since 8−4−4=0. The minimum-norm solution is (1,2,2), which satisfies 1+4+4=9 and has length 3, while (9,0,0) has length 9, and indeed 81=9+72. The full row rank formula agrees, since for the row matrix R=a⊤ it gives R⊤(RR⊤)−1⋅9=99a. A solution that looks simple need not be the shortest one.
Let M have rows (1,2) and (2,4), and let b=(5,0). Explain why the formula (M⊤M)−1M⊤b cannot be used, then find all least-squares solutions of Mx=b and the one of minimum norm.
Show the answer
The second column of M is twice the first, so M has rank 1 and
M⊤M=[5101020]
has determinant 0. The formula needs full column rank, and here there is no inverse. Write w=51(1,2). Then M=5ww⊤ is a compact SVD with σ1=5 and u1=v1=w, and the second singular value is 0. The projection of b onto ColM is (b⋅w)w=(1,2), so the least-squares solutions are the solutions of x1+2x2=1. The pseudoinverse is
M+=51ww⊤=251[1224],
and M+b=251(5,10)=(51,52). It satisfies 51+54=1 and is a multiple of (1,2), so it lies in the row space. Every least-squares solution is (51,52)+s(−2,1), with squared norm 51+5s2, smallest at s=0. The residual (5,0)−(1,2)=(4,−2) is orthogonal to (1,2), and the smallest squared error is 20.
May we count page visits to understand which courses and learning features are useful? Cloudflare collects visit and performance statistics, without your account details or answers. Your choice does not affect access. Details