Approximate $$$\int\limits_{0}^{1} e^{- \frac{x^{2}}{2}}\, dx$$$ with $$$n = 4$$$ using the trapezoidal rule
Related calculator: Trapezoidal Rule Calculator for a Table
Your Input
Approximate the integral $$$\int\limits_{0}^{1} e^{- \frac{x^{2}}{2}}\, dx$$$ with $$$n = 4$$$ using the trapezoidal rule.
Solution
The trapezoidal rule uses trapezoids to approximate the area:
$$$\int\limits_{a}^{b} f{\left(x \right)}\, dx\approx \frac{\Delta x}{2} \left(f{\left(x_{0} \right)} + 2 f{\left(x_{1} \right)} + 2 f{\left(x_{2} \right)} + 2 f{\left(x_{3} \right)}+\dots+2 f{\left(x_{n-2} \right)} + 2 f{\left(x_{n-1} \right)} + f{\left(x_{n} \right)}\right)$$$
where $$$\Delta x = \frac{b - a}{n}$$$.
We have that $$$f{\left(x \right)} = e^{- \frac{x^{2}}{2}}$$$, $$$a = 0$$$, $$$b = 1$$$, and $$$n = 4$$$.
Therefore, $$$\Delta x = \frac{1 - 0}{4} = \frac{1}{4}$$$.
Divide the interval $$$\left[0, 1\right]$$$ into $$$n = 4$$$ subintervals of the length $$$\Delta x = \frac{1}{4}$$$ with the following endpoints: $$$a = 0$$$, $$$\frac{1}{4}$$$, $$$\frac{1}{2}$$$, $$$\frac{3}{4}$$$, $$$1 = b$$$.
Now, just evaluate the function at these endpoints.
$$$f{\left(x_{0} \right)} = f{\left(0 \right)} = 1$$$
$$$2 f{\left(x_{1} \right)} = 2 f{\left(\frac{1}{4} \right)} = \frac{2}{e^{\frac{1}{32}}}\approx 1.938466468952688$$$
$$$2 f{\left(x_{2} \right)} = 2 f{\left(\frac{1}{2} \right)} = \frac{2}{e^{\frac{1}{8}}}\approx 1.764993805169191$$$
$$$2 f{\left(x_{3} \right)} = 2 f{\left(\frac{3}{4} \right)} = \frac{2}{e^{\frac{9}{32}}}\approx 1.509679203978015$$$
$$$f{\left(x_{4} \right)} = f{\left(1 \right)} = e^{- \frac{1}{2}}\approx 0.606530659712633$$$
Finally, just sum up the above values and multiply by $$$\frac{\Delta x}{2} = \frac{1}{8}$$$: $$$\frac{1}{8} \left(1 + 1.938466468952688 + 1.764993805169191 + 1.509679203978015 + 0.606530659712633\right) = 0.852458767226566.$$$
Answer
$$$\int\limits_{0}^{1} e^{- \frac{x^{2}}{2}}\, dx\approx 0.852458767226566$$$A