I try to solve using laplace transform $y'' + y = \sin (t)$ with $y(0) = 1$ and $y'(0) = 2$ but I don't get a solution, I don't know why. I check my work and it seems fine.
Is possible the initial conditions are wrong, or not consistent with the system.
After the transform we have
$$ s^2Y(s)+Y(s) = \frac{1}{s^2+1}+s \dot y(0) + y(0) $$
or
$$ Y(s) = \frac{1}{(s^2+1)^2}+\frac{s}{s^2+1}\dot y(0)+\frac{1}{s^2+1}y(0) $$
At this point we can use the Laplace transforms table assigning the due inverses
$$ y(t) = \left(\frac{1}{2}(\sin(t)-t\cos(t))+\cos(t)\dot y(0)+\sin(t)y(0)\right)u(t) $$
where $u(t)$ is the unit step function.