Sub topic 11
RL Step Response and the Time Constant L/R
This chapter assumes you know Kirchhoff's voltage law, Ohm's law, the inductor law v = L di/dt, and that inductor current cannot jump. It also assumes you can read a first-order differential equation and its exponential solution. You will predict how current builds up and dies away in a series RL circuit after a switch changes.
The setup
A step response is the behavior of a circuit after its input changes abruptly, such as a switch closing. Take a source V in series with a resistor R and an inductor L. The switch closes at t = 0, and the inductor current is zero just before. Current continuity gives i(0+) = i(0-) = 0.
Apply KVL around the loop for t > 0:
V = R i + L di/dt
Rearranging gives a first-order linear equation:
L di/dt + R i = V
Solving it
At the start, i = 0, so the resistor drops no voltage. The whole source voltage appears across the inductor, and di/dt = V/L. This is the steepest slope the current will ever have. As i grows, the resistor takes a larger share of V, so the inductor voltage falls and the current rises more slowly.
At steady state, di/dt = 0, the inductor acts as a short circuit, and i settles at V/R. The solution that fits both ends is:
i(t) = (V/R)(1 - e^(-t/τ)), with τ = L/R
The inductor voltage is the remainder of the source voltage:
v_L(t) = V e^(-t/τ)
You can check this by differentiating. L di/dt = L (V/R)(1/τ) e^(-t/τ) = V e^(-t/τ), because L/τ = R. Then R i + v_L = V(1 - e^(-t/τ)) + V e^(-t/τ) = V, so KVL holds at every instant.
The time constant
The time constant τ = L/R has units of seconds. Check it: henries are volt-seconds per ampere, and ohms are volts per ampere, so L/R is seconds. A larger inductance makes the current change more slowly. A larger resistance makes it settle faster, since the final current V/R is smaller and is reached sooner.
The table gives the fraction of the final current reached after whole multiples of τ.
| Time | Fraction of final current | Fraction of V across L |
|---|---|---|
| 0 | 0% | 100% |
| 1 τ | 63.2% | 36.8% |
| 2 τ | 86.5% | 13.5% |
| 3 τ | 95.0% | 5.0% |
| 4 τ | 98.2% | 1.8% |
| 5 τ | 99.3% | 0.7% |
In practice, engineers treat the circuit as settled after about 5τ. A useful geometric fact is that the tangent to the curve at t = 0 reaches the final value at exactly t = τ. This is because the initial slope is V/L, and (V/L)·τ = V/R.
Numerical example
The following program evaluates the step response for V = 12 V, R = 100 Ω, and L = 0.5 H. Here τ = 0.5/100 = 5 ms and the final current is 120 mA.
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))
print(f"t = {k} tau: i = {i * 1000:.1f} mA")The output runs from 0.0 mA at t = 0 to 63% of 120 mA, about 75.9 mA, at one time constant, and to 119.2 mA at 5τ. You can reproduce the same curve in a circuit simulator with this SPICE netlist:
* Series RL step response
V1 in 0 PULSE(0 12 0 1n 1n 1 2)
R1 in out 100
L1 out 0 500m
.tran 10u 30m
.endPlot the current through L1. It should reach about 76 mA at 5 ms and flatten near 120 mA by 25 ms.
The general method for any step
The formula above is a special case of a general rule for first-order circuits. When the initial current is I0 and the final current is I∞, then:
i(t) = I∞ + (I0 - I∞) e^(-t/τ)
To use it, find three things:
- I0, the inductor current just before the switch changes. Continuity carries it to t = 0+.
- I∞, the current after a long time, found by replacing the inductor with a short circuit.
- τ = L/Req, where Req is the resistance seen by the inductor's terminals after the switch changes, with independent sources turned off.
The third item matters for circuits with several resistors. Remove the inductor, switch off the sources (voltage sources become shorts, current sources become opens), and compute the resistance between the two terminals where the inductor was connected.
Source-free decay
Now suppose the inductor carries I0 and the source is removed, so the current flows through R alone. KVL gives L di/dt + R i = 0, and the solution is:
i(t) = I0 e^(-t/τ), with τ = L/R
The current falls to 36.8% after one τ and is nearly zero after 5τ. The energy (1/2) L I0² stored in the magnetic field is converted to heat in the resistor. You can confirm this by integrating the power i²R from 0 to infinity, which gives exactly (1/2) L I0².
The voltage across the resistor is R I0 e^(-t/τ). The inductor voltage has the opposite sign relative to the current direction, because the inductor now acts as the source. Its magnitude equals the resistor voltage at every instant.
Worked example with two resistors
A 24 V source feeds a 40 Ω resistor in series with a parallel combination of a 60 Ω resistor and a 2 H inductor. The switch has been closed for a long time, so the inductor is a short circuit and shorts out the 60 Ω resistor. Then I0 = 24/40 = 0.6 A. At t = 0 the switch opens, disconnecting the source and the 40 Ω resistor and leaving the inductor in a loop with the 60 Ω resistor.
The time constant is τ = 2/60 = 33.3 ms. For t > 0:
i(t) = 0.6 e^(-t/0.0333) A
The initial voltage across the 60 Ω resistor is 60 × 0.6 = 36 V. That is larger than the 24 V source. The inductor kept its current, and the resistor is bigger than before, so the resistor voltage had to rise to carry the same current. This is the same effect that produces large spikes when a circuit has no gentle path for the current, covered in a later chapter.
Common errors
- Using τ = RL. The correct form is L/R. A quick unit check catches this: RL would give ohm-henries, which is not seconds.
- Computing R_eq with the source still active. Turn off independent sources before finding the resistance the inductor sees.
- Assuming the inductor voltage is continuous. Only the current is continuous. The inductor voltage can jump at t = 0+, as in the example above, where it goes from 0 V to -36 V.
- Declaring steady state too early. After 1τ the current is still 37% away from its final value.
- Using the formula for a circuit where the inductor started with nonzero current. Use the general form with I0 and I∞.
Exercises
Exercise
A 24 V source is connected through a switch to a 200 Ω resistor in series with a 1 H inductor. The switch closes at t = 0 and the initial current is zero. Find the time constant, the final current, and the current at t = 10 ms.
Show answer
τ = L/R = 1/200 = 5 ms. The final current is V/R = 24/200 = 120 mA. At t = 10 ms, which is 2τ, i = 0.120 (1 - e^(-2)) = 0.120 × 0.8647 ≈ 103.8 mA.
Exercise
An inductor of 0.2 H carries 0.5 A and is then connected across a 50 Ω resistor with no source. How long until the current falls to 0.1 A, and how much energy does the resistor absorb in total?
Show answer
τ = 0.2/50 = 4 ms. Solve 0.1 = 0.5 e^(-t/τ), so t = τ ln 5 = 4 ms × 1.609 ≈ 6.44 ms. The total energy equals the initial stored energy, (1/2)(0.2)(0.5)² = 0.025 J.