跳到主要内容

信号与系统

大学电气工程知识点 6

本主题的视频课程 打开视频页面
7:20

信号与系统

交流电课程研究的是一个电路在一个频率下的表现。本课程研究的是系统对任意输入的响应。我们从系统性质出发,学习三种完整的分析方法:卷积、傅里叶变换和 z 变换。后续的专业课程都要用到它们。每一对变换关系都会推导一次,每个卷积都会用两种方法验证。

英文讲解 · 可切换中英文字幕

6.1

本课程介绍及使用方法

English

This is the sixth course in University Electrical Engineering: signals and systems 信号与系统. The AC course asked what one circuit does at one frequency. This course asks a wider question: what does a system do to any input? The answers come from convolution and two transforms, Fourier and z. The later courses in communications, digital signal processing (DSP) and control are built on them.

  • Unit 6.1 sorts signals and systems by their properties.
  • Unit 6.2 shows that convolution gives the output in the time domain for any input.
  • Units 6.3–6.4 move to frequency: Fourier series and transforms, and sampling.
  • Unit 6.5 uses the Laplace transform of course 2 as the system function.
  • Units 6.6–6.7 move to discrete time: difference equations and the z-transform.

One example runs through the whole course: an audio channel with a microphone, a filter, a sampler and a digital equaliser. Each unit takes that channel one step further. Every answer is checked the way a signals engineer checks it: derive each transform pair at least once, check each convolution in two ways (by the integral and, where possible, by the Fourier product), and test each discrete result by iterating it directly.

词汇 训练
English 中文 拼音
signals and systems/ˈsɪɡnlz ænd ˈsɪstəmz/ 信号与系统 xìn hào yǔ xì tǒng
system/ˈsɪstəm/ 系统 xì tǒng
system function/ˈsɪstəm ˈfʌŋkʃn/ 系统函数 xì tǒng hán shù
z-transform/zed trænsˈfɔːm/ z 变换 z biàn huàn
6.1

信号表示与系统特性

English

Why it matters. "Is it linear? Is it time-invariant?" are the first two questions in every analysis in this course. The answers decide which tools you are allowed to use.

A triangle wave and a square wave on an oscilloscope: two periodic signals with very different harmonic content
A triangle wave and a square wave on an oscilloscope: two periodic signals with very different harmonic content

The idea, with a picture. A signal 信号 is a function of time: continuous-time $x(t)$ or discrete-time $x[n]$, where $n$ counts samples. A system 系统 maps an input signal to an output signal. Four properties are used throughout the course. Each one is a test you carry out on chosen inputs, not something you decide by looking:

  • Linearity 线性: if $x_1 \to y_1$ and $x_2 \to y_2$, then $ax_{1} + bx_{2} \to ay_{1} + by_{2}$ for any constants $a$ and $b$. Feed in the combination and check that the output is the same combination.
  • Time invariance 时不变性: delay the input by $T$; the output must be the same output, delayed by exactly $T$.
  • Causality 因果性: the output at time $t$ depends only on the input up to time $t$, never on future input.
  • BIBO stability BIBO 稳定性 (bounded input, bounded output): every bounded input gives a bounded output. For a linear time-invariant system this is the same as $\int_{-\infty}^{\infty} |h(t)|\,dt < \infty$, where $h(t)$ is the impulse response: the impulse response must be absolutely integrable.
Four property tests, each one experiment on a system S: linearity (a combination of two inputs must give the same combination of outputs), time invariance (a delayed input must give the same output delayed by T), causality (no output before the input arrives at t0), and BIBO stability (a bounded input gives a bounded output)
Each property is one experiment: pick the probe input, compare the two outputs

The derivation. The time-invariance test compares two routes:

  1. Shift, then apply the system: delay the input to $x(t - T)$ and put it through the system.
  2. Apply the system, then shift: find the output $y(t)$ and delay it to $y(t - T)$.

If the two results differ, the system is time-varying. For $y(t) = x(2t)$, route 1 gives $x(2t - T) = x\left(2\left(t - \tfrac{T}{2}\right)\right)$, an output delayed by only $\tfrac{T}{2}$. Route 2 gives $y(t - T) = x(2t - 2T)$, delayed by the full $T$. The two differ, so a system that speeds up time is time-varying.

