RC Circuits: Charging and Discharging of Capacitors

Charging Capacitor
A simple RC circuit contains a resistor and a capacitor.

Assume there is no initial charge on the capacitor(q=0). At t=0 the switch S is at position "a". The capacitor acts like an ideal wire initially, and charge on it starts to increase.

According to Kirchhoff’s voltage rule, we have 0=E−iR−Cq .
Therefore the current is i=R1(E−Cq)=dtdq .
The charge is the solution to the first-order differential equation above, and is given by:
- q(t) is the charge on the capacitor as a function of time t
- C is the capacitance (of the capacitor)
- E is the EMF supplied by the battery
- R is the resistance (of the resistor)
- Q is the final (maximum) charge on the capacitor, given by Q=CE

The time constant τ is a measure of how fast the charging or discharging happens. It is the time at which the current in the circuit has changed (dropped) by a factor of 1/e.
For RC circuits the time constant is:
Differentiating charge with respect to time gives the current as:
- i(t) is the current as a function of time
- I is the initial (maximum) current in the circuit, given by I=RE

We can use V=Cq to get the potential difference across the charging capacitor:
- VC(t) is the voltage across the capacitor as a function of time


Discharging Capacitor
Now assume that the capacitor is charged to a value of q=Q0.
The switch S is turned to position "b" at t=0. The charge on the capacitor starts to decrease.
According to Kirchhoff’s voltage rule we have 0=−iR+Cq .
Therefore the current is i(t)=−RCQ=dtdq (the negative sign means the current is decreasing).
NOTE: when the capacitor is the source of the energy, it appears as +q/C in the voltage rule when you move in the direction of the current.

The charge is the solution to the first-order differential equation above, and is given by:
- q(t) is the charge on the capacitor as a function of time t
- C is the capacitance (of the capacitor)
- R is the resistance (of the resistor)
- Q0 is the initial (maximum) charge on the capacitor, given by Q0=CV0 (see below)
The current is also decreasing as:
- i(t) is the current as a function of time
- I0 is the initial (maximum) current in the circuit, given by I0=RV0
The potential difference across the discharging capacitor is:
- VC(t) is the voltage across the capacitor as a function of time
- V0 is the initial (maximum) voltage across the capacitor



Example: Maximum Charge
The capacitor in the circuit shown below is initially uncharged and the switch S is closed at time t=0. If E=50V, R=1 MΩ, and C=100µF, after how many seconds will the energy stored in the capacitor be equal to 60 mJ? What is the maximum charge sitting on this capacitor?
The energy stored by the capacitor is given by:
U=2Cq2
Let's put the charge q=CE(1−e−RCt) into this:
=2C[CE(1−e−RCt)]2
=21CE2(1−e−RCt)2
Rearrange for the time:
1−e−RCt=CE22U
e−RCt=1−CE22U
Put the numbers in:
=1−(100×10−6)(50)22(60×10−3)
=0.307
Change to log form:
−RCt=ln 0.307
t=−RC ln0.307
=−1×106×100×10−6ln 0.307
=118.03 (s)
If we wait for a very long time, the charge will increase up to the maximum charge given by:
Qmax=CE
=(100×10−6)(50)=0.005
=0.005 (C)