How is the Moore–Penrose pseudoinverse A+ defined from the SVD A=UΣV⊤, what does x∗=A+b compute in general, and what are A+ and x∗ for A=(1224) and b=(36)?

Linear algebra and optimisation, SVD and pseudoinverse
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.

What's being asked

Whether you can construct the pseudoinverse from the SVD and understand why A+b picks the minimum-norm least-squares solution.

Key idea

If A=UΣV⊤, then A+=VΣ+U⊤ where Σ+ transposes Σ and inverts only its non-zero singular values σi; x∗=A+b always minimises ∥Ax−b∥2, and among all such minimisers it has the smallest Euclidean norm ∥x∥2.

Steps

  1. Define A+=VΣ+U⊤: for A∈Rm×n of rank r with SVD A=UΣV⊤ (where U∈Rm×m and V∈Rn×n are orthogonal and Σ holds the singular values σi≥0) and compact SVD UrΣrVr⊤, A+=VrΣr−1Ur⊤∈Rn×m; when A has full column rank this reduces to (A⊤A)−1A⊤, and when full row rank to A⊤(AA⊤)−1.
  2. Explain x∗=A+b: projecting b onto C(A) minimises ∥Ax−b∥2, and zeroing out the null-space component (along the last n−r columns of V) makes x∗ orthogonal to N(A), giving the unique minimum-norm least-squares solution.
  3. Factor A=(1224)=(12)(12): it has rank 1, with u1=15(12), v1=15(12), and σ1=5⋅5=5 (and σ2=0).
  4. Compute A+=1σ1v1u1⊤=15⋅15(12)(12)=125(1224).
  5. Compute x∗=A+b=125(1224)(36)=(3/56/5), and verify Ax∗=(36) while x∗ is orthogonal to the null space span⁡{(−2,1)⊤}.

Common mistakes

How long your answer should be

Half a page; 4 minutes.

Last checked on 4 December 2026.

Read this

Previous in Linear algebra and optimisation: When is a square matrix A∈Rn×n diagonalisable, why can repeated eigenvalues break diagonalisability, and how do you tell whether A=(3103) and B=(3003) are diagonalisable?
Next in Linear algebra and optimisation: For a symmetric positive definite matrix A∈Rd×d and a square matrix B∈Rd×d, how do you derive ∇Atr⁡(BA) and ∇Alog⁡det⁡(A), and how does ∇Σlog⁡det⁡(Σ) appear in fitting a multivariate Gaussian by maximum likelihood?