Worked example 1 (the time-scaling trap). Is $y(t) = x(2t)$ time-invariant? Test with the unit step $x(t) = u(t)$ and a delay of 1.

  1. Shift first: $u(t-1)$ goes through the system to $u(2t-1) = u\left(t - \tfrac{1}{2}\right)$.
  2. System first, then shift: $y(t-1) = u(2(t-1)) = u(t-1)$.
  3. One route gives half a shift and the other a full shift, so the system is time-varying.
  4. In the audio channel, a stage that plays the sound back twice as fast fails in exactly this way.

Worked example 2 (stability by the integral).

  1. The channel's room-echo model is $h(t) = e^{-t}u(t)$: $\int_{0}^{\infty} e^{-t}\,dt = 1 < \infty$, so it is stable.
  2. An integrator has $h(t) = u(t)$: $\int_{0}^{\infty} 1\,dt = \infty$. So it is not BIBO stable. Indeed, a bounded step input gives an output ramp that grows without limit, even though the integrator looks harmless.
  3. One integral gives the answer each time.

Common mistakes.

  • Testing linearity with one input. You need two inputs, plus a scaling test.
  • Deciding time invariance from a diagram. Run the shift test.
  • Confusing causality with stability. $h(t) = e^{-t}u(t)$ is both. But $h(t) = -e^{t}u(-t)$, which is non-zero only before $t = 0$ and decays into the past, is stable and not causal. The two properties are independent.

Summary. Linearity and time invariance make convolution possible. Causality means no output before the input. BIBO stability means $\int|h|\,dt < \infty$. Each property is checked by a simple experiment.

探索

Does a delayed input give the same delayed output?

$\mathcal{S}\{x(t-T)\}\stackrel{?}{=}(\mathcal{S}\{x\})(t-T)$

Compare the two routes in the worked x(2t) example. A one-second delay before time scaling produces an onset at 0.5 seconds; delaying the output gives an onset at 1 second. At 0.75 seconds the outputs differ, disproving time invariance. Compare gain, squaring and clock weighting to see why linearity and time invariance are independent properties. A matching probe alone never proves invariance.

词汇 训练
English 中文 拼音
signal/ˈsɪɡnl/ 信号 xìn hào
linearity/lɪˈnɪərɪti/ 线性 xiàn xìng
time invariance/taɪm ɪnˈveərɪəns/ 时不变性 shí bù biàn xìng
causality/kɔːˈzælɪti/ 因果性 yīn guǒ xìng
BIBO stability/ˌbiː aɪ biː ˈəʊ stəˈbɪlɪti/ BIBO 稳定性 BIBO wěn dìng xìng
6.2

线性时不变系统与卷积

English

Why it matters. Convolution gives the output of any linear time-invariant system for any input. It needs no transform and no transfer function, only the impulse response and an integral.

The idea, with a picture. For a linear time-invariant 线性时不变 (LTI) system, the impulse response 冲激响应 $h(t)$, the output when the input is a unit impulse $\delta(t)$, describes the system completely. Split the input into many short, scaled impulses. The impulse at time $\tau$ has strength $x(\tau)\,d\tau$ and produces the response $x(\tau)\,h(t-\tau)\,d\tau$. Adding all of these (superposition) gives:

$$y(t) = \int_{-\infty}^{\infty} x(\tau)\,h(t-\tau)\,d\tau = (x * h)(t).$$

Convolution 卷积 means: flip $h$, slide it along $x$, multiply the two, and take the area of the product. That area is one output value; repeat for each $t$.

Left: the flipped impulse response sliding over the unit step at t = 1.5, the overlap shaded. Right: y(t) = 1 − e^{−t} with y(1.5) = 0.777 marked
Each value of y(t) is the overlap area as h slides past x

The derivation. Write the input as a sum of impulses (the sifting property): $x(t) = \int x(\tau)\,\delta(t-\tau)\,d\tau$. Time invariance turns each $\delta(t-\tau)$ into $h(t-\tau)$. Linearity lets the system act inside the integral, so the output is the sum of the scaled responses. The result is the convolution integral: three properties give one formula.

Worked example 1 (a step response). The channel's filter has $h(t) = e^{-t}u(t)$, and the input is a unit step $x(t) = u(t)$.

For $t \ge 0$ the two overlap for $0 \le \tau \le t$, so

