The inductor
A 24 V supply, a change-over switch, a 12 Ω resistor and a 0.6 H inductor. The switch rests on the short, so no current flows and the inductor stores nothing. What happens when it moves to the supply?
An inductor is a coil of wire. Its voltage depends on how fast its current changes: v = L·di/dt. L is the inductance, in henries (H). A sudden jump in current would need an infinite voltage, so inductor current never jumps.
Step response
At t = 0 the switch moves to the supply. At 0+ the current is still 0 A, so vR = 0 and all 24 V sits across the inductor. The current starts rising at di/dt = 24/0.6 = 40 A/s.
As the current grows, the resistor takes more of the 24 V and the rise slows. The time constant τ = L/R = 0.6/12 = 50 ms sets the pace. After one τ the current is 63.2% of its final value: 1.26 A.
The current follows i(t) = 2(1 − e^(−t/τ)) A. The inductor voltage dies away, vL(t) = 24·e^(−t/τ) V, while vR = 12·i climbs. At every instant vR + vL = 24 V, as Kirchhoff's voltage law demands.
After 5τ = 249.99999999999997 ms the current is 1.99 A, 99.3% of its final value, and vL is only 0.16 V. With steady DC an inductor acts like a short circuit, so the final current is Vs/R = 24/12 = 2 A.
Natural response
The current builds a magnetic field in the coil, and the field holds energy: w = ½·L·i². With i = 1.995 A at t = 300 ms, w = ½ × 0.6 × 1.995² = 1.19 J. That energy cannot vanish in an instant.
At t = 300 ms the switch moves back to the short. The supply is cut out, yet the current is still 1.995 A, the same way round. To push it through the resistor, vL jumps to −12 × 1.995 = −23.9 V.
Now i(t) = 1.995·e^(−(t − 300 ms)/τ) A, with the same τ = 50 ms. After one τ it is 0.73 A; after five, 0.013 A. With no source, the coil's current dies away exponentially.
During the decay the resistor turns the stored energy into heat: ∫i²R dt = ½·L·I0² = 1.19 J. Energy is conserved. With no path, the current would have to stop at once and the coil's voltage would spike.
The working
# step 1/10 · circuit supply Vs = 24 V resistor R = 12 Ω inductor L = 0.6 H switch on "b" (the short) for a long time: i = 0 A, no stored energy. At t = 0 it moves to "a" (the supply).
The parts are ideal: the switch moves instantly, the inductor has no winding resistance and the supply holds 24 V at any current. Every number in the figure is computed from this model.