Pinpoint DSP CT : Z-transform and Filter

Created by
BBorhan
Last edited time
Tag

Questions:

(a)

Advantages of Z-transform over DTFT system:

The Transfer Function

The transfer function H(z)H(z) of a DT linear system is defined as the ration of the Z-transform of the output signal Y(z)Y(z) to the Z-transform of the input signal X(z)X(z)

H(z)=Y(z)X(z)=n=+bnznm=+amzmH(z) = \frac{Y(z)}{X(z)} = \frac{\sum_{n=-\infin}^{+-\infin} b_n z^{-n}}{\sum_{m=-\infin}^{+-\infin} a_m z^{-m}} 

=b0+b1z1+...+bmzma0+a1z1+...+anzn=\frac{b_0 + b_1z^{-1}+...+b_mz^{-m} }{a_0 + a_1z^{-1}+...+a_nz^{-n} }

Where, b0,b1,...b_0, b_1, ...  are input coefficient and a0,a1...a_0, a_1 ...  are output.

if ao=1a_o = 1, then this called the standard form of transfer function.

If we can convert, H(z)=G(zz1)(zz2)...(zzn)(zp1)(zp2)...(zpn)H(z) = G\frac{(z-z_1)(z-z_2)... (z-z_n)}{(z-p_1)(z-p_2)...(z-p_n)}

Then, z1,z2...z_1, z_2 ...  are called zeros and p1,p2....p_1, p_2 .... are called poles.

Distinguish between Zeros and Poles

PolesZeros
A pole of the transfer function H(z) is value of z that makes the denominator zero. A zero of the transfer function H(z) is a value of 𝑧 that makes the numerator zero.
Mathematical : H(z) = N(z)/D(z)
If D(z) = 0, at z=zp, then
H(z) → infinity as z→ zp
Mathematical : H(z) = N(z)/D(z)
If N(z) = 0, at z=zs, then
H(z) → 0 as z→ zs
Influence system stability and responseInfluence frequency response
Poles outside the unit circle indicate instabilityZeros do not affect stability directly
Represented by "X" in the Z-planeRepresented by "O" in the Z-plane

(b) Transfer function representation : X(z)=N(z)D(z)=b0+b1z1+....+bmzm1+a1z1+....+anzn=b0+b1z1+....+bmzma0+a1z1+....+anznX(z) = \frac{N(z)}{D(z)} = \frac{b_0 + b_1 z^{-1}+ ....+ b_mz^{-m}}{1 + a_1 z^{-1}+ ....+ a_nz^{-n}} = \frac{b_0 + b_1 z^{-1}+ ....+ b_mz^{-m}}{a_0 + a_1 z^{-1}+ ....+ a_nz^{-n}}  [a0=1a_0 = 1  means normalized] .z=ejωz=e^{j\omega}

H(z)=1+z1+z21+0.5z1+0.75z2H(z) = \frac{1+z^{-1}+z^{-2}}{1+0.5z^{-1}+0.75z^{-2}} [Dividing by z2z^2]

H(ejω)=e2jω+e2ω+1e2jω+0.5ejω+0.75H(e^{j\omega}) = \frac{e^{2j\omega} + e^{2\omega} + 1}{e^{2j\omega} + 0.5 e^{j\omega} + 0.75} [Replace z=ejωz=e^{j\omega} on given X(z)X(z) of the question]

Difference equation representation : Transfer function → Inverse Z-transform → y(n)y(n)

H(z)=1+z1+z21+0.5z1+0.75z2H(z) = \frac{1+z^{-1}+z^{-2}}{1+0.5z^{-1}+0.75z^{-2}}, [Transfer function, H(z)=Y(z)X(z)=..H(z) = \frac{Y(z)}{X(z)} = .. ]

X(z)+z1X(z)+z2X(z)=Y(z)+0.5z1Y(z)+0.75z2Y(z)X(z)+z^{-1}X(z) + z^{-2}X(z) = Y(z)+0.5z^{-1}Y(z)+0.75z^{-2}Y(z) [cross product]

x[n]+x[n1]+x[n2]=y[n]+0.5y[n1]+0.75y[n2]x[n] + x[n-1]+x[n-2] = y[n] + 0.5y[n-1]+0.75y[n-2] [Inverse Z-function]

y[n]=x[n]+x[n1]+x[n2]+0.5y[n1]+0.75y[n2]]y[n] = x[n] + x[n-1]+x[n-2] + 0.5y[n-1]+0.75y[n-2]]

(c)

