32
Intro Recap Problems EE123 Discussion Section 3 Frank Ong February 4, 2015 Frank Ong EE123 Discussion Section 3

EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

IntroRecap

Problems

EE123 Discussion Section 3

Frank Ong

February 4, 2015

Frank Ong EE123 Discussion Section 3

Page 2: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

IntroRecap

Problems

Plan

I Recap of Z-transform

I Practice problems

I Distribute SDRs

Frank Ong EE123 Discussion Section 3

Page 3: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

IntroRecap

Problems

Z-transform

X (z) =1X

n=�1x [n]z�n

I Simpler notations ( z instead of e j! )

I Generalizes the Fourier transform to more signals (e.g. theunit step, exploding exponentials)

I Region of convergence, Zeros and Poles

Frank Ong EE123 Discussion Section 3

Page 4: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

EE 123 Spring 2015Discussion Section 03Frank Ong

Page � of �1 2

Page 5: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

EE 123 Spring 2015Discussion Section 03Frank Ong

Page � of �2 2

Page 6: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

IntroRecap

Problems

Z-transform Inversion in this class

Three methods to invert z-transform:

I Inspection / Properties of z-transform

a

nu[n] , 1

1� az

�1{z : |z | > a}

I Partial fraction expansion

I Long division / Power series

Frank Ong EE123 Discussion Section 3

Page 7: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

IntroRecap

Problems

Question 1

I Find the inverse z-transform of the following, assumingright-sided:

X (z) =1

1� 34z

�1 + 18z

�2

Frank Ong EE123 Discussion Section 3

Page 8: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

IntroRecap

Problems

Solution 1

I Example: Partial Fraction Expansion

X (z) =1

1� 34z

�1 + 18z

�2

=1�

1� 14z

�1� �

1� 12z

�1�

=A1

1� 14z

�1+

A2

1� 12z

�1

Find A1 and A2

A1 = (1� 1

4z

�1)X (z)

����z=1

4

= �1

A2 = (1� 1

2z

�1)X (z)

����z=1

2

= 2

Frank Ong EE123 Discussion Section 3

Page 9: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

IntroRecap

Problems

Solution 1

I Example: Partial Fraction Expansion

X (z) =1

1� 34z

�1 + 18z

�2

=1�

1� 14z

�1� �

1� 12z

�1�

=A1

1� 14z

�1+

A2

1� 12z

�1

Find A1 and A2

A1 = (1� 1

4z

�1)X (z)

����z=1

4

= �1

A2 = (1� 1

2z

�1)X (z)

����z=1

2

= 2

Frank Ong EE123 Discussion Section 3

Page 10: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

IntroRecap

Problems

Solution 1

Partial fraction expansion:

X (z) =�1

1� 14z

�1+

2

1� 12z

�1

From the tables:

x [n] =

�(

1

4)n + 2(

1

2)n�u[n] because right sided

Frank Ong EE123 Discussion Section 3

Page 11: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

IntroRecap

Problems

Solution 1

Partial fraction expansion:

X (z) =�1

1� 14z

�1+

2

1� 12z

�1

From the tables:

x [n] =

�(

1

4)n + 2(

1

2)n�u[n] because right sided

Frank Ong EE123 Discussion Section 3

Page 12: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

IntroRecap

Problems

Question 2

I Find the inverse z-transform of the following system:

X (z) =1 + 2z�1 + z

�2

1� 32z

�1 + 12z

�2ROC = {z : |z | > 1}

I Hint: If M < N,

X (z) =NX

k=1

Ak

1� dkz�1

If M � N,

X (z) =M�NX

r=0

Brz�r +

NX

k=1

Ak

1� dkz�1

Frank Ong EE123 Discussion Section 3

Page 13: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

IntroRecap

Problems

Solution 2

I Find the impulse response of the following system:

X (z) =1 + 2z�1 + z

�2

1� 32z

�1 + 12z

�2

M = N = 2

= B0 +A1

1� 12z

�1+

A2

1� z

�1

Matching coe�cients: A1 = �9, A2 = 8, B0 = 2

ROC = {z : |z | > 1}

) x [n] = 2�[n]� 9(1

2)nu[n] + 8u[n]

Frank Ong EE123 Discussion Section 3

Page 14: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

