s,t=var('s,t')
f=((s+1)/(s^2)*e^-s)
inverse_laplace(f,s,t);f
inverse_laplace(f,s,t)