When the system is overdetermined: projection to the rescue
In practice, is often inconsistent — more equations than unknowns, and . We can't solve exactly, but we can do the next best thing: find the that minimizes the residual's squared length:
This is least squares. Geometrically: is the orthogonal projection of onto the column space . The residual is orthogonal to every column of :
The closest point in a subspace is always the orthogonal foot of the perpendicular — this geometric fact is the entire engine of least squares. The projection is the "best approximation to that can produce."
