Comparing the Midpoint and Trapezoid Rules Apply the Midpoint and Trapezoid Rules to the following integrals. Make a table similar to Table 7.4 showing the approximations and errors for n=4, 8, 16, and 32. The exact values of the integrals are given for computing the error.

\(\int_{1}^{e} \ln x d x=1\)

Problem 24EComparing the Midpoint and Trapezoid Rules Apply the Midpoint and Trapezoid Rules to the following integrals. Make a table similar to Table 7.4 showing the approximations and errors for n = 4,8, 16, and 32. The exact values of the integrals are given for computing the error.Solution:-Step 1Applying Midpoint Rulea=1, b=e.For n=4,