Skip to main content

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

Short answer

Taking the DTFT gives H(e^jw)=1/(1-0.5e^(-jw)), a lowpass response. The impulse response is h[n]=(0.5)^n u[n], which is causal, stable, and IIR; DC gain is 2.

Find the frequency response and impulse response 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], i.e. y[n]−0.5 y[n−1]=x[n]y[n] - 0.5\,y[n-1] = x[n] (system initially at rest).

Frequency response

Take the DTFT of both sides, using the shift property x[n−1]↔e−jωX(ejω)x[n-1] \leftrightarrow e^{-j\omega}X(e^{j\omega}):

Y(ejω)−0.5 e−jωY(ejω)=X(ejω)H(ejω)=Y(ejω)X(ejω)=11−0.5 e−jω\begin{aligned} Y(e^{j\omega}) - 0.5\,e^{-j\omega}Y(e^{j\omega}) &= X(e^{j\omega}) \\ H(e^{j\omega}) = \frac{Y(e^{j\omega})}{X(e^{j\omega})} &= \frac{1}{1 - 0.5\,e^{-j\omega}} \end{aligned}

Writing e−jω=cos⁡ω−jsin⁡ωe^{-j\omega} = \cos\omega - j\sin\omega, the denominator is (1−0.5cos⁡ω)+j 0.5sin⁡ω(1 - 0.5\cos\omega) + j\,0.5\sin\omega.

Magnitude response:

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

Phase response:

∠H(ejω)=−tan⁡−1(0.5sin⁡ω1−0.5cos⁡ω)\angle H(e^{j\omega}) = -\tan^{-1}\left(\frac{0.5\sin\omega}{1 - 0.5\cos\omega}\right)
ω\omega0π/4\pi/4π/2\pi/23π/43\pi/4π\pi
∣H∣\lvert H\rvert2.0001.3570.8940.7150.667
Phase0°−28.7°−26.6°−14.6°0°

The gain is largest at ω=0\omega = 0 and smallest at ω=π\omega = \pi, so the system is a low pass filter. H(ejω)H(e^{j\omega}) is periodic with period 2π2\pi.

Impulse response

Using the DTFT pair anu[n]↔11−ae−jωa^n u[n] \leftrightarrow \frac{1}{1 - a e^{-j\omega}} for ∣a∣<1|a| < 1, with a=0.5a = 0.5:

h[n]=(0.5)n u[n]h[n] = (0.5)^n\,u[n]

Check by recursion (x[n]=δ[n]x[n] = \delta[n], h[−1]=0h[-1] = 0):

nn01234
h[n]=0.5h[n−1]+δ[n]h[n] = 0.5h[n-1] + \delta[n]10.50.250.1250.0625

This matches (0.5)n(0.5)^n. The system is causal (h[n]=0h[n] = 0 for n<0n < 0), stable (∑∣h[n]∣=11−0.5=2<∞\sum|h[n]| = \frac{1}{1-0.5} = 2 < \infty), and IIR (infinite-length h[n]h[n]). Note ∑h[n]=2=H(ej0)\sum h[n] = 2 = H(e^{j0}), as expected.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Signals and Systems chapter 6 questions →