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