Difference equations: poles, zeros, frequency and impulse response

Digital Signal Processing · · dsp, z-transform, digital-filters

Contents

This typeset version was assembled by AI from my handwritten solutions. The handwritten PDF is the original source.

Problem 1101

Problem 1101 · CTU BE2M31DSPA exam

Discrete-time system is described by the following difference equation

y[n]=x[n]+x[n−1]+x[n−2]+x[n−3]y[n] = x[n] + x[n-1] + x[n-2] + x[n-3]

a) Determine zeros and poles of given system and draw their diagram (3 points).
b) Draw magnitude frequency response in dBs and describe correctly the frequency axis (3 points).
c) Determine, if the system serves as low-pass, high-pass, band-pass, or band-stop filter (1 point).
d) Determine, if it is FIR or IIR system (1 point).
e) Determine, if the system is stable a explain why (2 points).

MA filter: y[n]=1M+1(x[n]+x[n−1]+⋯+x[n−M])y[n] = \dfrac{1}{M+1}\big(x[n] + x[n-1] + \dots + x[n-M]\big)

  • M+1M+1 zeros uniformly distributed at unit circle.
  • MM poles equal to 00, one pole equal to 11.

(Note: pole and zero in 11, eliminate each other.)

a)

Y(z)=X(z)+X(z)z−1+X(z)z−2+X(z)z−3Y(z)=X(z)(1+z−1+z−2+z−3)H(z)=Y(z)X(z)=1+z−1+z−2+z−3H(z)=(1+z−1+z−2+z−3)⋅z3z3=z3+z2+z+1z3 \begin{aligned} Y(z) &= X(z) + X(z)z^{-1} + X(z)z^{-2} + X(z)z^{-3} \\ Y(z) &= X(z)\left(1 + z^{-1} + z^{-2} + z^{-3}\right) \\ H(z) &= \frac{Y(z)}{X(z)} = 1 + z^{-1} + z^{-2} + z^{-3} \\ H(z) &= \left(1 + z^{-1} + z^{-2} + z^{-3}\right)\cdot\frac{z^3}{z^3} = \frac{z^3 + z^2 + z + 1}{z^3} \end{aligned}

3rd order MA (moving average) filter.

Poles: z3=0z^3 = 0, z⋅z⋅z=0⇒p0=0, p1=0, p2=0z\cdot z\cdot z = 0 \Rightarrow p_0 = 0,\ p_1 = 0,\ p_2 = 0. Poles are [0,0,0][0, 0, 0].

Zeros:

z3+z2+z+1=0⇒(z3+z2)+(z+1)=0⇒z2(z+1)+1⋅(z+1)=0⇒(z+1)(z2+1)=0z+1=0  or  z2+1=0z=−1z2=−1,z=±−1=±j \begin{gathered} z^3 + z^2 + z + 1 = 0 \Rightarrow (z^3 + z^2) + (z + 1) = 0 \\ \Rightarrow z^2(z+1) + 1\cdot(z+1) = 0 \\ \Rightarrow (z+1)(z^2+1) = 0 \\ z + 1 = 0 \ \text{ or } \ z^2 + 1 = 0 \\ z = -1 \qquad z^2 = -1,\quad z = \pm\sqrt{-1} = \pm j \end{gathered}

⇒\Rightarrow zeros are [−1,+j,−j][-1, +j, -j], or [−1,0+j,0−j][-1, 0+j, 0-j], or in exponential form [−1,ejπ2,e−jπ2][-1, e^{j\frac{\pi}{2}}, e^{-j\frac{\pi}{2}}].

Note: +3π2+\frac{3\pi}{2} on the unit circle is the same as −π2-\frac{\pi}{2}. Hence e−jπ2=ej3π2e^{-j\frac{\pi}{2}} = e^{j\frac{3\pi}{2}}.

Pole-zero diagram and magnitude response of 1101

a) z-plane plot: follow this arrow on the unit circle. b) Magnitude response. Source: 1101.tex

c) Moving Average (MA) filter. Can be thought of as low-pass. ✓ But also stops certain frequencies from passing thru.

d) FIR. No feedback.

e) FIR is always stable. Poles inside the unit circle.

Problem 1102

Problem 1102 · CTU BE2M31DSPA exam

Discrete-time system is described by the following difference equation

y[n]=x[n]−0.9⋅y[n−1]y[n] = x[n] - 0.9\cdot y[n-1]

a) Determine zeros and poles of given system and draw their diagram (3 points).
b) Draw magnitude frequency response in dBs and describe correctly the frequency axis (3 points).
c) Determine, if the system serves as low-pass, high-pass, band-pass, or band-stop filter (1 point).
d) Determine, if it is FIR or IIR system (1 point).
e) Determine, if the system is stable a explain why (2 points).

