(Solved):
1. Gauss-Chebyshev formul of Type I and Type II are given by Type I 111x2f ...
1. Gauss-Chebyshev formulæ of Type I and Type II are given by Type I ??11?1?x2?f(x?)?dx?n???k=1n?f(xk?) where xk?=cos(2n(2k?1)??) Type II ??11?1?x2?f(x)dx?n+1???k=1n?sin2(n+1k??)f(xk?) where xk?=cos(n+1k??) Write MATLAB functions to implement these integration formulæ. (a) Evaluate the integral using Type I, Type II, and Gauss-Legendre quadrature. Tabulate your results for n=4,8,12,16 point methods. The exact value of the integral is ?I0?(1) where I0?(z) is the modified Bessel function of the first kind. It is available in MATLAB using besseli (0,z). Comment on your findings. ??11?1?x2?ex?dx (b) Evaluate the integral using Type I, Type II, and Gauss-Legendre quadrature. Tabulate your results for n=4,8,12,16 point methods. The exact value of the integral is ?I1?(1) where I1?(z) is the modified Bessel function of the first kind. It is available in MATLAB using besseli (1,z). Comment on your findings. ??11?ex1?x2?dx 2. Consider the following integral ?01?1+x2lnx?dx=?K where K is Catalan’s constant Explain why Gauss-Legendre quadrature is appropriate for this problem whereas Simpson's- 31? rule is not. Evaluate the integral using Gauss-Legendre quadrature for n=4,8,16,24,32 point methods. Tabulate the computed value of the integral and the \%-error for each case,
??????e?x2cosxdx=?0??2e?x2cosxdx Tabulate the computed value of the integral and the \%-error for n=4,8,16,24,32 point methods. The exact value of the integral is ??/e1/4. Comment on your findings. 4. There is no closed form solution for the following integral but its value is accurate to the number of figures shown ?1??x2+cosx1?dx??0.8245401107935762 (a) Evaluate this integral using a built-in M?TLAB function such as quad or integral. Try to find the number of function evaluations needed to achieve 0.0001% accuracy. (b) Make a substitution u=x?1 and show that the integral is now cast into a form suitable for GaussLaguerre quadrature. Employ this method and find how many function evaluations are needed to achieve 0.0001% accuracy. (c) Make a substitution z=1/x and show that the integral is now cast into a form suitable for Gauss-Legendre quadrature. Employ this method and find how many function evaluations are needed to achieve 0.0001% accuracy.