hyunjoopark
← Back to Projects

RL and RC Circuits: Target Line + Remaining Gap

One formula, three views: watch the circuit, the graph and the equation of a first-order step response move together.

power electronics circuits RL RC interactive November 24, 2026
+−Vd​16.0 Vfreewheel pathdiode offR 4.0 Ωi+−+−vR​ 4.0 VL 8.0 mHvL​ 12.0 Vmagnetic fieldS: closedi = 1.00 A
iL(t) = i∞ + (i0 − i∞) e−(t−t₀)/τ
target line + remaining gap
1.00 = 4.00 + (1.00 − 4.00) × 1.00 A
target i∞ = Vd/R = 16.0/4.0 = 4.00 A
τ = L/R = 2.00 ms, gap left 100%
KVL: 16.0 = 4.0 (R) + 12.0 (L)

iL is below the target → vL > 0 → L absorbs energy → iL rises.

0246805101520 msiL (A): cannot jumpvL (V): can jump, fades with the gap160−161τ63%2τ86%3τ95%4τ5τgap −3.00target 4.00 Astart: drag me
t = 0.00 ms

Changing a value restarts the run. The switch does not: the present value becomes the new start.

Green = target, blue = the state now, orange = the remaining gap, purple = the starting value. Each colour means the same thing in the formula and the graph. Gold dots in the circuit are moving charge: their speed is the current. The + and − marks are fixed references, so a negative value means the real polarity is the opposite.

One formula

y(t)=y∞+(y0−y∞) e−(t−t0)/τy(t) = y_\infty + (y_0 - y_\infty)\,e^{-(t-t_0)/\tau}

Start at y0y_0, head for the target y∞y_\infty, and lose 63% of the remaining gap every τ\tau. The sign of the gap alone decides whether the curve rises or falls.

RLRC
State (cannot jump)iLi_LvCv_C
Target, source connectedId=Vd/RI_d = V_d/RVdV_d
Target, source disconnected0000
Time constantτ=L/R\tau = L/Rτ=RC\tau = RC
Carries the gap (can jump)vL=R (i∞−iL)v_L = R\,(i_\infty - i_L)iC=(v∞−vC)/Ri_C = (v_\infty - v_C)/R
Below the targetvL>0v_L > 0, iLi_L risesiC>0i_C > 0, vCv_C rises
Above the targetvL<0v_L < 0, iLi_L fallsiC<0i_C < 0, vCv_C falls
At the targetvL=0v_L = 0, L acts as a shortiC=0i_C = 0, C acts as open

When the switch moves

The target jumps, but the state does not: its present value becomes the new y0y_0. An inductor needs a path for its current, so the diode takes over when the switch opens. In the RC circuit the switch connects R and C in a closed loop instead. The components are ideal, so τ\tau is the same in both positions.