When your basis is orthonormal, the projection formula collapses to P = QQᵀ and each least-squares coefficient is simply a dot product.
Loading…
From to
Substitute for in the general projection matrix, simplify away the inverse, and confirm the two defining properties and .
The square case
Record that a square has the whole space as its column space, so its projection matrix is the identity and every vector is left unchanged.
Coefficients as dot products
Reduce the normal equation to , solve for , and write out one component.