integrate using midpoint method x e%5Ex