Sub topic 8
Energizing an inductor: the RL step response
This chapter assumes you know KVL, Ohm's law, the inductor relation v = L di/dt, and the continuity rule that inductor current cannot jump. It also assumes you can solve a first-order linear differential equation by separating variables or by using an integrating factor. The RC step response from the previous chapter is a useful reference, because the RL case has the same structure with voltage and current swapped.
The setup
A step response is the behavior of a circuit after a switch applies a constant source at t = 0. In the simplest RL case, a DC source V is connected through a switch to a resistor R in series with an inductor L. Before t = 0 the switch is open and the inductor current is zero. After t = 0 the switch is closed and stays closed.
The question is how the current i(t) grows, and how the voltage divides between R and L while it grows.
Deriving the equation
For t > 0, KVL around the single loop gives:
V = vR + vL
Substitute vR = R i and vL = L di/dt:
L di/dt + R i = V
Divide by R and define the time constant τ = L/R:
τ di/dt + i = V/R
This is a first-order linear equation with a constant forcing term. Its solution is the sum of two parts:
- A forced (final) value, the constant that satisfies the equation when di/dt = 0. Here that is I_f = V/R.
- A natural part of the form A e^(−t/τ), which solves the source-free equation τ di/dt + i = 0.
So i(t) = V/R + A e^(−t/τ). The constant A comes from the initial condition.
Applying the initial condition
An inductor current cannot change instantly, because that would require infinite voltage across L. The current just after the switch closes therefore equals the current just before it: i(0⁺) = i(0⁻) = 0.
Setting t = 0 in the solution gives 0 = V/R + A, so A = −V/R. The result is:
i(t) = (V/R)(1 − e^(−t/τ)), with τ = L/R
The voltages follow from the element relations:
- v_R(t) = R i(t) = V(1 − e^(−t/τ))
- v_L(t) = L di/dt = V e^(−t/τ)
At every instant vR + vL = V, which is a quick check on your algebra.
What the curves look like
The following table lists the behavior at key instants.
| Time | i(t) as a fraction of V/R | v_L(t) as a fraction of V |
|---|---|---|
| 0⁺ | 0 | 1 |
| τ | 0.632 | 0.368 |
| 2τ | 0.865 | 0.135 |
| 3τ | 0.950 | 0.050 |
| 5τ | 0.993 | 0.007 |
Three features matter in practice.
- At t = 0⁺ the inductor behaves like an open circuit. No current flows, so the whole source voltage appears across L. The initial slope is di/dt = V/L, which does not depend on R.
- As t → ∞ the inductor behaves like a short circuit. The current settles at V/R and v_L falls to zero. Only R limits the final current.
- The tangent at t = 0 reaches the final value at t = τ. The tangent has slope V/L, and (V/L)·τ = (V/L)(L/R) = V/R. This gives a quick graphical way to read τ from a measured waveform.
Two other timing numbers are worth remembering. The current reaches 50% of its final value at t = τ ln 2 ≈ 0.693τ. The 10% to 90% rise time is τ ln 9 ≈ 2.2τ.
Worked example
A 12 V source is switched onto R = 100 Ω in series with L = 10 mH. The inductor starts with zero current.
- τ = L/R = 10 mH / 100 Ω = 100 µs
- Final current I_f = V/R = 12 / 100 = 120 mA
- Initial di/dt = V/L = 12 / 0.01 = 1200 A/s
How long until the current reaches 100 mA? Set i(t) = 100 mA:
0.100 = 0.120 (1 − e^(−t/τ))
e^(−t/τ) = 1 − 0.8333 = 0.1667 = 1/6
t = τ ln 6 ≈ 1.792 × 100 µs ≈ 179 µs
At that moment vL = 12 × (1/6) = 2 V and vR = 10 V. These add to 12 V, as KVL requires.
The next program evaluates the formula at whole multiples of τ so you can compare it with the table above.
import math
R, L, V = 100.0, 10e-3, 12.0
tau = L / R # 100 microseconds
i_final = V / R # steady-state current
for k in range(6):
t = k * tau
i = i_final * (1 - math.exp(-t / tau))
print(f"t = {k} tau: i_L = {i * 1000:.1f} mA")The output is:
t = 0 tau: i_L = 0.0 mA
t = 1 tau: i_L = 75.9 mA
t = 2 tau: i_L = 103.8 mA
t = 3 tau: i_L = 114.0 mA
t = 4 tau: i_L = 117.8 mA
t = 5 tau: i_L = 119.2 mAAfter one τ the current is 75.9 mA, which is 63.2% of 120 mA. After 5τ it is within 0.7% of the final value.
Comparing RL with RC
The RL step response has the same shape as the RC response, with roles exchanged.
| Quantity | RC charging | RL energizing |
|---|---|---|
| Continuous variable | Capacitor voltage v_C | Inductor current i_L |
| Time constant | RC | L/R |
| Initial behavior of the storage element | Short circuit (zero voltage) | Open circuit (zero current) |
| Final behavior of the storage element | Open circuit | Short circuit |
| Variable that rises | v_C = V(1 − e^(−t/τ)) | i_L = (V/R)(1 − e^(−t/τ)) |
| Variable that jumps then decays | Current, from V/R to 0 | Inductor voltage, from V to 0 |
One difference surprises many learners. In an RC circuit, a larger R makes the transient slower. In an RL circuit, a larger R makes it faster, because τ = L/R. A larger resistance lowers the final current V/R, so the current has less distance to travel, while the initial slope V/L stays the same.
Edge cases and common errors
Nonzero initial current. If the inductor already carries I₀ at t = 0, then A = I₀ − V/R and the solution is i(t) = V/R + (I₀ − V/R) e^(−t/τ). The same curve shape applies, but it starts at I₀. The next chapters turn this into a general formula.
Real inductors have winding resistance. A coil has a series resistance Rw. The time constant is then L/(R + Rw) and the final current is V/(R + R_w). If a measured τ is shorter than L/R, winding resistance or source resistance is a likely cause.
No resistance at all. If R = 0, the equation becomes L di/dt = V and the current ramps linearly as i = Vt/L with no limit. The exponential formula fails because τ is infinite. Real circuits always have some resistance, which is what eventually bounds the current.
Mixing up which quantity is continuous. Inductor current is continuous at the switch. Inductor voltage is not: it jumps from 0 to V at t = 0⁺. Calculating vL(0⁺) from the old current is a frequent mistake. Instead, find i(0⁺) from continuity, then use KVL to get vL(0⁺).
Using 0.632 at the wrong place. The 63.2% figure applies to the change from the initial value to the final value, not to the final value alone. With a nonzero I₀, the current after one τ is I₀ + 0.632 (I_f − I₀).
Summary of the method
- Find the inductor current just before the switch changes. By continuity this is also i(0⁺).
- Replace the inductor with a short circuit and find the final current I_f.
- Find the resistance R seen by the inductor and compute τ = L/R.
- Write i(t) = If + (i(0⁺) − If) e^(−t/τ).
- Get any voltage you need from the element relations and KVL.
Exercise
A 24 V source is switched at t = 0 onto a series circuit of R = 60 Ω and L = 30 mH. The inductor current is zero before the switch closes. Find (a) the time constant, (b) the final current, (c) the inductor voltage at t = 0⁺, and (d) the time at which the current reaches 300 mA.
Show answer
(a) τ = L/R = 0.030 / 60 = 0.5 ms. (b) If = V/R = 24 / 60 = 0.4 A = 400 mA. (c) By continuity i(0⁺) = 0, so there is no voltage across R and vL(0⁺) = 24 V. (d) Solve 0.3 = 0.4 (1 − e^(−t/τ)). Then e^(−t/τ) = 0.25, so t = τ ln 4 ≈ 1.386 × 0.5 ms ≈ 0.69 ms.
Exercise
The circuit in the worked example (12 V, 100 Ω, 10 mH) has its resistor replaced by a 200 Ω resistor. Without recalculating the whole curve, state how the time constant, the final current, and the initial di/dt change.
Show answer
The time constant halves, from 100 µs to 50 µs, because τ = L/R. The final current halves, from 120 mA to 60 mA, because I_f = V/R. The initial di/dt stays at V/L = 1200 A/s, since it does not depend on R. The current therefore rises along the same initial tangent but levels off sooner and at a lower value.