Least Squares Fit and Determination of Chebyshev Series Coefficients

Let us write the truncation error for an order [Maple Math] approximation of [Maple Math] :

[Maple Math]

One measure of goodness of fit of a polynomial to a function is the least squares integral

[Maple Math]

for some weighting function [Maple Math] . To minimize [Maple Math] , we set [Maple Math] for all the [Maple Math] , finding

[Maple Math]

Let the weighting function be [Maple Math] . Then

[Maple Math]

Using the orthogonality relations, we arrive at the results

[Maple Math]

and

[Maple Math] for [Maple Math]

These are equivalent to

[Maple Math]

and

[Maple Math] for [Maple Math]

where [Maple Math] .