IntroRecap

Problems

Solution 2

I Find the impulse response of the following system:

X (z) =1 + 2z�1 + z

�2

1� 32z

�1 + 12z

�2M = N = 2

= B0 +A1

1� 12z

�1+

A2

1� z

�1

Matching coe�cients: A1 = �9, A2 = 8, B0 = 2

ROC = {z : |z | > 1}

) x [n] = 2�[n]� 9(1

2)nu[n] + 8u[n]

Frank Ong EE123 Discussion Section 3

Page 15: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

IntroRecap

Problems

Solution 2

I Find the impulse response of the following system:

X (z) =1 + 2z�1 + z

�2

1� 32z

�1 + 12z

�2M = N = 2

= B0 +A1

1� 12z

�1+

A2

1� z

�1

Matching coe�cients: A1 = �9, A2 = 8, B0 = 2

ROC = {z : |z | > 1}

) x [n] = 2�[n]� 9(1

2)nu[n] + 8u[n]

Frank Ong EE123 Discussion Section 3

Page 16: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

IntroRecap

Problems

Solution 2

I Find the impulse response of the following system:

X (z) =1 + 2z�1 + z

�2

1� 32z

�1 + 12z

�2M = N = 2

= B0 +A1

1� 12z

�1+

A2

1� z

�1

Matching coe�cients: A1 = �9, A2 = 8, B0 = 2

ROC = {z : |z | > 1}

) x [n] = 2�[n]� 9(1

2)nu[n] + 8u[n]

Frank Ong EE123 Discussion Section 3

Page 17: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

IntroRecap

Problems

Question 3

I What is the inverse z-transform of

X (z) = log(1 + az

�1), |z | > |a|

I Hint: use the property nx [n] , �z

dX (z)dz

Frank Ong EE123 Discussion Section 3

Page 18: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

IntroRecap

Problems

Solution 3

IX (z) = log(1 + az

�1), |z | > |a|

dX (z)

dz

=�az

�2

1 + az

�1

I Use the di↵erentiation property

nx [n] , �z

dX (z)

dz

=�az

�1

1 + az

�1

I Use the shift property

nx [n] = a(�a)n�1u[n � 1]

Ix [n] = (�1)n+1 an

n u[n � 1] (This is actually the power series ofX(z))

Frank Ong EE123 Discussion Section 3

Page 19: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

IntroRecap

Problems

Solution 3

IX (z) = log(1 + az

�1), |z | > |a|dX (z)

dz

=�az

�2

1 + az

�1

I Use the di↵erentiation property

nx [n] , �z

dX (z)

dz

=�az

�1

1 + az

�1

I Use the shift property

nx [n] = a(�a)n�1u[n � 1]

Ix [n] = (�1)n+1 an

n u[n � 1] (This is actually the power series ofX(z))

Frank Ong EE123 Discussion Section 3

Page 20: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

IntroRecap

Problems

Solution 3

IX (z) = log(1 + az

�1), |z | > |a|dX (z)

dz

=�az

�2

1 + az

�1

I Use the di↵erentiation property

nx [n] , �z

dX (z)

dz

=�az

�1

1 + az

�1

I Use the shift property

nx [n] = a(�a)n�1u[n � 1]

Ix [n] = (�1)n+1 an

n u[n � 1] (This is actually the power series ofX(z))

Frank Ong EE123 Discussion Section 3

Page 21: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

IntroRecap

Problems

Solution 3

IX (z) = log(1 + az

�1), |z | > |a|dX (z)

dz

=�az

�2

1 + az

�1

I Use the di↵erentiation property

nx [n] , �z

dX (z)

dz

=�az

�1

1 + az

�1

I Use the shift property

nx [n] = a(�a)n�1u[n � 1]

Ix [n] = (�1)n+1 an

n u[n � 1] (This is actually the power series ofX(z))

Frank Ong EE123 Discussion Section 3

Page 22: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

IntroRecap

Problems

Solution 3

IX (z) = log(1 + az

�1), |z | > |a|dX (z)

dz

=�az

�2

1 + az

�1

I Use the di↵erentiation property

nx [n] , �z

dX (z)

dz

=�az

�1

1 + az

�1

I Use the shift property

nx [n] = a(�a)n�1u[n � 1]

