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