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