Solution (source code)

= Solution

The <Bromwich contour>[Bromwich inversion integral] closes to the left for $t>0$. Equivalently, partial fractions at the two double poles give
$$
\frac1{s^2(s+2)^2}
=-\frac1{4s}+\frac1{4s^2}
+\frac1{4(s+2)}+\frac1{4(s+2)^2}.
$$
Taking residues therefore yields
$$
\boxed{f(t)=\frac14\bigl(t-1+(t+1)e^{-2t}\bigr)}.
$$