1. Using composite Trapezoidal and Simpson's 1/3 rule, approximate
Obtain your results for n = 2, 4, 6, ...., 40 panels. For each case, calculate the error in the approximation using the exact value of the integral.
For each n (number of panels), tabulate h (mesh size), result obtained with the trapezoidal method, error of the trapezoidal method, result obtained with Simpson's method, and the error of the Simpson's method. On the same log-log plot, show the change of the error with the mesh size for each method. Comment on your results.
2. Use 3 and 4 point Gaussian Quadrature to approximate the integral given in question 1.
3. To numerically evaluate
(a) Use Simpson's 1/3 method with two panels in each direction
(b) Use 3 point Gaussian quadrature for each direction
Show your calculations clearly and evaluate the error for each method using the exact value of the integral.
4. Following integral arises in the study of dihedral angle for assuring the lateral stability of an aircraft:
(a) Numerically integrate the above integral using: (i) Simpson's method with two panels, (ii) three-point Gaussian Quadrature. Compare your results with the exact value of the integral.
(b) Another three-point quadrature rule for this type of integrals can be written as
which is exact for quadratic polynomials (i.e., above formula will be exact for f(η) = 1, f(η) = η, and f(η) = η2). Using this fact, determine the weight coefficients ω0, ω1, and ω2.