\[\displaystyle\int_{a}^{b}f(x)\,\mathrm{d}x=h(\tfrac{1}{2}f_{0}+f_{1}+\dots+f_{%
n-1}+\tfrac{1}{2}f_{n})+E_{n}(f),\]