$$y(t) = \int_{0}^{t} e^{-(t-\tau)}\,d\tau = e^{-t}(e^{t} - 1) = 1 - e^{-t}.$$
  1. Check the ends: $y(0) = 0$, since no input has arrived yet, and $y(\infty) = 1$, the DC gain $\int h\,dt = 1$.
  2. At $t = 1.5$: $y = 1 - e^{-1.5} = 0.777$, the shaded overlap area in the figure.

Worked example 2 (a 2-second pulse). The input is now a pulse of height 1 from $t = 0$ to $t = 2$ (a held note), into the same filter.

  1. The pulse is a step switched on at $t = 0$ minus a step switched on at $t = 2$. By superposition: $y(t) = (1 - e^{-t})u(t) - (1 - e^{-(t-2)})u(t-2)$.
  2. At $t = 1$: $y = 1 - e^{-1} = 0.632$.
  3. At $t = 2$ the output peaks at $1 - e^{-2} = 0.865$.
  4. At $t = 3$: $y = (1 - e^{-3}) - (1 - e^{-1}) = e^{-1} - e^{-3} = 0.318$, the release tail.
  5. Check at $t = 2$: the second term starts from zero, so the curve has no jump. Its slope, though, drops by exactly 1 (from 0.135 to −0.865). That corner is the moment the note stops.

Common mistakes.

  • Forgetting the flip. Convolution is not $\int x(\tau)h(\tau)\,d\tau$.
  • Using $-\infty$ to $\infty$ as the limits when both signals start at 0. The overlap window sets the limits.
  • Thinking $x * h = x \cdot h$. Multiplication happens in the frequency domain, never in time.

Summary. $y = x * h$: flip, slide, multiply, integrate. Convolution is commutative, two systems in cascade convolve their impulse responses, and the widths of two pulses add ($W_{1} + W_{2}$). The transforms in later units exist largely to avoid this integral.

探索

The sliding product area becomes the output

$y(t)=\int x(\tau)h(t-\tau)\,d\tau$

At t = 1.5 s, the unit step and flipped exponential overlap from τ = 0 to 1.5 s, giving output about 0.777. Switch to the worked 2-second pulse at t = 3 s and see that input has stopped while the output remains about 0.318. Change time and pulse width to connect the causal overlap, the peak at switch-off and the release tail.

词汇 训练
English 中文 拼音
linear time-invariant/ˈlɪnɪə taɪm ɪnˈveərɪənt/ 线性时不变 xiàn xìng shí bù biàn
impulse response/ˈɪmpʌls rɪˈspɒns/ 冲激响应 chōng jī xiǎng yìng
convolution/kɒnvəˈluːʃn/ 卷积 juǎn jī
6.3

傅里叶级数与变换

English

Why it matters. The channel's noise, its harmonics and its equaliser bands are all described in frequency. The Fourier transform connects time and frequency, and because it turns convolution into multiplication, filters are designed in frequency.

The idea, with a picture. A periodic signal is a sum of harmonics (the Fourier series of course 2). The Fourier transform 傅里叶变换 extends the idea to signals that do not repeat. With $\omega$ the angular frequency:

$$X(\omega) = \int_{-\infty}^{\infty} x(t)\,e^{-j\omega t}\,dt, \qquad x(t) = \frac{1}{2\pi}\int_{-\infty}^{\infty} X(\omega)\,e^{j\omega t}\,d\omega.$$

Convolution in time becomes multiplication in frequency: $Y(\omega) = X(\omega)H(\omega)$, where $H(\omega)$ is the system's frequency response. The whole subject depends on this property.

The rectangular pulse and its sinc spectrum, with the first null marked at f = 1/tau: narrower pulse, wider spectrum
The sinc spectrum of a rectangular pulse: null at 1/τ, narrower in time means wider in frequency

The derivation. Take a rectangular pulse of height $A$ and width $\tau$, centred at $t = 0$:

$$X(\omega) = \int_{-\tau/2}^{\tau/2} A\,e^{-j\omega t}\,dt = A\,\frac{e^{j\omega\tau/2} - e^{-j\omega\tau/2}}{j\omega} = A\tau\,\frac{\sin(\omega\tau/2)}{\omega\tau/2}.$$

This shape is the sinc function. At $\omega = 0$ the transform equals the pulse's area, $A\tau$, because the fraction tends to 1. The first zero (null) is where $\dfrac{\omega\tau}{2} = \pi$, which is the frequency $f = \dfrac{1}{\tau}$. A shorter pulse has a wider spectrum: this is the time–bandwidth trade-off 时间带宽权衡.

