The midpoint rule