I'm currently going over some ODEs, some help would be appreciated, a past exam says the following:
An electrical circuit consists of a capacitor, $C$, an inductance, $L$, an ammeter with resistance $R$, and an open switch, all connected in series.The capacitor initially carries a charge $Q_0$. At time $t = 0$ , the switch is closed and it is observed that current starts to flow and that, initially, the current is given by $I_0 = -\frac{5R}{L} $. The charge carried by the capacitor is described by the differential equation $$L\frac{dI}{dt} + RI + \frac{Q}{C} = 0$$ As $I = \frac{dQ}{dt}$, we can write the above equation as $$L \frac{d^2 Q}{dt^2} + R\frac{dQ}{dt} + \frac{Q}{C} = 0$$ We are asked to prove that $Q(t) = Q_0e^{-\frac{Rt}{2L}}\cos(\omega t + \phi)$ is a solution, which I did. $$\omega = \sqrt{\frac{1}{C} - \frac{R^2}{4L^2}}$$
My question is: How do you solve for $Q_0$ and $\phi$?
EDIT: The question says to find the above values, surely that would mean values of R, L and C are needed? So would it just mean find the functions?
EDIT 2: Here's the question in its entirety.
Differentiating the general solution
\begin{align} Q(t) &= e^{-\frac{Rt}{2L}}(A\cos \omega t+B\sin \omega t) \\ Q'(t) &= e^{-\frac{Rt}{2L}} \left[ \left( \omega B-\frac{AR}{2L} \right) \cos \omega t- \left( \omega A+\frac{BR}{2L} \right) \sin \omega t \right] \end{align}
Equating the boundary conditions $$ \left \{ \begin{align} Q(0) &= Q_0 \\ Q'(0) &= I_0 \end{align} \right.$$
Put $t=0$,
$$\left \{ \begin{align} Q_0 &= A \\ I_0 &= \omega B-\frac{AR}{2L} \end{align} \right.$$
On solving,
$$ \left \{ \begin{align} A &= Q_0 \\ B &= \frac{I_0}{\omega}+\frac{Q_0 R}{2L\omega} \end{align} \right.$$
Therefore,