Chebyshev polynomials over the reals: Chebyshev–Gauss #
The Chebyshev–Gauss property calculates an integral of a polynomial of degree < 2 * n
with respect to the weight function √(1 - x ^ 2)⁻¹ supported on [-1, 1] by a sum
over appropriate evaluations of the polynomial.
Main statements #
- integral_eq_sumZeroes: The integral of a polynomial of degree
< 2 * nwith respect to the weight function√(1 - x ^ 2)⁻¹supported on[-1, 1]is equal toπtimes the average of its values on the pointscos ((2 * i + 1) / (2 * n) * π)for0 ≤ i < n.
Implementation #
The statement is proved for Chebyshev polynomials using the complex exponential representation
of cos, and then deduced for arbitrary polynomials.
Weighted sum of P (x) where x goes over cos ((2 * i + 1) / (2 * n) * π) for
0 ≤ i < n.
Equations
- Polynomial.Chebyshev.sumZeroes n P = Real.pi / ↑n * ∑ i ∈ Finset.range n, Polynomial.eval (Real.cos ((2 * ↑i + 1) / (2 * ↑n) * Real.pi)) P
Instances For
@[simp]
theorem
Polynomial.Chebyshev.sumZeroes_sum
(n : ℕ)
{ι : Type u_1}
(s : Finset ι)
(P : ι → Polynomial ℝ)
:
theorem
Polynomial.Chebyshev.integral_eq_sumZeroes
{n : ℕ}
{P : Polynomial ℝ}
(hn : n ≠ 0)
(hP : P.degree < 2 * ↑n)
:
The integral of a polynomial of degree < 2 * n with respect to the weight function
√(1 - x ^ 2)⁻¹ supported on [-1, 1] is equal to π times the average of its values
on the points cos ((2 * i + 1) / (2 * n) * π) for 0 ≤ i < n.