The best polynomial minimizes the weighted squared error among all polynomials of degree at most :
The given inner product is positive definite on continuous functions despite the weight vanishing at zero: a continuous nonzero function is nonzero on an interval containing nonzero points, so its weighted square integral is strictly positive.
If the error is orthogonal to , then for any ,
proving sufficiency. Conversely, if minimizes, perturb it to for any real . The squared error becomes
A minimum at forces the linear coefficient to vanish, proving necessity.
For existence, choose the basis . Its Gram matrix is positive definite because is the squared norm of the nonzero polynomial with coefficients . Thus is invertible, and the normal equations have a solution, giving an orthogonal residual and therefore a minimizer. The Pythagorean identity shows any other minimizer differs by a polynomial of zero norm, so it is equal to the first. Hence the best polynomial exists and is unique.
For odd , define . It is another polynomial in . Changing variables , and using evenness of the weight , gives . Thus is also a best polynomial. Uniqueness from part (b) gives , proving
Equivalently, the even component of a candidate is orthogonal to the odd residual and can only increase the squared error.
By part (c), the best degree-at-most-two polynomial is odd, so it must be . Orthogonality to gives
Therefore
Its error is automatically orthogonal to the even basis functions by parity, and the chosen coefficient makes it orthogonal to , so part (b) verifies optimality.

Articles by others on the same topic (0)

There are currently no matching articles.