Idea : X(z)=N(z)D(z)=b0+b1z1+....+bmzma0+a1z1+....+anznX(z) = \frac{N(z)}{D(z)} = \frac{b_0 + b_1 z^{-1}+ ....+ b_mz^{-m}}{a_0 + a_1 z^{-1}+ ....+ a_nz^{-n}} , make given X(z)X(z) this format and compare with this ( a0=1a_0 =1 ) where b0,....,bnb_0, ...., b_n = input and a0+...an=a_0+...a_n =  output coefficient.

X(z)=2+z+3z20.5z3(10z3+18z2+1)=4z3+2z2+6z110z3+18z2+1X(z) = \frac{2 + z + 3z^2}{0.5z^3 \left( 10z^{-3} + 18z^{-2} + 1 \right)} = \frac{4z^{-3} + 2z^{-2} + 6z^{-1}}{10z^{-3} + 18z^{-2} + 1} [Normalized]

Input coefficient : 4, 2, 6

Output Coefficient : 1, 0, 18, 10


(a) Check the answer above.

(b) Transfer function representation:

H(z)=z2+z110.9z1+0.81z2H(z) = \frac{z^{-2} + z^{-1}}{1 - 0.9z^{-1} + 0.81 z^{-2}}

H(z)=ejω+1e2jω+0.9ejω+0/81H(z) = \frac{e^{j\omega+1}}{e^{2j\omega} + 0.9 e^{j\omega} + 0/81}

Difference equation representation

H(z)=z2+z110.9z1+0.81z2=Y(z)X(z)H(z) = \frac{z^{-2} + z^{-1}}{1 - 0.9z^{-1} + 0.81 z^{-2}} = \frac{Y(z)}{X(z)}

z2X(z)+z1X(z)=Y(z)+0.9z1Y(z)+0.82z2Y(z)z^{-2}X(z)+z^{-1}X(z)=Y(z) + 0.9 z^{-1} Y(z)+0.82z^{-2} Y(z)

x[n2]+x[n1]=y[n]+0.9y[n1]+0.81y[n2]x[n-2]+x[n-1] = y[n]+0.9y[n-1]+0.81y[n-2]

(c) X(z)=3+z2+2z4z2+4z3+3z4X(z) = \frac{3 + z^{-2}+2z^{-4}}{z^{-2}+4z^{-3}+3z^{-4}}

Input Coefficients: 3, 0, 1, 0,2

Output Coefficients: 0, 0, 1, 4, 3


y[n]=x[n]+x[n1]+x[n2]+0.5y[n1]+0.75y[n2]]y[n] = x[n] + x[n-1]+x[n-2] + 0.5y[n-1]+0.75y[n-2]]

Y(z)=X(z)+z1X(z)+z2X(z)+0.5z1Y(z)+0.75z2Y(z)Y(z) = X(z) + z^{-1} X(z) + z^{-2} X(z) + 0.5 z^{-1} Y(z) + 0.75 z^{-2} Y(z)

Y(z)X(z)=....\frac{Y(z)}{X(z)} = ....

H(z)=Y(z)X(z)=....H(z) = \frac{Y(z)}{X(z)} = ....


(a) The set of ZZ for which X(z)X(z) is converges (gives finite value)/the set of points in ZZ-plane for which X(z)X(z) is converges is called Region Of Converges.

Properties:

Source

