# What is Integration Using the Trapezoidal Rule?

Sep 22, 2014

Let us divide the interval $\left[a , b\right]$ into n subintervals of equal lengths.

$\left[a , b\right] \to \left\{\left[{x}_{0} , {x}_{1}\right] , \left[{x}_{1} , {x}_{2}\right] , \left[{x}_{2} , {x}_{3}\right] , \ldots , \left[{x}_{n - 1} , {x}_{n}\right]\right\}$,

where $a = {x}_{0} < {x}_{1} < {x}_{2} < \cdots < {x}_{n} = b$.

We can approximate the definite integral

${\int}_{a}^{b} f \left(x\right) \mathrm{dx}$

by Trapezoid Rule

${T}_{n} = \left[f \left({x}_{0}\right) + 2 f \left({x}_{1}\right) + 2 f \left({x}_{2}\right) + \cdots 2 f \left({x}_{n - 1}\right) + f \left({x}_{n}\right)\right] \frac{b - a}{2 n}$