NLA-lib Explorer

NLAlib.IsOrthogonalPolynomial.integral_eval_eq_sum

Library · theorem

Headline of gauss-quadrature (provisional)

Gauss quadrature: if the nodal polynomial \pi_s of distinct real nodes 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 \int p\,d\mu = \sum_{\mathbf{x}\in s}\Bigl(\int\ell_\mathbf{x}\,d\mu\Bigr)p(\mathbf{x}) for every real polynomial p of degree less than 2\lvert s\rvert, \ell_\mathbf{x} the Lagrange basis polynomial of \mathbf{x}. [Gautschi2004, Theorems 1.45 and 1.46]; [GolubMeurant2010, Ch. 6]; there at the zeros of the orthogonal polynomial of a positive measure; here at any nodes whose nodal polynomial is orthogonal. Result: gauss-quadrature

NLAlib.IsOrthogonalPolynomial.integral_eval_eq_sum {μ : Measure ℝ} {s : Finset ℝ}
  (hs : IsOrthogonalPolynomial μ s.card (Lagrange.nodal s id)) [IsFiniteMeasure μ] {a b : ℝ}
  (hμ : ∀ᵐ (x : ℝ) ∂μ, x ∈ Set.Icc a b) {p : Polynomial ℝ} (hp : p.degree < 2 * ↑s.card) :
  ∫ (x : ℝ), Polynomial.eval x p ∂μ =
    ∑ x ∈ s, (∫ (t : ℝ), Polynomial.eval t (Lagrange.basis s id x) ∂μ) * Polynomial.eval x p

Full source on GitHub

Import NLAlib.Polynomial.Orthogonal.Gauss.