Skip to main content

H(e^(jω)), magnitude plot and h[n] for y[n] = 0.5y[n−1] + x[n]

Short answer

H(eʲω) = 1/(1−0.5e⁻ʲω), magnitude |H| = 1/√(1.25−cos ω), with max 2 at ω=0 and min 2/3 at ω=π (lowpass). Impulse response: h[n] = (0.5)ⁿ u[n].

Find the frequency response H(e^(jω)), plot the magnitude and impulse response h[n] for a system characterized by linear constant coefficient difference equation y[n] = 0.5y[n−1] + x[n]

Given: y[n]=0.5 y[n−1]+x[n]y[n] = 0.5\,y[n-1] + x[n], initially at rest.

Frequency response

DTFT of both sides:

Y(ejω)(1−0.5e−jω)=X(ejω)H(ejω)=11−0.5e−jω=1(1−0.5cos⁡ω)+j0.5sin⁡ω\begin{aligned} Y(e^{j\omega})\left(1 - 0.5e^{-j\omega}\right) &= X(e^{j\omega}) \\ H(e^{j\omega}) &= \frac{1}{1 - 0.5e^{-j\omega}} = \frac{1}{(1 - 0.5\cos\omega) + j0.5\sin\omega} \end{aligned}

Magnitude:

∣H(ejω)∣=1(1−0.5cos⁡ω)2+0.25sin⁡2ω=11.25−cos⁡ω|H(e^{j\omega})| = \frac{1}{\sqrt{(1 - 0.5\cos\omega)^2 + 0.25\sin^2\omega}} = \frac{1}{\sqrt{1.25 - \cos\omega}}

Phase:

θ(ω)=−tan⁡−10.5sin⁡ω1−0.5cos⁡ω\theta(\omega) = -\tan^{-1}\frac{0.5\sin\omega}{1 - 0.5\cos\omega}

Magnitude plot

ω\omega0±π/4\pm\pi/4±π/2\pm\pi/2±3π/4\pm3\pi/4±π\pm\pi
∣H∣\lvert H\rvert2.0001.3570.8940.7150.667
θ\theta (for +ω+\omega)0°−28.7°−26.6°−14.6°0°
 |H|
 2.0 |          *
     |        .' '.
 1.36|      *       *
     |    .'         '.
 0.89|  *               *
 0.67|*                   *
     +--+---+---+---+---+--> w
     -pi   -pi/2  0  pi/2  pi

The magnitude is even in ω\omega, has its maximum 2 at ω=0\omega = 0 and its minimum 2/32/3 at ω=±π\omega = \pm\pi, and repeats every 2π2\pi. So the system is a low pass filter. The phase is odd in ω\omega (maximum lag 30° at ω=±π/3\omega = \pm\pi/3).

Impulse response

Using anu[n]↔11−ae−jωa^n u[n] \leftrightarrow \frac{1}{1 - ae^{-j\omega}} with a=0.5a = 0.5:

h[n]=(0.5)n u[n]h[n] = (0.5)^n\,u[n]
nn<0012345
h[n]h[n]010.50.250.1250.06250.03125
 h[n]
 1.0 |   o
     |   |
 0.5 |   |  o
0.25 |   |  |  o
     |   |  |  |  o  o  .
   0 +-o-+--+--+--+--+--+--> n
      -1  0  1  2  3  4  5

The system is causal, stable (∑h[n]=2\sum h[n] = 2) and IIR.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Signals and Systems chapter 6 questions →