Consider the RLC circuit below.
In fact, it is a normalized filter with Butterworth approximation of 3rd order.
Now suppose that for some reason I am interested in the time domain formulation. Using KCL and KVL I ended up with these state equations:
\begin{gather} \frac{\mathrm{d}i_L}{\mathrm{d}t} = \frac{1}{L}(v_{C1} - v_{C2})\\ \frac{\mathrm{d}v_{C1}}{\mathrm{d}t} = \frac{1}{C_1}\left(\frac{v_{C1}}{R1} + i_L\right)\\ \frac{\mathrm{d}v_{C2}}{\mathrm{d}t} = \frac{1}{C_2}\left(\frac{v_{C2}}{R2} - i_L\right) \end{gather}
But when I am trying to get a transient response of these equations using some numerical integration scheme like Runge-Kutta or implicit backward Euler, the solution blows up.
Only for an initial condition \$(0,0,0)\$ it is zero everywhere. Whenever I try to put the different initial conditions, let's say \$(0.5,1,1)\$ it blows up.
Am I using initial conditions the wrong way? How to choose them correctly? I understand that by saying that for example \$v_{C1} = 10\$, it means that \$i_L = 10/(1||1)\$. Or is it even true? What is then \$v_{C2}\$?