integrate using midpoint method x e^(-(t - x)) from 0 to t