Zeros of orthogonal polynomials (source code)

= Zeros of orthogonal polynomials
{wiki}

A real degree-$n$ <orthogonal polynomial> for a positive weight on an interval, with the required finite <moments>, has exactly $n$ distinct simple <zeros> in the interval's interior. This places the <quadrature nodes> of <Gaussian quadrature> inside its integration domain.<nist-digital-library-of-mathematical-functions/18 Orthogonal Polynomials>[§18.2(vi), location and simplicity of zeros]{ref}

To prove it, list the distinct interior roots where the <polynomial> $p_n$ changes sign, and let $q$ be the product of their linear factors. Then $p_nq$ has one constant sign on the interval and is not identically zero. If there were fewer than $n$ sign-changing roots, $q$ would have lower <polynomial degree>, so <orthogonality> would give $\int p_nq\,w\,dx=0$, contradicting positivity of the integral after a choice of sign. There must therefore be $n$ such roots. They exhaust the <polynomial degree>, proving both simplicity and the absence of additional roots.