The integration equation is .
Midpoint Rule:
f(x) = 1/(1+x2), a = 0, b = 1, n = 4 and ∆x = .(1-0)/4 = 1/4 = 0.25.
The four sub-intervals are 0.125, 0.375, 0.625 and 0.875.