Rules for extended intervals

Once given a rule for computing integrals $I_i$ over narrow intervals, Eq. (3) prescribes a method for numerical calculation of integrals over extended regions: for the midpoint rule,

$\displaystyle M$ $\textstyle \equiv$ $\displaystyle \sum_{i=1}^N M_i$ (11)
  $\textstyle =$ $\displaystyle \sum f(x^{(m)}_i) h,$  
  $\textstyle =$ $\displaystyle \sum f\left(\frac{x_{i-1}+x_i}{2}\right) h,$  

and for the trapezoid rule,
$\displaystyle T$ $\textstyle \equiv$ $\displaystyle \sum_{i=1}^N T_i$ (12)
  $\textstyle =$ $\displaystyle \sum_{i=1}^N \frac{f(x_{i-1})+f(x_i)}{2} h$  
  $\textstyle =$ $\displaystyle h \left(
\begin{array}{ccccccccccc}
\frac{f_0}{2} & + & \frac{f_1...
...\
& & & & & & & + & \frac{f_{N-1}}{2} & + & \frac{f_{N}}{2}
\end{array}\right)$  
  $\textstyle =$ $\displaystyle h \left( \frac{1}{2} f_0 + f_1 +f_2 + \ldots + f_{N-1} + \frac{1}{2} f_{N} \right),$  

where $f_i\equiv f(x_i)$.

Tomas Arias 2004-01-26