Skip to main content

Transfer function of y[n] = 0.4y[n−1] + x[n]

Short answer

Transfer function: H(e^jω) = 1/(1 − 0.4e^{−jω}), a low-pass filter. Impulse response: h[n] = (0.4)^n u[n], causal and stable.

For a system characterized by linear constant coefficient difference equation y[n] = 0.4y[n−1] + x[n], find and plot the transfer function and impulse response of the system.

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

Transfer function (frequency response)

Take the DTFT of both sides (y[n−1]↔e−jωY(ejω)y[n-1] \leftrightarrow e^{-j\omega}Y(e^{j\omega})):

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

(In the z-domain, H(z)=11−0.4z−1=zz−0.4H(z) = \frac{1}{1 - 0.4z^{-1}} = \frac{z}{z - 0.4}, a pole at z=0.4z = 0.4 inside the unit circle.)

With e−jω=cos⁡ω−jsin⁡ωe^{-j\omega} = \cos\omega - j\sin\omega:

∣H(ejω)∣=1(1−0.4cos⁡ω)2+(0.4sin⁡ω)2=11.16−0.8cos⁡ω|H(e^{j\omega})| = \frac{1}{\sqrt{(1 - 0.4\cos\omega)^2 + (0.4\sin\omega)^2}} = \frac{1}{\sqrt{1.16 - 0.8\cos\omega}} θ(ω)=−tan⁡−10.4sin⁡ω1−0.4cos⁡ω\theta(\omega) = -\tan^{-1}\frac{0.4\sin\omega}{1 - 0.4\cos\omega}
ω\omega0π/4\pi/4π/2\pi/23π/43\pi/4π\pi
∣H∣\lvert H\rvert1.6671.2970.9280.7610.714
θ\theta0°−21.5°−21.8°−12.4°0°
 |H|
1.67|          *
    |        .' '.
1.30|      *       *
0.93|    *           *
0.71|  *               *
    +--+-------+-------+--> w
     -pi       0       pi

The magnitude is even and periodic (2π2\pi), maximum 1/0.6=1.6671/0.6 = 1.667 at ω=0\omega = 0 and minimum 1/1.4=0.7141/1.4 = 0.714 at ω=π\omega = \pi: a low pass system.

Impulse response

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

h[n]=(0.4)n u[n]h[n] = (0.4)^n\,u[n]
nn<001234
h[n]h[n]010.40.160.0640.0256

(Recursion check: h[0]=1h[0] = 1, h[1]=0.4h[0]=0.4h[1] = 0.4h[0] = 0.4, h[2]=0.16h[2] = 0.16.)

 h[n]
 1.0 |  o
     |  |
 0.4 |  |  o
0.16 |  |  |  o
     |  |  |  |  o  .
   0 +--+--+--+--+--+--> n
        0  1  2  3  4

The system is causal, stable (∑h[n]=1/0.6=1.667\sum h[n] = 1/0.6 = 1.667) and IIR.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Signals and Systems chapter 6 questions →