Find the number of subintervals needed to guarantee that Simpson’s Rule approximates ∫2ππsinxxdx correct to within 0.0001.
Solution To be sure that the approximation of ∫2ππsinxxdx is correct to within 0.0001, we require the error be less than 0.0001. That is, Error≤(b−a)5M180n4=(2π−π)5M180n4=↑M=0.176(π5)(0.176)180n4<0.0001n4>0.176π5(0.0001)(180)n>4√2992.192≈7.396
Since Simpson's Rule requires n to be even, eight subintervals are needed to guarantee that Simpson's Rule approximates ∫2ππsinxxdx correct to within 0.0001.