Worked example 1 (the click and its spectrum). A 1 ms click with $A = 1$ and $\tau = 10^{-3}$ s.

  1. First null: $f = \dfrac{1}{10^{-3}} = 1$ kHz.
  2. A click ten times shorter (0.1 ms) moves the null to 10 kHz. The shorter the event, the wider its spectrum, which is why a click disturbs every band of an equaliser at once.
  3. Check the area: the value at $f = 0$ is $A\tau$, which is $10^{-3}$ for the 1 ms click and $10^{-4}$ for the 0.1 ms click. The shorter click puts less energy into each band but spreads it over ten times as many bands.

Worked example 2 (why an ideal filter cannot be built). The channel wants a brick-wall low-pass filter: gain 1 from 0 to 4 kHz and gain 0 above.

  1. Its impulse response is the inverse transform of that rectangle in frequency: $h(t) = \dfrac{\sin(\omega_{c}t)}{\pi t}$, with $\omega_c = 2\pi f_c$ and $f_{c} = 4$ kHz. It is a sinc in time.
  2. This sinc stretches to $\pm\infty$, so it starts before $t = 0$. The ideal filter would respond before its input arrives: it is non-causal and cannot be built.
  3. Cut $h(t)$ to $|t| \le 5$ ms, a 10 ms window. The pass band then ripples (the Gibbs effect), with ripples about $\dfrac{1}{10\ \text{ms}} = 100$ Hz apart, and the edge can be no sharper than about 100 Hz.
  4. Meaning: a steep edge in frequency costs length in time. It is the time–bandwidth trade-off again, seen from the other side.

Common mistakes.

  • Evaluating the sinc at $\omega$ instead of $\dfrac{\omega\tau}{2}$. Its argument has no units.
  • Forgetting the $\dfrac{1}{2\pi}$ in the inverse transform.
  • Treating $|X(\omega)|$ as the whole story. The transform also needs its phase.

Summary. Find transform pairs from the integral. A pulse transforms to a sinc with its first null at $\dfrac{1}{\tau}$. Convolution in time is multiplication in frequency. Narrow or steep in one domain means long or wide in the other.

探索

Narrow in time, wide in frequency; delay lives in phase

$X(f)=\tau\,\mathrm{sinc}(f\tau)e^{-j2\pi ft_0}$

Compare the worked 1 ms pulse with a 0.1 ms pulse on the same displayed spectrum. Its first null moves from 1 kHz to 10 kHz while its area falls by ten. Shift the pulse centre and see the complex Fourier coefficient rotate without changing magnitude. Probe a null and a negative sinc lobe to see why magnitude alone does not describe the signal.

词汇 训练
English 中文 拼音
Fourier transform/ˈfɔːrɪə trænsˈfɔːm/ 傅里叶变换 fù lǐ yè biàn huàn
time-bandwidth trade-off/taɪm ˈbændwɪdθ treɪd ɒf/ 时间带宽权衡 shí jiān dài kuān quán héng
6.4

抽样

English

Why it matters. The channel becomes digital at one point: the sampler. Everything after it (the equaliser, storage, reconstruction) depends on what the sampling did, and a sampling error can never be removed afterwards.

A black USB desktop microphone standing on its base, on a white background
A microphone gives a continuous voltage; sampling it faster than twice its highest frequency keeps all the information

The idea, with a picture. Sampling multiplies the signal by a train of impulses, one every $T$ seconds. In frequency, this copies the spectrum to every multiple of the sampling rate $f_{s} = \dfrac{1}{T}$. The Nyquist criterion 奈奎斯特准则: a signal with no content above $f_{max}$ can be recovered exactly if $f_{s} > 2f_{max}$. Below that rate the copies overlap, and aliasing 混叠 folds high frequencies back into the band as false low ones.

A 4 kHz cosine and a 2 kHz cosine pass through exactly the same samples taken at 6 kHz
Sampled at 6 kHz, a 4 kHz tone is indistinguishable from 2 kHz

The derivation. The sampler output is $x_{s}(t) = x(t)\sum_{n}\delta(t - nT)$. Multiplication in time is convolution in frequency, so its spectrum is $\dfrac{1}{T}\sum_{k} X(\omega - k\omega_{s})$, with $\omega_s = 2\pi f_s$: a copy of the spectrum at every multiple of the sampling frequency. If $X$ is zero outside $|\omega| < \dfrac{\omega_{s}}{2}$, the copies never touch. If they are closer, they overlap, and inside the overlap no filter can tell a true low frequency from a folded high one.

