The Laplace Transform Link
The Laplace transform is to continuous-time systems what the z-transform is to discrete ones. It extends the Fourier transform from imaginary frequencies to complex , turns linear differential equations into algebra, and describes analog circuits and mechanical systems. Digital filters are often designed by starting from a Laplace-domain prototype and mapping it to . This lesson shows the link; the full theory belongs to Differential Equations.
Definition and the Fourier connection
For (and causal ) this is the Fourier transform in angular frequency. The extra makes the integral converge for growing signals, which is why Laplace handles unstable systems and initial conditions naturally. Derivatives become multiplication: .
An RC low-pass circuit obeys , so with zero initial charge
with one pole at in the left half-plane. Continuous-time stability means all poles have negative real part.
Sampling maps to
Sampling a continuous impulse response at period gives : a discrete pole at . So maps the left half-plane (stable) into the unit disc (stable) and the imaginary axis onto the unit circle.
import numpy as np
T = 0.01 # 100 Hz sampling
for p in (-5.0, -50.0, -1 + 20j, 3.0):
z = np.exp(p * T)
side = "left" if np.real(p) < 0 else "right"
print(f"s-pole {complex(p)!s:>10} ({side} half-plane) -> z-pole {complex(z):.4f}, |z| = {abs(z):.4f}")s-pole (-5+0j) (left half-plane) -> z-pole 0.9512+0.0000j, |z| = 0.9512
s-pole (-50+0j) (left half-plane) -> z-pole 0.6065+0.0000j, |z| = 0.6065
s-pole (-1+20j) (left half-plane) -> z-pole 0.9703+0.1967j, |z| = 0.9900
s-pole (3+0j) (right half-plane) -> z-pole 1.0305+0.0000j, |z| = 1.0305
The bilinear transform
The most common way to turn an analog design into a digital filter is the bilinear transform, substituting
It maps the whole imaginary axis onto the unit circle exactly once (no aliasing), at the cost of warping frequencies: analog lands at digital . Designers pre-warp the cutoff to compensate.
import numpy as np
fs = 1000.0
T = 1 / fs
fc = 100.0 # desired cutoff
Wc = 2 / T * np.tan(np.pi * fc / fs) # pre-warped analog cutoff (rad/s)
# analog H(s) = 1 / (1 + s/Wc) -> bilinear: H(z) = (1 + z^-1) K / ((1 + K) + (K - 1) z^-1) with K = Wc T / 2
K = Wc * T / 2
b = np.array([K, K]) / (1 + K)
a = np.array([1, (K - 1) / (1 + K)])
for f in (0, 50, 100, 200, 400):
z = np.exp(2j * np.pi * f / fs)
H = (b[0] + b[1] / z) / (a[0] + a[1] / z)
print(f"{f:3d} Hz: digital gain {abs(H):.4f} analog prototype at the same f: {1 / np.sqrt(1 + (2 * np.pi * f / Wc) ** 2):.4f}")
print("b =", np.round(b, 5).tolist(), " a =", np.round(a, 5).tolist()) 0 Hz: digital gain 1.0000 analog prototype at the same f: 1.0000
50 Hz: digital gain 0.8989 analog prototype at the same f: 0.9003
100 Hz: digital gain 0.7071 analog prototype at the same f: 0.7189
200 Hz: digital gain 0.4082 analog prototype at the same f: 0.4593
400 Hz: digital gain 0.1050 analog prototype at the same f: 0.2503
b = [0.24524, 0.24524] a = [1.0, -0.50953]
Thanks to pre-warping the digital filter has gain exactly at 100 Hz. Elsewhere it departs from the analog prototype, reaching exactly 0 at the Nyquist frequency.
In software
scipy.signal.bilinear,cont2discrete, andbutter(..., analog=False)(which applies the bilinear transform with pre-warping internally).- Circuit simulators and control toolboxes work with Laplace transfer functions; embedded code then runs the discretized difference equation.
Exercises
Exercise 1: Stability in
Is stable?
Answer
Yes: the poles are .
Solution
gives , both with negative real part: a damped oscillation at 2 rad/s.
Exercise 2: Map a pole
A continuous system has a pole at . Where is the corresponding z-pole at kHz?
Answer
.
Solution
.
Exercise 3: Frequency warping (code)
For Hz, where does an analog frequency of 400 Hz land after the bilinear transform without pre-warping?
Answer
About 286 Hz.
Solution
import numpy as np
fs = 1000.0
Omega = 2 * np.pi * 400
w = 2 * np.arctan(Omega / (2 * fs))
print(round(w * fs / (2 * np.pi), 1))286.0
High frequencies are squeezed toward the Nyquist frequency; low frequencies are almost unchanged.
Test yourself
A continuous-time system is stable when its poles…
- are inside the unit circle
- have negative real part
- are real
- are on the imaginary axis
Sampling with period maps an -plane pole to…
The bilinear transform avoids aliasing but…
- is unstable
- warps the frequency axis
- needs an FFT
- doubles the order