Sub topic 12
Energy Stored and Energy Dissipated
This chapter assumes you can write the RC and RL step responses, know the time constant (tau = RC or L/R), and can integrate exponentials. Here you follow the energy through a transient. You will see where it is stored, where it goes, and why the numbers come out the way they do.
Energy in the storage elements
An ideal capacitor and an ideal inductor do not dissipate energy. They store it and give it back.
For a capacitor, the instantaneous power is p = v·i = v·C·dv/dt. Integrating from an initial voltage of zero gives the stored energy:
- Capacitor: w_C = (1/2)·C·v²
- Inductor: w_L = (1/2)·L·i²
The inductor result follows the same way from p = v·i = L·i·di/dt.
Both formulas depend only on the present state, which is the capacitor voltage or the inductor current. They do not depend on how the element reached that state. This links directly to the continuity rules. Voltage across a capacitor and current through an inductor cannot jump, so the stored energy cannot jump either. An instant change in energy would need infinite power.
Power in the resistor
A resistor converts electrical energy to heat. Its instantaneous power is pR = vR²/R = i²R. This is never negative. Over a transient, the total energy turned to heat is the integral of p_R from the switching time to infinity.
Energy balance in a natural response
Take a capacitor with initial voltage V0 that discharges through a resistor R. The voltage is
v(t) = V0·e^(-t/tau), with tau = RC.
The resistor power is
p_R(t) = v²/R = (V0²/R)·e^(-2t/tau).
Integrate from 0 to infinity:
w_R = (V0²/R) · ∫ e^(-2t/tau) dt = (V0²/R) · (tau/2) = (V0²/R)(RC/2) = (1/2)·C·V0².
This equals the energy that was stored at t = 0. All of it ends up as heat in the resistor, and none is left in the capacitor. The resistor value R cancels out. A larger R makes the discharge slower and the power lower, but the total heat is the same.
The RL case works the same way. An inductor with initial current I0 through R has i(t) = I0·e^(-t/tau), with tau = L/R. The dissipated energy is
w_R = I0²R · (tau/2) = I0²R · L/(2R) = (1/2)·L·I0².
Again the dissipated energy equals the initial stored energy.
How much energy is gone after a given time
Since the energy in the capacitor is proportional to v², it decays as e^(-2t/tau). That is twice as fast as the voltage. The energy remaining after time t is
w(t) = w(0)·e^(-2t/tau).
| Time | Voltage remaining | Energy remaining | Energy dissipated |
|---|---|---|---|
| 0.5 tau | 60.7% | 36.8% | 63.2% |
| 1 tau | 36.8% | 13.5% | 86.5% |
| 2 tau | 13.5% | 1.8% | 98.2% |
| 5 tau | 0.67% | 0.0045% | 99.995% |
After one time constant, the voltage has lost 63.2% of its starting value, but 86.5% of the energy is already gone. Do not mix up the two percentages.
Energy balance in a step response
Now charge a capacitor from zero through R from a DC source V. The capacitor voltage is v_C(t) = V(1 - e^(-t/tau)), and the current is i(t) = (V/R)·e^(-t/tau).
Track three quantities.
Energy supplied by the source. The source power is V·i. Integrating over all time:
w_source = V · (V/R) · tau = V²C = C·V².
Energy stored in the capacitor at the end. The final voltage is V, so
w_C = (1/2)·C·V².
Energy dissipated in the resistor.
w_R = ∫ i²R dt = (V²/R) · (tau/2) = (1/2)·C·V².
The balance is
C·V² = (1/2)·C·V² + (1/2)·C·V².
Exactly half of the source energy goes into the capacitor. The other half is lost as heat in the resistor. This result does not depend on R or C. A smaller R makes the current larger and the charging faster, but the resistor still dissipates exactly (1/2)·C·V².
The RL step response has a similar structure. When a source V energizes an inductor through R, the final current is If = V/R. The stored energy is (1/2)·L·If². The source supplies more than that, and the difference is heat in R. During the build-up, the resistor also continues to dissipate power in steady state, since the current flows forever. So the "half and half" split does not apply to the RL step. The loss in R keeps growing for as long as the source stays connected, and only the transient part of the energy flow settles.
A worked example
A 100 µF capacitor charged to 12 V discharges through 2 kΩ.
- Initial energy: (1/2)(100×10⁻⁶)(12²) = 7.2 mJ.
- Time constant: tau = 2000 × 100×10⁻⁶ = 0.2 s.
- Resistor power at t = 0: V0²/R = 144/2000 = 72 mW.
- Energy dissipated in the first 0.2 s: 7.2 mJ × 0.865 = 6.23 mJ.
- Total energy dissipated: 7.2 mJ.
Notice that changing R to 20 kΩ stretches tau to 2 s and drops the initial power to 7.2 mW. The total is still 7.2 mJ.
Checking the balance numerically
The next script integrates the resistor power for a step response using the trapezoid rule. It compares the heat with the source energy and the stored energy.
import math
R = 10e3 # ohms
C = 100e-9 # farads
V = 5.0 # volts
tau = R * C
steps = 20000
t_end = 10 * tau
dt = t_end / steps
w_source = 0.0
w_R = 0.0
prev_i = V / R
for n in range(1, steps + 1):
t = n * dt
i = (V / R) * math.exp(-t / tau)
w_source += V * 0.5 * (prev_i + i) * dt
w_R += R * 0.5 * (prev_i**2 + i**2) * dt
prev_i = i
v_end = V * (1 - math.exp(-t_end / tau))
w_C = 0.5 * C * v_end**2
print(f"Source: {w_source * 1e6:.4f} uJ")
print(f"Resistor: {w_R * 1e6:.4f} uJ")
print(f"Capacitor: {w_C * 1e6:.4f} uJ")
print(f"Resistor + capacitor: {(w_R + w_C) * 1e6:.4f} uJ")The source energy should come out near C·V² = 2.5 µJ. The resistor and the capacitor should each be near 1.25 µJ. Small differences come from truncating the integral at 10 tau and from the trapezoid approximation.
Common errors
- Using the voltage percentage for energy. Energy follows v² or i², so it changes with e^(-2t/tau), not e^(-t/tau).
- Assuming the capacitor gets all the source energy. In a step charge from zero, half is dissipated.
- Forgetting that resistor loss does not depend on R in the capacitor case. R changes the rate, not the total.
- Applying the 50% rule to the RL step. The resistor keeps dissipating at steady state, so the energy split is not fixed.
- Treating stored energy as able to jump at a switching instant. Only the state variables are continuous, but ideal sources and resistors can change their power instantly. Energy stored cannot.
Exercise
A 47 µF capacitor is charged from 0 V to 9 V through a 1 kΩ resistor from a constant 9 V source. (a) How much energy does the source supply? (b) How much heat does the resistor produce? (c) What would the answer to (b) be if R were 100 Ω?
Show answer
(a) The source supplies C·V² = 47×10⁻⁶ × 81 = 3.81 mJ. (b) The capacitor stores (1/2)·C·V² = 1.90 mJ, so the resistor dissipates the other half, 1.90 mJ. (c) It is still 1.90 mJ. The total heat does not depend on R. Only tau changes, from 47 ms to 4.7 ms.
Exercise
An inductor of 50 mH carries 2 A and its current then decays through a 25 Ω resistor. (a) What energy is stored initially? (b) What is tau? (c) How much energy has been dissipated at t = tau?
Show answer
(a) (1/2)(0.05)(2²) = 0.1 J. (b) tau = L/R = 0.05/25 = 2 ms. (c) At t = tau the energy remaining is e^(-2) = 13.5% of 0.1 J, so 86.5% has been dissipated: 0.0865 J, or about 86.5 mJ.