Improper Integrals and Other Discontinuities 1
6.9 Improper Integrals and Other
Discontinuities
In Exercises 1 – 3:
(a) Compute the value of the indicated definite integral using the trapezoidal
rule, Simpson’s rule, the Midpoint Rule and the two-point Gaussian quadrature
rule, programming the integrand as given. Use n= 2, 4, 8, 16, 32 and 64 for
each method. Compare the observed order of convergence with the theoretical
value.
(b) Repeat part (a) after making an appropriate change of variable in the inte-
grand.
1. R1
0e√xdx
(a) The table below lists the error in the approximate value of
Trapezoidal Simpson’s Midpoint Two-point
nRule Rule Rule Gaussian
2 5.637 ×10−22.821 ×10−21.308 ×10−22.536 ×10−3
8 8.902 ×10−33.575 ×10−32.147 ×10−33.210 ×10−4