Processing math: 100%

EXAMPLE 4Obtaining a Desired Accuracy Using the Trapezoidal Rule

Find the number of subintervals n needed to guarantee that the Trapezoidal Rule approximates 21exxdx correct to within 0.0001.

Solution To be sure that the approximation of 21exxdx is correct to within 0.0001, we require the error be less than 0.0001. That is, Error(ba)3M12n2=(21)3M12n2=M=ee12n2<0.0001n2>e(0.0001)(12)=e0.0012n>e0.001247.6

To ensure that the error is less than 0.0001, we round up to 48 subintervals.