The equation
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.
Kirchhoff's voltage law: voltages round a loop add to zero. The inductor's voltage is L·i′, where i′ means how fast the current i changes. The resistor's is R·i and the capacitor's is v. So L·i′ + R·i + v = 0.
Since i = C·v′, we get i′ = C·v″, where v″ (the second derivative) is how fast v′ changes. Divide by LC: v″ + 2α·v′ + ω₀²·v = 0, with α = R/2L = 2800 and ω₀ = 1/√(LC) = 10 000 per second.
Solving it
Try v = e^(st). Each derivative just multiplies it by s: v′ = s·v and v″ = s²·v. Every term now shares e^(st), which is never zero, so divide it out. What is left is the characteristic equation: s² + 2α·s + ω₀² = 0.
The quadratic formula gives s = −α ± √(α² − ω₀²). Here α² is less than ω₀², so the square root is of a negative number: s = −2800 ± j9600 per second, where j = √−1. Each root is a point on the s-plane.
Complex roots give v = e^(−αt)·(10·cos 9600t + 2.92·sin 9600t). The real part, −α, shrinks each swing. The imaginary part, 9600, sets how fast it rings. Energy sloshes between capacitor and inductor, and the resistor turns a little into heat each swing.
Damping
Compare α with ω₀. The damping ratio ζ = α/ω₀ is 0.28 here. Below 1 the roots are complex and the circuit rings: underdamped. At exactly 1 the two roots meet. Above 1 they are two real numbers: overdamped.
Raise R to 200 Ω: now α = ω₀, so ζ = 1. The roots slide round a circle and meet at −10 000, a double root. Then v = 10·(1 + 10 000t)·e^(−10 000t): the fastest return to zero without dipping below it.
At 250 Ω, ζ = 1.25. The roots split along the real line to −5000 and −20 000. Then v = 13.3·e^(−5000t) − 3.3·e^(−20 000t). It never rings, but the slow −5000 part makes it creep: at 0.5 ms it is still 1.1 V.
In code
Python's cmath module takes square roots of negative numbers and writes j for √−1. With R back at 56 Ω, the card prints (-2800+9600j) (-2800-9600j): the same two roots, in radians per second.
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.