For the underdetermined system Ax=b with A=(110011) and b=(2,2)⊤, how do you find the solution with the smallest ℓ2 norm, and why is the answer x=A⊤(AA⊤)−1b?

Linear algebra and optimisation, Systems of linear equations
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.

What's being asked

Whether you can solve a constrained least-norm problem with Lagrange multipliers (or the null-space argument) and compute it for a small matrix.

Key idea

Among all solutions of Ax=b, the one with minimum norm lies in the row space of A, so x=A⊤λ, and then AA⊤λ=b gives x⋆=A⊤(AA⊤)−1b, the pseudoinverse solution A+b.

Steps

  1. Here A is 2×3 with rank 2, so Ax=b has infinitely many solutions (a line, since the null space has dimension 3−2=1). We want min⁡12∥x∥2 subject to Ax=b.
  2. Form the Lagrangian L=12x⊤x+λ⊤(b−Ax), where λ is the vector of multipliers. Setting ∇xL=x−A⊤λ=0 gives x=A⊤λ.
  3. Substitute into the constraint: AA⊤λ=b, so λ=(AA⊤)−1b and x⋆=A⊤(AA⊤)−1b. AA⊤ is invertible because A has full row rank.
  4. Compute: AA⊤=(2112) with inverse 13(2−1−12). Then λ=13(4−2, −2+4)=(23,23), and x⋆=A⊤λ=(23, 23+23, 23)=(23,43,23).
  5. Check: Ax⋆=(23+43, 43+23)=(2,2). The norm squared is 49+169+49=83. Another solution, (2,0,2), has norm squared 8, which is larger.
  6. Null-space check: the null space is spanned by (1,−1,1), and every solution is x⋆+t(1,−1,1) with ∥x∥2=83+3t2, since x⋆⋅(1,−1,1)=0. So t=0 is the minimum. This is the solution gradient descent finds from x0=0, and the ridge solution as λ→0.

Common mistakes

How long your answer should be

Half a page; 4–5 minutes.

Last checked on 4 December 2026.

Read this

Previous in Linear algebra and optimisation: Applying power iteration to A=(2112) starting from v0=(1,0)⊤ for three steps, what is the estimate of the dominant eigenvalue from the Rayleigh quotient, and how fast does the method converge?
Next in Linear algebra and optimisation: If A−1 is known, how do you derive the Sherman–Morrison formula for (A+uu⊤)−1? How do you verify it for A=diag⁡(2,1) and u=(1,2)⊤, and why does it matter for online ridge regression?