i)An electrical circuit consists of an inductor of inductance
L in series with a capacitor of capacitance
C. An alternating voltage of Eocos(wt) is applied to the circuit at time
t=0 with the initial charge
q in the circuit being zero and the initial current
i (=
dq/dt) being zero. Using Kirchoff’s laws the charge in the circuit satisfies the equation[/FONT]
Show that the charge in the circuit at any time t is given by the equation
![<br />
q = \frac{Eo}{L(w^2 - n^2)}[cos(nt) - cos(wt)] <br />](http://latex.codecogs.com/png.latex? <br />
q = \frac{Eo}{L(w^2 - n^2)}[cos(nt) - cos(wt)] <br />
)
where

I can get most of this. I dont get the cos(nt) bit and my denominator is