Orthogonal Polynomials
Orthogonality Depends on the Weight You Declare
For functions on an interval, a weighted inner product has the form <f,g> = integral f(x)g(x)w(x) dx, with positive weight w on the relevant domain.
Two polynomials are orthogonal when this integral is zero. The interval and weight are not decoration: changing either can change a zero inner product into a nonzero one.
A familiar construction starts with 1 and removes its component from x. Under the unweighted inner product on a symmetric interval, the integral of an odd function is zero, so x is orthogonal to 1.
For a nonsymmetric weight or interval, x may have a nonzero mean and one instead uses x minus its weighted mean. This is Gram-Schmidt applied to polynomials.
Orthogonal does not mean normalized. A polynomial p can have <p,p> positive but not equal to one. Its norm is sqrt(<p,p>), and p divided by that norm is orthonormal, provided p is nonzero.
Keep the inner product fixed during the calculation; using one weight for cross products and another for norms invalidates the conclusion.
Orthogonal polynomial families are useful because expansions separate coefficients. If f is expanded in an orthogonal basis {pn}, each coefficient is <f,pn>/<pn,pn>, that is, one inner product divided by the squared norm; for an orthonormal basis, the denominator is 1.
This is a projection calculation in a function space, not a claim that polynomial values are pointwise zero.
Define <f,g> = integral from 0 to 1 of f(x)g(x) 2x dx. Which polynomial of the form x-c is orthogonal to 1?
Why can the same two polynomials be orthogonal under one inner product and not another?