Sub topic 11
Capacitors and inductors: power and stored energy
This chapter assumes you know the passive sign convention, p = v·i, how to read the sign of p, and basic calculus. You also need the element laws i = C dv/dt for a capacitor and v = L di/dt for an inductor.
Power in a storage element
Capacitors and inductors do not dissipate energy like resistors. They store it and give it back. The sign of p tells you which way energy is moving at each instant.
Use the passive sign convention: current enters the + terminal. Then p = v·i is the power absorbed by the element.
- p > 0: the element absorbs power, so its stored energy grows.
- p < 0: the element delivers power, so its stored energy shrinks.
For a capacitor, substitute i = C dv/dt:
p = v·i = C·v·(dv/dt)
For an inductor, substitute v = L di/dt:
p = v·i = L·i·(di/dt)
The sign of p depends on whether the magnitude of v (or i) is rising or falling. If v is positive and rising, p is positive. If v is positive and falling, p is negative.
Stored energy
Energy is the integral of power. For a capacitor that starts uncharged at time 0:
w(t) = ∫ C·v·(dv/dt) dt = ½·C·v(t)²
For an inductor that starts with zero current:
w(t) = ∫ L·i·(di/dt) dt = ½·L·i(t)²
Both results depend only on the present value of v or i, not on how the element got there. Both are never negative, because v² and i² are never negative. An ideal capacitor or inductor can therefore give back only what it has stored. It cannot deliver more energy than it absorbed.
Worked values
The two energy formulas are easy to evaluate. This code uses a 1 mF capacitor at 10 V and a 2 mH inductor carrying 3 A.
# Energy stored in a capacitor and an inductor.
C = 1e-3 # farads
v = 10.0 # volts
L = 2e-3 # henries
i = 3.0 # amperes
w_C = 0.5 * C * v**2 # joules
w_L = 0.5 * L * i**2 # joules
print(w_C, w_L)
# 0.05 0.009The capacitor stores 0.05 J and the inductor stores 0.009 J.
Power over time: a numeric example
Take a 1 mF capacitor whose voltage rises linearly from 0 V to 10 V in 2 ms, then falls back to 0 V in 2 ms. The slope is ±5000 V/s.
- Rising: i = C·dv/dt = 1e-3 × 5000 = +5 A. At v = 10 V, p = 10 × 5 = +50 W.
- Falling: i = −5 A. At v = 10 V, p = 10 × (−5) = −50 W.
The capacitor absorbs energy for the first 2 ms and delivers it during the next 2 ms. The net energy over the full cycle is zero, since the capacitor starts and ends at 0 V.
| Quantity | Rising interval | Falling interval |
|---|---|---|
| dv/dt | +5000 V/s | −5000 V/s |
| i | +5 A | −5 A |
| p at v = 10 V | +50 W | −50 W |
| Energy stored | grows to 0.05 J | returns to 0 J |
Gotchas
- Continuity. Capacitor voltage and inductor current cannot jump, because that would need infinite power. Capacitor current and inductor voltage can jump.
- Zero current does not mean zero energy. A capacitor holding 10 V with no current still stores ½Cv². An inductor with zero voltage across it can still carry current and store energy.
- Sign convention. If you use the wrong current direction, the sign of p flips and "absorbing" becomes "delivering". Check that the current enters the + terminal before you apply p = v·i.
Exercise
A 2 mH inductor carries a current that falls from 3 A to 1 A while the current direction stays the same. Is the inductor absorbing or delivering power during this change? How much energy does it release?
Show answer
The current is positive and decreasing, so di/dt < 0 and p = L·i·(di/dt) < 0. The inductor is delivering power. Energy released = ½·L·(3² − 1²) = ½ × 0.002 × 8 = 0.008 J.