Parity preservation by polynomial least-squares projection

ID: parity-preservation-by-polynomial-least-squares-projection

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.

New to topics? Read the docs here!