Sub topic 12
Charging and Discharging Through a Resistor
This chapter assumes you know C = Q/V, the energy U = ½CV², series and parallel combinations, Ohm's law, Kirchhoff's loop rule, and basic integration of exponentials.
Why the charge builds up gradually
When you connect an uncharged capacitor to a battery through a resistor, the charge does not jump to CV. The resistor limits the current. As charge collects on the plates, the capacitor's voltage opposes the battery, so the current falls. The process is smooth and exponential.
Charging: the equation
Take a battery of emf V, a resistor R and an uncharged capacitor C in series. Let q be the charge on the capacitor at time t. Kirchhoff's loop rule gives:
V − iR − q/C = 0, where i = dq/dt
Separate variables and integrate from q = 0 at t = 0:
dq / (CV − q) = dt / (RC)
The solution is:
- q(t) = CV(1 − e^(−t/RC))
- i(t) = (V/R) e^(−t/RC)
- V_C(t) = V(1 − e^(−t/RC))
- V_R(t) = V e^(−t/RC)
The product τ = RC is the time constant. It has units of seconds (ohm times farad).
import math
def charging_charge(t, C, V, R):
return C * V * (1 - math.exp(-t / (R * C)))
R, C, V = 1e3, 1e-6, 10.0
tau = R * C
print(charging_charge(tau, C, V, R) / (C * V)) # about 0.632After one time constant the charge is 1 − 1/e ≈ 63.2% of its final value. After 5τ it is above 99%.
Discharging
Now remove the battery and let a capacitor with initial charge Q0 discharge through R. The loop rule gives q/C + iR = 0, with i = −dq/dt. The solution is:
- q(t) = Q0 e^(−t/RC)
- i(t) = (Q0/RC) e^(−t/RC)
After one time constant the charge falls to 1/e ≈ 36.8% of Q0.
Limiting behaviour you can use directly
| Moment | Uncharged capacitor charging | Fully charged capacitor, long after |
|---|---|---|
| t = 0 | Acts like a wire (zero voltage). Current is V/R. | Not applicable |
| t → ∞ | Acts like an open circuit. Current is zero. Charge is CV. | Current is zero. |
Use this to find initial and final currents in a multi-resistor circuit without solving any differential equation. At t = 0 replace the uncharged capacitors by wires. At t → ∞ replace them by breaks in the circuit.
Worked example
A 2 µF capacitor is charged through 500 kΩ from a 12 V battery. Find the time at which the charge is half its final value.
Set 1 − e^(−t/τ) = ½, so t = τ ln 2.
τ = 500×10³ × 2×10⁻⁶ = 1 s, so t = 0.693 s.
At that moment the current is half its initial value, V/(2R) = 12 / (2 × 500×10³) = 12 µA.
Common errors
- Using V/R as the current at all times. It is the current only at t = 0.
- Treating τ as the time to finish. The process never strictly ends. Use 3τ to 5τ as a practical estimate.
- Forgetting that with several resistors and capacitors, τ uses the equivalent resistance seen by the capacitor, with the sources set to zero, and the equivalent capacitance.
- Mixing up which quantity rises and which falls. During charging, q and VC rise, while i and VR fall.
Exercises
Exercise
A 5 µF capacitor, initially uncharged, is connected in series with a 2 MΩ resistor and a 20 V battery. Find the charge on the capacitor and the current at t = 10 s.
Show answer
τ = RC = 2×10⁶ × 5×10⁻⁶ = 10 s, so t = τ. The final charge is CV = 100 µC. The charge is q = 100 µC × (1 − e^(−1)) ≈ 63.2 µC. The initial current is V/R = 10 µA, so i = 10 µA × e^(−1) ≈ 3.68 µA.
Exercise
A capacitor discharges through a resistor. After 2 s its charge is 25% of the initial charge. Find the time constant.
Show answer
Q/Q0 = e^(−t/τ) = 0.25, so t/τ = ln 4 = 1.386. Then τ = 2 / 1.386 ≈ 1.44 s.