Sub topic 9
Energy stored in an inductor and in a magnetic field
This chapter assumes you know self-inductance (L and the back EMF e = −L dI/dt), the field inside a solenoid (B = μ₀nI), and basic calculus. You should also know that a capacitor stores energy ½CV². Here we find the energy an inductor holds, show that it sits in the magnetic field, and use the result in circuit problems.
Work done against the back EMF
When the current in an inductor rises, the induced EMF opposes the rise. The source must push charge against this EMF, so it does work. That work is stored.
At an instant when the current is i and is changing at rate di/dt, the back EMF has magnitude L di/dt. The power the source delivers to the inductor is
p = (L di/dt) · i
In a small time dt the source does work dW = L i di. Adding up from zero current to the final current I:
U = ∫₀ᴵ L i di = ½ L I²
This is the energy stored in an inductor. It depends only on the present current, not on how the current got there.
Comparison with a capacitor
| Property | Capacitor | Inductor |
|---|---|---|
| Stored energy | ½CV² | ½LI² |
| Variable that cannot jump | Voltage V | Current I |
| Energy lives in | Electric field | Magnetic field |
| Energy density | ½ε₀E² | B²/(2μ₀) |
The "cannot jump" row is the key to many problems. A sudden change in current would need infinite power, because p = L I dI/dt. So the current just after a switch operation equals the current just before it.
Energy density of the magnetic field
Take a long solenoid of length l, cross-section area A and n turns per unit length. Use L = μ₀n²Al and B = μ₀nI, so I = B/(μ₀n). Then
U = ½ L I² = ½ μ₀n²Al · B²/(μ₀²n²) = (B²/2μ₀) · Al
Al is the volume of the solenoid, where the field is. Dividing by volume gives the energy per unit volume:
u = B²/(2μ₀)
We derived this for a solenoid, but it holds for any magnetic field in vacuum or air. In a medium of permeability μ, replace μ₀ with μ. Electric and magnetic fields both store energy, with the same structure: u = ½ε₀E² and u = B²/(2μ₀).
Checking the result numerically
The program below computes the energy two ways for a solenoid. The first uses ½LI². The second multiplies the energy density by the volume. They must agree.
import math
MU0 = 4 * math.pi * 1e-7 # T m / A
def solenoid_energy(N, length, area, current):
"""Return L, B, U from L, and U from the field energy density."""
n = N / length
L = MU0 * n**2 * area * length
U_from_L = 0.5 * L * current**2
B = MU0 * n * current
u = B**2 / (2 * MU0)
U_from_field = u * area * length
return L, B, u, U_from_L, U_from_field
L, B, u, U1, U2 = solenoid_energy(N=1000, length=0.5, area=4e-4, current=2.0)
print(round(L, 6)) # about 0.001005 H
print(round(B, 6)) # about 0.005027 T
print(round(u, 3)) # about 10.053 J/m^3
print(round(U1, 6), round(U2, 6)) # both about 0.002011 JEnergy balance in an LR circuit
Apply Kirchhoff's loop rule to a source V, resistor R and inductor L in series: V = IR + L dI/dt. Multiply by I:
VI = I²R + L I dI/dt = I²R + d/dt(½LI²)
The source power splits into heat in the resistor and the rate at which magnetic energy grows. Early on, dI/dt is large and most power goes into the field. At steady state dI/dt = 0, so all power becomes heat and the stored energy stays at U = ½L(V/R)².
A common timing question
During growth, I = I₀(1 − e^(−t/τ)) with τ = L/R. At t = τ the current is 0.632 I₀. Energy goes as I², so the stored energy is only 0.632² ≈ 0.40 of its final value, not 63%.
The inductor holds half its final energy when I = I₀/√2. Then 1 − e^(−t/τ) = 0.707, which gives t ≈ 1.23τ.
Decay: all the stored energy becomes heat
Suppose the source is removed and the inductor discharges through a resistor R. The current is I = I₀e^(−t/τ). The heat produced is
∫₀^∞ I²R dt = I₀²R · τ/2 = I₀²R · L/(2R) = ½LI₀²
The total heat equals the initial stored energy and does not depend on R. A larger R makes the decay faster but does not change the total.
Edge cases and common errors
- Opening a switch in series with an inductor. The current cannot drop to zero instantly, so a very large EMF L dI/dt appears across the gap. It can drive a spark or damage the switch. A resistor or diode across the coil gives the energy a path.
- Using ½LI² with the wrong current. In a branched circuit, use the current through the inductor itself, not the battery current.
- Using the source EMF. The energy ½LI² depends on current only. It is not ½LV².
- Confusing energy and power. The source delivers VI. The inductor stores energy at rate L I dI/dt, which is zero at steady state.
- Two coupled coils. With mutual inductance M, the total energy is ½L₁I₁² + ½L₂I₂² + MI₁I₂. The next chapter covers M. For a single coil, use ½LI².
Link to LC oscillations
In an LC circuit, energy moves between the capacitor (Q²/2C) and the inductor (½LI²). With no resistance the total stays constant:
Q²/2C + ½LI² = constant
So the maximum current satisfies ½LI₀² = Q₀²/2C. This matches the energy conservation of a mass on a spring, which the later chapter on LC oscillations develops.
Exercise
A coil of inductance 2 H carries a steady current of 3 A. (a) Find the energy stored. (b) What energy is stored if the current is doubled?
Show answer
(a) U = ½LI² = ½ × 2 × 3² = 9 J. (b) U scales as I², so doubling the current gives 4 × 9 = 36 J.
Exercise
A 5 H inductor carries 2 A. It is then disconnected from its source and connected across a 10 Ω resistor. How much heat is produced in the resistor in total? Does the answer change if the resistor is 100 Ω?
Show answer
The stored energy is ½ × 5 × 2² = 10 J, and all of it ends up as heat. The answer stays 10 J for a 100 Ω resistor. R only changes how fast the energy is dissipated, since τ = L/R.
Exercise
A solenoid has a uniform field of 0.2 T inside a volume of 5×10⁻⁴ m³. Find the magnetic energy stored. Use μ₀ = 4π×10⁻⁷ T m/A.
Show answer
u = B²/(2μ₀) = 0.04 / (2 × 4π×10⁻⁷) ≈ 1.59×10⁴ J/m³. U = u × volume ≈ 1.59×10⁴ × 5×10⁻⁴ ≈ 7.96 J, or about 8 J.