NLAlib.IsOrthogonalPolynomial.integral_eval_basis_eq_integral_sq
Library · theorem
The Gauss weights are nonnegative: if the nodal polynomial of s is orthogonal in L^2(\mu) to the polynomials of degree less than \lvert s\rvert, for a finite measure \mu supported in [a, \mathbf{b}], then the weight of each node \mathbf{x} \in s is \int\ell_\mathbf{x}\,d\mu = \int\ell_\mathbf{x}^2\,d\mu \ge 0, \ell_\mathbf{x} the Lagrange basis polynomial of \mathbf{x}: \ell_\mathbf{x}^2 - \ell_\mathbf{x} vanishes at the nodes and has degree less than 2\lvert s\rvert.
NLAlib.IsOrthogonalPolynomial.integral_eval_basis_eq_integral_sq {μ : Measure ℝ} {s : Finset ℝ}
(hs : IsOrthogonalPolynomial μ s.card (Lagrange.nodal s id)) [IsFiniteMeasure μ] {a b : ℝ}
(hμ : ∀ᵐ (x : ℝ) ∂μ, x ∈ Set.Icc a b) {x : ℝ} (hx : x ∈ s) :
∫ (t : ℝ), Polynomial.eval t (Lagrange.basis s id x) ∂μ =
∫ (t : ℝ), Polynomial.eval t (Lagrange.basis s id x) ^ 2 ∂μImport NLAlib.Polynomial.Orthogonal.Gauss.