Normal Equations for Finite-Dimensional Least Squares