Given,
Ldidt+Ri+qc=vi
Multiplying by i,
Lididt+Ri2+qic=vi ---(i)
Lididt=ddt(12Li2)
Lididt= rate of change of energy stored in an inductor
Ri2= joule heating loss
qci=ddt(q22c)
qci = rate of change of energy stored in the capacitor
vi= rate of at which driving force pours in energy
It goes into ohmic loss and increase of stored energy
Equation (i) is in the form of conservation of energy statement.
∫T0 dt ddt(L2i2+q2c)+∫T0 Ri2 dt=∫T0 vidt 0+(+ve)=∫T0 vidt
∫T0 vidt>0 if phase difference is a constant and an acute angle.