Week11 Quiz Question 5 Solution
Suppose the transfer function of the filter has the form
$ H_f(z)=(1-z_1z^{-1})(1-z_2z^{-1}) $
Where $ z_1,z_2 $ are zeros of the filter.
In order for the filter's impulse response to be real-valued, the two zeros must be complex conjugates of one another:
Assume $ z_1=re^{j\theta},z_2=re^{-j\theta} $, where $ \theta $ is the angle of $ z_1 $ relative to the positive real axis. Without losing generality, assume $ \theta \in [0,\pi] $. Then
$ \begin{align} H_f(z)&=(1-re^{j\theta}z^{-1})(1-re^{-j\theta}z^{-1}) \\ &=1-2rcos\theta z^{-1}+r^2z^{-2} \end{align} $
Then the frequency response of the filter is
$ H(e^{j\omega})=H_f(z)|_{z=e^{j\omega}}=1-2rcos\theta e^{-j\omega}+r^2e^{-2j\omega} $