If we have a inductor and capacitor in parallel, then from what I can tell, the equation for the current is just the simple harmonic motion equation: i = Acos(w0t) + Bsin(w0t).
However I am struggling to solve it for the initial conditions of the circuit suddenly being attached to a power source. I have read that the immediate voltage across the capacitor when the circuit is connected is 0 and that the immediate current through the inductor is also 0. Hence I've assumed that the voltage across the inductor must be 0 too due to KVL and that the current through the capacitor must also be 0 cos of ohms law (v=IR, I = 0 therefore V = 0).
Hence when t is 0 then A = 0
0 = Acos(w0t) + Bsin(w0t)
Bsin(0) = 0
(Acos(w0t) = Acos(0) = A
0 = A
However I am finding it really hard to find a value for B, taking the equation di/dt = v/L and solving for i to get the integral of v/L = ((vt)/ L) + C, but how can I find a value for V that doesnt just make i = 0. taking ((vt)/ L) + C = w0Bcos(w0t) doesnt seem to be getting much closer to a solution either, as I am not sure what to put as the value for v.
Any help would be much appreciated! Im sure there is something Ive missed like an extra initial condition or something in the calculating of the maths.
For some context, I have put together a driving circuit for a ZVS and I want to work out what values for the resonating inductor and capacitor I need to get a 20khz natural frequency and a resonant current of an amp or less (and from that appropriate values for chokes to protect the driver circuit) so I can test the circuit without worrying about damaging any of the measuring instruments.
 
     
    