Simpson’s Rule on the Gaussian distribution

The function ex2 is very important for probability and statistics, but it cannot be integrated analytically.

Apply Simpson’s Rule to approximate the integral:

∫01ex2dx

with Δx=0.1 and n=10. What error bound is guaranteed for this approximation?

Solution

(1) We need a table of values of xi and yi=f(xi):

xi:0.00.10.20.30.40.50.60.70.80.91.0
f(xi):e0.02e0.12e0.22e0.32e0.42e0.52e0.62e0.72e0.82e0.92e1.02
≈1.0001.0101.0411.0941.1741.2841.4331.6321.8962.2482.718

These can be plugged into the Simpson Rule formula to obtain our desired approximation:

S10=13⋅0.1⋅(1.000+4⋅1.010+2⋅1.041+4⋅1.094+⋯+2⋅1.896+4⋅2.248+2.718)≈1.463

To find the error bound we need to find the smallest number we can manage for K4.

Take four derivatives and simplify:

f(4)(x)=(12+48x2+16x4)ex2

On the interval x∈[0,1], this function is maximized at x=1. Use that for the optimal K4:

f(4)(1.000)=206.589

Finally we plug this into the error bound formula:

K4(b−a)5180n4=206.589⋅1.0005180⋅104≈0.0001 ≫≫Error(S10)≤0.0001