A signal that rings
A capacitor charged to 1 V meets a coil when the switch closes. The voltage swings up and down about 1000 times a second, a little smaller each swing. Complex exponentials describe signals like this.
Grow or fade
Start simple: x(t) = e^(σt) with σ = −0.5 per ms. Each millisecond multiplies it by e^(−0.5) = 0.61. After 2 ms it is 0.37. A negative σ makes a signal fade toward zero.
Now σ = +0.15 per ms. Each millisecond multiplies x(t) by e^(0.15) = 1.16, so after 4 ms it is 1.82, and it keeps growing without limit. A positive σ makes a signal grow.
Spin
Put j in the power: e^(jωt). Euler's formula says it equals cos ωt + j·sin ωt: an arrow of length 1 in the complex plane at angle ωt. With ω = 2π per ms it turns once every millisecond.
Drop a line from the arrow's tip to the real axis. That shadow is the real part, Re e^(jωt) = cos ωt. As the arrow turns, its shadow slides left and right and draws the cosine over time.
Spin and size together
Combine them: s = σ + jω, a complex frequency. Then e^(st) = e^(σt)·e^(jωt). The first part sets the arrow's length, the second its angle. So σ decides grow or fade; ω decides how fast it spins.
With σ = −0.5 and ω = 2π the arrow turns once per ms and shrinks to 0.61 of its length each turn. Its tip spirals in. Its shadow is a fading cosine, held inside the curves ±e^(σt).
Flip σ to +0.15. The arrow still turns once per ms but grows by 1.16 each turn, so its tip spirals out. The shadow is a cosine that swells: 1.82 after four turns, and more after that.
Plot each s as a point: σ across, ω up. Left of the vertical axis, signals fade. Right of it, they grow. On it, they keep their size. Farther from the horizontal axis means faster spinning.
Real signals and code
A voltage is a real number, never complex. Two half-length arrows spinning opposite ways fix that: their up-and-down parts cancel, so their sum stays on the real axis. cos ωt = (e^(jωt) + e^(−jωt))/2.
Python writes j as a suffix: 2j. With numpy, np.exp(s*t) computes e^(st) for 401 times from 0 to 4 ms in one line. x[100] is t = 1 ms: its length abs(x[100]) is 0.6065.
The ringing loop follows the same s. The resistor sets σ = −R/(2L) = −0.5 per ms; the coil and capacitor set ω = 2π per ms. Its voltage swings once per millisecond inside an envelope that shrinks like e^(σt).
The working
# step 1/12 · ring series loop: C, switch, R, coil L C starts at V0 = 1 V, the switch closes at t = 0 R = 10 Ω L = 10 mH C = 2.517 µF v(t) swings: one swing per ms (1 kHz) and each swing is smaller circuit in depth: Circuits, "Step response of RLC circuits" motion in the figure: slowed down a lot
Time is in milliseconds, so σ is "per millisecond" and ω is "radians per millisecond". σ = −0.5 and +0.15 per ms and ω = 2π rad per ms (1 kHz) are chosen example values; every curve and number in the figure is computed from them. The motion is slowed down a great deal: the real loop swings 1000 times a second.