The Trapezoid Rule is given by:
$$T(n) = \frac{\Delta x}{2} \left[f(x_0) + 2f(x_1) + 2f(x_2) + \ldots + 2f(x_{n-1}) + f(x_n)\right]$$
where $\Delta x = \frac{b-a}{n}$, $x_i = a + i\Delta x$, and $f(x)$ is the function we are integrating.
For $n=25$, we have
Show more…