The integrals have integrable singularities at

PHYSICS · Multi-part · Fermi University Physics · Mathematical Methods for Physics · Special functions and orthogonal polynomials · Numerical and computational mathematics

Error, Chance and the Machine, Ch Integration: error expansions, Gauss rules and adaptivity

Problem

The integrals ∫−11f(x)/1−x2 dx\int_{-1}^{1}f(x)/\sqrt{1-x^2}\,\mathrm{d}x have integrable singularities at x=±1x = \pm1, which a Gauss-Legendre rule handles badly. A Gauss rule for the weight ω(x)=1/1−x2\omega(x) = 1/\sqrt{1-x^2}, with ∫ω dx=π\int\omega\,\mathrm{d}x = \pi, takes the singularities into the weight. The orthonormal polynomials ψ~k\tilde\psi_k for this weight obey the recurrence of Section 5.5 with αk=0\alpha_k = 0 for all kk, β1=1/2\beta_1 = 1/\sqrt2 and βk=12\beta_k = \tfrac12 for k≥2k \ge 2. Use the exact values ∫ωx4 dx=3π/8\int\omega x^4\,\mathrm{d}x = 3\pi/8 and ∫ωx6 dx=5π/16\int\omega x^6\,\mathrm{d}x = 5\pi/16. ((a)) Write the Jacobi matrix A\mathsf{A} for n=3n = 3 and find its eigenvalues, the nodes of the three-node rule. ((b)) Find the eigenvectors and hence the weights wjw_j. ((c)) Evaluate the rule on f=x4f = x^4 and f=x6f = x^6, and state the degree to which it is exact. ((d)) Apply the rule to ∫−11dx(2−x)1−x2=π3\int_{-1}^{1}\dfrac{\mathrm{d}x}{(2-x)\sqrt{1-x^2}} = \dfrac{\pi}{\sqrt3} and give its error, as value minus exact value. ((e)) Substitute x=cos⁡θx = \cos\theta to show that the rule is a trapezium rule for a periodic integrand with nodes shifted by a constant phase. The function 1/(2−cos⁡θ)1/(2-\cos\theta) has Fourier coefficients ak=r∣k∣/3a_k = r^{|k|}/\sqrt3 with r=2−3r = 2 - \sqrt3. Extend Eq. (5.11) to the shifted nodes and use it to predict the error of part (d).

Browse the problem library