Composite quadrature formula
Suppose we want to estimate $\int_{a}^{b} f(x)ω(x) \d x \approx \sum_{i=0}^{n} a_i f(x_i)$ with accuracy $ε\ll 1$.
We could choose a Gaussian quadrature of high order, but computing roots of orthogonal polynomials is difficult.
Instead, split into many sub-intervals, and apply a simple quadrature on each sub-interval.
One can show that if a quadrature exact on $\mathcal{P}_n$ is applied with step size $h$, the total error is $O(h^{n+1})$ for $f\in C^{n+1}[a,b]$.