NLA-lib Explorer

NLAlib.IsOrthogonalPolynomial.integral_interpolatoryQuadrature

Library · theorem

The integral against the Gauss rule: 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 for every f : \mathbb{R} \to \mathbb{R} the integral of f against the interpolatory rule at s is \sum_{\mathbf{x}\in s}\bigl(\int\ell_\mathbf{x}\,d\mu\bigr)f(\mathbf{x}), \ell_\mathbf{x} the Lagrange basis polynomial of \mathbf{x}; the truncation of the weights at 0 does not act.

NLAlib.IsOrthogonalPolynomial.integral_interpolatoryQuadrature {μ : Measure ℝ} {s : Finset ℝ}
  (hs : IsOrthogonalPolynomial μ s.card (Lagrange.nodal s id)) [IsFiniteMeasure μ] {a b : ℝ}
  (hμ : ∀ᵐ (x : ℝ) ∂μ, x ∈ Set.Icc a b) (f : ℝ → ℝ) :
  ∫ (x : ℝ), f x ∂interpolatoryQuadrature μ s =
    ∑ x ∈ s, (∫ (t : ℝ), Polynomial.eval t (Lagrange.basis s id x) ∂μ) * f x

Full source on GitHub

Import NLAlib.Polynomial.Orthogonal.Gauss.