The least-squares problem is solved by turning the rectangular problem into a square problem (which we hope is invertible), and solving that. This leads to a symmetric matrix system.

is
(roughly speaking) "diagonal", with the square roots of the eigenvalues of the
matrices AAT and ATA.

)