What is the midpoint rule formula?
Midpoint Rule:
The function fx is continuous on the interval a,b, then the midpoint formula for approximating the definite integral is,
∫abfxdx≈∑i=1nfxi¯△x=△xf(x1)+f(x2)+f(x3)+....+f(xn)
Where △x=b-an
And midpointofxi-1,xi=xi=12xi-1+xi