Possibly the simplest version of numerical integration. If a definite integral is to be calculated using n strips of width h = (b–a)/n then the area under the curve is replaced by a series of rectangles of width h with height equal to the value of the function at its midvalue. Labelling the midpoints m1, m2,…, mn gives the approximation