Sub topic 9
Power and Stored Energy (1/2) L i^2
This chapter assumes you know Ohm's law, Kirchhoff's laws, the passive sign convention, and the relationship v = L di/dt. It also assumes you can take simple derivatives and integrals. You will use v = L di/dt to find the power an inductor absorbs. Then you will integrate that power to get the stored energy, and you will check the result with numbers.
Instantaneous power in an inductor
Power is the rate at which energy moves into or out of a component. For any two-terminal element, with voltage v and current i defined under the passive sign convention, the instantaneous power is:
p(t) = v(t) · i(t)
With the passive sign convention, the current enters the terminal marked positive. A positive p means the element absorbs energy from the circuit. A negative p means the element delivers energy back to the circuit.
For an inductor, substitute v = L di/dt:
p(t) = L · i(t) · di/dt
This form shows what controls the power flow:
- If the current is positive and increasing, then i > 0 and di/dt > 0, so p > 0. The inductor absorbs energy.
- If the current is positive and decreasing, then i > 0 and di/dt < 0, so p < 0. The inductor returns energy.
- If the current is constant, di/dt = 0, so p = 0. Nothing flows into or out of the inductor, even when the current is large.
- If the current is zero at an instant, p = 0 at that instant, even if the current is changing quickly.
A resistor always absorbs power, because p = i²R is never negative. An ideal inductor can absorb or deliver power, and over a full cycle it can give back everything it took in.
Deriving the stored energy
Energy is the integral of power over time. Suppose the current is zero at time t₀, so the inductor starts with no stored energy. The energy absorbed up to time t is:
w(t) = ∫ p dt = ∫ L · i · (di/dt) dt
The dt terms cancel, so the integral changes variable from time to current:
w = L ∫ i di, from 0 to i(t)
w = (1/2) L i²
This is the stored energy formula. It has three consequences.
- The energy depends only on the present current. It does not depend on how the current reached that value. A slow ramp and a fast ramp to 2 A store the same energy.
- The energy is never negative. The current is squared and L is positive, so an ideal inductor never holds less than zero energy. It can only return what it has absorbed.
- Energy scales with the square of the current. Doubling the current stores four times the energy.
The energy is stored in the magnetic field around the coil. When the current falls to zero, the field collapses and the energy returns to the circuit.
General case with a nonzero starting current
If the current goes from i₁ at time t₁ to i₂ at time t₂, the energy absorbed in that interval is:
Δw = (1/2) L (i₂² − i₁²)
Only the end values matter. If i₂ is smaller than i₁ in magnitude, Δw is negative, and the inductor delivers energy.
Checking the numbers
The code below computes the energy for a 10 mH inductor carrying 2 A:
L = 10e-3 # henries
I = 2.0 # amperes
energy = 0.5 * L * I**2
print(energy) # 0.02 joulesThe result is 0.02 J, or 20 mJ. This is small. A 10 mH inductor at 2 A holds about as much energy as it takes to lift a small paperclip a few centimeters. Inductors store little energy compared with batteries, which is why they are used to smooth and shape current, not to power a load for long.
Now check that integrating p = v·i gives the same answer. The following code ramps the current linearly from 0 to 2 A in 1 ms, so v = L di/dt is constant at 20 V. It sums v·i over many small steps:
L = 10e-3 # henries
I_final = 2.0 # amperes
T = 1e-3 # ramp duration in seconds
N = 100000 # number of time steps
dt = T / N
energy = 0.0
for k in range(N):
t = (k + 0.5) * dt # midpoint of each step
i = I_final * t / T # linear current ramp
v = L * I_final / T # constant voltage, v = L di/dt
energy += v * i * dt # add p * dt
print(round(energy, 6)) # 0.02 joulesThe sum matches (1/2) L I² = 0.02 J. The integral and the closed-form result agree.
The voltage in this ramp is L di/dt = 0.01 × 2 / 0.001 = 20 V, which matches the value from the earlier chapter on the voltage-current law:
L = 10e-3 # inductance in henries (10 mH)
di = 2.0 # current change in amperes
dt = 1e-3 # time interval in seconds (1 ms)
v = L * di / dt # voltage during a constant current ramp
print(v) # 20.0 voltsDuring the ramp, the power rises linearly from 0 W to 40 W (20 V × 2 A). The average power is 20 W over 1 ms, which gives 20 mJ. Here, a constant voltage with a rising current gives a power that rises in a straight line, and the area under that line is the stored energy.
Power and energy over a full cycle
Consider a current that rises from 0 to a peak and then falls back to 0. The power has two phases.
- While the current rises, p is positive and the inductor charges its field.
- While the current falls, p is negative and the field returns the energy.
The net energy over the whole trip is zero, because the starting and ending currents are both zero. An ideal inductor dissipates nothing. This differs from a resistor, which turns all absorbed energy into heat.
Worked example: energy in the RL step response
Take a 12 V source in series with a 100 Ω resistor and a 500 mH inductor. The switch closes at t = 0 and the initial current is zero. The time constant is τ = L/R = 0.5 / 100 = 5 ms. The final current is V/R = 120 mA.
The code below prints the current and the stored energy at each multiple of τ:
import math
V = 12.0 # source voltage in volts
R = 100.0 # resistance in ohms
L = 0.5 # inductance in henries
tau = L / R # time constant in seconds (5 ms)
for k in range(6):
t = k * tau
i = (V / R) * (1 - math.exp(-t / tau))
w = 0.5 * L * i**2
print(f"t = {k} tau: i = {i * 1000:.1f} mA, w = {w * 1e6:.1f} uJ")The final stored energy is (1/2)(0.5)(0.12)² = 3.6 mJ. After one time constant, the current is about 63% of its final value, but the stored energy is only about 40% of its final value, since 0.632² ≈ 0.40. Because energy follows the square of the current, the energy lags behind the current as the circuit settles.
The source delivers more energy than the inductor stores. The resistor dissipates the rest as heat during the transient and keeps dissipating it at the final current. The inductor keeps only the portion held in its field.
Common errors
- Treating the inductor as a power sink. An ideal inductor returns the energy it absorbs. Only the resistance in a circuit dissipates energy.
- Using the voltage to find energy. Stored energy depends on the current, not on the voltage. An inductor with 0 V across it can still hold a large amount of energy if the current is large.
- Forgetting the square. Doubling the current gives four times the energy, not twice.
- Mixing up units. Use henries and amperes to get joules. A value in millihenries needs a factor of 10⁻³ first.
- Dropping the sign of p. A negative power means energy is flowing out of the inductor. Check the sign convention before you decide which way energy moves.
- Assuming energy can drop instantly. Since the stored energy depends on i², and the current cannot jump, the stored energy cannot jump either. This is why opening a switch in series with an inductor produces a large voltage: the circuit must absorb the stored energy somewhere.
Summary table
| Quantity | Formula | Notes |
|---|---|---|
| Instantaneous power | p = v i = L i di/dt | Positive when absorbing, negative when returning |
| Stored energy | w = (1/2) L i² | Never negative, depends only on the present current |
| Energy over an interval | Δw = (1/2) L (i₂² − i₁²) | Depends only on the end currents |
| Power at constant current | p = 0 | No energy flows, but energy stays stored |
Exercise
A 50 mH inductor carries 3 A. (a) How much energy is stored? (b) The current then falls to 1 A. How much energy does the inductor return to the circuit?
Show answer
(a) w = (1/2)(0.05)(3²) = 0.225 J. (b) At 1 A, w = (1/2)(0.05)(1²) = 0.025 J. The inductor returns 0.225 − 0.025 = 0.2 J.
Exercise
The current in a 200 mH inductor is i(t) = 4t amperes for 0 ≤ t ≤ 2 s. Find the power at t = 1 s and the energy stored at t = 2 s.
Show answer
The voltage is v = L di/dt = 0.2 × 4 = 0.8 V. At t = 1 s, i = 4 A, so p = v i = 0.8 × 4 = 3.2 W. At t = 2 s, i = 8 A, so w = (1/2)(0.2)(8²) = 6.4 J.
Exercise
A 12 V source drives a series 100 Ω resistor and 500 mH inductor, as in the worked example. How much energy is stored in the inductor in the final steady state, and what current gives it?
Show answer
In steady state the inductor acts as a short circuit, so I = 12 / 100 = 0.12 A. The stored energy is (1/2)(0.5)(0.12²) = 0.0036 J, or 3.6 mJ.