Is there some trick to quickly integrate
$$\int_{0}^{\infty}t^2\exp(-t)\sin(t)$$
or is there a way one can see that this integral equals $\frac{1}{2}$?
I'm asking because I am preparing for a test and it seems like integration by parts would take far too long.
Since $\int_0^\infty t^2 e^{-zt}dt=\frac{2}{z^3}$ if $\Re z>0$, the desired integral is $$\Im\int_0^\infty t^2\exp\Big[-(1-i)t\Big]dt=\Im\frac{2}{(1-i)^3}=\Im\frac{1}{\sqrt{2}}e^{3\pi i/4}=\frac{1}{\sqrt{2}}\sin\frac{3\pi}{4}=\frac{1}{2}.$$