MIT 6.300 — Lecture 10

Frequency Response and Filtering

§ Lecture: Frequency Response

Theorem. (Complex Exponential Convolution) Consider an LTI system given by x[n](xh)[n]x[n] \mapsto (x * h)[n]. Suppose the Fourier transform of h[n]h[n] is H(Ω)H(\Omega). Then the system sends ejΩnH(Ω)ejΩne^{j\Omega n} \mapsto H(\Omega) e^{j\Omega n}.

The same goes for CT signals: if the Fourier transform of h(t)h(t) is H(ω)H(\omega), then the system sends ejωtH(ω)ejωte^{j\omega t} \mapsto H(\omega) e^{j\omega t}.

Proof: Just follow what the convolution does (reindexing mnmm \to n - m along the way).

ejΩn      m=ejΩ(nm)h[m]=ejΩn[m=h[m]ejΩm]=ejΩn[H(Ω)].e^{j\Omega n} ~~~\mapsto ~~~ \sum_{m = -\infty}^{\infty} e^{j\Omega (n - m)} h[m] = e^{j\Omega n} \left[ \sum_{m = -\infty}^{\infty} h[m] e^{-j\Omega m} \right] = e^{j\Omega n} \left[ H(\Omega) \right].

That last step is just the definition of the Fourier transform. The argument looks identical for CT signals.   \blacksquare

Definition. The Fourier transform H(Ω)H(\Omega) / H(ω)H(\omega) of the unit-sample / impulse response is called the frequency response.

Remark. Complex exponentials are eigenfunctions of LTI systems, and the frequency response H(Ω)H(\Omega) is the eigenvalue.

Problem. Determine the response of an LTI system to the input x[n]=cos(Ωn)x[n] = \cos(\Omega n), based on the unit-sample response h[n]h[n] and its Fourier transform H(Ω)H(\Omega). Assume all signals are real-valued.

Solution: The point is that x[n]=12(ejΩn+ejΩn)x[n] = \frac{1}{2}\left(e^{j \Omega n} + e^{-j \Omega n}\right) and that LTI systems are linear. The preceding theorem thus gives:

cos(Ωn)      12(H(Ω)ejΩn+H(Ω)ejΩn).\cos(\Omega n) ~~~ \mapsto ~~~ \frac{1}{2}\left(H(\Omega) e^{j \Omega n} + H(-\Omega) e^{-j \Omega n}\right).

Since h[n]h[n] is real, we furthermore know H(Ω)=H(Ω)H(-\Omega) = \overline{H(\Omega)} (Hermitian symmetry). So the two terms above are conjugates of each other, allowing us to simplify further:

12(H(Ω)ejΩn+H(Ω)ejΩn)=Re[H(Ω)ejΩn]=H(Ω)cos(Ωn+H(Ω)).\frac{1}{2}\left(H(\Omega) e^{j \Omega n} + \overline{H(\Omega)} e^{-j \Omega n}\right) = \mathrm{Re}\left[H(\Omega) e^{j \Omega n}\right] = |H(\Omega)| \cos\left(\Omega n + \angle H(\Omega)\right).

In the above, H(Ω)\angle H(\Omega) denotes the phase of H(Ω)H(\Omega).

§ Lecture: LTIs by Frequency Response

Last lecture, we saw that every LTI system could be defined by a single unit-sample / impulse response. This lecture, we see that another natural way to define LTI systems is by their frequency response.

Theorem. (LTI = Frequency Multiplication) Consider an LTI system x[n](xh)[n]x[n] \mapsto (x * h)[n]. Then if x[n]x[n] has response y[n]y[n], we have Y(Ω)=H(Ω)X(Ω)Y(\Omega) = H(\Omega) \cdot X(\Omega). In other words, the Fourier transform of a convolution is the product of Fourier transforms.

Proof: There's actually nothing new here. Just combine the following two observations:

Then the linearity of LTI systems finishes the proof.

Warning: The eigenvalue H(Ω)H(\Omega) is not a constant; different eigenfunctions have different eigenvalues!

If x[n]x[n] is a single eigenfunction—say, x[n]:=e2jnx[n] := e^{2j n}— then passing x[n]x[n] through an LTI system is the same as scaling x[n]x[n] by H(Ω)H(\Omega)—in this case, y[n]=H(2)e2jny[n] = H(2) \cdot e^{2jn}.

But in any other case, passing x[n]x[n] through an LTI system is not as easy as just scaling x[n]x[n] by H(Ω)H(\Omega). Each eigenfunction that makes up x[n]x[n] gets scaled by its own scalar H(Ω)H(\Omega), so the net effect on x[n]x[n] is not that simple.

Written out explicitly, the proof would look like this:

