Theorem (exists_integral_sub_integral_radauQuadrature_eq). The Gauss–Radau remainder: for a finite measure \mu supported in [a, \mathbf{b}], a < \mathbf{b}, c \in \{a, \mathbf{b}\}, every k, and f continuous on [a, \mathbf{b}] and C^{2k+1} on (a, \mathbf{b}), there is \xi \in (a, \mathbf{b}) with \int f\,d\mu - \int f\,d\,\mathsf{radauQuadrature}(\mu, c, k) = \frac{f^{(2k+1)}(\xi)}{(2k+1)!}\int(\mathbf{x} - c)\,\tilde\pi_k(\mathbf{x})^2\,d\mu(\mathbf{x})\,, \tilde\pi_k the monic orthogonal polynomial of degree k of radauMeasure μ c. [Gautschi2004, Theorem 3.3]; [GolubMeurant2010, Ch. 6] (locators to check).
Headline
Lean statement and details
NLAlib.exists_integral_sub_integral_radauQuadrature_eq {μ : Measure ℝ} [IsFiniteMeasure μ]
{a b c : ℝ} (hμ : ∀ᵐ (x : ℝ) ∂μ, x ∈ Set.Icc a b) (hab : a < b) (hc : c = a ∨ c = b) (k : ℕ)
{f : ℝ → ℝ} (hf : ContinuousOn f (Set.Icc a b))
(hf' : ContDiffOn ℝ (↑(2 * k + 1)) f (Set.Ioo a b)) :
∃ ξ ∈ Set.Ioo a b,
∫ (x : ℝ), f x ∂μ - ∫ (x : ℝ), f x ∂radauQuadrature μ c k =
iteratedDeriv (2 * k + 1) f ξ / ↑(2 * k + 1).factorial *
∫ (x : ℝ), (x - c) * Polynomial.eval x (orthogonalPolynomial (radauMeasure μ c) k) ^ 2 ∂μ