The system
Push a 2 kg cart, tied to a wall by a spring and a damper, with a steady 1 N. The wall feels the spring plus the damper. As a transfer function: G(s) = (4s + 10) / (2s² + 4s + 10).
Find the roots
Set the top polynomial to zero: 4s + 10 = 0, so s = −2.5. At that value of s the whole fraction is zero. A root of the top is called a zero of the system. We mark it with a circle ○.
Now the bottom: 2s² + 4s + 10 = 0. The quadratic formula gives s = −1 ± 2j, where j = √−1. Here the fraction divides by zero and blows up. A root of the bottom is a pole, marked ×.
Python's cmath module takes square roots of negative numbers, so a few lines find the same roots. The coefficient lists run from the highest power down, the order python-control's tf(num, den) also uses.
Read the s-plane
s is a complex number σ + jω. Draw it on a flat map: the real part σ across, the imaginary part ω up. That map is the s-plane. Complex poles always come as a mirror pair above and below the axis.
Each pole p adds a term e^(pt) to the response. The real part, −1, gives e^(−t): the dashed envelope, the swing's outer limit, shrinks to 37% every second and to 1.8% after four. Further left means faster fading.
The imaginary part, 2, is the swing's frequency in rad/s (radians per second), so one swing lasts 2π / 2 = 3.14 s. Together: the wall force rises, overshoots to 1.33 N at 1.11 s, and rings down to 1 N.
The zero adds no new term: same fading, same swing. It changes how much of each term you get. Without it (the spring's force alone) the peak is 1.21 N at 1.57 s. The damper's share makes it 1.33 N, earlier.
Stable or not
A pole with a negative real part gives a term that dies out. If every pole sits in the left half of the s-plane, the system settles: it is stable. A pole in the right half would grow without limit.
Turn the damper down to zero. The poles slide round a circle of radius √5 onto the imaginary axis, at ±2.24j, and the zero runs off to the left. Nothing fades now: the wall force swings between 0 and 2 N forever.
The working
# step 1/10 · system
# about: Push F(s): 1 N step, Transfer function G(s), Wall force Y(s)
m = 2 kg k = 10 N/m b = 4 N·s/m
m·x'' + b·x' + k·x = F
wall force = k·x + b·x'
b·s + k 4s + 10
G(s) = ------------- = --------------
m·s² + b·s + k 2s² + 4s + 10
The cart is a textbook model with illustrative numbers (m = 2 kg, k = 10 N/m, b = 4 N·s/m). Every curve and number in the figure is computed from its exact solution. The Python uses only the standard cmath module. With the python-control package installed, ct.tf([4, 10], [2, 4, 10]).poles() and .zeros() give the same roots.