RL Circuit Simulator: Inductor Transient Response

simulator intermediate ~8 min
Loading simulation...
τ = 2.0 ms — I_max = 120 mA

With R=100Ω and L=200mH, the time constant τ = L/R = 2ms. Current rises to 63.2% of 120mA in 2ms and reaches steady state after about 10ms.

Formula

I_energize(t) = (V₀/R) × (1 - e^(-Rt/L))
I_de-energize(t) = (V₀/R) × e^(-Rt/L)
τ = L / R
E = ½LI²

The Circuit That Resists Change

While capacitors resist changes in voltage, inductors resist changes in current — a duality that makes RL circuits the magnetic mirror of RC circuits. When you connect a battery to an RL circuit, current does not jump immediately to V/R. Instead, the inductor's back-EMF limits the rate of current rise, producing the same exponential approach to steady state that characterizes RC charging. The time constant τ = L/R determines how quickly the current builds.

Energizing: Current Ramp-Up

At the instant of connection (t = 0), the inductor acts like an open circuit — all voltage appears across it, and current is zero. As current begins to flow, the back-EMF gradually decreases, allowing the voltage across the resistor to increase. After one time constant, current reaches 63.2% of its final value V₀/R. After five time constants, the inductor acts like a short circuit with negligible voltage across it. The simulator traces this exponential curve in real time.

De-energizing: The Flyback Danger

The truly dramatic behavior occurs when the circuit is broken. The inductor's magnetic field contains stored energy E = ½LI² that must go somewhere. If the circuit is interrupted abruptly, the inductor tries to maintain current by generating an enormous voltage spike — this is the flyback effect used in CRT televisions and spark plugs, but it is destructive to transistors and switches. Flyback diodes provide a safe current path that dissipates the energy gradually.

Applications: From Motors to Switch-Mode Power Supplies

RL transients are central to the operation of relays, solenoids, motors, and transformers — any device with a coil. Switch-mode power supplies exploit the inductor's energy storage to convert voltages efficiently, using rapid switching to charge and discharge inductors thousands of times per second. Understanding the RL time constant is essential for designing the snubber circuits and gate drivers that protect semiconductor switches from inductive kickback.

FAQ

What is the time constant of an RL circuit?

The RL time constant is τ = L/R, where L is inductance in henries and R is resistance in ohms. It represents the time for the current to reach 63.2% of its final value when energizing, or to decay to 36.8% when de-energizing. Unlike RC circuits where τ = RC, the RL time constant has inductance in the numerator because larger inductors oppose current changes more strongly.

Why does an inductor oppose changes in current?

An inductor stores energy in its magnetic field. When current changes, the changing magnetic field induces a voltage (back-EMF) that opposes the change — this is Lenz's law. When current increases, the back-EMF opposes the increase; when current decreases, the back-EMF tries to maintain it. This is why inductors behave like electrical inertia.

Why can inductors produce dangerous voltage spikes?

When current through an inductor is suddenly interrupted, the magnetic field collapses rapidly. Since V = L × (dI/dt), a very fast change in current produces a very large voltage — potentially hundreds or thousands of volts from a low-voltage circuit. This is why flyback diodes are used to protect circuits with inductive loads like relays and motors.

How do RL circuits compare to RC circuits?

Both produce exponential transients with time constants, but they are duals: RC circuits have voltage that changes exponentially while current changes instantaneously; RL circuits have current that changes exponentially while voltage can change instantaneously. RC circuits store energy in electric fields; RL circuits store energy in magnetic fields.

Sources

Embed

<iframe src="https://homo-deus.com/lab/electrical-engineering/rl-circuit/embed" width="100%" height="400" frameborder="0"></iframe>
View source on GitHub