The RC circuit is composed of a resistor, a switch and a capacitor. The switch controls flow from the battery to the resistor and capacitor that are wired in series.

1). Turn circuit “on” by switching S to the “a” position. 2). Write potential for each element 3). Write loop rule paying attention to signs.

Using the above two we can use the loop rule, as depicted by the purple rectangle in the figure above. This yields the below equation.

Rewriting the above equation in terms of charge instead of current yields the below:

Then we can integrate:

Letting so

Initial conditions: Uncharged capacitor at

All of the above was about turning the circuit “on”. Now what if we turn the circuit “off”?

We can redo the loop rule again with the switch in the B position after the capacitor is charged:

or