Best Approximation by Orthogonal Projection

Let

where for all

If and such that

Then

so is a best (weighted) lest-squares approximation to on