Sub topic 11
Where the energy goes while an RC circuit charges
This chapter assumes you know Ohm's law, KVL, the relation E = ½CV², and the RC charging curve vC(t) = Vs(1 − e^(−t/RC)) from the previous chapters. Here you will track the energy through the circuit and find a result that surprises many learners.
The question
A source of voltage Vs charges a capacitor C through a resistor R, starting from 0 V. When the capacitor is full, it holds E = ½CVs² of energy. How much energy did the source supply to get it there?
The source delivers charge Q = CVs at a constant voltage Vs. Its energy output is therefore:
E_source = Q · Vs = CVs²
That is twice the energy the capacitor stores. The other half is not lost to the source or to the capacitor. It is dissipated as heat in the resistor.
Energy accounting
| Item | Energy |
|---|---|
| Supplied by the source | CVs² |
| Stored in the capacitor | ½CVs² |
| Dissipated in the resistor | ½CVs² |
Verifying with the resistor
The current while charging is i(t) = (Vs/R) e^(−t/τ), with τ = RC. The power in the resistor is i²R. Integrate it from 0 to infinity:
E_R = ∫ i²R dt = (Vs²/R) ∫ e^(−2t/τ) dt = (Vs²/R) · (τ/2) = ½CVs²
This matches the energy stored in the capacitor. The value of R cancels out. A large resistor charges the capacitor slowly and a small one charges it quickly, but both waste the same ½CVs².
Checking the numbers
This script integrates the power numerically, using the values from earlier chapters. It confirms the split.
import math
Vs = 5.0
R = 10e3
C = 100e-6
tau = R * C
dt = tau / 10000
t = 0.0
e_source = 0.0
e_resistor = 0.0
while t < 10 * tau:
i = (Vs / R) * math.exp(-t / tau)
e_source += Vs * i * dt
e_resistor += i**2 * R * dt
t += dt
e_cap = 0.5 * C * Vs**2
print(f"Source: {e_source:.6f} J")
print(f"Resistor: {e_resistor:.6f} J")
print(f"Capacitor: {e_cap:.6f} J")The source gives about 0.0025 J. The resistor and the capacitor each account for about 0.00125 J.
Common errors
- Expecting 100% efficiency. Charging from a constant voltage source through a resistor always wastes half the energy, whatever the value of R.
- Forgetting the source term. Comparing only the capacitor and the resistor hides the fact that the source supplies CVs².
- Assuming a smaller R saves energy. It only shortens the time. The heat is the same.
Discharging
When the capacitor discharges through a resistor, the stored ½CV0² all ends up as heat in the resistor. The source plays no part. Integrating i²R gives the same result as the energy that was stored.
Exercise
A 200 µF capacitor is charged from 0 V to 12 V through a 1 kΩ resistor from a 12 V source. How much energy does the source supply, how much does the capacitor store, and how much heat does the resistor dissipate?
Show answer
The source supplies CVs² = 200e-6 × 144 = 0.0288 J. The capacitor stores ½CVs² = 0.0144 J. The resistor dissipates the remaining 0.0144 J. The 1 kΩ value does not change these numbers.
Exercise
A student replaces the 1 kΩ resistor in the previous exercise with a 100 Ω resistor. The student claims that less energy will be wasted. Is this correct?
Show answer
No. The resistor dissipates ½CVs² regardless of R. A smaller R makes the charging faster, because τ = RC is smaller, and raises the peak current to Vs/R. The wasted energy stays at 0.0144 J.