Ch. 7: Z-transform Reading

Similar documents
Lecture 19 IIR Filters

z-transforms Definition of the z-transform Chapter

Let H(z) = P(z)/Q(z) be the system function of a rational form. Let us represent both P(z) and Q(z) as polynomials of z (not z -1 )

Very useful for designing and analyzing signal processing systems

Discrete-time signals and systems

Signals and Systems. Problem Set: The z-transform and DT Fourier Transform

# FIR. [ ] = b k. # [ ]x[ n " k] [ ] = h k. x[ n] = Ae j" e j# ˆ n Complex exponential input. [ ]Ae j" e j ˆ. ˆ )Ae j# e j ˆ. y n. y n.

E : Lecture 1 Introduction

Module 4 : Laplace and Z Transform Problem Set 4

Digital Filters Ying Sun

How to manipulate Frequencies in Discrete-time Domain? Two Main Approaches

CMPT 889: Lecture 5 Filters

Digital Filters. Linearity and Time Invariance. Linear Time-Invariant (LTI) Filters: CMPT 889: Lecture 5 Filters

Discrete-Time Signals and Systems. Frequency Domain Analysis of LTI Systems. The Frequency Response Function. The Frequency Response Function

7.17. Determine the z-transform and ROC for the following time signals: Sketch the ROC, poles, and zeros in the z-plane. X(z) = x[n]z n.

z-transform Chapter 6

Detailed Solutions to Exercises

Analog vs. discrete signals

Z Transform (Part - II)

Responses of Digital Filters Chapter Intended Learning Outcomes:

Use: Analysis of systems, simple convolution, shorthand for e jw, stability. Motivation easier to write. Or X(z) = Z {x(n)}

UNIVERSITY OF OSLO. Please make sure that your copy of the problem set is complete before you attempt to answer anything.

Cosc 3451 Signals and Systems. What is a system? Systems Terminology and Properties of Systems

Signal Processing First Lab 11: PeZ - The z, n, and ˆω Domains

An Fir-Filter Example: Hanning Filter

VI. Z Transform and DT System Analysis

Discrete Time Systems

Convolution. Define a mathematical operation on discrete-time signals called convolution, represented by *. Given two discrete-time signals x 1, x 2,

UNIT-II Z-TRANSFORM. This expression is also called a one sided z-transform. This non causal sequence produces positive powers of z in X (z).

University of Illinois at Urbana-Champaign ECE 310: Digital Signal Processing

EE102B Signal Processing and Linear Systems II. Solutions to Problem Set Nine Spring Quarter

Discrete-Time Signals and Systems. The z-transform and Its Application. The Direct z-transform. Region of Convergence. Reference: Sections

Transform analysis of LTI systems Oppenheim and Schafer, Second edition pp For LTI systems we can write

Digital Signal Processing

ECE503: Digital Signal Processing Lecture 5

Module 1: Signals & System

Stability Condition in Terms of the Pole Locations

Introduction to DSP Time Domain Representation of Signals and Systems

PS403 - Digital Signal processing

EEL3135: Homework #4

Digital Signal Processing Lecture 4

EE 3054: Signals, Systems, and Transforms Spring A causal discrete-time LTI system is described by the equation. y(n) = 1 4.

Fourier Series Representation of

Chap 2. Discrete-Time Signals and Systems

Analog LTI system Digital LTI system

ECGR4124 Digital Signal Processing Exam 2 Spring 2017

Recursive, Infinite Impulse Response (IIR) Digital Filters:

Digital Filter Structures. Basic IIR Digital Filter Structures. of an LTI digital filter is given by the convolution sum or, by the linear constant

Discrete Time Systems

ELEG 305: Digital Signal Processing