Worked example 1 (the 4 kHz alias). A 4 kHz cosine is sampled at 6 kHz.

  1. $4 > \dfrac{6}{2} = 3$, so the tone aliases, to $|f - f_{s}| = |4 - 6| = 2$ kHz.
  2. Check the samples. At sample $n$ the 4 kHz tone gives $\cos\left(2\pi \cdot \tfrac{4}{6} n\right) = \cos\left(2\pi \cdot \tfrac{2}{3} n\right)$, and the 2 kHz tone gives $\cos\left(2\pi \cdot \tfrac{1}{3} n\right)$.
  3. These are equal, because $\cos\left(2\pi \cdot \tfrac{2}{3} n\right) = \cos\left(2\pi\left(\tfrac{2}{3} - 1\right)n\right) = \cos\left(-2\pi \cdot \tfrac{1}{3} n\right) = \cos\left(2\pi \cdot \tfrac{1}{3} n\right)$: subtracting a whole cycle per sample changes nothing, and cosine is even.
  4. So after sampling at 6 kHz, a 4 kHz tone is a 2 kHz sequence.

Worked example 2 (the anti-alias budget). The microphone carries content up to 20 kHz, and the sampler runs at 44.1 kHz, so $\dfrac{f_{s}}{2} = 22.05$ kHz.

  1. A 25 kHz interference tone would alias to $44.1 - 25 = 19.1$ kHz, inside the 20 kHz audio band.
  2. An anti-alias filter 抗混叠滤波器 must remove it before the sampler.
  3. At the CD rate of 44.1 kHz, the guard band between 20 kHz and 22.05 kHz is only 2.05 kHz wide, so the filter must be very steep.
  4. Professional recording samples at 96 or 192 kHz, with guard bands of 28 and 76 kHz, so gentle filters are enough.
  5. The fix always goes before the sampler, never after: a folded frequency carries no mark to show where it came from.

Common mistakes.

  • Treating $f_{s} = 2f_{max}$ as safe. The inequality is strict: at equality, a sine at $f_{max}$ can be sampled at its zero crossings and disappear.
  • Filtering after sampling. The alias is already inside the band.
  • Expecting digital upsampling to recover what a low $f_{s}$ missed. It was never recorded.

Summary. Sampling copies the spectrum to every multiple of $f_{s}$. Sample with $f_{s} > 2f_{max}$, or frequencies above $\dfrac{f_{s}}{2}$ fold back as aliases. The anti-alias filter goes before the sampler, and the guard band between $f_{max}$ and $\dfrac{f_{s}}{2}$ is the room it has to work in.

探索

Different waves can pass through the same samples

$f_s>2f_{max},\quad f_a=|f-kf_s|\le f_s/2$

The worked 4 kHz cosine sampled at 6 kHz shares every sample with a 2 kHz cosine. Change phase to see why a negative-frequency fold must reverse cosine phase. At the Nyquist boundary, a sine can vanish at every sample. The audio example uses a 25 kHz tone at 44.1 kHz, which aliases to 19.1 kHz; raising the rate to 96 kHz avoids folding that chosen tone.

词汇 训练
English 中文 拼音
Nyquist criterion/ˈnaɪkwɪst kraɪˈtɪərɪən/ 奈奎斯特准则 nài kuí sī tè zhǔn zé
aliasing/ˈeɪlɪəsɪŋ/ 混叠 hùn dié
anti-alias filter/ˈænti ˈeɪlɪəs ˈfɪltə/ 抗混叠滤波器 kàng hùn dié lǜ bō qì
6.5

拉普拉斯变换与系统函数

English

Why it matters. The channel's analogue stage, with its coupling capacitors and tone controls, is described by a ratio of polynomials in $s$. The poles of that system function show its ringing, speed and stability at a glance.

The idea, with a picture. The Laplace transform of course 2 gives the system function 系统函数 $H(s) = \dfrac{Y(s)}{X(s)}$, the transform of the impulse response: $h(t) \leftrightarrow H(s)$. A rational $H(s)$ factors into poles and zeros 零极点: values of $s$ where $H$ becomes infinite or zero. Each pole $p$ adds a natural mode $e^{pt}$ to the response. The region of convergence (ROC), the set of $s$ for which the transform integral converges, decides whether the system is causal. A causal system is stable only if all its poles are in the open left half-plane.

