Stability and the unit circle
لم يُترجم بعد؛ يُعرض باللغة الإنجليزية
عن هذا الدرس
A digital filter with feedback can settle down, ring forever or blow up. Watch one feedback loop, y[n] = a·y[n−1] + x[n], take a single kick while its loop gain a moves from 0.8 to 1, 1.2 and −0.8. The loop gain is the pole of H(z), and whether the echoes die out depends only on how far that pole is from 0. You will meet BIBO stability (Σ|h[n]| < ∞), the rule "every pole strictly inside the unit circle" for causal systems, a ringing pair of complex poles, and the same test in Python with numpy. It builds on the lessons on transfer functions H(z) and poles and zeros; the continuous-time version (poles in the left half of the s-plane) is in the Circuits lesson on Laplace analysis.
A loop that feeds itself
Our system: y[n] = a·y[n−1] + x[n]. The delay box remembers the last output, the gain block multiplies it by a, and the adder adds the new input. We kick it once: x[n] = 1, then zeros.
y[n] = a·y[n−1] + x[n] delay z⁻¹ holds y[n−1], the last output gain a multiplies it by a adder adds the new input x[n] input: the unit impulse δ[n] x[n] = 1, 0, 0, 0 ... start at rest: y[−1] = 0 the output is the impulse response h[n]
اقرأ الدرس خطوة بخطوة
A loop that feeds itself
Our system: y[n] = a·y[n−1] + x[n]. The delay box remembers the last output, the gain block multiplies it by a, and the adder adds the new input. We kick it once: x[n] = 1, then zeros.
y[n] = a·y[n−1] + x[n] delay z⁻¹ holds y[n−1], the last output gain a multiplies it by a adder adds the new input x[n] input: the unit impulse δ[n] x[n] = 1, 0, 0, 0 ... start at rest: y[−1] = 0 the output is the impulse response h[n]a = 0.8: the echoes die out
Set a = 0.8. The kick goes round the loop and is multiplied by 0.8 on every pass: 1, 0.8, 0.64, 0.51, 0.41 ... Each output is 0.8 times the last, so h[n] = 0.8ⁿ shrinks toward zero.
n y[n−1] ×0.8 + x[n] y[n] 0 0 0 1 1 1 1 0.8 0 0.8 2 0.8 0.64 0 0.64 3 0.64 0.512 0 0.51 4 0.512 0.41 0 0.41 h[n] = 0.8ⁿ for n ≥ 0 h[11] = 0.8¹¹ = 0.09The pole is the loop gain
In the z-domain, H(z) = 1/(1 − 0.8z⁻¹) = z/(z − 0.8). It blows up at z = 0.8: the pole. The pole is exactly the loop gain a, and h[n] = (pole)ⁿ. Its distance from 0 sets how fast echoes fade.
Z-transform both sides: Y(z) = a·z⁻¹·Y(z) + X(z) H(z) = Y(z)/X(z) = 1 / (1 − a·z⁻¹) = z / (z − a) a = 0.8: pole z = 0.8 (denominator = 0) zero z = 0 (numerator = 0) inverse transform (ROC |z| > 0.8): h[n] = 0.8ⁿ·u[n] = (pole)ⁿStable: bounded in, bounded out
A system is BIBO stable if every bounded input gives a bounded output. That holds exactly when Σ|h[n]| is finite. Here Σ0.8ⁿ = 1/(1 − 0.8) = 5: inputs never above 1 give outputs never above 5.
BIBO: bounded input -> bounded output |y[n]| = |Σ h[k]·x[n−k]| ≤ Σ |h[k]| · max|x| stable <=> Σ |h[n]| < ∞ a = 0.8: Σ 0.8ⁿ = 1 + 0.8 + 0.64 + ... = 1 / (1 − 0.8) = 5 |x| ≤ 1 -> |y| ≤ 5 (x[n] = 1 for all n reaches it)a = 1: on the circle, it never dies
Set a = 1. Now 1, 1, 1, 1 ... forever: the pole sits on the unit circle, |z| = 1. Σ|h[n]| grows without limit, and a steady input of 1 makes the output climb 1, 2, 3 ... with no ceiling. Not stable.
a = 1: y[n] = y[n−1] + x[n] (an accumulator, a running sum) h[n] = 1ⁿ = 1, 1, 1, 1 ... Σ |h[n]| = 1 + 1 + 1 + ... = ∞ bounded input x[n] = 1 for n ≥ 0: y[n] = n + 1 = 1, 2, 3, 4 ... no bound -> not BIBO stable pole at z = 1, on the unit circlea = 1.2: outside, it explodes
Set a = 1.2. Each pass multiplies by 1.2: 1, 1.2, 1.44, 1.73, 2.07 ... and h[11] ≈ 7.43. The pole at z = 1.2 is outside the unit circle, so the response grows without bound: unstable.
a = 1.2: h[n] = 1.2ⁿ 1, 1.2, 1.44, 1.73, 2.07 ... h[11] = 1.2¹¹ ≈ 7.43 h[50] = 1.2⁵⁰ ≈ 9100 one bounded kick (x = 1 once) -> an unbounded output: unstable pole at z = 1.2: |z| > 1, outside (the plot clips stems above 5)a = −0.8: only the size counts
Set a = −0.8. The sign flips on every pass: 1, −0.8, 0.64, −0.51 ... but the size still shrinks, because |−0.8| = 0.8 < 1. A pole on the left is just as stable. Only its distance from 0 matters.
a = −0.8: h[n] = (−0.8)ⁿ 1, −0.8, 0.64, −0.51, ... |h[n]| = 0.8ⁿ: the same sizes as a = 0.8 Σ |h[n]| = 5 -> stable pole at z = −0.8: |z| = 0.8 < 1 a negative pole makes the output flip sign every sampleThe rule: every pole inside
A causal system is stable if and only if every pole has |z| < 1: strictly inside the unit circle. Then the region of convergence, |z| > |pole|, contains the circle. On the circle is not stable; outside is unstable.
causal: h[n] = 0 for n < 0 ROC = outside the largest pole |z| > max |pole| stable <=> ROC contains |z| = 1 <=> every |pole| < 1 poles tried: 0.8 inside stable −0.8 inside stable 1 on not stable 1.2 outside unstable zeros do not matter for stabilityTwo poles: ring, then fade
Two delays give two poles. Put them at 0.9·e^(±jπ/4). The response rings and fades: 1, 1.27, 0.81, 0, −0.66 ... The angle π/4 sets an 8-sample swing; the radius 0.9 < 1 sets the fade. Stable.
poles p = 0.9·e^(±jπ/4) = 0.64 ± 0.64j H(z) = 1 / (1 − 2r·cosθ·z⁻¹ + r²·z⁻²) y[n] = 1.27·y[n−1] − 0.81·y[n−2] + x[n] h[n] = 0.9ⁿ · sin((n+1)·π/4) / sin(π/4) = 1, 1.27, 0.81, 0, −0.66 ... angle π/4 -> one swing every 8 samples radius 0.9 -> shrinks ×0.9 per sampleCheck the poles in Python
In Python 3 with numpy, np.roots finds the poles from the feedback coefficients. abs(p) gives each pole's distance from 0: both 0.9. abs(p) < 1 is True for both: every pole is inside, so the filter is stable.
import numpy as np r, w = 0.9, np.pi/4 a = [1, -2*r*np.cos(w), r*r] p = np.roots(a) print(abs(p) < 1) >>> p array([0.6363961+0.6363961j, 0.6363961-0.6363961j]) >>> abs(p) array([0.9, 0.9]) prints: [ True True] np.roots wants z² − 2r·cosθ·z + r²: H(z)'s denominator times z²
أسئلة سريعة: 5
اختر إجابة واحدة لكل سؤال. يمكنك تغيير اختياراتك قبل التحقق منها.
01A causal filter has poles at z = 0.5 and z = −0.95. Is it stable?
Only the distance from 0 matters: |0.5| = 0.5 and |−0.95| = 0.95, both below 1. The response for −0.95 flips sign and fades slowly, but it fades. Zeros do not affect stability.
02For y[n] = 0.5·y[n−1] + x[n], what is Σ|h[n]|, the largest output an input with |x[n]| ≤ 1 can produce?
h[n] = 0.5ⁿ, so Σ|h[n]| = 1 + 0.5 + 0.25 + ... = 1/(1 − 0.5) = 2. The sum is finite, so the system is BIBO stable and |y| never exceeds 2.
03The accumulator y[n] = y[n−1] + x[n] has its pole at z = 1. Why is it not BIBO stable, even though its impulse response does not grow?
BIBO asks about every bounded input. h[n] = 1 forever, so Σ|h[n]| = ∞, and the constant input is summed without limit: 1, 2, 3, 4 ...
04A causal filter has a pole pair at 1.05·e^(±jπ/4). What does its impulse response do?
The angle π/4 sets one swing every 2π/(π/4) = 8 samples; the radius 1.05 multiplies the size by 1.05 per sample. Outside the unit circle: unstable.
05In numpy, np.roots([1, -1.6, 0.64]) returns two poles at 0.8. Which line decides stability for a causal filter?
Stable means every pole strictly inside the unit circle: |p| < 1. Real parts below 0 is the s-plane rule for continuous time, and ≤ 1 would wrongly accept poles on the circle.
المسرد
- BIBO stability
- Bounded input, bounded output: every input that stays below some limit gives an output that also stays below some limit. For an LTI system it holds exactly when Σ|h[n]| is finite.
- Impulse response h[n]
- The output when the input is a single 1 at n = 0 (the unit impulse δ[n]) and the system starts at rest.
- Pole
- A value of z where H(z) becomes infinite (its denominator is 0). For y[n] = a·y[n−1] + x[n] the pole is z = a, and h[n] = aⁿ.
- Unit circle
- The circle |z| = 1 in the complex z-plane. Poles inside it give responses that fade; on it, ones that never fade; outside it, ones that grow.
- Region of convergence (ROC)
- The set of z where the Z-transform sum converges. For a causal system it is the outside of the largest pole, |z| > max|pole|.
- Causal system
- A system whose output never depends on future inputs, so h[n] = 0 for n < 0.
- Marginally stable
- A name some books use when the largest pole is exactly on the unit circle: the response neither fades nor grows. It is not BIBO stable.
الملاحظات والمصادر
- The loop gains 0.8, 1, 1.2 and −0.8 and the pole pair 0.9·e^(±jπ/4) are chosen examples. Every value, stem and pole position in the figure is computed from this model by running the difference equation.
- The rule "every pole inside the unit circle" is for causal systems, whose region of convergence lies outside the largest pole. In general a system is stable exactly when its region of convergence contains the unit circle (Oppenheim and Schafer, §3.1 and §5.2).
- With a pole on the unit circle some books say "marginally stable": the impulse response does not die out but does not grow either. It is still not BIBO stable, because a bounded input (here a constant) can drive the output without limit.
- A. V. Oppenheim, R. W. Schafer, J. R. Buck, Discrete-Time Signal Processing, 2nd ed., Prentice Hall 1999, §2.4, §3.1, §5.2 (course text listed on MIT OCW 6.341 readings)
- A. V. Oppenheim, A. S. Willsky, S. H. Nawab, Signals and Systems, 2nd ed., Pearson (§2.3.7 stability of LTI systems, §10.7 stability from the ROC)
- B. P. Lathi, R. A. Green, Linear Systems and Signals, Oxford University Press, 2018 (Internet Archive record)
- MIT OpenCourseWare 6.003 Signals and Systems (D. Freeman, Fall 2011): Laplace and Z transforms
- MIT OpenCourseWare 6.341 Discrete-Time Signal Processing (A. V. Oppenheim)
- BIBO stability (Wikipedia): absolutely summable h[n]; poles inside the unit circle for causal systems
- Marginal stability (Wikipedia): largest pole magnitude exactly 1
- NumPy documentation: numpy.roots (coefficients highest power first)
اختبار يتاح بعد الخطوة الأخيرة.