Removing zero rows of U leaves A=LU, where the r columns of L span the column space of A and the r rows of U span the row space. Then A+ has the explicit formula UT(UUT)−1(LTL)−1LT.
Why is A+b in the row space with UT at the front? Why does ATAA+b=ATb, so that x+=A+b satisfies the normal equation as it should?