integral (2-t)*exp(-p*t) for t=1 to 2