Three readings of H(s) = 1/(s + 1): the s-plane with the pole at −1 and the vector of length √2 from the pole to j1; the step response 1 − e^(−t) reaching 95% at 3 s; and the frequency response |H(jω)| falling to 0.707 (−3 dB) at 1 rad/s
One pole at −1: the decay rate in time, the −3 dB frequency in the response — one number, three readings

The derivation. $\mathcal{L}\{e^{-at}u(t)\} = \int_0^\infty e^{-(s+a)t}\,dt = \dfrac{1}{s+a}$ for $\text{Re}(s) > -a$, and the unit step transforms to $\dfrac{1}{s}$. So for $H(s) = \dfrac{1}{s+1}$ driven by a step:

$$Y(s) = \frac{1}{s(s+1)} = \frac{1}{s} - \frac{1}{s+1} \;\Longrightarrow\; y(t) = 1 - e^{-t}.$$

Three lines of partial fractions replace the convolution of unit 6.2, and both methods give the same curve.

Worked example 1 (one pole, three readings). $H(s) = \dfrac{1}{s+1}$.

  1. Time: the pole at $s = -1$ is the $e^{-t}$ in the impulse response, a time constant of 1 s.
  2. Step response: $1 - e^{-t}$, which reaches 95% at $t = 3$ s.
  3. Frequency: the frequency response 频率响应 is $H(j\omega)$, and $|H(j1)| = \dfrac{1}{|1 + j|} = \dfrac{1}{\sqrt{2}} = 0.707$. The −3 dB point is at the pole's distance from the origin, and the phase there is $-45^{\circ}$.

Worked example 2 (a tone control with a notch). A bass boost with a notch: $H(s) = \dfrac{s^{2} + 2s + 100}{(s+1)(s+10)}$.

  1. Zeros: $s = -1 \pm \sqrt{1 - 100} = -1 \pm j9.95$. They are close to the imaginary axis near $\pm 10$ rad/s, so they cut a notch there.
  2. Size of the notch: at $s = j10$ the numerator is $-100 + j20 + 100 = j20$, so $|H(j10)| = \dfrac{20}{|1 + j10|\,|10 + j10|} = \dfrac{20}{10.05 \times 14.14} = 0.14$, about −17 dB.
  3. Poles at $-1$ and $-10$, both in the left half-plane: stable.
  4. DC gain: put $s = 0$: $\dfrac{100}{1 \times 10} = 10$, a 20 dB bass lift.
  5. High-frequency gain: 1 (0 dB), because the $s^{2}$ terms above and below dominate.
  6. So the whole curve can be read from the four points on the s-plane: 20 dB at low frequency, a dip near 10 rad/s, and 0 dB at high frequency.

Common mistakes.

  • Judging stability from the poles without the ROC. $\dfrac{1}{s+1}$ with an ROC to the left of −1 describes an anti-causal, unstable system.
  • Forgetting that $H(s)$ is only defined together with its ROC.
  • Using the distance rule everywhere. The −3 dB point equals the pole's distance from the origin only for a single first-order pole with no zeros nearby.

Summary. $H(s) = \dfrac{Y}{X}$. Partial fractions turn transforms back into exponentials. The poles set the modes, the ROC sets causality, poles in the left half-plane give stability, and $s = j\omega$ gives the frequency response.

探索

Move the zeros; watch the tone-control curve change

$H(s)=\frac{s^2+2\zeta\omega_0s+\omega_0^2}{(s+1)(s+10)}$

Start with the worked tone control, whose zeros are at −1 ± j9.95 and whose fixed poles are at −1 and −10. Its gain near 10 rad/s is about 0.14, while its DC gain is 10. Move the zeros farther from the imaginary axis to soften the dip, or onto it for an exact null. The causal system stays stable because the poles and ROC stay fixed. The distance products connect the s-plane directly to the gain curve.

词汇 训练
English 中文 拼音
poles and zeros/pəʊlz ænd ˈzɪərəʊz/ 零极点 líng jí diǎn
frequency response/ˈfriːkwənsi rɪˈspɒns/ 频率响应 pín lǜ xiǎng yìng
6.6

离散时间系统

English

Why it matters. Once the sound is sampled, the equaliser is a difference equation running on a processor. Iterating it by hand, one sample at a time, is the clearest way to understand what it does.

