Sub topic 12
Energy Stored and Energy Dissipated
This chapter assumes you can write the capacitor and inductor relations, solve the RC and RL step and natural responses, and integrate exponentials. Here you follow the energy through a transient. It tells you where the source's energy goes and gives a check on your formulas.
Energy stored in C and L
A capacitor stores energy in its electric field. An inductor stores it in its magnetic field. Both follow from integrating the power p = v·i.
- Capacitor: w_C = ½ C v²
- Inductor: w_L = ½ L i²
Both energies depend on the continuous state variable: capacitor voltage and inductor current. Because those cannot jump, stored energy cannot jump either. A jump would need infinite power.
Energy dissipated in the resistor
The resistor turns electrical energy into heat at p = i²R. Integrate this over the whole transient to get the dissipated energy.
For the RC discharge from V₀, the current is i(t) = (V₀/R)e^(−t/τ):
E_R = ∫₀^∞ (V₀²/R) e^(−2t/τ) dt = (V₀²/R)(τ/2) = ½ C V₀²
The resistor dissipates exactly the energy the capacitor held. The value of R changes how fast this happens, but not how much. The RL decay works the same way and gives E_R = ½ L I₀².
Charging: the source supplies twice what the capacitor keeps
During an RC step from 0 to V, the source delivers charge CV at voltage V, so it supplies E_src = CV². The capacitor ends with ½CV². The resistor dissipates the other ½CV².
The 50% split holds for any R, even a very small one. A small R gives a large initial current, but the transient is short. The product of the two stays the same.
Checking the numbers
The script uses the RC values from the earlier chapters. It integrates i²R numerically over 10τ and compares the result with the formulas.
import math
R = 10e3 # ohms
C = 100e-9 # farads
V = 5.0 # volts, step source
tau = R * C
N = 200000
T = 10 * tau
dt = T / N
e_r = 0.0
for k in range(N):
t = (k + 0.5) * dt # midpoint rule
i = (V / R) * math.exp(-t / tau)
e_r += i * i * R * dt
e_c = 0.5 * C * V**2
e_src = C * V**2
print(f"Resistor (numeric): {e_r * 1e6:.4f} uJ")
print(f"Capacitor stores: {e_c * 1e6:.4f} uJ")
print(f"Source supplies: {e_src * 1e6:.4f} uJ")The resistor energy matches the capacitor energy at 1.2500 µJ, and the source supplies 2.5000 µJ. If your numeric integral disagrees, check the current expression first.
Common errors
- Using ½CV² as the source energy. The source supplies CV².
- Expecting a larger R to waste less energy in a step charge. It changes only the timing.
- Applying the energy formulas to the wrong instant. Use the initial or final value of the state variable, which is continuous across a switch. Other quantities may jump.
- Forgetting that an inductor's energy needs its current, not its voltage.
Summary table
| Transient | Energy stored at end | Energy dissipated in R |
|---|---|---|
| RC discharge from V₀ | 0 | ½CV₀² |
| RC charge to V | ½CV² | ½CV² |
| RL decay from I₀ | 0 | ½LI₀² |
Exercise
An inductor L = 10 mH carries I₀ = 0.5 A, and a switch connects it to a 50 Ω resistor with no source. How much energy does the resistor dissipate, and does the answer change if the resistor is 500 Ω?
Show answer
The resistor dissipates all the stored energy: ½ L I₀² = ½ (0.010)(0.5)² = 1.25 mJ. With 500 Ω the total is still 1.25 mJ. Only the time constant changes, from 0.2 ms to 0.02 ms.
Exercise
A 2 µF capacitor is charged from a 12 V source through a resistor. Find the energy supplied by the source, the energy stored, and the energy lost as heat.
Show answer
The source supplies CV² = (2e-6)(144) = 288 µJ. The capacitor stores ½CV² = 144 µJ. The resistor dissipates the remaining 144 µJ.