The original problem is:
$y''+9y = e^{-t} \sin (t)$
and the initial conditions are: $y(0)=-1$ and $y'(0)=1$.
I've taken the laplace of both sides and got:
$Y(s^2+9) = \frac{1}{(s+1)^2 +1} -s +1$
Once I divide through by $s^2 + 9$ the problems begin. The last two terms are straightforward but I'm having trouble finding an inverse laplace for the first term which is $\frac{1}{(s^2+9)(s^2+2s+2)}$.
I've tried to decompose it into the addition of two fractions by partial fraction decomposition by I keep failing to find two terms for A and B. What should i try or have i made a mistake so far in the steps i've taken?
Everything up to this point looks good:
$$Y(s) = \frac{1}{(s^2+9)((s+1)^2+1)} - s + 1$$
To do partial fractions on $\dfrac{1}{(s^2+9)((s+1)^2+1)}$, note that
$$\frac{1}{(s^2+9)(s^2+2s+2)} = \frac{As+B}{s^2+9} + \frac{Cs+D}{s^2+2s+2}$$ since each of $s^2+9$ and $s^2+2s+2$ are irreducible quadratics.
I leave it to you to show that
EDIT: Alternatively, you could note that
$$\mathcal{L}^{-1}\left\{\frac{1}{(s^2+9)((s+1)^2+1)}\right\} = \mathcal{L}^{-1}\left\{\frac{1}{s^2+9}\right\}\ast\mathcal{L}^{-1}\left\{\frac{1}{(s+1)^2+1}\right\} = \frac{1}{3}\sin(3t)\ast e^{-t}\sin t$$ where $f(t)\ast g(t) = \displaystyle\int_0^t f(t-\tau)g(\tau)\,d\tau$ denotes convolution. The computation of the convolution can be found in the spoiler below.
Where $$\int e^{ax}\cos(bx+c)\,dx = \frac{e^{ax}}{a^2+b^2}(a\cos(bx+c)+b\sin(bx+c))+C$$ can easily be shown using integration by parts.