Block diagram of y of n equals a times y of n minus 1 plus x of n: an adder, a unit delay z to the minus 1 and a gain a feeding the output back
A delay, a gain and an adder make the recursion

The idea, with a picture. In discrete time, convolution becomes a sum: $y[n] = \sum_{k} x[k]\,h[n-k]$. Many systems are described by difference equations 差分方程, such as $y[n] = 0.5\,y[n-1] + x[n]$: each new output is half the last output plus the new input. For $y[n] = a\,y[n-1] + x[n]$ the system's own mode is $a^{n}$, where $a$ is the root of the characteristic equation. Iterating, one sample at a time, solves the equation directly.

Iteration of y[n] = 0.5·y[n−1] + x[n] on a unit step: the first eight samples climbing to the limit 2, with the geometric gap halving each step
Each step halves the remaining gap to the limit — a geometric approach you can verify on your fingers

The derivation. For $y[n] = a\,y[n-1] + x[n]$ with a unit step input and $y[-1] = 0$, the first outputs are $1,\ 1+a,\ 1+a+a^{2},\ \ldots$. These are partial sums of a geometric series, so

$$y[n] = \frac{1 - a^{n+1}}{1 - a} \to \frac{1}{1-a} \quad (|a| < 1).$$

The limit $\dfrac{1}{1-a}$ is the DC gain, the discrete version of the continuous DC gain $\int h\,dt$.

Worked example 1 (iterate and converge). $y[n] = 0.5\,y[n-1] + x[n]$ with $y[-1] = 0$ and a unit step input.

  1. $y[0] = 1$, $y[1] = 1.5$, $y[2] = 1.75$, $y[3] = 1.875$.
  2. The outputs approach the DC gain $\dfrac{1}{1-0.5} = 2$.
  3. The gap to the limit is $2 - y[n] = 2 \times 0.5^{n+1}$, so it halves at every step.
  4. After 10 steps, the gap is $0.5^{11} \approx 0.05\%$ of the limit. One line of algebra predicts the whole table.

Worked example 2 (a negative root). Set $a = -0.8$, so $y[n] = -0.8\,y[n-1] + x[n]$, with a step input.

  1. Closed form: $y[n] = \dfrac{1 - (-0.8)^{n+1}}{1.8}$, approaching $\dfrac{1}{1.8} = 0.556$.
  2. Samples: $y[0] = 1$, $y[1] = 0.2$, $y[2] = 0.84$, $y[3] = 0.328$. They swing above and below 0.556.
  3. $|a| = 0.8 < 1$, so the system is still stable: the swings shrink.
  4. The sign flip at every sample is the mark of a negative root. It is the discrete version of a pole pair ringing at half the sampling rate: $z = -0.8$ corresponds to $s = \dfrac{\ln 0.8 \pm j\pi}{T}$.
Step responses for ten samples: a = 0.5 climbs smoothly to 2, a = -0.8 swings above and below 0.556 while settling; both are stable
A negative root settles by swinging

Common mistakes.

  • Iterating from a wrong or unstated $y[-1]$. Write the starting value before the first line.
  • Judging stability from the first few samples. Only $|a| < 1$ decides.
  • Reading the DC gain from $y[0]$. It is the limit $\dfrac{1}{1-a}$, reached only as the samples settle.

Summary. Iterate a difference equation from a stated start. Its step response is a geometric partial sum, with DC gain $\dfrac{1}{1-a}$. A root inside the unit circle ($|a| < 1$) means stability; negative or complex roots give oscillation.

探索

Compute the next sample; test more than one input

$y[n]=a\,y[n-1]+x[n],\quad |a|<1\text{ for causal BIBO stability}$

Recover the worked step sequence 1, 1.5, 1.75, 1.875 from the stated zero initial state. Compare the alternating approach for a = −0.8. At a = −1, a step trace stays bounded, but an alternating input of the same bounded amplitude produces growing output. The strict root condition decides stability, rather than the appearance of one short trace.

词汇 训练
English 中文 拼音
difference equation/ˈdɪfrəns ɪˈkweɪʒn/ 差分方程 chā fēn fāng chéng
6.7

Z变换

English

Why it matters. A digital equaliser is delivered as a list of coefficients $a_{k}$ and $b_{k}$ of a difference equation. The z-transform is how those numbers are chosen, and the frequency response is read off the unit circle 单位圆, $|z| = 1$.