Y(Ω)=n=y[n]ejΩn=n=(m=x[m]h[nm])ejΩn    because y=xh=m=x[m](n=h[nm]ejΩn)    by swapping the order of summation=m=x[m](n=h[n]ejΩ(n+m))    by reparametrizing n=nm=(m=x[m]ejΩm)(n=h[n]ejΩn)=X(Ω)H(Ω).\begin{align*}Y(\Omega) & = \sum_{n = -\infty}^{\infty} y[n] \cdot e^{-j\Omega n} \\ & = \sum_{n = -\infty}^{\infty} \left( \sum_{m = -\infty}^{\infty} x[m] \cdot h[n - m] \right) \cdot e^{-j\Omega n} ~~~ \text{ because } y = x * h \\ & = \sum_{m = -\infty}^{\infty} x[m] \cdot \left( \sum_{n = -\infty}^{\infty} h[n - m] \cdot e^{-j \Omega n} \right) ~~~ \text{ by swapping the order of summation} \\ & = \sum_{m = -\infty}^{\infty} x[m] \cdot \left( \sum_{n' = -\infty}^{\infty} h[n'] e^{-j\Omega(n' + m)} \right) ~~~ \text{ by reparametrizing } n' = n - m \\ & = \left(\sum_{m = -\infty}^{\infty} x[m] e^{-j \Omega m}\right) \cdot \left(\sum_{n' = -\infty}^{\infty} h[n'] e^{-j\Omega n'}\right) = X(\Omega) H(\Omega).\end{align*}

But really, this is just a more-syntactically-involved version of the proof of the “Complex Exponential Convolution” theorem.   \blacksquare

Problem. An LTI system x[n]y[n]x[n] \mapsto y[n] satisfies y[n]αy[n1]=x[n]y[n] - \alpha y[n - 1] = x[n], where α<1|\alpha| < 1. It is also initially at rest: if x[n]=0x[n] = 0 for all n<0n < 0, then y[n]=0y[n] = 0 for all n<0n < 0. Find the frequency response.

Solution: We present three different approaches. The first is to solve for the unit-sample response and take its Fourier transform.

Solution 1. Taking the input x[n]x[n] to be the unit-sample signal δ[n]\delta[n], we find its response to be:

h[n]={αn for all n0.0 for all n<0.    H(Ω)=n=h[n]ejΩn=11αejΩ.h[n] = \begin{cases} \alpha^n & \text{ for all } n \geq 0. \\ 0 & \text{ for all } n < 0. \end{cases} \implies H(\Omega) = \sum_{n = -\infty}^{\infty} h[n] e^{-j \Omega n} = \frac{1}{1 - \alpha e^{-j \Omega}}.

Another approach is to find the response of ejΩne^{j \Omega n} directly.

Solution 2. Taking the input x[n]x[n] to be ejΩne^{j \Omega n}, we expect the output y[n]y[n] to be H(Ω)ejΩnH(\Omega) e^{j \Omega n}. Therefore,

H(Ω)ejΩnαH(Ω)ejΩ(n1)=ejΩn          H(Ω)αH(Ω)ejΩ=1          H(Ω)=11αejΩ.H(\Omega) e^{j \Omega n} - \alpha H(\Omega) e^{j \Omega (n - 1)} = e^{j \Omega n} ~~~ \implies ~~~ H(\Omega) - \alpha H(\Omega) e^{-j \Omega} = 1 ~~~ \implies ~~~ H(\Omega) = \frac{1}{1 - \alpha e^{-j \Omega}}.

The third solution is to take the Fourier transform of the given relationship.

Solution 3. Given y[n]αy[n1]=x[n]y[n] - \alpha y[n - 1] = x[n], the Fourier transform of the LHS must equal that of the RHS, so:

Y(Ω)αejΩY(Ω)=X(Ω)          Y(Ω)=(11αejΩ)X(Ω)          H(Ω)=11αejΩ.Y(\Omega) - \alpha e^{-j \Omega} Y(\Omega) = X(\Omega) ~~~ \implies ~~~ Y(\Omega) = \left(\frac{1}{1 - \alpha e^{-j \Omega}}\right) X(\Omega) ~~~ \implies ~~~ H(\Omega) = \frac{1}{1 - \alpha e^{-j \Omega}}.

As expected, all three solutions give the same answer.

§ Recitation: Filter Types

Pictured below are the frequency responses of four filter types: low-pass, high-pass, band-pass, and band-stop.

Convolving a signal with such an (ideal) filter will leave some of its frequencies unchanged and completely zero out other frequencies. (Realistic filters, like the ones later this lecture, only attenuate the frequencies they reject.)

Problem. Consider an ideal low-pass DT-signal filter that only accepts frequencies below Ωc\Omega_c. Determine h[n]h[n] for this filter.

Solution: The frequency response H(Ω)H(\Omega) looks like this:

H(Ω)={1 if Ω(Ωc,Ωc)0 otherwise. H(\Omega) = \begin{cases} 1 & \text{ if } \Omega \in (-\Omega_c, \Omega_c) \\ 0 & \text{ otherwise. } \end{cases}

Since H(Ω)H(\Omega) is the Fourier transform of h[n]h[n], we have:

h[n]=12πππH(Ω)ejΩndΩ=12πΩcΩcejΩndΩ=sin(Ωcn)πn.h[n] = \frac{1}{2\pi} \int_{-\pi}^\pi H(\Omega) e^{j \Omega n} \, \mathrm{d}\Omega = \frac{1}{2\pi} \int_{-\Omega_c}^{\Omega_c} e^{j \Omega n} \, \mathrm{d}\Omega = \frac{\sin(\Omega_c n)}{\pi n}.

(At n=0n = 0, interpret this formula by its limit: h[0]=Ωcπh[0] = \frac{\Omega_c}{\pi}.)

§ Lecture: Identifying Filters

More generally, we can study the highs and lows of an LTI system's frequency response to determine what kind of filter it is.

Problem. Determine the frequency response of y[n]=13(x[n1]+x[n]+x[n+1])y[n] = \frac{1}{3}(x[n - 1] + x[n] + x[n + 1]). Is this a low-pass filter?

Solution: Using any approach you'd like (try all three in your head!), we discover that:

H(Ω)=13ejΩ+13+13ejΩ=13(1+2cos(Ω)).H(\Omega) = \frac{1}{3} e^{j \Omega} + \frac{1}{3} + \frac{1}{3} e^{-j \Omega} = \frac{1}{3}\left(1 + 2\cos(\Omega)\right).

The graph of H(Ω)H(\Omega) is shown below.

A reminder on DT signals and their Fourier transforms:

Therefore, it suffices only to investigate the behavior of H(Ω)H(\Omega) over the “baseband” interval Ω[0,π]\Omega \in [0, \pi]. Low frequencies are those close to 00, and high frequencies are those close to π\pi.

This is not a low-pass filter; it does not filter out high frequencies.

Problem. Determine the frequency response of y[n]=14(x[n1]+2x[n]+x[n+1])y[n] = \frac{1}{4}(x[n - 1] + 2x[n] + x[n + 1]). Is it a low-pass filter?

Solution: Again, using any approach you'd like, we discover that:

H(Ω)=14ejΩ+12+14ejΩ=12(1+cos(Ω)).H(\Omega) = \frac{1}{4}e^{j \Omega} + \frac{1}{2} + \frac{1}{4}e^{-j \Omega} = \frac{1}{2}\left(1 + \cos(\Omega)\right).

The graph of H(Ω)H(\Omega) is shown below.

This is a low-pass filter, since H(Ω)H(\Omega) is close to zero for large frequencies Ω\Omega close to π\pi.

Remark. Given the frequency response H(Ω)=11αejΩH(\Omega) = \frac{1}{1 - \alpha e^{-j \Omega}}, argue that the following are true, assuming α(0,1)\alpha \in (0, 1).

(This requires studying not just the magnitude of the frequency response, but its phase as well.)

§ Lecture: Frequency Response for CT Signals

By identical arguments, everything stated above applies just as well to CT signals.

Theorem. (LTI = Frequency Multiplication) Consider an LTI system with frequency response H(ω)H(\omega). If the CT signal x(t)x(t) has response y(t)y(t), then Y(ω)=H(ω)X(ω)Y(\omega) = H(\omega) \cdot X(\omega).

Problem. An LTI system x(t)y(t)x(t) \mapsto y(t) satisfies y(t)+αddty(t)=2x(t)y(t) + \alpha \frac{d}{dt} y(t) = 2x(t). Find the frequency response.

Solution: We present two different approaches. The first is to find the response of ejωte^{j \omega t} directly.

Solution 1. Taking the input x(t)x(t) to be ejωte^{j \omega t}, we expect the output y(t)y(t) to be H(ω)ejωtH(\omega) e^{j \omega t}. Therefore,

H(ω)ejωt+jωαH(ω)ejωt=2ejωt          H(ω)+jωαH(ω)=2          H(ω)=21+jωα.H(\omega) e^{j \omega t} + j \omega \alpha H(\omega) e^{j \omega t} = 2 e^{j \omega t} ~~~ \implies ~~~ H(\omega) + j \omega \alpha H(\omega) = 2 ~~~ \implies ~~~ H(\omega) = \frac{2}{1 + j \omega \alpha}.

The second approach is to take the Fourier transform of the given relationship.

Solution 2. Given y(t)+αddty(t)=2x(t)y(t) + \alpha \frac{d}{dt} y(t) = 2x(t), the Fourier transform of the LHS must equal that of the RHS, so:

Y(ω)+jωαY(ω)=2X(ω)          Y(ω)=(21+jωα)X(ω)          H(ω)=21+jωα.Y(\omega) + j \omega \alpha Y(\omega) = 2 X(\omega) ~~~ \implies ~~~ Y(\omega) = \left(\frac{2}{1 + j \omega \alpha}\right) X(\omega) ~~~ \implies ~~~ H(\omega) = \frac{2}{1 + j \omega \alpha}.

Taking x(t)x(t) to be δ(t)\delta(t) is not one of these solutions; it's too clunky.

Remark. Given the frequency response H(ω)=21+jωαH(\omega) = \frac{2}{1 + j \omega \alpha}, argue that the following are true, assuming α(0,1)\alpha \in (0, 1).

§ Recitation: Cascaded Systems

Consider the cascaded system below. It is the composition of three systems: one of which is a low-pass filter, and two of which are the maps x[n](1)nx[n]x[n] \mapsto (-1)^n \cdot x[n].

Interestingly, we may note the following: