An RLC circuit (pictured above) is governed by two equations: \begin{align} -I_1 R &= -L \frac{dI_2}{dt} = \frac{q}{C}+V(t) \\ \frac{dq}{dt} &= I_1+I_2 \, . \end{align}
$q$ satisfies the equation $$\frac{d^2q}{dt^2}+\frac{1}{RC}\frac{dq}{dt}+\frac{1}{LC}q=-\frac{1}{R}\frac{dV}{dt}-\frac{1}{L}V \, .$$ The system is held in a steady state (i.e. $dq/dt=0$ and $V(t) = Q/C$) for negative time. At $t=0$ the voltage is switched off and $V(t) = 0$ for $t \geq 0$.
How does one derive the initial conditions for the system, i.e. $q(0)=Q$ and $\dot{q}(0)=Q/RC$?
My attempt: to calculate the charge in the steady state (just before $t=0$), I can set all derivatives with respect to time to 0. Then I get $V=-C/q$ and I can define $Q=-C/V$. I don't know how to handle the discontinuity at $t=0$ to obtain $\dot{q}(0)$ though.