Z-TRANSFORMS. Solution: Using the definition (5.1.2), we find: for case (b). y(n)= h(n) x(n) Y(z)= H(z)X(z) (convolution) (5.1.

Chapter Intended Learning Outcomes: (i) Understanding the relationship between transform and the Fourier transform for discrete-time signals

Lecture 11 FIR Filters

DSP First. Laboratory Exercise #10. The z, n, and ˆω Domains

(i) Represent discrete-time signals using transform. (ii) Understand the relationship between transform and discrete-time Fourier transform

Lecture 2 OKAN UNIVERSITY FACULTY OF ENGINEERING AND ARCHITECTURE

Examples. 2-input, 1-output discrete-time systems: 1-input, 1-output discrete-time systems:

2. Typical Discrete-Time Systems All-Pass Systems (5.5) 2.2. Minimum-Phase Systems (5.6) 2.3. Generalized Linear-Phase Systems (5.

Solutions. Number of Problems: 10

ECE503: Digital Signal Processing Lecture 4

y[n] = = h[k]x[n k] h[k]z n k k= 0 h[k]z k ) = H(z)z n h[k]z h (7.1)

Review of Discrete-Time System

Discrete-Time Systems

Like bilateral Laplace transforms, ROC must be used to determine a unique inverse z-transform.

Z-Transform. x (n) Sampler

III. Time Domain Analysis of systems

Final Exam January 31, Solutions

Digital Signal Processing:

Z-Transform. 清大電機系林嘉文 Original PowerPoint slides prepared by S. K. Mitra 4-1-1

( ) John A. Quinn Lecture. ESE 531: Digital Signal Processing. Lecture Outline. Frequency Response of LTI System. Example: Zero on Real Axis

UNIVERSITY OF OSLO. Faculty of mathematics and natural sciences. Forslag til fasit, versjon-01: Problem 1 Signals and systems.

APPLIED SIGNAL PROCESSING

Discrete-Time Fourier Transform (DTFT)

Linear Convolution Using FFT

INFINITE-IMPULSE RESPONSE DIGITAL FILTERS Classical analog filters and their conversion to digital filters 4. THE BUTTERWORTH ANALOG FILTER

ELEG 305: Digital Signal Processing

The Discrete-Time Fourier

Filter structures ELEC-E5410

21.4. Engineering Applications of z-transforms. Introduction. Prerequisites. Learning Outcomes

Multirate signal processing

Z-Transform. The Z-transform is the Discrete-Time counterpart of the Laplace Transform. Laplace : G(s) = g(t)e st dt. Z : G(z) =

Transform Analysis of Linear Time-Invariant Systems

ECE4270 Fundamentals of DSP Lecture 20. Fixed-Point Arithmetic in FIR and IIR Filters (part I) Overview of Lecture. Overflow. FIR Digital Filter

ECE 410 DIGITAL SIGNAL PROCESSING D. Munson University of Illinois Chapter 12

ECE538 Final Exam Fall 2017 Digital Signal Processing I 14 December Cover Sheet

Lecture 04: Discrete Frequency Domain Analysis (z-transform)

Lecture 5 - Assembly Programming(II), Intro to Digital Filters

Lecture 7 Discrete Systems

Digital Signal Processing I Final Exam Fall 2008 ECE Dec Cover Sheet

Discrete-Time Signals & Systems

Lecture 7 - IIR Filters

ECE-314 Fall 2012 Review Questions for Midterm Examination II

Multidimensional digital signal processing

Z - Transform. It offers the techniques for digital filter design and frequency analysis of digital signals.

University Question Paper Solution

Introduction to Signals and Systems Lecture #4 - Input-output Representation of LTI Systems Guillaume Drion Academic year

Module 4. Related web links and videos. 1. FT and ZT

Digital Filter Structures

LECTURE NOTES DIGITAL SIGNAL PROCESSING III B.TECH II SEMESTER (JNTUK R 13)

Lecture 28 Continuous-Time Fourier Transform 2

Transcription:

c J. Fessler, June 9, 3, 6:3 (student version) 7. Ch. 7: Z-transform Definition Properties linearity / superposition time shift convolution: y[n] =h[n] x[n] Y (z) =H(z) X(z) Inverse z-transform by coefficient matching System function H(z) poles, zeros, pole-zero plots conjugate pairs relationship to H(ˆω) Interconnection of systems Cascade / series connection Parallel connection Feedback connection Filter design Reading Text Ch. 7 (Section 7.9 optional)

c J. Fessler, June 9, 3, 6:3 (student version) 7. z-transforms Introduction So far we have discussed the time domain (n), and the frequency domain (ˆω). We now turn to the z domain (z). Why? Other types of input signals: step functions, geometric series, finite-duration sinusoids. Transient analysis. Right now we only have a time-domain approach. Filter design: approaching a systematic method. Analysis and design of IIR filters. Definition The (one-sided) z transform of a signal x[n] is defined by X(z) = x[k] z k = x[] + x[] z + x[] z +, k= where z can be any complex number. This is a function of z. We write X(z) =Z{x[n]}, where Z{ }denotes the z-transform operation. We call x[n] and X(z) z-transform pairs, denoted x[n] X(z). Example. For the signal the z-transform is Left side: function of time (n) Right side: function of z 3, n = x[n] =3δ[n]+7δ[n 6] = 7, n =6, otherwise, X(z) = k (3δ[k]+7δ[k 6])z k =3+z 6. This is a polynomial in z ; specifically: X(z) =3+7(z ) 6. n-domain z-domain x[n] = k x[k] δ[n k] X(z) = k x[k] z k For causal signals, the z-transform is one-to-one, so using coefficient matching we can determine the signal x[n] from its z- transform. We call this taking the inverse z-transform. Example. Given Y (z) =3z +7z 5, the corresponding signal is y[n] =3δ[n ] + 7δ[n 5]. For infinite duration signals there are some technicalities that we leave to EECS 36 and 45.

c J. Fessler, June 9, 3, 6:3 (student version) 7.3 Properties of the z-transform These are all easy to show from the definition of the z-transform. Linearity αx[n] +βy[n] αx(z) +βy (z) Time-shift Convolution (later) x[n n ] X(z) z n y[n] =x[n] h[n] Y (z) =H(z) X(z) The system function of an LTI system Summary of ways to characterize filters. Time domain: I/O relation / diffeq y[n] = Filter coefficients {b k } Impulse response h[n] Block diagram Frequency domain: Frequency response H(ˆω) System function H(z) Pole-zero plot (z domain poles, zeros, gain) The z-transform is particularly useful when we consider LTI systems. The z-transform of the impulse response h[n] of an LTI system is denoted H(z) and is called the system function. We will focus on causal systems, so the system function, also called the transfer function,isgivenby H(z) = h[k] z k = h[] + h[] z + h[] z +. k= Example. The two-point moving average filter has impulse response h[n] = δ[n]+ δ[n ]. Its system function is H(z) = + z. H(z) Magnitude Response.8.9.6.8.4.7..6.8.6 H(ω).5.4.4.3....5.5 π π/ ω π/ π

c J. Fessler, June 9, 3, 6:3 (student version) 7.4 Example. A filter has the system function H(z) =z 3. What does it do? Taking the inverse z-transform by coefficient matching we see so this system delays the signal by 3 samples. h[n] =δ[n 3], This is why a unit delay is often denoted by z in block diagrams. Example. Thez-transform is particularly useful for IIR filters. Suppose h[n] =a n u[n], for some number a with a <. Then H(z) = h[k] z k = a k z k = (az ) k = k= k= k= az. Does this hold for all values of z? No! We need to have az < i.e., z > a. The subset of the complex plane {z C : z > a } is called the region of convergence of the z-transform. More details in 36/45. Example. A filter has impulse response h[n] =δ[n]+(/) n u[n]. The system function is H(z) =+ z = z z. Notice that this is a ratio of polynomials in z. We call such system functions rational system functions, and they are the only kind we will need for designing FIR and IIR filters. The z domain versus the ˆω domain The z domain is a generalization of the frequency domain for causal signals such as suddenly-applied sinusoids. Notice the similarity: Frequency response of a causal LTI system: H(ˆω) = System function for a causal LTI system: H(z) = k= h[k]e j ˆωk. k= h[k] z k. Comparing, we see that if we replace z with e j ˆω (which is a complex value after all for any given ˆω) in the system function, then we obtain the frequency response: H(ˆω) =H(z) = H ( e j ˆω). z=e j ˆω This is why we use the notation H(ˆω) and H(z), because they are very closely related, by making the substitution z =e j ˆω. For such values of z, wehave z = e j ˆω =and z = e j ˆω =ˆω, so these values of z lie on the unit circle in the complex plane. So H(z) is more general because one can also consider values of z that are not on the unit circle, and this flexibility is helpful for filter design. Furthermore, z is easier to write than e j ˆω! Example. What is the magnitude response of the filter with system function H(z) =z 3?? H(ˆω) =H ( e j ˆω) =e j 3ˆω, so H(ˆω) = e j 3ˆω =. So the 3-sample delay system is an all pass filter. The magnitudes of sinusoidal components are unaffected. Where is DC? At ˆω =,soz =. Where are high frequencies? Near ˆω = ±π,soz =. The frequency interval π ˆω π corresponds to the entire unit circle. For eternal periodic signals, the z-transform is undefined, so the frequency domain remains our primary tool for those signals.

c J. Fessler, June 9, 3, 6:3 (student version) 7.5 Summary for FIR filters Time domain: Frequency response (ˆω): System function (z): Avoiding convolution Time domain (convolution): z domain (multiplication!): M M y[n] = b k x[n k], h[n] = b k δ[n k] k= H(ˆω) = H(z) = M k= j ˆωk b k e M b k z k. k= k= x[n] h[n] y[n] =x[n] h[n] X(z) H(z) Y (z) =X(z) H(z) Example. (Aperiodic input signal, so H(ˆω) is not directly useful!) x[n] =3δ[n]+δ[n ] H(ˆω) =e j ˆω e j ˆω y[n] =? To avoid convolution, use z domain. X(z) =3+z,H(z) =z + z, so Taking the inverse z-transform yields Y (z) =X(z) H(z) =(3+z )(z + z )=3z +3z + z 3 + z 4. y[n] =3δ[n ] + 3δ[n ] + δ[n 3] + δ[n 4]. Fact. Time-domain convolution of finite-duration signals is equivalent to z domain polynomial multiplication! Indeed, in MATLAB, one uses the conv command for multiplying polynomials! Proof of convolution property { } Y (z) = Z{y[n]} = Z{x[n] h[n]} = Z h[k] x[n k] = h[k] Z{x[n k]} by linearity of Z{ } k k = k h[k] X(z) z k by time-shift property of z-transform = X(z) k h[k] z k = X(z) H(z). Three laws of LTI systems (cf. Ohm s law) Given any two of the three {X(z),H(z),Y(z)} we can find the third as follows. All three are useful for different purposes. Y (z) =H(z) X(z) H(z) =Y (z) /X(z) X(z) =Y (z) /H(z)

c J. Fessler, June 9, 3, 6:3 (student version) 7.6 Finding H(z) from I/O relation We canuse therelationship H(z) =Y (z) /X(z) to find H(z) easily. Example. (Analysis) A -point moving average filter has the input-output relationship so in the z domain, using the linearity and time-shift properties: y[n] = x[n]+ x[n ] Y (z) = X(z)+ X(z) z = Dividing both sides by X(z) yields H(z) = Y (z) X(z) = + z. This approach is often the easiest way to find H(z), particularly for IIR filters. ( + ) z X(z). Pole-zero plots Example. Continuing the previous example, notice that H(z) = + z = z +. z The / is called the gain of the filter. The roots of the numerator polynomial are called the zeros of the system. In this example the only zero is at z =. The roots of the denominator polynomial are called the zeros of the system. In this example the only pole is at z =. We display the poles and zeros graphically using a pole-zero plot. gain =/ More generally, hereafter we will focus on rational system functions which are ratios of polynomials H(z) = B(z) A(z) = g i(z z i) j (z p j) = g (z z )(z z ) (z z M ) (z p )(z p ) (z p N ). B(z) is a Mth-order polynomial with M roots {z i,i=,...,m} called the zeros of H(z), because H(z i )=. A(z) is a Nth-order polynomial with N roots {p j,j =,...,N} called the poles of H(z), because H(p j ) =. Hereafter, often we will describe filters using the pole-zero plot as the graphical representation. The pole-zero plot (and gain) uniquely describe any rational system function. (New, and final, representation!) Example. A filter has the following pole-zero plot. Determine h[n]. gain =3 H(z) =3 (z j)(z + j) z =3 z + z =3+3z. Thus, by coefficient matching, h[n] =3δ[n]+3δ[n ].

c J. Fessler, June 9, 3, 6:3 (student version) 7.7 System functions of causal FIR filters Why were there poles only at the origin in the preceding two examples? Because FIR filters only have poles at the origin. Rewriting in two forms: M M h[n] = b k δ[n k] H(z) = b k z k = b + b z + + b M z M. k= k= H(z) = b z M + b z M + + b M z + b M (z z )(z z ) (z z M ) z M = b z M, where the z k s denote the M roots of the numerator polynomial, i.e.,them zeros of the system. Use MATLAB s roots function. Fact. A Mth-order causal FIR filter with b and b M,hasM zeros and has M poles at z =. We consider only the usual case of real filters (so the filter coefficients, the b k s, are real numbers). Then by the Fundamental theorem of algebra, all of the roots of the numerator polynomial are either real, or come in complex conjugate pairs. Fact. The zeros (and poles) of a real system are either real or come in complex conjugate pairs. Example. The system function for a FIR filter with impulse response h[n] =δ[n] δ[n ] + δ[n ] is: [ H(z) = z + z = z z + z z = ( + j )][ z ( j )] z, because the roots of the numerator polynomial Az + Bz + C are at z ± = B ± B 4AC B So the pole-zero diagram is: = ( ± j ). gain = The zeros are in complex-conjugate pairs. What about noncausal FIR filters? (Number of poles at the origin varies.) Examples. H(z) =z H(z) =z 3 3 For FIR filters, causal or not, any poles are at z =. poles at 3 zeros at

c J. Fessler, June 9, 3, 6:3 (student version) 7.8 The pole-zero plot and frequency response Why is the pole-zero plot useful? System design via frequency response! Relation between frequency response and system function: H(ˆω) =H(z) z=e j ˆω = H ( e j ˆω). So the magnitude response H(ˆω) = H ( e j ˆω ) From the general expression for H(z) above, the magnitude response of an FIR filter is H(ˆω) = ( H e j ˆω ) (e j ˆω z )(e j ˆω z ) (e j ˆω z M ) = b (e j ˆω ) M = b e j ˆω z e j ˆω z e j ˆω z M. So the magnitude response is simply the product of the distances from the point e j ˆω (on the unit circle) to all the zeros. In particular, whenever e j ˆω is close to a zero of the system function, the magnitude response will be reduced. And if e j ˆω = z m for one of the M zeros, then the magnitude response will be exactly zero. This makes it fairly easy to design filters that remove certain frequency components completely. And, given a pole-zero plot, we can roughly sketch the magnitude response! z =e j ˆω Ψˆω z =e jπ/4 z =e j The unit circle in the z-domain corresponds to the interval π ˆω π for the frequency domain. Example. A filter has the following pole-zero plot. Sketch its magnitude response. gain =3 For ˆω =, the distance to each zero is, so the magnitude response is 3 =6. Likewise for ˆω = ±π. As ˆω increases from towards π/, the distance to the upper zero decreases and the magnitude response drops towards zero. 6 H(ˆω) =6 cos ˆω π π/ π - ˆω Analytically: H(z) =3+3z so H(ˆω) =3+3e j ˆω =e j ˆω 6cosˆω, so the magnitude response is H(ˆω) =6 cos ˆω. For what sampling rate f s would this filter remove 6Hz hum? f s = 4Hz The book also discusses how to analyze the phase response graphically. This topic will be considered in more detail in EECS 45. 6

c J. Fessler, June 9, 3, 6:3 (student version) 7.9 First FIR filter design attempt: 6Hz notch filter. Equipped with the concepts developed thus far, we can finally attempt our first filter design! In many applications, such as measuring brain signals, 6Hz hum from AC power lines contaminates the signal x(t). Another example is home computer networks that operate over house AC wiring. To reduce the resulting interference, often we need to pass the signal through a filter that removes the 6Hz component while leaving other frequency components relatively unaffected. Such filtering can be done using RLC circuits, or by applying digital signal processing. x(t) Sample f s Filter H(ˆω) D/A (interpolator) y(t) x(t). 6Hz hum For simplicity of the algebra, we suppose that the sampling rate is f s = 48Hz. What is the corresponding digital frequency? ˆω =πf/f s =π6/48 = π/4. What is the ideal frequency response H(ˆω)? (Picture) of ideal H(ˆω) with nulls at ±π/4. This is called a notch filter. Design Where do we put zeros in the pole-zero diagram to eliminate the frequency component ˆω = ±π/4? See pole-zero diagram below with two zeros at ±e jπ/4. Where do the poles go? Two at origin needed for causal FIR filter. This system design looks promising, since it will certainly eliminate the 6Hz (ˆω = ±π/4) frequency component completely. Next we find the impulse response (needed for implementation) and the frequency response (to see if we met our design goal). Choosing gain= for now, we see from the pole-zero plot: [ ][ z e jπ/4 z e jπ/4] H(z) = z = z zcos(π/4) + z = z cos(π/4) + z = z +z. Thus the impulse response is: h[n] =δ[n] δ[n ] + δ[n ]. This is a very simple filter! It can be implemented using the following simple diffeq: y[n] =x[n] x[n ] + x[n ]. The frequency response of this FIR filter is H(ˆω) = e j ˆω +e j ˆω =e j ˆω ( cos ˆω ). Here is a plot of the magnitude response and phase response of this system, computed using MATLAB s zplane and freqz functions. Imaginary part.5.5 zplane Real part H(ω) Magnitude Response 4 3 π π/ ω π/ π Phase Response 5 h[n] H(ω) 5 5 π π/ ω π/ n π

c J. Fessler, June 9, 3, 6:3 (student version) 7. Design Our first design does remove the ˆω = ±π/4 frequency component completely, but unfortunately it also has the side effect of amplifying the high frequencies relative to the low frequencies. How can we attenuate the high frequencies somewhat? From the general expression for H(z) above, the magnitude response is H(ˆω) = ( H e j ˆω ) (e j ˆω z )(e j ˆω z ) (e j ˆω z M ) = (e j ˆω ) M = ej ˆω z e j ˆω z e j ˆω z M. So the magnitude response is simply the product of the distances from the point e j ˆω (on the unit circle) to all the zeros. In particular, whenever e j ˆω is close to a zero of the system function, the magnitude response will be reduced. So to reduce (but not eliminate) high frequency components (ˆω ±π), we can place a zero somewhere near z =e jπ =. Comparing H() = H() to H(π) =H( ), one can show that a zero at z = will equalize the gain at ˆω =and ˆω = π. Here is the resulting frequency response. Imaginary part.5.5 h[n] zplane 3 Real part H(ω) H(ω) Magnitude Response 4 3 π π/ ω π/ π Phase Response 5 5 n 5 π π/ ω π/ π Well, we have equalized the gain at ˆω =and ˆω = π, but we are still far from our ideal frequency response! What is the output of this filter if the input signal is x[n] =3+cos( π 4 n)+7( )n? Recall that x[n] =cos(ˆωn + φ) H(ˆω) y[n] = H(ˆω) cos(ˆωn + φ + H(ˆω)). For the system above, H(z) = [ z e jπ/4 ][ z e jπ/4][ z + ] z 3 H(ˆω) = H ( e j ˆω) =[ e j ˆω +e j ˆω ][ + e j ˆω ]. =[ z +z ][ + z ]= z + z 3 The frequencies of the input signal x[n] above are ˆω =, ˆω = π/4,andˆω = π. Substituting into H(ˆω) we have H() = ( )( + ) =, H(π/4) = (due to zeros at ±π/4 on unit circle), H(π) = ( + )( ) = = e jπ. Thus the output signal is y[n] =3 ++ cos(πn + π).

c J. Fessler, June 9, 3, 6:3 (student version) 7. A magnitude response plot shows the response to an eternal sinusoid. What about suddenly turned on signals cos(ˆωn)u[n], (e.g., after system first started)? After short initial transient response, the output signal approaches the steady state response. Design 3 How well can we do with a more sophisticated FIR filter? Here is a M =8filter designed by MATLAB s remez function. The frequency response plots were made using MATLAB s freqz function. The impulse response plots were made using MATLAB s filter function. Imaginary part.5.5 h[n].8.6.4. zplane 8 Real part n H(ω) H(ω) Magnitude Response.5.5 π π/ ω π/ π Phase Response 5 5 π π/ ω π/ π This is better since it has reasonably uniform gain in the passbands, but the notch may be somewhat wide. Design 4 How can we get even closer to the ideal frequency response? One way is to use the filter with the following pole-zero plot and frequency response. Imaginary part h[n].5.5.5 zplane Real part 5 n H(ω) H(ω) Magnitude Response.5.5 π π/ ω π/ π Phase Response π π/ ω π/ π

c J. Fessler, June 9, 3, 6:3 (student version) 7. What is fundamentally different about this filter? It is an IIR filter, since there are poles not at z =. Even though we have not yet studied IIR filters in detail, we can use what we have learned so far to find the system function H(z), the diffeq, and the frequency response. However, we do not yet know how to find the impulse response of an IIR filter. That comes in the next chapter. Assuming that the gain=, from the pole-zero we have that the system function is: H(z) = [z ejπ/4 ][z e jπ/4 ] [z re jπ/4 ][z re jπ/4 ] = z zcos(π/4) + z zr cos(π/4) + r = where r denotes the distance of the pole from the origin. To find the diffeq, wefirstcross multiply as follows: z cos(π/4) + z Y (z) z r cos(π/4) + r = z X(z), Y (z) [ z r cos(π/4) + r z ] = X(z) [ z cos(π/4) + z ]. Now (using linearity and shift property of z-transform), we convert back to the time domain: y[n] r cos(π/4)y[n ] + r y[n ] = x[n] cos(π/4)x[n ] + x[n ]. Rearranging yields the following recursive expression: y[n] =r cos(π/4)y[n ] r y[n ] + x[n] cos(π/4)x[n ] + x[n ]. The output at time n depends on the two past output values and on the current input and past input values. This is very easy to implement! Much easier than a 8-tap FIR filter. To understand the frequency response qualitatively, we return to the first factored form of the system function above: H(ˆω) =H ( e j ˆω) = [ej ˆω e jπ/4 ][e j ˆω e jπ/4 ] [e j ˆω re jπ/4 ][e j ˆω re jπ/4 ]. In particular, we find the magnitude response by taking the magnitude of both sides: H(ˆω) = ej ˆω e jπ/4 e j ˆω e jπ/4 e j ˆω re jπ/4 e j ˆω re jπ/4. In words, this means that for any frequency ˆω, the magnitude response is the product of all the distances from the point e j ˆω on the unit circle to all the zeros, divided by the product of all the distances from the point e j ˆω to all the poles. Being close to a zero decreases the magnitude response; being close to pole increases the magnitude response. For any frequency ˆω that is far from e jπ/4 in the notch filter example, the distance from e j ˆω to the zero and to its neighboring pole is almost the same, so the ratio is nearly unity and thus the magnitude response is nearly unity. The zero is slightly further away, so the magnitude response is slightly more than unity. How could we make the response closer to unity far from the zero? Move the pole closer to the zero. (But, as we will see in the next chapter, this makes the transient response longer, i.e., the impulse response decays to zero slower, which can be undesirable in some applications.

c J. Fessler, June 9, 3, 6:3 (student version) 7.3 The following figure shows the result of applying this filter to the example data considered much earlier. The transient response of the IIR filter is clearly visible. Input signal Input spectrum x[n] 5 X[k].5 5 5 Output nsignal 5 Output spectrum k y[n] 5 IIR filter, r=.85 b = [..4.] a = [...7] Y[k].5 5 5 n 5 k

c J. Fessler, June 9, 3, 6:3 (student version) 7.4 Interconnection of LTI systems Engineers build complicated systems by connecting simpler components. There are three principal ways of connecting two LTI systems: series, parallel, and in a feedback loop. Series connection Here are two LTI systems connected in series or in cascade: x[n] H (z) y[n] H (z) y[n]. In the time domain, we have seen that that overall system is LTI with impulse response h[n] =h [n] h [n]. Since time-domain convolution corresponds to multiplication in the z-domain, the overall system function is H(z) =H (z) H (z), the product of the two individual system functions. Example. Application: channel equalization for wireless communications. H (z) represents the channel (attenuation, multipath) and H (z) represents the equalizer that is designed to undo (invert) the distortions induced by the channel. Ideally, we would have H =/H. We must estimate the channel response H. We sent a training sequence with known x[n], observe the output y [n], and then use H (z) =Y (z) /X(z). These ideas are used in digital communications. Example. Application: (greatly simplified) Dolby noise reduction... gain= gain= High-boost for record: High-reduce for playback (inverse system: IIR!): (Picture) of frequency responses. Example. Putting two unit-sample delays in series is equivalent to a two-sample delay: x[n] z z y[n] is equivalent to x[n] z y[n]. Example. H (z) =g ( + z z+ )=g z In series: Pole-zero plots: and H (z) =g ( z )=g z z. z +z (z +)(z ) H(z) =H (z) H (z) =g g = g g z z z. H (z): For rational system functions: H (z): H(z) =H (z) H (z) = B (z) B (z) A (z) A (z). So the zeros of H(z) are all the zeros of the two systems connected in zeros, and likewise for the poles, except in cases where B (z) and A (z) share a common root, or where B (z) and A (z) share a common root, which is called pole-zero cancellation. H:

c J. Fessler, June 9, 3, 6:3 (student version) 7.5 Parallel connection x[n] - - H (z) H (z)? 6 - + y[n] Y (z) =H (z) X(z)+H (z) X(z) =(H (z)+h (z))x(z), so the overall system function is H(z) =H (z)+h (z) = B (z) A (z) + B (z) A (z) = B (z) A (z)+b (z) A (z). A (z) A (z) In this case we see that the parallel connected system has all the poles of the two component systems (unless there is pole-zero cancellation. But we can say very little if anything about the zeros in general. Example. H (z) =g ( + z z+ )=g z and H (z) =g ( z z )=g z. In parallel: z + z H(z) =H (z)+h (z) =g + g = (g + g )z +(g g ). z z z Single pole at z =and zero at z =(g g )/(g + g ). Pole-zero plots: H (z): H (z): H (for g =, g =): Feedback connection Example. automobile cruise control. (Picture of system H (z) with negative feedback H f (z)) Derivation: Y = H (X H f Y ) so ( + H f )Y = H X so H(z) = H (z) +H (z) H f (z). Location of poles and zeros of H(z) is complicated; indeed, part of the purpose of feedback is to stabilize and otherwise unstable system (e.g., Harriet airplane). Even if H (z) has poles that are outside the unit circle, which means it is an unstable system, it can still be the case that H(z) has all its poles inside the unit circle, meaning that it is stable, if the feedback system H f (z) is designed properly. Example. H (z) = az = z z a. If a>, then the system is unstable. The simplest possible feedback controller would be H f (z) =g for some constant g. z H (z) H(z) = +H (z) H f (z) = z a + z z a g = z z a + zg = z z( + g) a, so the system with feedback has a pole at z = a/( + g). If g>a, then the pole will be moved to within the unit circle, thereby stabilizing the system.

c J. Fessler, June 9, 3, 6:3 (student version) 7.6 Example. Noise cancellation. (Explained in lecture) x[n] mic + + y[n] H (z) w[n] H (z) mic H 3 (z) Environment For perfect noise cancellation, we need H 3 (z) = H (z) /H (z). If H (z) is FIR, then H 3 (z) will be IIR, which again brings us to the next chapter...

c J. Fessler, June 9, 3, 6:3 (student version) 7.7 Summary and other topics system function H(z): z-transformof impulseresponse. pole-zero plot / filter design. Response to suddenly applied complex exponential signals and sinusoids? Design of FIR bandpass filter? (zeros around unit circle except in passband) (Picture) of ideal H(ˆω) (Picture) pole-zero plot