Derivation: composite midpoint
Generalising midpoint to n subintervals by using the centre of each block and summing local errors.
Summing centred rectangles
Formula for n subintervals
Split with step :
The centre of the subinterval is:
Apply simple midpoint on each subinterval:
Sum all rectangles:
Substituting the expression for gives the computable form:
The global error is obtained by summing the local errors of the simple midpoint rule: