s,t=var('s,t')
f=((s^3+6*s^2+14*s)/(s+2)^4)
inverse_laplace(f,s,t);f
inverse_laplace(f,s,t)