Skip to main content

Frequency response of y[n] = 0.5x[n] − 0.5x[n−1]

Short answer

H(eʲω) = 0.5 − 0.5e⁻ʲω = j sin(ω/2) e⁻ʲω/². Magnitude is |sin(ω/2)|, phase is π/2 − ω/2 (linear). It is a highpass FIR filter that blocks DC.

Find out the frequency response of the following signal y[n] = 0.5x[n] − 0.5x[n−1]; h[n] = 1/2 for n = 0 and −1/2 for n = 1

Given: y[n]=0.5 x[n]−0.5 x[n−1]y[n] = 0.5\,x[n] - 0.5\,x[n-1], so h[n]=0.5 δ[n]−0.5 δ[n−1]={0.5↑,−0.5}h[n] = 0.5\,\delta[n] - 0.5\,\delta[n-1] = \{\underset{\uparrow}{0.5}, -0.5\} (a two-tap FIR system: a scaled first difference).

Frequency response

H(ejω)=∑nh[n]e−jωn=0.5−0.5e−jωH(e^{j\omega}) = \sum_n h[n]e^{-j\omega n} = 0.5 - 0.5e^{-j\omega}

Factor out e−jω/2e^{-j\omega/2}:

H(ejω)=0.5 e−jω/2(ejω/2−e−jω/2)=0.5 e−jω/2 (2jsin⁡ω2)=jsin⁡(ω2)e−jω/2=sin⁡(ω2)ej(π2−ω2)\begin{aligned} H(e^{j\omega}) &= 0.5\,e^{-j\omega/2}\left(e^{j\omega/2} - e^{-j\omega/2}\right) \\ &= 0.5\,e^{-j\omega/2}\,(2j\sin\tfrac{\omega}{2}) \\ &= j\sin\left(\tfrac{\omega}{2}\right)e^{-j\omega/2} = \sin\left(\tfrac{\omega}{2}\right)e^{j\left(\frac{\pi}{2} - \frac{\omega}{2}\right)} \end{aligned}

Magnitude: ∣H(ejω)∣=∣sin⁡ω2∣|H(e^{j\omega})| = \left|\sin\frac{\omega}{2}\right|

Phase: θ(ω)=π2−ω2\theta(\omega) = \frac{\pi}{2} - \frac{\omega}{2} for 0<ω<π0 < \omega < \pi (and −π2−ω2-\frac{\pi}{2} - \frac{\omega}{2} for −π<ω<0-\pi < \omega < 0): linear phase, apart from a jump of π\pi at ω=0\omega = 0, where sin⁡(ω/2)\sin(\omega/2) changes sign.

ω\omega0π/4\pi/4π/2\pi/23π/43\pi/4π\pi
∣H∣\lvert H\rvert00.3830.7070.9241
θ\theta–67.5°45°22.5°0°
 |H|
  1 |*                   *
    | '.               .'
0.7 |   *             *
    |     '.       .'
  0 +--------'-*-'--------> w
   -pi         0         pi

Interpretation: DC (ω=0\omega = 0) is blocked completely and the highest frequency (ω=π\omega = \pi) passes with gain 1, so this is a simple high pass filter (a difference/differentiator-like system). Being FIR, it is always stable.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Signals and Systems chapter 6 questions →