\[\int_{-1}^{1}p_{n}(x)p_{m}(x)w(x)\,\mathrm{d}x+\sum_{\ell}p_{n}(x_{\ell})p_{m}%
(x_{\ell})\omega_{\ell}=h_{n}\delta_{n,m},\]