a) Two methods for obtaining the transfer function.

Method 1) y[n]+0.9 y[n−1]=x[n]⇒b=[1,0]y[n] + 0.9\,y[n-1] = x[n] \Rightarrow b = [1, 0] (xx coefficients), a=[1,0.9]a = [1, 0.9] (yy coefficients)

H(z)=11+0.9z−1=zz+0.9H(z) = \frac{1}{1 + 0.9z^{-1}} = \frac{z}{z + 0.9}

Method 2)

Y(z)=X(z)−0.9 Y(z)z−1Y(z)+0.9 Y(z)z−1=X(z)Y(z)(1+0.9z−1)=X(z)H(z)=Y(z)X(z)=11+0.9z−1=zz+0.9=H(z) \begin{aligned} Y(z) &= X(z) - 0.9\,Y(z)z^{-1} \\ Y(z) + 0.9\,Y(z)z^{-1} &= X(z) \\ Y(z)\left(1 + 0.9z^{-1}\right) &= X(z) \\ H(z) = \frac{Y(z)}{X(z)} &= \frac{1}{1 + 0.9z^{-1}} = \boxed{\frac{z}{z + 0.9} = H(z)} \end{aligned}

Same “H(z)H(z)” from both methods.

zeros: [0][0], poles: [−0.9][-0.9]

Pole-zero diagram and magnitude response of 1102

a) Pole-zero diagram. b) Magnitude response. Source: 1102.tex

c) Looks like band-pass high-pass. ✓

d) IIR: there is feedback.

e) Stable ⇒\Rightarrow poles inside unit circle.

Problem 1103

Problem 1103 · CTU BE2M31DSPA exam

Discrete-time system is described by the following difference equation

y[n]=x[n]−0.95⋅x[n−1]y[n] = x[n] - 0.95\cdot x[n-1]

a) Determine zeros and poles of given system and draw their diagram (3 points).
b) Draw magnitude frequency response in dBs and describe correctly the frequency axis (3 points).
c) Determine, if the system serves as low-pass, high-pass, band-pass, or band-stop filter (1 point).
d) Determine, if it is FIR or IIR system (1 point).
e) Determine, if the system is stable a explain why (2 points).

a) Method 1) b=[1,−0.95]b = [1, -0.95], a=[1]a = [1]

H(z)=1−0.95z−11=z−0.95zH(z) = \frac{1 - 0.95z^{-1}}{1} = \frac{z - 0.95}{z}

Method 2)

Y(z)=X(z)−0.95 X(z)z−1H(z)=Y(z)X(z)=1−0.95z−1=z−0.95z=H(z) \begin{aligned} Y(z) &= X(z) - 0.95\,X(z)z^{-1} \\ H(z) &= \frac{Y(z)}{X(z)} = 1 - 0.95z^{-1} = \boxed{\frac{z - 0.95}{z} = H(z)} \end{aligned}

zeros: 0.950.95, poles: 00

Pole-zero diagram and magnitude response of 1103

a) Pole-zero diagram. b) Magnitude response. Source: 1103.tex

c) High-pass. ✓

d) FIR

e) Stable: poles inside the unit circle.

Problem 1104

Problem 1104 · CTU BE2M31DSPA exam

Discrete-time system is described by the following difference equation

y[n]=x[n]−x[n−6]y[n] = x[n] - x[n-6]

a) Determine zeros and poles of given system and draw their diagram (3 points).
b) Draw magnitude frequency response in dBs and describe correctly the frequency axis (3 points).
c) As what kind of a filter does the system serve (1 point)?
d) Determine, if it is FIR or IIR system (1 point).
e) Determine, if the system is stable a explain why (2 points).

Comb filter, of order 6.

a)

Y(z)=X(z)−X(z)z−6Y(z)=X(z)(1−z−6)H(z)=Y(z)X(z)=1−z−6=z6−1z6 \begin{aligned} Y(z) &= X(z) - X(z)z^{-6} \\ Y(z) &= X(z)\left(1 - z^{-6}\right) \\ H(z) &= \frac{Y(z)}{X(z)} = 1 - z^{-6} = \frac{z^6 - 1}{z^6} \end{aligned}

poles: [0,0,0,0,0,0][0, 0, 0, 0, 0, 0]

zeros: [ejπ3,ej2π3,ejπ,ej4π3,ej5π3,ej2π][e^{j\frac{\pi}{3}}, e^{j\frac{2\pi}{3}}, e^{j\pi}, e^{j\frac{4\pi}{3}}, e^{j\frac{5\pi}{3}}, e^{j2\pi}]

