6.2: Composite Rules
( \newcommand{\kernel}{\mathrm{null}\,}\)
We now use our elementary formulas obtained for (6.2) to perform the integral given by
6.2.1. Trapezoidal rule
We suppose that the function
Then the integral of (6.1) may be decomposed as
where the last equality arises from the change-of-variables
If the points are not evenly spaced, say because the data are experimental values, then the
However, if the points are evenly spaced, say because
and since the end point
The composite trapezoidal rule for evenly space points then becomes
The first and last terms have a multiple of one; all other terms have a multiple of two; and the entire sum is multiplied by
6.2.2. Simpsonโs rule
We here consider the composite Simpsonโs rule for evenly space points. We apply Simpsonโs rule over intervals of
Note that
The first and last terms have a multiple of one; the even indexed terms have a multiple of