RC circuit
From Physics wiki
Given a closed circuit with a source of constant voltage
, an ideal capacitor with capacitance
and a total equivalent resistanc
(which may include the internal resistances of the voltage source, wires and capacitor), we analyse the circuit as follows.
Assign a direction to the unknown time-varying current
and use Kirchoff's voltage law. Summing voltage increases around the loop we have:
Where Q(t) is the time-dependent charge accumulated on the capacitor.
Since
, we can write a single first-order differential equation:
which we easily solve by directly integrating from some initial time
to some final time
.
This is re-arranged into:
In the special case of charging a capacitor from zero charge
at
, we get the familiar result:
.
Similarly for a capacitor with initial charge
at
and no other voltage sources
, we obtain the other familiar result for a discharging capacitor:
.

