I am given a charge of $Q(t)$ on the capacitor of an LRC circuit with a differential equation
$Q''+2Q'+5Q=3\sin(\omega t)-4\cos(\omega t)$ with the initial conditions $Q(0)=Q'(0)=0$
$\omega >0$ which is constant and $t$ is time. I am then asked find the steady state and transient parts of the solution and the value of $\omega$ for which the amplitude of the steady state charge maximal.
I believe the transient part is just the homogeneous solution to the ODE and the steady state part of this solution is the complementary solution.
I solved the homogeneous and got
$Q_{tr}=c_1e^{-t}\sin(2t)+c_2e^{-t}\cos(2t)$ which I am pretty sure is right.
The problem is that I am not given a value for $\omega$ so if I were to go ahead and solve it, I would get a mess because I use undetermined coefficients.
So if I go ahead and "guessed" a solution, I get $Q_{ss}=A\sin(\omega t)+B\cos(\omega t)$ but if I differentiated this and actually plugged this into the derivative I get a huge mess so I am not sure if that's entirely the right way to approach this problem...
I mean if I actually solved the steady state solution, I get:
$Q(t)= c_1e^{-t}sin(2t)+c_2e^{-t}cos(2t)+ \frac{-3\omega^2-8\omega+15}{\omega^4-6\omega^2+25} \sin( \omega t)+\frac{4\omega^2-6\omega-20}{\omega^4-6\omega^2+25} \cos( \omega t)$
Plugging the initial conditions into this would be terrible. Is this even the correct approach?
For the second part of the problem I guess that I would take the derivative of $Q(t)$ and then find the critical points for which there will be a maximum but I am not sure about that.
Any guidance would be much appreciated thanks :) .