All poles in the center. Zeros are equally distributed on the unit circle. Spacing of zeros is 2π6=π3\dfrac{2\pi}{6} = \dfrac{\pi}{3} (6 is the order of the comb filter).

Zeros: ejπ3(1×), ej2π3(2×), ej3π3(3×), ej4π3(4×), ej5π3(5×), ej6π3(6×),6π3=2π \text{Zeros: } \underset{(1\times)}{e^{j\frac{\pi}{3}}},\ \underset{(2\times)}{e^{j\frac{2\pi}{3}}},\ \underset{(3\times)}{e^{j\frac{3\pi}{3}}},\ \underset{(4\times)}{e^{j\frac{4\pi}{3}}},\ \underset{(5\times)}{e^{j\frac{5\pi}{3}}},\ \underset{(6\times)}{e^{j\frac{6\pi}{3}}},\quad \frac{6\pi}{3} = 2\pi

abs value =1= 1, angles: π3,2π3,…,2π\frac{\pi}{3}, \frac{2\pi}{3}, \dots, 2\pi. The one at 2π2\pi is the same as the one at “0”. So, it wraps around.

Pole-zero diagram and magnitude response of 1104

a) Follow the arrow to plot magnitude response. b) Magnitude response: at 2π, it repeats. Source: 1104.tex

c) Comb filter. Most like notch filter with multiple notches.

d) FIR

e) FIR always stable. Poles inside unit circle.

Problem 1105

Problem 1105 · CTU BE2M31DSPA exam

Discrete-time system is described by the following difference equation

y[n]=x[n]−0.81⋅y[n−2]y[n] = x[n] - 0.81\cdot y[n-2]

a) Determine zeros and poles of given system and draw their diagram (3 points).
b) Draw magnitude frequency response in dBs and describe correctly the frequency axis (3 points).
c) Determine, if the system serves as low-pass, high-pass, band-pass, or band-stop filter (1 point).
d) Determine, if it is FIR or IIR system (1 point).
e) Determine, if the system is stable a explain why (2 points).

a)

Y(z)=X(z)−0.81 Y(z)z−2Y(z)(1+0.81z−2)=X(z)H(z)=Y(z)X(z)=11+0.81z−2=z2z2+0.81b=[1,0,0]a=[1,0,0.81] \begin{aligned} Y(z) &= X(z) - 0.81\,Y(z)z^{-2} \\ Y(z)\left(1 + 0.81z^{-2}\right) &= X(z) \\ H(z) = \frac{Y(z)}{X(z)} &= \frac{1}{1 + 0.81z^{-2}} = \frac{z^2}{z^2 + 0.81} \end{aligned} \qquad \begin{aligned} b &= [1, 0, 0] \\ a &= [1, 0, 0.81] \end{aligned}

poles: z2+0.81=0⇒z2=−0.81⇒z=±j0.9z^2 + 0.81 = 0 \Rightarrow z^2 = -0.81 \Rightarrow z = \pm j0.9

zeros: [0,0][0, 0], poles: [+j0.9,−j0.9][+j0.9, -j0.9]

Pole-zero diagram and magnitude response of 1105

a) Pole-zero diagram. b) Magnitude response. Source: 1105.tex

c) Band-pass!!

d) IIR: feedback.

e) Stable: poles inside unit circle!

Problem 1106

Problem 1106 · CTU BE2M31DSPA exam

Discrete-time system is described by the following difference equation

y[n]=x[n]+0.81⋅y[n−2]y[n] = x[n] + 0.81\cdot y[n-2]

a) Determine zeros and poles of given system and draw their diagram (3 points).
b) Draw magnitude frequency response in dBs and describe correctly the frequency axis (3 points).
c) Determine, if the system serves as low-pass, high-pass, band-pass, or band-stop filter (1 point).
d) Determine, if it is FIR or IIR system (1 point).
e) Determine, if the system is stable a explain why (2 points).

a)

Y(z)=X(z)+0.81 Y(z)z−2H(z)=Y(z)X(z)=11−0.81z−2=z2z2−0.81 \begin{aligned} Y(z) &= X(z) + 0.81\,Y(z)z^{-2} \\ H(z) = \frac{Y(z)}{X(z)} &= \frac{1}{1 - 0.81z^{-2}} = \frac{z^2}{z^2 - 0.81} \end{aligned}

zeros: [0,0][0, 0], poles: [+0.9,−0.9][+0.9, -0.9]

Pole-zero diagram and magnitude response of 1106

a) Pole-zero diagram. b) Magnitude response. Source: 1106.tex

