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≤(b−a)3M12n2=(2−1)3M12n2=↑M=ee12n2<0.0001n2>e(0.0001)(12)=e0.0012n>√e0.0012≈47.6
To ensure that the error is less than 0.0001, we round up to 48 subintervals.