Calculate integral from 0 to 1 e^(-x²) dx using Simpson's
Calculate $\displaystyle\int_0^1e^{-x^2}\,dx$ using Simpson's method with accuracy $0.0001$.
Explanation of Method
This integral has no elementary closed form (it is expressed via the error function), so its value must come from numerical integration. Bound $|f^{(4)}|$ for $f(x)=e^{-x^2}$ on $[0,1]$, use the Simpson error formula to find how many subintervals guarantee the required accuracy, then compute.
Step 1: Fourth derivative
Differentiating $f(x)=e^{-x^2}$ four times gives $f^{(4)}(x)=(16x^4-48x^2+12)e^{-x^2}$. On $[0,1]$ this attains its largest magnitude at $x=0$: $f^{(4)}(0)=12$.
Step 2: Determine the number of subintervals
\[\frac{1}{180(2n)^4}\times12\le0.0001\ \Longrightarrow\ n^4\ge41.7\ \Longrightarrow\ n\ge3.\]
So $2n=6$ subintervals suffice.
Step 3: Apply Simpson's formula, $h=1/6$
| $x_i$ | 0 | 1/6 | 1/3 | 1/2 | 2/3 | 5/6 | 1 |
| $f(x_i)$ | 1.000000 | 0.972604 | 0.894839 | 0.778801 | 0.641180 | 0.499352 | 0.367879 |
| weight | 1 | 4 | 2 | 4 | 2 | 4 | 1 |
Weighted sum $S\approx13.442947$, so
\[I_{\text{Simpson}}=\frac{1/6}{3}\times13.442947\approx0.746830.\]
\[\boxed{I_{\text{Simpson}}\approx0.746830}\]
Step 4: Accuracy check
A high-precision reference value is $I\approx0.746824$, giving actual error $\approx6.3\times10^{-6}$, comfortably inside the required $0.0001$ tolerance (and inside the theoretical bound, which works out to about $7.4\times10^{-5}$ for $2n=6$).
Step 5: Physical relevance
This Gaussian integral is directly related to the error function and the standard normal distribution: $\int_0^1e^{-x^2}dx=\tfrac{\sqrt\pi}{2}\,\mathrm{erf}(1)$. Because $e^{-x^2}$ is extremely smooth (infinitely differentiable, with rapidly decaying derivatives), Simpson's rule converges quickly, needing only 6 subintervals for 4-decimal accuracy.
Result
Final answer:
\[\boxed{\int_0^1e^{-x^2}\,dx\approx0.746830\ (2n{=}6),\qquad E\approx6.3\times10^{-6}}\]