c) Band-stop.

d) IIR filter

e) Stable: poles inside the unit circle.

Problem 1107

Problem 1107 · CTU BE2M31DSPA exam

Discrete-time system is described by the following difference equation

y[n]=x[n]+4⋅x[n−2]y[n] = x[n] + 4\cdot x[n-2]

a) Determine zeros and poles of given system and draw their diagram (3 points).
b) Draw magnitude frequency response in dBs and describe correctly the frequency axis (3 points).
c) Determine, if the system serves as low-pass, high-pass, band-pass, or band-stop filter (1 point).
d) Determine, if it is FIR or IIR system (1 point).
e) Determine, if the system is stable a explain why (2 points).

a)

Y(z)=X(z)+4X(z)z−2H(z)=Y(z)X(z)=1+4z−2=z2+4z2=H(z) \begin{aligned} Y(z) &= X(z) + 4X(z)z^{-2} \\ H(z) = \frac{Y(z)}{X(z)} &= 1 + 4z^{-2} = \boxed{\frac{z^2 + 4}{z^2} = H(z)} \end{aligned}

zeros: z2+4=0⇒z2=−4⇒z=±j2z^2 + 4 = 0 \Rightarrow z^2 = -4 \Rightarrow z = \pm j2

poles: [0,0][0, 0], zeros: [+j2,−j2][+j2, -j2]

Pole-zero diagram and magnitude response of 1107

a) Pole-zero diagram. b) Magnitude response. Source: 1107.tex

d) FIR: no feedback.

e) FIR always stable: poles inside the unit circle.

Problem 1108

Problem 1108 · CTU BE2M31DSPA exam

Discrete-time system is described by the following difference equation

y[n]=x[n]+x[n−2]y[n] = x[n] + x[n-2]

a) Determine zeros and poles of given system and draw their diagram (3 points).
b) Draw magnitude frequency response and describe correctly the frequency axis (3 points).
c) Determine, if the system serves as low-pass, high-pass, band-pass, or band-stop filter (1 point).
d) Determine, if it is FIR or IIR system (1 point).
e) Determine, if the system is stable a explain why (2 points).

Comb filter with order 2.

a)

Y(z)=X(z)+X(z)z−2H(z)=Y(z)X(z)=1+z−2=z2+1z2 \begin{aligned} Y(z) &= X(z) + X(z)z^{-2} \\ H(z) = \frac{Y(z)}{X(z)} &= 1 + z^{-2} = \frac{z^2 + 1}{z^2} \end{aligned}

poles: [0,0][0, 0], zeros: [+j,−j][+j, -j]

Pole-zero diagram and magnitude response of 1108

a) Pole-zero diagram. b) Magnitude response. Source: 1108.tex

c) Comb filter with order 2. Can be thought of as band stop.

d) FIR: no feedback.

e) FIR: always stable, poles inside unit circle.

Problem 1109

Problem 1109 · CTU BE2M31DSPA exam

Discrete-time system is described by the following difference equation

y[n]=x[n]−ejπ3⋅y[n−1]y[n] = x[n] - e^{j\frac{\pi}{3}}\cdot y[n-1]

a) Determine zeros and poles of given system and draw their diagram (3 points).
b) Draw magnitude frequency response in dBs and describe correctly the frequency axis (3 points).
c) As what kind of a filter does the system serve (1 point)?
d) Determine, if it is FIR or IIR system (1 point).
e) Determine, if the system is stable a explain why (2 points).

a)

Y(z)=X(z)−ejπ3 Y(z)z−1Y(z)+ejπ3 Y(z)z−1=X(z)Y(z)(1+ejπ3z−1)=X(z)H(z)=Y(z)X(z)=11+ejπ3z−1=zz+ejπ3 \begin{aligned} Y(z) &= X(z) - e^{j\frac{\pi}{3}}\,Y(z)z^{-1} \\ Y(z) + e^{j\frac{\pi}{3}}\,Y(z)z^{-1} &= X(z) \\ Y(z)\left(1 + e^{j\frac{\pi}{3}}z^{-1}\right) &= X(z) \\ H(z) = \frac{Y(z)}{X(z)} &= \frac{1}{1 + e^{j\frac{\pi}{3}}z^{-1}} = \frac{z}{z + e^{j\frac{\pi}{3}}} \end{aligned}

zeros: [0][0], poles: [−ejπ3][-e^{j\frac{\pi}{3}}], or poles: [−12−j32]\left[-\frac{1}{2} - j\frac{\sqrt{3}}{2}\right] (just one number).

Convert −ejπ3-e^{j\frac{\pi}{3}} to rectangular form. Desired rectangular form: x+jyx + jy, where

