A lot o numerical analysis involves dealing with spaces of polynomials of degree at most $$N$$ on $$[-1,1]$$. There are various families of polynomials which can be taken as basis functions, and these will be orthogonal with respect to a particular inner product.
Quite often, one wishes to...