TExcelTAD
Home › Circuit Theory & Network Analysis › Transfer Functions, Poles, Zeros and Stability

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 ss; 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 Y(s)=H(s)X(s)Y(s) = H(s)X(s) (s-Domain Circuit Analysis). For lumped R, L, C and linear dependent sources, H(s)H(s) is a rational function:

H(s)=N(s)D(s)=K(s−z1)(s−z2)⋯(s−p1)(s−p2)⋯H(s) = \frac{N(s)}{D(s)} = K \frac{(s - z_1)(s - z_2)\cdots}{(s - p_1)(s - p_2)\cdots}

zkz_k are the zeros (H=0H = 0), pkp_k the poles (H→∞H \to \infty). The same denominator D(s)D(s), 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 VinV_\text{in}, the current is Vin/(R+sL+1/(sC))V_\text{in}/(R + sL + 1/(sC)), so the three element voltages give

VCVin=1/(LC)s2+RLs+1LC,VRVin=RLss2+RLs+1LC,VLVin=s2s2+RLs+1LC\frac{V_C}{V_\text{in}} = \frac{1/(LC)}{s^2 + \frac{R}{L}s + \frac{1}{LC}}, \qquad \frac{V_R}{V_\text{in}} = \frac{\frac{R}{L}s}{s^2 + \frac{R}{L}s + \frac{1}{LC}}, \qquad \frac{V_L}{V_\text{in}} = \frac{s^2}{s^2 + \frac{R}{L}s + \frac{1}{LC}}

a low-pass, a band-pass and a high-pass with the same two poles. The zeros at s=0s = 0 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 KeptK e^{pt} to the impulse and step responses. Writing p=σ+jωp = \sigma + j\omega:

pole position term in the response
real, negative (σ<0\sigma < 0, ω=0\omega = 0) decaying exponential, time constant 1/∣σ∣1/\lvert\sigma\rvert
complex pair, σ<0\sigma < 0 damped sinusoid eσtcos⁡(ωt+ϕ)e^{\sigma t}\cos(\omega t + \phi)
pair on the jωj\omega axis (σ=0\sigma = 0) sustained oscillation at ω\omega
any pole with σ>0\sigma > 0 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 jωj\omega axis, the marginal case below). Instability needs gain: transistors, op-amps, dependent sources. Poles far from the jωj\omega axis decay fast; the pole nearest the axis, the dominant pole, sets the settling time. A complex pair at distance ω0\omega_0 from the origin, at angle θ\theta from the negative real axis, has damping ratio ζ=cos⁡θ\zeta = \cos\theta, linking the map to the second-order step response.

Worked example: reading the map

-j3 +j3 -1 -5 +5 sigma j omega right half-plane: unstable left half-plane: stable R = 200 Ohm (stable) R = -50 Ohm (unstable) zero at s = 0 units: 10^4 1/s

Given: the series RLC band-pass VR/VinV_R/V_\text{in} with L=10 mHL = 10\ \text{mH}, C=100 nFC = 100\ \text{nF}, R=200 ΩR = 200\ \Omega; then the same with R=−50 ΩR = -50\ \Omega (an active stage that over-cancels the losses).

Find: the poles and zeros in both cases, ζ\zeta, and the behaviour of each.

Solve: the denominator is s2+(R/L)s+1/(LC)s^2 + (R/L)s + 1/(LC) with 1/(LC)=109 s−21/(LC) = 10^9\ \text{s}^{-2}.

R=200 Ω:s2+20 000 s+109=0  ⇒  p=−10 000±j 30 000 s−1,z=0ζ=cos⁡θ=10 00010 0002+30 0002=0.316R=−50 Ω:s2−5000 s+109=0  ⇒  p=+2500±j 31 524 s−1\begin{aligned} R = 200\ \Omega:&\quad s^2 + 20\,000\,s + 10^9 = 0 \;\Rightarrow\; p = -10\,000 \pm j\,30\,000\ \text{s}^{-1}, \quad z = 0 \\ &\quad \zeta = \cos\theta = \frac{10\,000}{\sqrt{10\,000^2 + 30\,000^2}} = 0.316 \\ R = -50\ \Omega:&\quad s^2 - 5000\,s + 10^9 = 0 \;\Rightarrow\; p = +2500 \pm j\,31\,524\ \text{s}^{-1} \end{aligned}