x=−1⋅cos⁡(π3)=−12,y=−1⋅sin⁡(π3)=−32 x = -1\cdot\cos\left(\tfrac{\pi}{3}\right) = -\tfrac{1}{2}, \qquad y = -1\cdot\sin\left(\tfrac{\pi}{3}\right) = -\tfrac{\sqrt{3}}{2}

(180∘=π180^\circ = \pi rad)

0∘=00^\circ = 0 rad30∘=π630^\circ = \frac{\pi}{6} rad45∘=π445^\circ = \frac{\pi}{4} rad60∘=π360^\circ = \frac{\pi}{3} rad90∘=π290^\circ = \frac{\pi}{2} rad
sin0012\frac{1}{2}22\frac{\sqrt{2}}{2}32\frac{\sqrt{3}}{2}11
cos1132\frac{\sqrt{3}}{2}22\frac{\sqrt{2}}{2}12\frac{1}{2}00

Best to plot −ejπ3-e^{j\frac{\pi}{3}} in its exponential form.

So, how did we plot the −ejπ3-e^{j\frac{\pi}{3}} complex pole?! 1ejπ31e^{j\frac{\pi}{3}} is a vector, and −1ejπ3-1e^{j\frac{\pi}{3}} is also a vector, but opposite! Magnitude is 11! So, it lies on the unit circle.

The vectors e^(jπ/3) and -e^(jπ/3) on the unit circle

Source: 1109-vectors.tex

Pole-zero diagram and magnitude response of 1109

a) Pole-zero diagram. b) Magnitude response. Source: 1109.tex

d) IIR: feedback.

e) Unstable. Bounded input (δ[n]\delta[n], impulse) leads to unbounded (oscillating) output.

Problem 1110

Problem 1110 · CTU BE2M31DSPA exam

Discrete-time system is described by the following difference equation

y[n]=x[n]+e−jπ4⋅x[n−1]y[n] = x[n] + e^{-j\frac{\pi}{4}}\cdot x[n-1]

a) Determine zeros and poles of given system and draw their diagram (3 points).
b) Draw magnitude frequency response in dBs and describe correctly the frequency axis (3 points).
c) As what kind of a filter does the system serve (1 point)?
d) Determine, if it is FIR or IIR system (1 point).
e) Determine, if the system is stable a explain why (2 points).

a)

Y(z)=X(z)+e−jπ4 X(z)z−1H(z)=Y(z)X(z)=1+e−jπ4z−1=z+e−jπ4z \begin{aligned} Y(z) &= X(z) + e^{-j\frac{\pi}{4}}\,X(z)z^{-1} \\ H(z) = \frac{Y(z)}{X(z)} &= 1 + e^{-j\frac{\pi}{4}}z^{-1} = \frac{z + e^{-j\frac{\pi}{4}}}{z} \end{aligned}

zero: [−e−jπ4][-e^{-j\frac{\pi}{4}}], poles: [0][0]

π4+π2=π4+2π4=3π4←angle of the zero\frac{\pi}{4} + \frac{\pi}{2} = \frac{\pi}{4} + \frac{2\pi}{4} = \frac{3\pi}{4} \leftarrow \text{angle of the zero}
Pole-zero diagram and magnitude response of 1110

a) Pole-zero diagram, the zero at 3π/4 rad. b) Magnitude response: the zero is located at this angle. Source: 1110.tex

d) FIR

e) Stable: pole inside the unit circle.

Problem 1150

Problem 1150 · CTU BE2M31DSPA exam

Discrete-time system is described by the following difference equation

y[n]=x[n]−2⋅y[n−1]y[n] = x[n] - 2\cdot y[n-1]

a) Determine zeros and poles of given system and draw their diagram (3 points).
b) Determine numerically (or analytically) the impulse response h[n]h[n] of given system for n=0,1,…,6n = 0, 1, \dots, 6 and draw it (4 points).
c) Determine, if it is FIR or IIR system (1 point).
d) Determine, if the system is stable a explain why (2 points).

Causal.

a)

Y(z)=X(z)−2 Y(z)z−1Y(z)+2 Y(z)z−1=X(z)H(z)=Y(z)X(z)=11+2z−1=zz+2 \begin{aligned} Y(z) &= X(z) - 2\,Y(z)z^{-1} \\ Y(z) + 2\,Y(z)z^{-1} &= X(z) \\ H(z) = \frac{Y(z)}{X(z)} &= \frac{1}{1 + 2z^{-1}} = \frac{z}{z + 2} \end{aligned}

zeros: 00, poles: −2-2

