From circuit to samples
An RC low-pass filter with R = 1 kΩ and C = 1 µF has τ = RC = 1 ms. Its transfer function H(s) = 1/(1 + sτ) has one pole, s = −1/τ = −1000 s⁻¹, left of the jω axis: stable.
Kick the filter with an impulse and it answers h(t) = (1/τ)·e^(−t/τ). A sampler reads it every T = 0.25 ms (4000 samples a second). Scaled by T, the samples are h[n] = T·h(nT) = 0.25·e^(−n/4).
The rule z = e^(sT)
Divide a sample by the one before: h[1]/h[0] = 0.1947/0.2500 = 0.7788. Every pair gives the same ratio r = e^(−T/τ). A list 0.25·rⁿ has H(z) = 0.25/(1 − r·z⁻¹): one pole, at z = 0.7788.
The analog pole s = −1000 s⁻¹ became the digital pole z = e^(−1000 × 0.00025) = e^(−0.25) = 0.7788. Not by luck: sampling e^(st) every T gives (e^(sT))ⁿ. So each pole s lands at z = e^(sT).
How the plane folds
Write s = σ + jω. Then z = e^(σT)·e^(jωT), so |z| = e^(σT). Slide σ from −3000 to +1000 s⁻¹ and z slides from 0.47 to 1.28. At σ = 0 it crosses the unit circle: |z| = 1.
The angle of z is ωT radians. Climb the jω axis (σ = 0) from 0 to π/T = 12 566 rad/s, a frequency of 2000 Hz, half the sampling rate. z runs round the unit circle from 1 to −1.
Climb further at σ = −500 s⁻¹ and z circles at radius 0.8825. At ω = 2π/T (a jump of 4000 Hz) it is back where it started. Points 2π/T apart land on the same z: aliasing, seen in the plane.
A left-half-plane point has σ < 0, so |z| = e^(σT) < 1: the stable half-plane folds inside the unit circle, the right half outside. So a stable analog filter, sampled this way, gives a stable digital one.
Ringing poles and code
A pole pair s = −500 ± j2π·500 s⁻¹ decays and rings at 500 Hz. Its images sit at radius e^(−500 × 0.00025) = 0.8825 and angles ±2π·500 × 0.00025 = ±π/4 = ±45°. Decay sets the radius; ringing sets the angle.
numpy's exp works on complex numbers, so the whole map is one line: z = np.exp(s*T). For the ringing pole it gives |z| = 0.8825 and an angle of 45.0°; for the RC pole s = −1000, 0.7788.
The working
# step 1/10 · analog R = 1 kΩ, C = 1 µF τ = RC = 1000 Ω × 0.000001 F = 0.001 s = 1 ms H(s) = 1 / (1 + s·τ) pole: 1 + s·τ = 0 -> s = −1/τ = −1000 s⁻¹ s = σ + jω (a complex frequency) σ = −1000 s⁻¹ < 0: left half-plane, stable Laplace transforms and H(s): see the Circuits lesson "Circuit analysis with the Laplace transform"
R = 1 kΩ, C = 1 µF and T = 0.25 ms (4000 samples a second) are chosen example values; every number in the figure is computed from them by this model. Sampling the impulse response is called impulse invariance. Here h(0) is taken as the value just after t = 0; some texts use half of it because h(t) jumps at t = 0, which changes h[0] but not the pole. Step invariance (zero-order hold) also puts each pole at e^(sT).