Linear algebra · Orthogonality and least squares

The projection is the closest point

Projection gives the closest point to a subspace, and the proof uses the Pythagorean theorem.