b) Obtaining the impulse response h[n]h[n] numerically (system’s response to δ[n]\delta[n]):

x[n]=δ[n]⇒y[n]=δ[n]−2 y[n−1]x[n] = \delta[n] \Rightarrow y[n] = \delta[n] - 2\,y[n-1]
nnx[n]x[n]y[n−1]y[n-1]−2×y[n−1]-2\times y[n-1]y[n]=δ[n]−2y[n−1]=h[n]y[n] = \delta[n] - 2y[n-1] = h[n]
01001
101−2-2−2-2
20−2-2+4+44
304−8-8−8-8
40−8-8+16+1616

The last column is our solution!

Let’s write out h[n]h[n] in analytical form: h[n]=(−2)n\boxed{h[n] = (-2)^n} ←\leftarrow impulse response obtained numerically.

Pole-zero diagram and impulse response of 1150

a) Pole-zero diagram. b) Impulse response. Source: 1150.tex

Problem 1151

Problem 1151 · CTU BE2M31DSPA exam

Discrete-time system is described by the following difference equation

y[n]=x[n]−y[n−1]−y[n−2]y[n] = x[n] - y[n-1] - y[n-2]

a) Determine zeros and poles of given system and draw their diagram (3 points).
b) Determine numerically (or analytically) the impulse response h[n]h[n] of given system for n=0,1,…,6n = 0, 1, \dots, 6 and draw it (4 points).
c) Determine, if it is FIR or IIR system (1 point).
d) Determine, if the system is stable a explain why (2 points).

a)

Y(z)=X(z)−Y(z)z−1−Y(z)z−2Y(z)(1+z−1+z−2)=X(z)H(z)=Y(z)X(z)=11+z−1+z−2=z2z2+z+1 \begin{aligned} Y(z) &= X(z) - Y(z)z^{-1} - Y(z)z^{-2} \\ Y(z)\left(1 + z^{-1} + z^{-2}\right) &= X(z) \\ H(z) = \frac{Y(z)}{X(z)} &= \frac{1}{1 + z^{-1} + z^{-2}} = \frac{z^2}{z^2 + z + 1} \end{aligned}

zeros: [0,0][0, 0], poles: [ej2π3,e−j2π3][e^{j\frac{2\pi}{3}}, e^{-j\frac{2\pi}{3}}]

z2+z+1=0D=b2−4ac,D=1−4=−3,D=j3z=−b±D2a=−1±j32=−0.5±j32 \begin{gathered} z^2 + z + 1 = 0 \\ D = b^2 - 4ac, \quad D = 1 - 4 = -3, \quad \sqrt{D} = j\sqrt{3} \\ z = \frac{-b \pm \sqrt{D}}{2a} = \frac{-1 \pm j\sqrt{3}}{2} = -0.5 \pm j\frac{\sqrt{3}}{2} \end{gathered}

Rectangular form: z=x+jyz = x + jy. Exponential form: z=∣z∣ejθz = |z|e^{j\theta}.

∣z∣=x2+y2=14+34=44=1=∣z∣(on the unit circle) |z| = \sqrt{x^2 + y^2} = \sqrt{\tfrac{1}{4} + \tfrac{3}{4}} = \sqrt{\tfrac{4}{4}} = 1 = |z| \quad \text{(on the unit circle)} θ=arctan⁡(32⋅2)=arctan⁡(3)=60∘=π3 rad=θ (phase)⇒e±jπ3 \theta = \arctan\left(\frac{\sqrt{3}}{2}\cdot 2\right) = \arctan\left(\sqrt{3}\right) = 60^\circ = \frac{\pi}{3}\ \text{rad} = \theta \ \text{(phase)} \quad\Rightarrow\quad e^{\pm j\frac{\pi}{3}}

Big But! It’s in the 2nd and 3rd quadrant (rect form). So, adjust the phase accordingly:

π2+π6=4π6=2π3\frac{\pi}{2} + \frac{\pi}{6} = \frac{4\pi}{6} = \frac{2\pi}{3}

b) Impulse response:

nnx[n]x[n]− y[n−1]-\,y[n-1]− y[n−2]-\,y[n-2]=y[n]= y[n]
01− 0-\,0− 0-\,011
10− 1-\,1− 0-\,0−1-1
20− (−1)-\,(-1)− 1-\,100
30− 0-\,0− (−1)-\,(-1)11
40− 1-\,1− 0-\,0−1-1
50− (−1)-\,(-1)− 1-\,100
Pole-zero diagram and impulse response of 1151

a) Pole-zero diagram. b) Impulse response. Source: 1151.tex

c) IIR: feedback.

