I can't figure out how to find the integral for
$$ \int e^{-3x}\sin(x)dx $$
I get to
$$ (e^{-3x})(-\cos(x))-e^{-3x}-\sin(x) $$
and I don't know what to do after. My teacher said the answer was
$$ -\frac{1}{10} \left[e^{-3x}\cos(x)+3e^{-3x}\sin(x) \right]+C. $$
I'm not sure how to get there.
Hint:
You have to use a standard trick of using integration by parts twice so that you differentiate the $\sin(x)$ and integrate the $e^{-3x}$. After doing it twice you will get the same integral (the integral you are trying to find) on the right hand side. Then just solve for the integral.