Check: with R=200 ΩR = 200\ \Omega the poles are in the left half-plane: any disturbance rings at 30 000 rad/s30\,000\ \text{rad/s} (4.77 kHz4.77\ \text{kHz}) and dies with time constant 1/10 000=100 μs1/10\,000 = 100\ \mu\text{s}. With R=−50 ΩR = -50\ \Omega they cross into the right half-plane: a disturbance grows as e2500te^{2500t}, multiplying by e2.5=12e^{2.5} = 12 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 s=jωs = j\omega evaluates HH on the imaginary axis. Geometrically, ∣H(jω)∣\lvert H(j\omega) \rvert is KK times the product of distances from jωj\omega to the zeros, divided by the product of distances to the poles. As jωj\omega 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 2∣σ∣=R/L2\lvert\sigma\rvert = R/L, so here 20 000 rad/s=3183 Hz20\,000\ \text{rad/s} = 3183\ \text{Hz}.

0 A1.3 mA2.5 mA3.8 mA5.0 mAf0/3f0/2f02f03f0|I|f0 = 5.03 kHzImax/sqrt2f1f2-90090f0/3f0/2f02f03f0phase of I (deg)Q = 1.58B = f2 - f1 = 3.18 kHzat f0: resistive

The current I=VR/RI = V_R/R has exactly the band-pass shape. The lab reads f0=5.033 kHzf_0 = 5.033\ \text{kHz} and a bandwidth R/(2πL)=3.183 kHzR/(2\pi L) = 3.183\ \text{kHz}; lower RR 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 ss.

python · try it yourself
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 e2500⋅1 ms≈12e^{2500 \cdot 1\ \text{ms}} \approx 12 per millisecond, as predicted. The DC gains also follow from the map: a zero at the origin makes H(0)=0H(0) = 0.

Guided lab: from a pole-zero map to a measurement

Hand calculation. For the band-pass VR/VinV_R/V_\text{in} with R=200 ΩR = 200\ \Omega (including the generator's 50 Ω50\ \Omega and the coil's winding resistance), predict f0=5.03 kHzf_0 = 5.03\ \text{kHz}, the −3 dB-3\ \text{dB} bandwidth 3.18 kHz3.18\ \text{kHz} and, from the poles, a step response of VCV_C that rings at 4.77 kHz4.77\ \text{kHz} and decays with 100 μs100\ \mu\text{s}.

Simulation. The lab above (frequency view) and the Python code.

What you would measure. Sweep a 1 V1\ \text{V} sine from 11 to 20 kHz20\ \text{kHz} and read the amplitude across the resistor (about 150 Ω150\ \Omega less the coil's winding resistance, so that the total is 200 Ω200\ \Omega; put it at the grounded end) with the scope; find the peak and the two frequencies where it falls to 0.7070.707 of the peak. Then apply a square wave and measure the ring frequency and the decay of VCV_C. From the decay σ\sigma and the ring frequency ωd\omega_d you have measured the pole −σ±jωd-\sigma \pm j\omega_d 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 H(s)H(s) 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 jωj\omega 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 s−1\text{s}^{-1} (rad/s for the imaginary part).

Practice

  1. Where are the poles of VC/VinV_C/V_\text{in} for R=632 ΩR = 632\ \Omega (with the same LL, CC)?
  2. A transfer function has poles at −200-200, −5000-5000 and −20 000 s−1-20\,000\ \text{s}^{-1}. Which dominates the step response, and roughly how long does it take to settle?
  3. Is H(s)=(s−1000)/(s2+2000s+106)H(s) = (s - 1000)/(s^2 + 2000s + 10^6) stable? What is special about it?
Answer
  1. R/L=63 200R/L = 63\,200: s2+63 200s+109s^2 + 63\,200 s + 10^9 has an (almost exactly) double root at −31 600 s−1-31\,600\ \text{s}^{-1} (critical damping, ζ=1\zeta = 1).
  2. The pole at −200 s−1-200\ \text{s}^{-1} (τ=5 ms\tau = 5\ \text{ms}); settling within 2 % takes about 4τ=20 ms4\tau = 20\ \text{ms}.
  3. Poles: s2+2000s+106=(s+1000)2s^2 + 2000s + 10^6 = (s + 1000)^2, double pole at −1000-1000: stable. The zero at +1000+1000 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…

  1. are real
  2. have negative real parts
  3. lie on the imaginary axis
  4. are cancelled by zeros

A pair of poles at −500±j 6000 s−1-500 \pm j\,6000\ \text{s}^{-1} gives a response that…

  1. grows at 6000 rad/s
  2. rings at about 955 Hz and decays with a 2 ms time constant
  3. decays without ringing
  4. oscillates forever

The voltage across the inductor of a series RLC, as a transfer function from the source, has…

  1. no zeros
  2. one zero at the origin
  3. a double zero at the origin
  4. zeros at the poles

A passive RLC circuit can have a pole in the right half-plane.

  1. true
  2. false