Processing math: 100%

EXAMPLE 8Obtaining a Desired Accuracy Using Simpson’s Rule

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(ba)5M180n4=(2ππ)5M180n4=M=0.176(π5)(0.176)180n4<0.0001n4>0.176π5(0.0001)(180)n>42992.1927.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.