SCRL1 µF · 10 V56 Ω10 mHL·i' + R·i + v = 0v'' + 2α·v' + ω₀²·v = 0s² + 2α·s + ω₀² = 0s = −α ± √(α² − ω₀²)1import cmath2L, R, C = 0.01, 56, 1e-63a = R / (2 * L)4w0 = 1 / (L * C) ** 0.55d = cmath.sqrt(a*a - w0*w0)6print(-a + d, -a - d)00.250.50.751-50510t (ms)voltsv(t), capacitor voltageR = 56 ΩR = 200 ΩR = 250 Ω-20-15-10-50-10-50510real part (×1000 /s)imag (×1000 /s)s-plane: the two roots|s| = ω₀
Circuit parts: capacitor C, switch S, resistor R, inductor LMoving dashes: the loop current; they reverse when the current doesPlots: v(t) for each resistor, and the two roots on the s-planeCards: the derivation, and Python finding the rootsA series RLC loop: a 1 µF capacitor charged to 10 V discharges through a switch, a resistor and a 10 mH inductor. Kirchhoff's voltage law with i = C·v′ gives v″ + 2α·v′ + ω₀²·v = 0, a second-order equation. Trying v = e^(st) turns it into s² + 2α·s + ω₀² = 0. Its two roots, shown on the s-plane, decide the shape of v(t): complex roots ring (56 Ω), a double root falls fastest without dipping (200 Ω), two real roots creep (250 Ω). The same equation describes a mass on a spring with friction, m·x″ + b·x′ + k·x = 0: the inductance acts like mass, the resistance like friction, and 1/C like the spring's stiffness.

The equation

  1. A 1 µF capacitor is charged to 10 V. At time t = 0 the switch closes, and charge flows round the loop through a 56 Ω resistor and a 10 mH inductor. We want v(t), the capacitor voltage, from then on.

Solving it

Damping

In code

Try it in the Python prompt

;; step 1/10 · A charged capacitor lets go
>>> L, R, C, V0 = 0.01, 56, 1e-6, 10
>>> round(C * V0, 9)           # charge on the capacitor, coulombs
1e-05
>>> round(0.5 * C * V0**2, 9)  # energy it stores, joules
5e-05

Engineers write j for √−1 because i already means current; Python uses j too (9600j). A complex root −2800 + j9600 has a real part, −2800, and an imaginary part, 9600. The numbers 10 and 2.92 come from the start: v(0) = 10 V, and i(0) = 0 (an inductor's current cannot jump), so v′(0) = 0. That gives A = 10 and B = α·A/9600 = 28 000/9600 ≈ 2.92.