Ix [n] = (�1)n+1 an

n u[n � 1] (This is actually the power series ofX(z))

Frank Ong EE123 Discussion Section 3

Page 23: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

IntroRecap

Problems

Question 4

I What is the ROC and inverse z-transform of

X (z) = z

2(1� 1

2z

�1)(1 + z

�1)(1� z

�1)

Frank Ong EE123 Discussion Section 3

Page 24: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

IntroRecap

Problems

Solution 4

X (z) = z

2(1� 1

2z

�1)(1 + z

�1)(1� z

�1)

I Expanding the terms

X (z) = z

2 � 1

2z � 1 +

1

2z

�1

I By inspection

X (z) = �[n + 2]� 1

2�[n + 1]� �[n] +

1

2�[n � 1]

Frank Ong EE123 Discussion Section 3

Page 25: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

IntroRecap

Problems

Solution 4

X (z) = z

2(1� 1

2z

�1)(1 + z

�1)(1� z

�1)

I Expanding the terms

X (z) = z

2 � 1

2z � 1 +

1

2z

�1

I By inspection

X (z) = �[n + 2]� 1

2�[n + 1]� �[n] +

1

2�[n � 1]

Frank Ong EE123 Discussion Section 3

Page 26: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

IntroRecap

Problems

Solution 4

X (z) = z

2(1� 1

2z

�1)(1 + z

�1)(1� z

�1)

I Expanding the terms

X (z) = z

2 � 1

2z � 1 +

1

2z

�1

I By inspection

X (z) = �[n + 2]� 1

2�[n + 1]� �[n] +

1

2�[n � 1]

Frank Ong EE123 Discussion Section 3

Page 27: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

IntroRecap

Problems

Question 5

I Let x [n] be causal, i.e., x [n] = 0 for n < 0. And assume X (z)is rational.

I Can limz!1 X (z) be infinite? That is, can there be a pole atz = 1?

Frank Ong EE123 Discussion Section 3

Page 28: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

IntroRecap

Problems

Solution 5

I The answer is no as long as x [0] 6= 1 because of the initialvalue theorem:

I Proof:

X (z) =1X

n=�1x [n]z�n

I Since x [n] = 0:

X (z) =1X

n=0

x [n]z�n

limz!1

X (z) = x [0]

Frank Ong EE123 Discussion Section 3

Page 29: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

IntroRecap

Problems

Solution 5

I The answer is no as long as x [0] 6= 1 because of the initialvalue theorem:

I Proof:

X (z) =1X

n=�1x [n]z�n

I Since x [n] = 0:

X (z) =1X

n=0

x [n]z�n

limz!1

X (z) = x [0]

Frank Ong EE123 Discussion Section 3

Page 30: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

IntroRecap

Problems

Solution 5

I The answer is no as long as x [0] 6= 1 because of the initialvalue theorem:

I Proof:

X (z) =1X

n=�1x [n]z�n

I Since x [n] = 0:

X (z) =1X

n=0

x [n]z�n

limz!1

X (z) = x [0]

Frank Ong EE123 Discussion Section 3

Page 31: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

IntroRecap

Problems

Question 6

Which of the followings could be causal and stable? Find the ROCwhenever it can be causal and stable

I (1�z�1)2

(1� 14 z

�1)

I (z� 14 )

6

(z� 12 )

5

I 1�3z�2

(1�2z�1)

I 1(1�2z�1) �

4z�2

(1�2z�1)

Frank Ong EE123 Discussion Section 3

Page 32: EE123 Discussion Section 3ee123/sp15/Sections/sec3.pdf · 2015-02-08 · Intro Recap Problems Z-transform X(z)= X1 n=1 x[n]zn I Simpler notations ( z instead of ej! I Generalizes

IntroRecap

Problems

Solution 6

I (1�z�1)2

(1� 14 z

�1)Could be. ROC = {z : |z | > 1

4}

I (z� 14 )

6

(z� 12 )

5 Could not be causal, because limz!1 X (z) = 1

I 1�3z�2

(1�2z�1) Could not be causal and stable, because the

outermost pole is outside the unit circle.

I 1(1�2z�1) �

4z�2

(1�2z�1) = 1 + 2z�1 Always causal and stable

Frank Ong EE123 Discussion Section 3