integrate using midpoint method x^2 sin(x) from 0 to 2 pi