Transfer Functions, Poles, Zeros and Stability
An engineer adds a "negative-resistance" op-amp stage to cancel the losses of a tank circuit and sharpen a filter. On the bench the filter turns into an oscillator. Could the analysis have predicted it without simulating the time response? Yes, in one look: the poles of the transfer function moved into the right half of the s plane. A transfer function is a ratio of polynomials in ; the roots of the denominator (poles) fix the shape in time of every response, the roots of the numerator (zeros) shape the frequency response, and the side of the plane the poles sit on decides stability. This lesson reads a circuit's behaviour off its pole-zero map. The signal-processing view of the same ideas is in Poles and Zeros and The Laplace Link.
Transfer functions of a circuit
With zero initial conditions, any output of a linear circuit is (s-Domain Circuit Analysis). For lumped R, L, C and linear dependent sources, is a rational function:
are the zeros (), the poles (). The same denominator , the circuit's characteristic polynomial, appears in every transfer function of the circuit; different outputs only change the numerator.
For a series RLC driven by , the current is , so the three element voltages give
a low-pass, a band-pass and a high-pass with the same two poles. The zeros at block DC: one zero for the band-pass, a double zero for the high-pass.
What a pole does in time
Each pole contributes a term to the impulse and step responses. Writing :
| pole position | term in the response |
|---|---|
| real, negative (, ) | decaying exponential, time constant |
| complex pair, | damped sinusoid |
| pair on the axis () | sustained oscillation at |
| any pole with | growing term: unstable |
A circuit is stable (bounded input gives bounded output) when every pole is in the open left half-plane. Passive RLC circuits with some resistance always are: they cannot create energy (a lossless LC circuit has its poles on the axis, the marginal case below). Instability needs gain: transistors, op-amps, dependent sources. Poles far from the axis decay fast; the pole nearest the axis, the dominant pole, sets the settling time. A complex pair at distance from the origin, at angle from the negative real axis, has damping ratio , linking the map to the second-order step response.
Worked example: reading the map
Given: the series RLC band-pass with , , ; then the same with (an active stage that over-cancels the losses).
Find: the poles and zeros in both cases, , and the behaviour of each.
Solve: the denominator is with .
Check: with the poles are in the left half-plane: any disturbance rings at () and dies with time constant . With they cross into the right half-plane: a disturbance grows as , multiplying by every millisecond until the amplifier clips. That is an oscillator, and a real one: oscillator design deliberately places poles just right of the axis and lets amplitude limiting pull them back onto it.
The frequency response from the map
Setting evaluates on the imaginary axis. Geometrically, is times the product of distances from to the zeros, divided by the product of distances to the poles. As passes close to a lightly damped pole, one distance becomes small and the response peaks: the resonance of Resonance, Quality Factor and Bandwidth. For the band-pass, the half-power bandwidth in rad/s equals , so here .
The current has exactly the band-pass shape. The lab reads and a bandwidth ; lower and the poles move towards the axis, the peak sharpens and the bandwidth shrinks in proportion.
In Python: poles, zeros and responses with python-control
import control as ct loads python-control (installed on demand in the browser). ct.tf(num, den) takes coefficient lists in descending powers of .
import numpy as np
import control as ct
L, C = 10e-3, 100e-9
def roots(a):
a = sorted(np.atleast_1d(a), key=lambda z: (z.real, -z.imag))
return "none" if len(a) == 0 else ", ".join(f"{z.real:.0f}{z.imag:+.0f}j" for z in a)
for R in [200.0, -50.0]:
den = [1, R / L, 1 / (L * C)]
outputs = {"V_C (low-pass) ": ct.tf([1 / (L * C)], den),
"V_R (band-pass)": ct.tf([R / L, 0], den),
"V_L (high-pass)": ct.tf([1, 0, 0], den)}
print(f"R = {R:+.0f} ohm: poles {roots(ct.poles(outputs['V_C (low-pass) ']))}")
for name, H in outputs.items():
print(f" {name}: zeros {roots(ct.zeros(H)):12s} DC gain {float(ct.dcgain(H)):.3f}")
stable = bool(np.all(np.real(ct.poles(outputs['V_C (low-pass) '])) < 0))
print(f" stable: {stable}")
Hc = ct.tf([1 / (L * C)], [1, 200 / L, 1 / (L * C)])
info = ct.step_info(Hc, T=np.linspace(0, 1e-3, 20001))
print(f"low-pass step: overshoot {info['Overshoot']:.2f} %, peak time {info['PeakTime']*1e6:.1f} us, "
f"2 % settling {info['SettlingTime']*1e6:.0f} us")
Hu = ct.tf([1 / (L * C)], [1, -50 / L, 1 / (L * C)])
t, y = ct.impulse_response(Hu, T=np.linspace(0, 2e-3, 20001))
for tk in [0.5e-3, 1e-3, 2e-3]:
k = (t <= tk)
print(f"unstable impulse response: max |y| up to {tk*1e3:.1f} ms = {np.max(np.abs(y[k])):.3g}")R = +200 ohm: poles -10000+30000j, -10000-30000j
V_C (low-pass) : zeros none DC gain 1.000
V_R (band-pass): zeros 0+0j DC gain 0.000
V_L (high-pass): zeros 0+0j, 0+0j DC gain 0.000
stable: True
R = -50 ohm: poles 2500+31524j, 2500-31524j
V_C (low-pass) : zeros none DC gain 1.000
V_R (band-pass): zeros 0+0j DC gain 0.000
V_L (high-pass): zeros 0+0j, 0+0j DC gain 0.000
stable: False
low-pass step: overshoot 35.09 %, peak time 104.7 us, 2 % settling 354 us
unstable impulse response: max |y| up to 0.5 ms = 9.76e+04
unstable impulse response: max |y| up to 1.0 ms = 3.39e+05
unstable impulse response: max |y| up to 2.0 ms = 4.1e+06
The impulse response's envelope grows by per millisecond, as predicted. The DC gains also follow from the map: a zero at the origin makes .
Guided lab: from a pole-zero map to a measurement
Hand calculation. For the band-pass with (including the generator's and the coil's winding resistance), predict , the bandwidth and, from the poles, a step response of that rings at and decays with .
Simulation. The lab above (frequency view) and the Python code.
What you would measure. Sweep a sine from to and read the amplitude across the resistor (about less the coil's winding resistance, so that the total is ; put it at the grounded end) with the scope; find the peak and the two frequencies where it falls to of the peak. Then apply a square wave and measure the ring frequency and the decay of . From the decay and the ring frequency you have measured the pole directly; compare with the prediction. Expect 5 to 10 % agreement.
Hazards and safe setup. Signal levels only. Do not build the negative-resistance version on a bench supply without a current limit: an unstable circuit runs until something saturates or heats. Leave active oscillators to the Analog Electronics course, which adds amplitude control.
Pitfalls
- Confusing and its poles with the response. The poles give the shapes; the residues (and so the zeros and the input) give the amounts.
- Calling a pole on the axis stable. It gives an undamped oscillation (or, for a pole at the origin with a step input, a ramp): marginally stable at best.
- Cancelling a right-half-plane pole with a zero. The cancellation is never exact in hardware; the unstable mode is still there.
- Hertz versus rad/s. Pole coordinates are in (rad/s for the imaginary part).
Practice
- Where are the poles of for (with the same , )?
- A transfer function has poles at , and . Which dominates the step response, and roughly how long does it take to settle?
- Is stable? What is special about it?
Answer
- : has an (almost exactly) double root at (critical damping, ).
- The pole at (); settling within 2 % takes about .
- Poles: , double pole at : stable. The zero at is in the right half-plane, a non-minimum-phase system: its step response first moves the wrong way.
Test yourself
A linear circuit is stable when all poles of its transfer function…
- are real
- have negative real parts
- lie on the imaginary axis
- are cancelled by zeros
A pair of poles at gives a response that…
- grows at 6000 rad/s
- rings at about 955 Hz and decays with a 2 ms time constant
- decays without ringing
- oscillates forever
The voltage across the inductor of a series RLC, as a transfer function from the source, has…
- no zeros
- one zero at the origin
- a double zero at the origin
- zeros at the poles
A passive RLC circuit can have a pole in the right half-plane.
- true
- false