Linear Algebra

Lesson 8 of 11

Orthogonality

Projections, orthonormal bases, orthogonal matrices, and least squares.

Projection: the closest point

The projection of b\mathbf{b} onto the line through a\mathbf{a} is the closest point on that line:

proja(b)=a⋅ba⋅a a\text{proj}_{\mathbf{a}}(\mathbf{b}) = \frac{\mathbf{a}\cdot\mathbf{b}}{\mathbf{a}\cdot\mathbf{a}}\,\mathbf{a}

The error b−proja(b)\mathbf{b} - \text{proj}_{\mathbf{a}}(\mathbf{b}) is orthogonal to a\mathbf{a}; "closest" and "perpendicular error" are the same condition. Projecting onto a subspace (like the column space of a matrix) works identically: drop a perpendicular.