Digital Signal Processing Basics

Which of the following gives the gain magnitudes at DC and at the Nyquist frequency of the filter y[n] = x[n] − x[n − 1] (the difference from the previous input)?

  1. A0 at DC and 2 at the Nyquist frequency
  2. B2 at DC and 0 at the Nyquist frequency
  3. C1 at DC and 1 at the Nyquist frequency
Show answer and explanation

Answer: A. 0 at DC and 2 at the Nyquist frequency

The transfer function is H(z) = 1 − z⁻¹; DC corresponds to z = 1 and the Nyquist frequency to z = −1. At DC, 1 − 1 = 0, so a constant value is completely removed, and at the Nyquist frequency the gain is 1 − (−1) = 2. This is a high-pass characteristic that blocks low frequencies and passes high ones, with a zero at z = 1. Changing it to y[n] = x[n] + x[n − 1] gives the opposite, a low-pass characteristic with a gain of 2 at DC and 0 at the Nyquist frequency.

  • A. Correct. At z = 1, 1 − 1 = 0, and at z = −1, 1 + 1 = 2.
  • B. This is the characteristic of y[n] = x[n] + x[n − 1] (the sum of neighbors).
  • C. Taking the difference cancels DC to 0, and the gain at the Nyquist frequency is 2.
Practice this topic Back to topic

Books on Digital Signal Processing Basics Ad

As an Amazon Associate I earn from qualifying purchases.

More Digital Signal Processing Basics questions

  1. Which of the following is a characteristic of an FIR (finite impulse response) filter?
  2. Which of the following 5-tap FIR filters has linear phase?
  3. Which of the following is the group delay of a 101-tap linear-phase FIR filter (with symmetric coefficients)?
  4. At a sampling frequency of 8 kHz, a moving-average filter y[n] = (x[n] + x[n − 1] + … + x[n − 7])/8 averages the latest 8 samples. Which of the following is the lowest frequency at which its output is 0?
  5. Which of the following gives the gains at DC and at the Nyquist frequency of the first-order IIR low-pass filter given by the exponential smoothing y[n] = 0.2x[n] + 0.8y[n − 1]?