d) Unstable: poles are on the unit circle, not inside! Output is oscillating, given an impulse δ[n]\delta[n].

Problem 1152

Problem 1152 · CTU BE2M31DSPA exam

Discrete-time system is described by the following difference equation

y[n]=x[n]+y[n−1]+y[n−2]y[n] = x[n] + y[n-1] + y[n-2]

a) Determine zeros and poles of given system and draw their diagram (3 points).
b) Determine numerically (or analytically) the impulse response h[n]h[n] of given system for n=0,1,…,6n = 0, 1, \dots, 6 and draw it (4 points).
c) Determine, if it is FIR or IIR system (1 point).
d) Determine, if the system is stable a explain why (2 points).

a)

Y(z)=X(z)+Y(z)z−1+Y(z)z−2Y(z)(1−z−1−z−2)=X(z)H(z)=Y(z)X(z)=11−z−1−z−2=z2z2−z−1 \begin{aligned} Y(z) &= X(z) + Y(z)z^{-1} + Y(z)z^{-2} \\ Y(z)\left(1 - z^{-1} - z^{-2}\right) &= X(z) \\ H(z) = \frac{Y(z)}{X(z)} &= \frac{1}{1 - z^{-1} - z^{-2}} = \frac{z^2}{z^2 - z - 1} \end{aligned} z2−z−1=0D=1+4=5z=1±52=12±52 \begin{gathered} z^2 - z - 1 = 0 \\ D = 1 + 4 = 5 \\ z = \frac{1 \pm \sqrt{5}}{2} = \frac{1}{2} \pm \frac{\sqrt{5}}{2} \end{gathered}

zeros: [0,0][0, 0], poles: [12+52,12−52]\left[\frac{1}{2} + \frac{\sqrt{5}}{2}, \frac{1}{2} - \frac{\sqrt{5}}{2}\right]

b)

nnx[n]x[n]+ y[n−1]+\,y[n-1]+ y[n−2]+\,y[n-2]=y[n]= y[n]
01+ 0+\,0+ 0+\,011
10+ 1+\,1+ 0+\,011
20+ 1+\,1+ 1+\,122
30+ 2+\,2+ 1+\,133
40+ 3+\,3+ 2+\,255
50+ 5+\,5+ 3+\,388
60+ 8+\,8+ 5+\,51313
Pole-zero diagram and impulse response of 1152

a) Pole-zero diagram. b) Impulse response (cont.). Source: 1152.tex

c) IIR: feedback.

d) Unstable:

  1. pole outside the unit circle;
  2. IR increasing in response to δ[n]\delta[n].

Problem 1153

Problem 1153 · CTU BE2M31DSPA exam

Discrete-time system is described by the following difference equation

y[n]=x[n]+x[n−1]+x[n−2]y[n] = x[n] + x[n-1] + x[n-2]

a) Determine zeros and poles of given system and draw their diagram (3 points).
b) Determine numerically (or analytically) the impulse response h[n]h[n] of given system for n=0,1,…,6n = 0, 1, \dots, 6 and draw it (4 points).
c) Determine, if it is FIR or IIR system (1 point).
d) Determine, if the system is stable a explain why (2 points).

MA filter of order 2=M2 = M.

a) We know the rule!

Zero spacing: 2πM+1=2π3 rad=120∘,120∘=90∘+30∘=π2+π6=4π6=2π3 \text{Zero spacing: } \frac{2\pi}{M+1} = \frac{2\pi}{3}\ \text{rad} = 120^\circ, \qquad 120^\circ = 90^\circ + 30^\circ = \frac{\pi}{2} + \frac{\pi}{6} = \frac{4\pi}{6} = \frac{2\pi}{3}

zeros: [ej2π3,e−j2π3][e^{j\frac{2\pi}{3}}, e^{-j\frac{2\pi}{3}}]

b)

nnx[n]x[n]+ x[n−1]+\,x[n-1]+ x[n−2]+\,x[n-2]=y[n]=h[n]= y[n] = h[n]
01+ 0+\,0+ 0+\,011
10+ 1+\,1+ 0+\,011
20+ 0+\,0+ 1+\,111
30+ 0+\,0+ 0+\,000
40+ 0+\,0+ 0+\,000
50+ 0+\,0+ 0+\,000
60+ 0+\,0+ 0+\,000
Pole-zero diagram and impulse response of 1153

a) Pole-zero diagram. b) Impulse response. Source: 1153.tex

c) FIR: no feedback.

d) Stable:

  1. All FIR filters are stable;
  2. Poles inside the unit circle;
  3. Impulse response is decaying.

Problem 1154

Problem 1154 · CTU BE2M31DSPA exam

