The Best Approximation Theorem
Let be a real inner-product space and let be a finite-dimensional subspace. For every , there is a unique vector such that
The vector is the orthogonal projection of onto , written . It is characterized by two conditions:
Equivalently,
In a Hilbert space the same theorem holds for every closed subspace. A finite-dimensional subspace is automatically closed.
Why Orthogonality Gives the Minimum
Let and choose any . Since and , the Pythagorean identity gives
Equality holds only when , which proves both optimality and uniqueness.
Formula for an Orthonormal Basis
If is an orthonormal basis of , then
The second line follows by splitting into the perpendicular components and .
For a real matrix with orthonormal columns,
The matrix projects vectors in onto .
Projecting a Vector onto a One Dimensional Subspace
The two vectors are
Project the vector onto . The projection coefficient is
The calculation gives:
Construction from an Arbitrary Basis
Let be any basis of and write
The orthogonality conditions give the Gram system
In this system, and . Since the basis vectors are linearly independent,
The inequality above shows that is symmetric positive definite, so the projection coefficients are unique.
If the columns of a full-column-rank matrix are the basis vectors, then
The matrix is the same orthogonal projector. This formula gives the algebraic form of the projector. For numerical computation, obtain the projection with or because forming squares the condition number.
Function Space Example
Project onto using
The functions and are orthogonal. Their coefficients are
The calculation gives:
The linear term vanishes because is odd on the symmetric interval.
Properties of an Orthogonal Projector
| Property | Meaning |
|---|---|
| projecting twice changes nothing | |
| the range and null space are orthogonal | |
| every output lies in the target subspace | |
| perpendicular components are removed |
Idempotence alone is not enough. An oblique projector also satisfies and may be asymmetric. Symmetry distinguishes the Euclidean orthogonal projector.