Sub topic 11
Capacitors and Inductors: Power and Stored Energy
This chapter assumes you know the passive sign convention, the formula p = v·i, and how to read a positive or negative p as absorbing or delivering. It also assumes you can differentiate and integrate simple functions. Here you apply those ideas to the two elements that store energy instead of dissipating it.
Why storage elements behave differently
A resistor turns every joule it absorbs into heat. Its power is never negative under the passive sign convention, and it keeps no memory of past energy.
Capacitors and inductors differ in two ways:
- Their power can be positive or negative, depending on whether the stored energy is growing or shrinking.
- In the ideal case they dissipate nothing. Every joule absorbed is stored and can be returned later.
This follows from their defining equations and from p = v·i.
Capacitor power and energy
With the passive sign convention, the current reference enters the terminal marked +. The capacitor law is then:
i = C dv/dt
Substitute into p = v·i:
p = v · C dv/dt = d/dt ( ½ C v² )
Power is the time derivative of ½Cv². Integrating from a time when the capacitor is uncharged (v = 0) gives the stored energy:
w_C(t) = ½ C v(t)²
Three consequences follow:
- The stored energy depends only on the present voltage, not on how the capacitor got there.
- Energy is never negative, because v² ≥ 0.
- Voltage cannot jump in a circuit with finite current. A jump would make dv/dt infinite, and so p = v·i would be infinite. This is why capacitor voltage is called a continuous quantity.
Inductor power and energy
For an inductor with the passive sign convention, the voltage reference has its + terminal where the current enters:
v = L di/dt
Then:
p = L i di/dt = d/dt ( ½ L i² )
The stored energy is:
w_L(t) = ½ L i(t)²
This mirrors the capacitor result, with the roles of voltage and current exchanged. Stored energy is never negative. Inductor current cannot jump in a circuit with finite voltage, because a jump needs infinite voltage and so infinite power.
| Property | Capacitor | Inductor |
|---|---|---|
| Defining law (passive convention) | i = C dv/dt | v = L di/dt |
| Power | p = C v dv/dt | p = L i di/dt |
| Stored energy | ½ C v² | ½ L i² |
| Continuous quantity | voltage | current |
| Behaviour at DC steady state | i = 0, acts as open circuit | v = 0, acts as short circuit |
| Power at DC steady state | 0 | 0 |
At DC steady state, energy is still stored. The power is zero because nothing is changing, and the stored energy stays constant.
Reading the sign of p for a storage element
The sign rule is the one you already know, but for these elements it has a direct physical meaning.
- p > 0: the element absorbs power, and the stored energy increases.
- p < 0: the element delivers power, and the stored energy decreases.
- p = 0: the stored energy is momentarily constant. This happens when v = 0 or i = 0, or when the element is at its energy peak or trough.
Since p = dw/dt, the sign of p is the sign of the slope of the stored energy. A capacitor charging toward a larger |v| has p > 0. A capacitor discharging toward v = 0 has p < 0, even though current and voltage may both still be nonzero. The same holds for an inductor as |i| grows or shrinks.
Stored energy from component values
The formulas give stored energy directly from a value of v or i.
# 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 at 10 V. The inductor stores 0.009 J at 3 A. Note that the sign of v or i does not matter, since both are squared.
Worked example: charging a capacitor with constant current
A 2 mF capacitor starts uncharged. A source pushes a constant 4 mA into the + terminal for 5 s.
- Find the voltage: v(t) = (1/C) ∫ i dt = (4×10⁻³ / 2×10⁻³) t = 2t volts. At t = 5 s, v = 10 V.
- Find the power: p(t) = v·i = 2t × 4×10⁻³ = 8×10⁻³ t watts. It is positive and grows linearly, so the capacitor absorbs more and more power.
- Integrate the power to get the energy: w = ∫₀⁵ 8×10⁻³ t dt = 4×10⁻³ × 25 = 0.1 J.
- Check with the formula: ½ C v² = ½ × 2×10⁻³ × 100 = 0.1 J. The two results match.
The constant current makes the power ramp up even though the current never changes. The voltage rises, so each coulomb delivered carries more energy.
Worked example: an inductor releasing its energy
A 2 mH inductor carries i(t) = 3e^(−1000t) A for t ≥ 0. The current reference enters the + terminal.
- Find the voltage: v = L di/dt = 2×10⁻³ × (−3000) e^(−1000t) = −6e^(−1000t) V.
- Find the power: p = v·i = −18e^(−2000t) W.
- The power is negative at all times, so the inductor delivers power for the whole decay.
- The energy delivered is ∫₀^∞ 18e^(−2000t) dt = 18/2000 = 0.009 J.
This equals the initial stored energy ½ L i(0)² = ½ × 2×10⁻³ × 9 = 0.009 J. The inductor gives back all of what it held. The voltage is negative while the current is positive. That is the signature of delivering power under the passive convention.
You can confirm the integral numerically:
import math
dt = 1e-6 # time step in seconds
w = 0.0 # accumulated energy absorbed, in joules
for k in range(20000): # 20 ms, about 40 power time constants
t = (k + 0.5) * dt # midpoint of the step
p = -18.0 * math.exp(-2000.0 * t) # watts
w += p * dt
print(f"{w:.6f}")
# -0.009000The sum is negative because the code accumulates energy absorbed. A value of −0.009 J means 0.009 J was delivered.
Energy over an interval
For any interval, the net energy absorbed is the integral of p:
w(t₁, t₂) = ∫ p dt = ½ C v(t₂)² − ½ C v(t₁)²
The same form holds for an inductor with i. This matters in two ways:
- You do not need the path between the two states. Only the start and end values of v (or i) matter.
- If a capacitor goes from 20 V to 10 V, it delivers energy, because |v| fell. The same is true if it goes from −20 V to −10 V.
Edge cases and ideal versus real parts
- Initial conditions. If a capacitor starts with v(0) ≠ 0, the energy absorbed after t = 0 is ½Cv(t)² − ½Cv(0)². Do not use ½Cv(t)² alone for an energy change.
- Net energy over a cycle. If a capacitor or inductor returns to its starting v or i, its net absorbed energy over that interval is zero. This is why ideal storage elements have zero average power in sinusoidal steady state, a point developed in the chapter on AC power.
- Real parts. A real capacitor has leakage and series resistance. A real inductor has winding resistance. These dissipate energy and are modeled as extra resistors alongside the ideal element. The formulas in this chapter apply to the ideal element only.
- Switching. An ideal switch that interrupts an inductor's current would demand an infinite voltage. Real circuits show a spark or use a snubber or diode to give the energy a path. In circuit problems, treat the inductor current as continuous across a switching instant.
Common sign mistakes with storage elements
- Writing i = C dv/dt when the current reference points out of the + terminal. In that case i = −C dv/dt.
- Reading p < 0 as "negative energy." Negative power means energy is leaving the element.
- Assuming a charged capacitor always delivers power. It delivers only while |v| is falling. While |v| is rising, p > 0.
Exercise
A 100 µF capacitor discharges from 20 V to 10 V. How much energy does it deliver, and is its power positive or negative during the discharge?
Show answer
Energy delivered = ½ C (v₁² − v₂²) = ½ × 100×10⁻⁶ × (400 − 100) = 0.015 J. The stored energy falls from 0.02 J to 0.005 J, so the capacitor delivers power and p is negative.
Exercise
A 5 mH inductor carries i(t) = 2t amperes for 0 ≤ t ≤ 3 s, with the current entering the + terminal. Find v(t), p(t), and the energy absorbed over the interval, and check the result against ½Li².
Show answer
v = L di/dt = 5×10⁻³ × 2 = 0.01 V. p = v·i = 0.01 × 2t = 0.02t W, which is positive, so the inductor absorbs. Energy = ∫₀³ 0.02t dt = 0.01 × 9 = 0.09 J. Check: ½ × 5×10⁻³ × 6² = 0.09 J. The results match.