(b) x(n)={(12);n10;n0x(n) = \begin{cases} (-\frac{1}{2}); n \le 1 \\ 0 ; n \ge 0 \end{cases} 

X(z)=n=1(0.5)nzn=n=1(0.5z1)n=n=1(0.51z)nX(z) = \sum_{n=-\infin}^{1} (-0.5)^{n} z^{-n} =\sum_{n=-\infin}^{-1} (-0.5 z^{-1})^{n} = \sum_{n=1}^{\infin} (-0.5^{-1} z)^{n}

If 0<0.51z<1,0 < |-0.5^{-1} z| < 1,  then

X(z)=11(0.51z)=0.50.5zX(z) = \frac{1}{1 - (-0.5^{-1}z)} = \frac{0.5}{0.5 - z}

Condition for converges,

0.51z<1|-0.5^{-1} z| < 1 z<2|z| < 2

Z TransformLaplace Transform
Z transform is mathematical tool used for conversion of time domain into frequency domain (z domain) and is a function of the complex valued variable Z.an integral transform that converts a function of a real variable (usually , in the time domain) to a function of a complex variable
Used to analyze discrete time signalcontinuous time signal
Uses the complex variable Zuses the complex variable s
The set of points in z-plane for which X(z) converges is called the ROC of X(z)The set of points in s-plane for which X(s) converges is called the ROC of X(s)
Used for discrete time linear system such as digital filters and sampled data control systemUsed for the analysis of CT system such as control system and differential equation

Digital Filters

A digital filter is a system that performs mathematical operations on a sampled discrete time signal to reduce or enhance certain aspects of that signal.

Types : FIR, IIR

Basic element to design Digital Filter

IIR (Infinite Duration Impulse Response) : If the impulse response exists infinitely, it is an IIR Filter.

Cascade form for NthN-th order

K=N2K=\frac{N}{2}

FIR (Finite Duration Impulse Response): The filters have a finite impulse response function which has finite length of time.

Let, h(n),0<n<M1h(n), 0 < n < M-1, be the impulse response of length M. The frequency response,

H(z)=n=0M1h(n)znH(z) = \sum_{n=0}^{M-1} h(n)z^{-n}

We know, H(ejw)=n=0M1h(n)ejwn,πwπH(e^{jw}) = \sum_{n=0}^{M-1} h(n) e^{-jwn}, -\pi \le w \le \pi

Where, H(ejw)=αw\angle H(e^{jw} ) = -\alpha w (A system has linear phase if its phase response θ(ω) = ∠H(e^jω) = −cω for all ω and any constant c.)

where, α\alpha  is a constant phase delay, h(n)h(n) must be symmetric, if h(n)=h(M1n)h(n) = h(M-1-n)

0nM10 \le n \le M-1  with α=M12\alpha = \frac{M-1}{2} if M is odd.

Anti symmetry : h(n)=h(M1n)h(n) = -h(M-1-n)

Linear phase system fall into one of 4 categories:

  • M odd, h[n] is symmetric (Type I)

    H(ejw)=n=0Mh[n]ejwnH(e^{jw}) = \sum_{n=0}^{M} h[n] e^{-jwn}

    =h[0](ejw0+ejwM)+h[1](ejw1+ejw(M1))+...+h[M2]ejwM2= h[0](e^{-jw0} + e^{-jwM}) + h[1](e^{-jw1} + e^{-jw(M-1)})+... + h[\frac{M}{2}]e^{-jw\frac{M}{2}}

    =ejwM/2(h[0](ejwM/2+ejwM/2)+...+h[M/2])= e^{jwM/2} (h[0](e^{jwM/2} + e^{-jwM/2}) + ... + h[M/2])

    =ejwM/2(h[0].2cos(wM/w)+h[1].2cos(w(M/21)+...+h[M/2])= e^{-jwM/2} (h[0].2cos(wM/w)+h[1] . 2cos(w(M/2 - 1)+...+ h[M/2])

    =ejwM/2k=0M/2a1[k]cos(wk)= e^{-jwM/2} \sum_{k=0}^{M/2} a_1[k] cos(wk)

    As class note,

    M=Odd,α=M12M=Odd, \alpha = \frac{M-1}{2}

    H(w)=n=0M12a(n)cos(wn)H(w) = \sum_{n=0}^{\frac{M-1}{2}} a(n) cos(wn)

    H(ejw)=ejwM12n=0M12a(n)cos(wn)H(e^{jw}) = e^{-jw\frac{M-1}{2}} \sum_{n=0}^{\frac{M-1}{2}} a(n) cos(wn)

  • M even, h[n] is symmetric (Type II)

    H(ejw)=h[0](ejw0+ejwM)+h[1](ejw1+ejw(M1))+...+h[M12](ejwM12+ejwM+12)H(e^{jw})= h[0](e^{-jw0} + e^{-jwM}) + h[1](e^{-jw1} + e^{-jw(M-1)})+... + h[\frac{M-1}{2}](e^{-jw\frac{M-1}{2}} + e^{-jw\frac{M+1}{2}})

    =ejwM2n=0M12b(n)cos(w(k+12))=e^{-jw\frac{M}{2}} \sum_{n=0}^{\frac{M-1}{2}} b(n) cos(w(k+\frac{1}{2}))

    As class note,

    H(ejw)=ejwM12n=1M2b(n)con{w(n12)}H(e^{jw}) = e^{-jw\frac{M-1}{2}} \sum_{n=1}^{\frac{M}{2}} b(n) con \{w (n-\frac{1}{2}) \}

  • M even, h[n] is antisymmetric (Type III),
  • M odd, h[n] is antisymmetric (type IV)