Sub topic 17
Charging and Discharging a Capacitor Through a Resistor
This chapter assumes you know that a capacitor stores charge Q = CV and energy ½CV², and that you can write Kirchhoff's loop rule for a single loop. It covers the RC circuit: how current and voltage change with time when a capacitor is connected to a resistor.
Why the time dependence matters
In steady DC circuits, a capacitor acts as a break once it is fully charged. No current flows through it. The interesting part is the transient period, when charge is still moving on or off the plates. A resistor in the path limits the current, so the capacitor cannot charge or discharge instantly. The speed of this process is set by one number, the time constant.
Charging: the loop equation
Connect an uncharged capacitor C, a resistor R and a cell of EMF E in series, then close the switch. At time t, let q be the charge on the capacitor and i the current. Kirchhoff's loop rule gives:
E − iR − q/C = 0, with i = dq/dt
Rearranging gives dq/dt = (E − q/C)/R = (CE − q)/(RC). Separate variables and integrate from q = 0 at t = 0:
q(t) = CE(1 − e^(−t/RC))
Differentiate to get the current and use V_C = q/C for the capacitor voltage:
- Charge: q = Q₀(1 − e^(−t/RC)), where Q₀ = CE is the final charge.
- Capacitor voltage: V_C = E(1 − e^(−t/RC)).
- Current: i = (E/R) e^(−t/RC).
- Resistor voltage: V_R = iR = E e^(−t/RC).
At every instant VR + VC = E, which is just the loop rule restated.
The time constant
The quantity τ = RC has the dimension of time. Check the units: ohm × farad = (V/A)(C/V) = C/A = s.
After one time constant, the exponent is −1, so e^(−1) ≈ 0.368.
- While charging, the capacitor has reached 1 − 0.368 ≈ 63.2% of its final charge.
- While discharging, the capacitor has fallen to 36.8% of its starting charge.
A larger R or larger C makes the process slower. Practically, the capacitor is considered fully charged after about 5τ, when it has reached 99.3% of the final value. Mathematically it never reaches the final value exactly.
| Elapsed time | Charging: fraction of final value | Discharging: fraction remaining |
|---|---|---|
| τ | 0.632 | 0.368 |
| 2τ | 0.865 | 0.135 |
| 3τ | 0.950 | 0.050 |
| 5τ | 0.993 | 0.007 |
Discharging
Now suppose the capacitor holds charge Q₀ (voltage V₀ = Q₀/C) and is connected across only the resistor, with no cell. The loop rule gives −iR − q/C = 0. Here the current is defined as i = −dq/dt, because the charge on the plate decreases. So:
dq/dt = −q/(RC), which gives q(t) = Q₀ e^(−t/RC)
The other quantities follow:
- Capacitor voltage: V_C = V₀ e^(−t/RC).
- Current magnitude: i = (V₀/R) e^(−t/RC).
- The current direction is opposite to the charging current in the same circuit.
At t = 0 the discharge current is V₀/R, the largest value. It decays by the same factor as the charge.
Initial and final behavior
JEE problems often ask for the current "just after" a switch is closed, or "after a long time". Two rules cover most of these cases.
- At t = 0 with an uncharged capacitor, the capacitor acts like a wire (zero voltage across it). The current is determined by the resistors alone. A capacitor that has charge q₀ acts like a cell of voltage q₀/C at that instant.
- At t → ∞, the capacitor acts like an open circuit (a break). Its branch carries no current, and the voltage across it is whatever the rest of the circuit imposes.
The capacitor voltage cannot jump instantly, because that would need infinite current. The current through a resistor, on the other hand, can change abruptly.
Energy accounting
Charging a capacitor from an uncharged state through any resistor R gives:
- Energy supplied by the cell: E × Q₀ = CE².
- Energy stored in the capacitor: ½CE².
- Energy dissipated as heat in the resistor: ½CE².
The result is independent of R. You can verify it by integrating the heating power: ∫ i²R dt = (E²/R²)·R·(RC/2) = ½CE². Exactly half of the cell's energy is lost as heat, no matter how large or small R is.
During discharge, all the stored energy ½CV₀² is converted to heat in the resistor.
Numerical check in Python
The following code evaluates the two formulas at t = τ for R = 1 kΩ and C = 100 µF, so τ = 0.1 s.
import math
def charging_voltage(E, R, C, t):
return E * (1 - math.exp(-t / (R * C)))
def discharging_voltage(V0, R, C, t):
return V0 * math.exp(-t / (R * C))
E, R, C = 10.0, 1e3, 100e-6 # time constant RC = 0.1 s
print(charging_voltage(E, R, C, 0.1)) # about 6.32 V, 63.2 percent of E
print(discharging_voltage(E, R, C, 0.1)) # about 3.68 V, 36.8 percent of EThe code prints about 6.32 and 3.68, matching the 63.2% and 36.8% figures.
Worked example: time to reach a given voltage
A 2 µF capacitor is charged through 500 kΩ from a 12 V cell. How long until the capacitor voltage reaches 8 V?
Here τ = RC = 500 × 10³ × 2 × 10⁻⁶ = 1 s. Using V_C = E(1 − e^(−t/τ)):
8 = 12(1 − e^(−t)), so e^(−t) = 1/3, so t = ln 3 ≈ 1.10 s.
The same capacitor discharging from 12 V would fall to 8 V when e^(−t) = 2/3, which takes t = ln 1.5 ≈ 0.41 s.
Common errors
- Using t = RC as the time for full charging. It is only the time to reach 63%.
- Writing the charging formula for the discharging case, or the reverse. Check the limits: charging starts at zero and rises, while discharging starts at its maximum and falls.
- Forgetting that current depends on the exponential during charging. The current is not constant, so q ≠ it unless you integrate.
- Assuming the capacitor voltage jumps when a switch changes. Only the capacitor charge and voltage are continuous.
- Treating the capacitor as a wire at late times. After a long time it is a break, not a wire.
- Using the wrong resistance in τ. In a circuit with several resistors, use the equivalent resistance seen by the capacitor, with the cell replaced by its internal resistance (ideal cell: a wire).
Equivalent resistance for τ
For a general network, find the Thevenin-style equivalent. Remove the capacitor, replace the sources by their internal resistances, and compute the resistance between the two terminals where the capacitor was attached. Then τ = Req C. For example, if R₁ and R₂ are in parallel across the capacitor after the cell is removed, then Req = R₁R₂/(R₁ + R₂).
Exercises
Exercise
A 5 µF capacitor, initially uncharged, is connected in series with a 2 MΩ resistor and a 20 V cell. Find (a) the time constant, (b) the current at t = 0, and (c) the capacitor voltage at t = 10 s.
Show answer
(a) τ = RC = 2 × 10⁶ × 5 × 10⁻⁶ = 10 s. (b) At t = 0 the capacitor acts as a wire, so i = E/R = 20 / (2 × 10⁶) = 10 µA. (c) At t = 10 s, t = τ, so V_C = 20(1 − e⁻¹) ≈ 20 × 0.632 ≈ 12.6 V.
Exercise
A capacitor charged to 100 V discharges through a resistor. After 20 s the voltage is 25 V. Find the time constant, and the voltage after 40 s.
Show answer
V = V₀e^(−t/τ), so 25 = 100e^(−20/τ), so e^(−20/τ) = 1/4, so 20/τ = ln 4 = 2 ln 2, so τ = 10/ln 2 ≈ 14.4 s. At 40 s the voltage has fallen by the factor 1/4 twice, so V = 100 × (1/4)² = 6.25 V.
Exercise
A 100 µF capacitor is charged to 10 V through a 50 Ω resistor from a 10 V cell. How much heat is produced in the resistor, and how does it change if the resistor is replaced by 500 Ω?
Show answer
The heat equals the energy stored: ½CE² = ½ × 100 × 10⁻⁶ × 100 = 5 × 10⁻³ J = 5 mJ. With 500 Ω the heat is still 5 mJ, because it does not depend on R. Only the charging time (τ = 5 ms versus 50 ms) changes.