Discrete-time system is described by the following difference equation

y[n]=x[n]−0.5⋅y[n−2]y[n] = x[n] - 0.5\cdot y[n-2]

a) Determine zeros and poles of given system and draw their diagram (3 points).
b) Determine numerically (or analytically) the impulse response h[n]h[n] of given system for n=0,1,…,6n = 0, 1, \dots, 6 and draw it (4 points).
c) Determine, if it is FIR or IIR system (1 point).
d) Determine, if the system is stable a explain why (2 points).

a)

Y(z)=X(z)−0.5 Y(z)z−2Y(z)+0.5 Y(z)z−2=X(z)H(z)=Y(z)X(z)=11+0.5z−2=z2z2+0.5 \begin{aligned} Y(z) &= X(z) - 0.5\,Y(z)z^{-2} \\ Y(z) + 0.5\,Y(z)z^{-2} &= X(z) \\ H(z) = \frac{Y(z)}{X(z)} &= \frac{1}{1 + 0.5z^{-2}} = \frac{z^2}{z^2 + 0.5} \end{aligned} z2+0.5=0⇒z2=−0.5,z=−0.5=±j0.5z^2 + 0.5 = 0 \Rightarrow z^2 = -0.5, \quad z = \sqrt{-0.5} = \pm j\sqrt{0.5}

zeros: [0,0][0, 0], poles: [+j0.5,−j0.5][+j\sqrt{0.5}, -j\sqrt{0.5}]

The unit impulse δ[n]

δ[n]: impulse function. Source: 1154-delta.tex

b) IR: x[n]=δ[n]x[n] = \delta[n]

nnx[n]x[n]− 0.5 y[n−2]-\,0.5\,y[n-2]=y[n]=h[n]= y[n] = h[n]
01− 0-\,011
10− 0-\,000
20− 0.5-\,0.5−0.5-0.5
30− 0-\,000
40− (−0.25)-\,(-0.25)0.2500.250
50− 0-\,000
60− 0.125-\,0.125−0.125-0.125
Pole-zero diagram and impulse response of 1154

a) Pole-zero diagram. b) Impulse response. Source: 1154.tex

c) IIR: feedback.

d) Stable:

  1. poles inside the unit circle;
  2. impulse response decaying to 0.

Problem 1155

Problem 1155 · CTU BE2M31DSPA exam

Discrete-time system is described by the following difference equation

y[n]=x[n]+0.5⋅y[n−2]y[n] = x[n] + 0.5\cdot y[n-2]

a) Determine zeros and poles of given system and draw their diagram (3 points).
b) Determine numerically (or analytically) the impulse response h[n]h[n] of given system for n=0,1,…,6n = 0, 1, \dots, 6 and draw it (4 points).
c) Determine, if it is FIR or IIR system (1 point).
d) Determine, if the system is stable a explain why (2 points).

a)

Y(z)=X(z)+0.5 Y(z)z−2Y(z)(1−0.5z−2)=X(z)H(z)=Y(z)X(z)=11−0.5z−2=z2z2−0.5=H(z) \begin{aligned} Y(z) &= X(z) + 0.5\,Y(z)z^{-2} \\ Y(z)\left(1 - 0.5z^{-2}\right) &= X(z) \\ H(z) = \frac{Y(z)}{X(z)} &= \frac{1}{1 - 0.5z^{-2}} = \frac{z^2}{z^2 - 0.5} = H(z) \end{aligned} z2−0.5=0⇒z2=0.5⇒z=±0.5z^2 - 0.5 = 0 \Rightarrow z^2 = 0.5 \Rightarrow z = \pm\sqrt{0.5}

zeros: [0,0][0, 0], poles: [0.5,−0.5][\sqrt{0.5}, -\sqrt{0.5}]

b) IR: x[n]=δ[n]x[n] = \delta[n]

nnx[n]x[n]+ 0.5 y[n−2]+\,0.5\,y[n-2]=y[n]=h[n]= y[n] = h[n]
01+ 0+\,011
10+ 0+\,000
20+ 0.5+\,0.50.50.5
30+ 0+\,000
40+ 0.25+\,0.250.2500.250
50+ 0+\,000
60+ 0.125+\,0.1250.1250.125
Pole-zero diagram and impulse response of 1155

a) Pole-zero diagram. b) Impulse response. Source: 1155.tex

c) IIR: feedback.

d) Stable:

  1. poles inside the unit circle;
  2. IR decaying to 0.

© 2026 Giorgi Aptsiauri. All rights reserved. Do not copy or republish this text or its figures without permission. Online version: https://giorgiaptsiauri.com/notes/dsp-ctu/01-difference-equations/