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