The signs can be a bit confusing in these loops, as currents can flow
in either direction and the quantities can be increasing or
decreasing, so the derivatives of charges and currents can be positive
or negative. The important thing is that the relation between the signs in
the resulting differential equation is right -- the solution should then give you
the right actual signs of currents and voltages.
I wrote down
, and then
, as follows:
Imagine the capacitor is has just been
charged up (say, on the top plate,
on the bottom) and take
the moment at which the current has just started flowing counter
clockwise (the loop rule will still be true at any moment). We'll take
to be the charge on the top plate.
Step
around the loop in the direction of the current. The voltage change
across the capacitor is
, and the voltage change across the resistor in the direction
of the current is
. The inductor will be developing an EMF
proportional to
. If
is CCW as the discharge starts, the inductor (by Lenz's Law) is creating a back-emf to counteract the increase in current, so an emf that is negative,
. So we have
. But then, since
is the charge on the top plate, and it's decreasing, we should write
and
so
.
Similarly, for the LC circuit
we write
, then take
to get
.