Before writing the differential equations of LC and RLC circuits, it is necessary to clarify when dQ/dt=+idQ/dt = +i and when dQ/dt=idQ/dt = -i. The answer goes through the continuity equation for charge and two conventional choices: which plate we enclose and which direction we orient the current.