For a positive-definite weighted inner product on a compact interval, a least-squares polynomial is the orthogonal projection of a function onto the finite-dimensional space of polynomials of degree at most . In a basis , its coefficients solve the normal equations , where and . The Gram matrix is positive definite: for . Thus the coefficients exist and are unique. The residual is orthogonal to every candidate polynomial, giving and proving optimality. An orthogonal basis makes these equations diagonal, as in a least-squares polynomial in an orthogonal-polynomial basis.
For the weight on , the normal equations for projecting onto have Gram matrix and right side . Its determinant is , and inversion gives the displayed polynomial. orthogonality of the residual to both basis functions proves best approximation in the weighted norm.
On a symmetric interval with an even positive weight, the best least-squares polynomial approximation to an odd function is odd, and the approximation to an even function is even. Indeed, the even and odd polynomial subspaces are orthogonal. For odd , write a candidate as . Then
Deleting a nonzero even component strictly reduces the error, so the minimizer has . The same argument exchanges the parities for even . This reduces the normal equations to the matching parity block and avoids computing coefficients known in advance to vanish.

Articles by others on the same topic (0)

There are currently no matching articles.