The idea, with a picture. The z-transform z 变换 is $X(z) = \sum_{n} x[n]z^{-n}$. It does for discrete time what the Laplace transform does for continuous time: a delay of one sample multiplies the transform by $z^{-1}$. The basic pair is $a^{n}u[n] \leftrightarrow \dfrac{1}{1 - az^{-1}}$, with ROC $|z| > |a|$. A causal system is stable when all its poles are inside the unit circle. The inverse transform is found by long division or partial fractions.

The z-plane unit circle with the pole at 0.5, the damping ray reading off the pole radius, and the frequency axis wrapped around the circle
The unit circle is the frequency axis; the pole radius is the damping — one picture joins the two domains

The derivation. $\sum_{n=0}^{\infty} a^{n}z^{-n}$ is a geometric series with ratio $az^{-1}$. It converges to $\dfrac{1}{1 - az^{-1}}$ exactly when $|az^{-1}| < 1$, that is, when $|z| > |a|$. So the ROC is the outside of a circle through the pole. Stability needs the ROC to include the unit circle $z = e^{j\omega}$ (the frequency axis), and that requires $|a| < 1$: the unit-circle condition in one line.

Worked example 1 (the same system, by transform). $H(z) = \dfrac{1}{1 - 0.5z^{-1}}$, the system of unit 6.6.

  1. The pole is at $z = 0.5$, inside the unit circle: stable.
  2. A unit step transforms to $\dfrac{z}{z-1}$, so $Y(z) = H(z)\,\dfrac{z}{z-1} = \dfrac{z^{2}}{(z-0.5)(z-1)}$.
  3. Partial fractions give $y[n] = 2(1 - 0.5^{n+1})$.
  4. Check: $y[0] = 2(1 - 0.5) = 1$, the same as the iteration of unit 6.6, and as $n \to \infty$, $y \to 2$, the DC gain. Two methods give one sequence.

Worked example 2 (from the s-plane to the z-plane). Sampling every $T$ seconds maps $s$ to $z = e^{sT}$.

  1. The imaginary axis $s = j\omega$ maps to the unit circle $z = e^{j\omega T}$: frequency becomes angle.
  2. A decay rate $\sigma$ becomes a radius $e^{\sigma T}$. So the left half of the s-plane maps inside the unit circle, which is why the two stability rules agree.
  3. The pole at $z = 0.5$ with $T = 1$ ms corresponds to $\sigma = \dfrac{\ln 0.5}{0.001} = -693$ per second, a time constant of $\dfrac{1}{693} = 1.44$ ms.
  4. Check against unit 6.6: the gap halves every sample, and $0.5 = e^{-0.693}$, so the decay is 0.693 per sample, or $\dfrac{0.693}{T} = 693$ per second. The two transforms describe the same system.

Common mistakes.

  • Giving $H(z)$ without its ROC. The same expression can describe different systems when the ROC changes.
  • Reading the frequency response off the real axis. It is on $|z| = 1$.
  • Mixing up the $z$ and $z^{-1}$ conventions. With $z^{-1}$ as the delay, the causal sequence $a^{n}u[n]$ has ROC $|z| > |a|$; a left-sided sequence has a different ROC.

Summary. $a^{n}u[n] \leftrightarrow \dfrac{1}{1-az^{-1}}$, with the ROC outside the pole. A causal system is stable when its poles are inside the unit circle. $z = e^{sT}$ turns decay into radius and frequency into angle, and the DC gain $\dfrac{1}{1-a}$ matches the iteration of unit 6.6.

探索

The ROC decides which sequence and which stability claim

$H(z)=\frac{1}{1-az^{-1}},\quad\text{stability requires the unit circle in the ROC}$

Start with the causal pole at 0.5 and a probe on the unit circle, where the geometric sum converges to 2. Keep the same rational expression but choose anti-causal support; the ROC moves inside the pole circle and the unit circle is excluded. A pole at 1.2 can instead give a stable anti-causal sequence. Probe the ROC boundary away from the pole to see why a finite algebraic value does not prove series convergence.

词汇 训练
English 中文 拼音
unit circle/ˈjuːnɪt ˈsɜːkl/ 单位圆 dān wèi yuán

该知识点的互动课程

逐步完成,配合即时检查练习。

更多 大学电气工程 知识点

登录或创建账户

IGCSE, A-Level & AP