|
Posted: 11/17/21
Due: 11/24/21, 11:55PM
Review the construction of Fig.01 and Fig. 02 in L02. Construct convergence plots for the approximation of , using truncations to orders , using the forward finite difference operator
Use the polynomial interpolation error formula to find the error
of the trapezoid quadrature rule
Construct a convergence plot of the error
with , , in approximating the integral
Repeat the above for the Simpson rule
Extra credit (3 points). Repeat the above for Gauss-Legendre quadrature of orders 2 and 3. Note that each subinterval over which you apply a Gauss quadrature rule has to be mapped to [-1,1].
The expansion of the differentiation operator in terms of the forward finite difference operator arise from
and leads to the series
Deduce the analogous series that arises from
with the central finite difference operator
Construct convergence plots for the approximation of , using terms from both above series. Compare with the behavior of Fig. 02, L02, and comment.
Romberg integration is a combination of trapezoid quadrature over decreasing subintervals and Aitken extrapolation. Implement Romberg integration and test on
What is the observed order of convergence?
Review Lesson 37, “From Lanczos to Gauss Quadrature” of Trefethen & Bau. Compute the roots of the first 10 Legendre polynomials by finding the eigenvalues of the associated Jacobi matrices.
Extra credit (3points). Construct a recursive function RecInt(a,b,err,f,Q) that has arguments scalars and functions and approximates
through repeated application of quadrature rule according to the algorithm
Algorithm
Recursive quadrature
RecInt(a,b,err,f,Q)
if
return
else
return RecInt(a,c,err,f,Q)+RecInt(c,b,err,f,Q)
Test the recursive integration procedure with trapezoid, Simpson, and Gauss-Legendre rules of orders 2,3,4 on the integral