Digital Signal Processing 2e Mitra PDF
Digital Signal Processing 2e Mitra PDF
va. Note that yi—1] i.a suitable initial approximation to @ 2.1 Develop a general expression for the culput y[t] of an LTT diserete-time system in terms of its inpus efor} and {the unit step response s(t] OF the systera 2.52 A periodic sequence #2] wich period 4 is applied as an input (o an LITI discrete-time system characterized by ‘an impulse response Aln| generating an ougpat yl). Is »[m] a periodic sequence” If its. what is its period? 2.33 Consider the following sequences: (i) x\ [1] = 28)n — 1] ~ 0.58[n ~ 3), (ii) xgln) = ~38ln — 1) + Sle +2), iit) halen] = 2ile| + dla — 1] — 38le — 3], and Gv) gin = =8|n — 2) —0.58[n — 11-4 34le — 3). Determine the following sequences obtained by a linear convolution of a pair of the above sequences: (a) yy [rT = xilml@Ar lal. (b9 vole) = x2iaI@Azlal, (6) yale] = vs feV@heba, and (a) vsfn} = «olm 1694 I. 2.34 Let gf] be a finite Jengih sequence defined for Ny Sm < Nz, with Nz > Ny. Likewise, let Ala} be a finite length sequence defined for Sd) My. Define ylv] = glal@aln]. (a) What is the length of lr]? Co) What is the range of the index m for which pla] is defined”110 Chapter 2: Discrete-Time Signals and Systems in the Time-Domain 2.35 Let ya} = x) Le 1@2ler| and Pf] = sie — Ny @Dazle — Nz], Express vl) in cerens of yf. 2.36 Let ghet] = sf }@>xol 20h] and hla} ala ifn — Mi}@saln — NABaxsb4 — 5]. Express hfe] in terms of 2.37 Prove that the convolution sum operation is commutative and distributive. 2.38 Consider the following three cequences: ' for =O, fore = 3, 9, otherwise: subi} =A (aconstand, tr) = ale, etn) Show that ral @1NI@ x1 kel ¥ ole Dr loI@xi lo. 2.39 Prove that the convolution operation is associative for stable and single-sided sequences, 2.40 Show thet the convolution of a lenuth-M sequence with a length-’ sequence leads to 4 sequence of length OfEN 0, 2AL Let xf] be a length. sequence given by 1 Osn a= (0, eierne Determine yln} = x[n}@.cln] and show thatitis «triangular sequence with amaximum sample value of NV. Determine the locations of the samples with the following values: 1/4, N/2 and N 2A Let xin} and hl] be two lengt-N sequences given by 1 OzneN—1 sll {6' Oiervise meno s tt (A ernie. Determine the location and the value of the lugest positive sample wf yin] = xfu}@hbr] without performing the coavelution operation 2.43 Consider two real sequences jin] and sin] expressed as a sum of theit respective even and odd parts, HUA] = heck) + Reali, and e011 = gevin] + goal], Bor each of the following sequences, determine if itis even of oud. heviM@xovln, —(b) toulO@zevlel, CV hoalal@enalal- 2.44 Let y(n] be the sequence obtained by a linear comolution of two eats finite-length sequences Af) and fa) For each pair of ya] and A] listed below, determine x|n}. The test sample in each sequence ts its value at n=. fa toll) = (1, 1. 1, 3, 30, 28, 48), tnt) = 1, 2. 3. 4), ¢b) Lobeald =f. 3, 6, 10, 15. 14. 12. 9, 5), df) =, 2.3, 4, SH, (9) Uy = (14 F8, ~3 — 1, 2475, 9.734 F125, 58+ jS.67), dala) = B+ ID 14H, 24 5h 2.45 Consider a causal discrete-time system characterized by a first-order linear, constant-coefficient difference egu- tuon given by. pin] =ayln = H+ bxlnd, 2 0, where sin] and x(n] are, respectively, the ovtput and inpat sequences, Compute the expression forthe output sample Wn} in terms ofthe initial condition y{—t) and the input samples,2.10. Problems am 44) Ts the system time-invariant if y{—1] = 17 Ts the system linear if y[—1] = 17 (by Repeat part (a) if vt~1] = 01 (c) Generalize the results of parts (a) and (b) to the case of an Nth-order causal discrete-time system given by Ey. 29%). 2.46 causal LT? discrete-time system is said to have an overshoot in is step response if the response exhibits an oscillatory bebavior with decaying amplitudes around a final constant value, Shaw that che system has no overshoot in i step response ifthe impulse response h{7] of the system is nonnegative for allln = 0, 2.47 "The sequence of Fibonacci numbers fiir] is a cual sequence defined by Fin)= fin= + fln—2) mer with 10} = Oand #11 = 1 {3} Develop an exact formula to calculate fr directly for any n. ly Show that ff) 1s the impulse zesponse of a causal L:TT system described by the difference equation [Joh89] yf] = yin — Vt yl 2 pate 2.48 Consider a first-order complex digital flter characterized by a difference equation yin} = ayn ~ Wan, where sir} isthe real input sequence, yf] = vel] + f¥imln is the complex output sequence with yreln| and yamin? denoting ts real and imaginary pacts, and = a + jb is u complex constant, Develop an equivalent two-output, single-input real difference equation representation of the abave complex digital filer. Show that the single-input, single-output digital filter colating ¥se(t} to x[/] is described by a second-order difference equation. 2.49 Determine the expression for the impulse response of the faetor-of-3 linear interpolator of Eq, (2.59), 2.50 Detcrmive the expression for the impuise response of the Factor-of-L linear interpotator 2.51 Let ALU], HU], and k{2) denote the fist three impulse response samples of the first-order causal LIT system ‘of Problem 2.56, Show that the coefficients of the difference equation characterizing this system can be uniquely determined fiom these impulse response samples. 2.52 Leta causal HR digitel ter be described by the difference equation Sanya & where v[se] and xr! denote the output and the input sequences, respectively, If Alm) denotes i show that “ YX parts - 4. (2.180) pulse response, Pk= DOM ESO. m= From the sbave result, show that pn = AUnI@dn. 2.83 Consider « cascade of two causal stable LT] systems characterized by impulse responses a” fn] and B® fn}, whore 0 < a «< Land 0 <8 < 1, Determine the expression for the impalse response hn} of the cascade 2.54 Determine the irapulse cesponse ¢{2t] of the inverse system of the LI discrete-time system of Example 2.28.112 Chapter 2: Discrete-Time Signals and Systems in the Time-Domain 2,58 Determine the impalse response gla] characterizing the inverse system of the LTT discrete-time system of Problem 2.45. 2.56. Consider the causal LTT systern deseribed by the difference equation yin) = poxtm) + prvi — 1) dyin Ue where x1] and y(s] denote, respectively, its input and output. Detersaine the difference equation representation of its inverse system. 2.87 Determine the expression forthe impulse response of each of the LTT systenis shown in Figure P2. Ayla fain}-@— fan Aled T Ain] hytn ery | = Sian] fran Agta a) ) Figure P22 2.58 Determine the overall impulse response of the sysiern of Figure P2.3, where Ian} = 20h — 38+ ade = Bin — N+ 2a + 2, hab) = Sal — S1-b 75] — 31-4 28 — 1] — Sn] + 38m + 1) aot fit -—fn,tn Ml Ala Figure P2.3 2.89 Prove that the BIRO stability condition of Ba, (2.73) also holds for an LTT digital filter with a complex impulse response. 2.60 Is the cascade connection of two stable LTI systems also stable? Justify your answer, 2.61 Is the parallel connection of two stable LTT systems also stable? Justify your answer, 2.62 Prove that the cascade connection of wo passive (lassless) ETI systems is also passive (lossless). 2.63 Is the parallel connection of two passive (hossless) LTT systems also passive (lossless)? Justify your answer. 2.64 Considera causal FIR filter of length + | with an impulse reyponse given by (glnll.n = 0.1... £. Develop the difference equation representation of the form of Ey. (2.81) where M+ N = L of acaisalfnite-dimensional HR Aigital filter with an impulse response (A(mH} such that fn} = gla] for ms O01... Le2.10. Problems. 13 2.65 Compute the output of the accumulator of Eq. (2.55) for an input z[n] = nuln} and the following initial conditions: (ar y{=1] = 0, and ¢b) »[=1] = ~2. 2.66, In the rectangular method of numerical integration, the integral on the right-hand side of Eq, (2.98) is expressed. m [C1 ptodra rca ony aus bevel te dle qt psn fe mts nea of une neon, 24 Uap neste ne-ayng nedsnt in soem cts yin} = { gue HA n= 0 2.68 Determine the (oral solution for n 2 Oof the difference equation yl] + 05yin — 1) = 2utnh, ‘with the initial condition y[—1} = 2 2.69 Determine the total solution for n 2 O-of the difference equation ya] + O.Lyler = 1] = 8.06y40— 21 = 2" eke}, ‘with the initial condition y{—1] = 1, and y{—2] = 0. 2.20 Detei the total solution for n 2 0 of the difference equation Yin) +0.Lyle ~ 1) —0.06yl0 — 2] = xln] —2efn — 1), with the initial condition y[—1] = 1, and yf-~2] = 0, when the forcing function is xf) = 2"1{n). 2.71 Determine the impulse response h[n] ofthe LI system described by the difference equation yin] + 0.5y[n — 1} = 210} 2.72 Determine the impulse response hn] ofthe LI system described by the differeace equation vin} + O.by[n ~ 1} —0.06ylir — 2] = ln] 241A = I 273 Show that the sum D929 [n¥ (44)"| converges if [Aj] < 1. 2.74 (a) Evaluate the autocorrelation sequence of each of the sequences of Problem 2.1. (b) Evaluate the cross-correlation sequence rxy[é] between the sequences x{] and y[n], and the crost-correlation sequence ray (€} between the sequences x[n] and w{n] of Problem 2.1. 2.78 Determine the autocorrelation sequence of each of the following sequences and show that itis an even sequence ineach case. What is the location of the maximum value of the autocorrelation sequence in each case? {a} x) [n] =e" uf], ow xim=(f QErEN oh 2.36 Determine the autocorrelation sequence and its period of each of the following periodic sequences,414 Chapter 2: Discrete-Time Signals and Systems in the Time-Domain (a) 11m) = costars), where M is a positive integer, () Hin} =n modulo 6, © alm) = (“1 2.77 Let X and ¥ be tworrandom variables. Show that E(X +) = E(X) + EU) and £(cX) = cE(X), where eis 2.78 Determine the valve of the constant « that minimizes the mean-square error E([X — x2), and then find the ‘minimum value of the mean-square error. 2.79 Compute the mean value and the variance of the random variables withthe probability density fonctions listed betow (Pars) (a) Cauchy distribution: py (x)= 72, @) Laplacian distribuion: p(s) = Ge, (©) Binomia! distribution: py) = They (pe — PY — Oy (@) Poisson distribution: py (0) = Pq “PE See— 8). (©) Rayleigh distribution: px (x) Bre A pes), In the above equations, 5() is the Dirac delta function and (x) is the unit step function, 2.80 Show that if ihe ewo random variables X and ¥ are statistically independent, then they are also linearly indepen- dem. 241 Prove Eq. (2.124). 2.82 Let x(n} and v(n] be ewo statistically independent stationary random signals with means mx and my, and variances o? and 9%, respectively. Consider the random sigoal u{rc] obtained by a linear combiaution of x{n} and yin), ie. vf] = axin] + byl], where @ and b ase constants, Show that the mean my and the variance a2 of ula] are sive by my = ame + bmy anda? = a2o2 + 6202, respectively. 2.83 Let cla] and y(n) betwo independent 2er0-mnean WSS random signals with autocorrelations xn and qs fr. respectively. Consider the random signal ulm} obtained hy a linear combination of x(n] and yf), be. vial — xin] + Bylo], where @ and & are constants. Express the autocorrelation and eross-correlations, gyuDa} Gola and ryt], i terms of s(n and dysfre). What would be the results if either x{n or yl] was zero-mean? 2.84 Prove the symmetry properties of Eqs. 2.1664) through (2.1664). 285 Verify the inequalities of Eqs. (2.167a) through (2.1674) 2.6 Prove Bq. (2.168), 2.87 Determine the mean and variance of a WSS real signal with an autocorrelation function given by 9+ 110 + Laer = tea lO = Teh oF2.14. Manas Exercises 115 2.11 Mar.as Exercises M21 Write a MATLAB program to generate the following sequences und plot them using the function stem: (a) unit sample sequence |r} (b) unit step sequence fn], and (¢) ramp sequence n(n). The input parameters specified bby the user are the desired length 1 of the sequence and the sarmpling frequency Fin Hz. Using this program generate the fist 100 samples of each of the above sequences with a sampling rate of 20 kHz. M22 The square wave and the sawtooth wave are two periodic sequences as sketched in Figure P2.4, Using the functions sawtooth and square write a MATLAB program to generate the above (wo sequences and plot them uasing the function sem. The input data specified by the user are: desired length Z of the sequence, peak value A, and the period N. For the square wave sequence an additional user-speciied parameter is the duty cycle, which is the percent of the period for which the signal is positive. Using this program geaecate the first 100 samples of each of the above sequences with a sampling rate of 20 kHz, a peak value of 7, a period of 13, and a duty eycle of 60% for the square wave. \ ull ll sil" fe “Te oa” J @ A wl . ot 1 -4 ) Figure P24 M23 (a) Using Program 2.1 generate the sequences shown in Figures 2.16 and 2.17, (b) Generate and plot the complex exponential sequence 2.5¢-©4+/7/9"" for Q00. M 2.10 Write a Maran program to compute the square root using the algorithm of Eq. (2.179) in Problem 2.30 and. show that the output y{/t] of this system for an input x{a] = azetn) with y{—1] = 1 converges Wo /@ as n —+ 00. Plot th: emor as a function of n for several different values of @. How would you compote the square-root of a number a ‘with ¢ value greater than one? M2.11 Using the function impz write a MATLAB program to compute and plot the impulse response of a causal finite-dimensional discrete-time system charscterized by a difference equation of the form of Eq. 2.81). The input data to the program are the desired length of the impulse response, and the constants {4} and id} of the difference ‘equation. Generate and pict the fist 41 samples of the impulse response ofthe system of Bq, (293). (M 2.12 Using Program 27. determine the autocorrelation and the cross-correlation sequences of Problem 2.74. Are ‘your results the samme as those determined in Problern 2.74? M213 Modify Program 2.7 to determine the autocorrelation sequence of a sequence comupied with a uniformly distributed random signal generated using the M-function vans. Using te modified program deronstrate that the autocorrelation sequence of a noise-cormupted signal exhibits a peak at zero lag. M214 (a) Writea MATLAB program to generate the random sinusoidal signal of Eg. (2,140) and plot four possible realizations of the random signal. Comment on your results. oh Compute the mean and varisnce of a single realization of the above random signal using Eqs. (2.174) and (2.1740). How close are your answers to those given in Example 244? M25 Using the M-function rand generate 2 uniformly distributed length-1000 random sequence it the range (1. Using Eqs. (2.174a) and (2.1746), compute the mean and variance of the random signalDiscrete-Time Signals in the Transform Domain In Section 2.2.3 we pointed out that any arbitrary Sequence can be represented in the time-domain as a weighted linear combination of delayed unit sample sequences [5{n — kj]. An important consequence of this representation, derived in Section 2.5.1, is the input-output characterization of an LTI digital filter in the time-domain by means of the convolation sum describing the output sequence in terms of a weighted linear combination of its delayed impulse responses. We consider in this chapter an alternate description, of a sequence in terms of complex exponential sequences of the form {e#"} and {z7") where z is a complex variable. This leads to three particularly useful representations of discrete-time sequences and LTI discrete-time systems in a transform domain! These trunsform-domain representations are reviewed here along with the conditions for their existence and their properties. Maria has been used extensively to illustrate various concepts and implement a number of useful algorithms. Applications of these concepts are discussed in the following chapters. ‘The first transform-domain representation of a discrete-time sequence we discuss is the discrete-time Fouricr transform by which a time-domain sequence is mapped into a continuous function of a frequency variable, Because of the periodicity of the discrete-time Fourier transform, the parent discrete-time se- ‘quence can be simply obtained by computing its Fourier series reoresentation. We then show that for a length-N sequence, N equally spaced samples of its discrete-time Fourier transform are sufficient to describe the frequency-domain representation of the sequence and from these N frequency samples, the original V samples of the discrete-time sequence can be obtained by a simple inverse operation. These NV frequency samples constitute the discrete Fourier transform of a length-N sequence, 2 second transform- dosmain representation, We next consider @ generalization of the discrete-time Fourier transfosm, called the z-transform, the third type of transform-domain representation of a sequence. Finally, the transform domain representation of a random signal is discussed. Each of these representations is an important tool in signal processing and is used often in practice. A thorough understanding of these three transforms is therefore very important fo make best use of the signal processing algorithms discussed in this book. 3.1. The Discrete-Time Fourier Transform The discrete-time Fourier transform (DTFT) of, simply, the Fourier transform of a discrete-time sequence xl] is a representation of the sequence in terms of the complex exponential sequence [e~/"} where vis the real frequency variable. The DTFT representation of a sequence, if it exists, is unique and the original sequence can be computed from its DTFT by an inverse transform operation. We first define the forward transform and derive its inverse transform. We then describe the condition for its existence and summarize its important properties. periodic sequences ean be represented in the Requency domain by means ofa disecete Fourier series (see Problem 3:34) ayDiscrete-Time Signals in the Transform Demain 118 Chapter 3: 3.1.1 Definition The discrete-time Fourier transform X(e/”) of a sequence x{n] is defined by Xe) = SE xlewte, G1) In general Xe!) is a complex function of the real variable « and can be written in rectangular form as KX (CI?) = Xrelel*} + jXimie?), G23 where Xi-(e/) and Xim(e/) are, respectively, the real and imaginary parts of X(¢!”), and are real functions of », X(e!") can alternately be expressed in the polar form as X (ei) ae |X (6/0/00), 3.3) where (ce) = arg X(e/*)}. GA) ‘The quantity |X (e/*)| is called the magnitude function and the quantity 8(w) is called the phase function with both fonctions again being real functions of w. In many applications, the Fourier transform is called the Fourier spectrum and, likewise, 1X (e/*)| and @(w) are referred to as the magnitude spectrum and phase spectrum, respectively, The complex conjugate of X (e/®) is denoted as X*(e!®). The relations between the rectangular and polar forms of X (e/*") fotlow from Eqs. (3.2) and (3.3), and are given by Xrelel*) = | Xe!) cos 6(e0), Ximle!) = [X (e!*)] sin Oo), 1X Ce)? = x2 ef) + XP (eM), _ Xim(e/) tan @fw) = Kee?) It can be easily shown that for a real soquence x{71]. |X (e/”)] and Xe(e/*) are even functions of w, ‘whereas 6(00) and Xim(e") are odd functions of w (Prublem 3.1), Note from Eq. (3.3) that if we replace 9(co) with 8¢co) + 2k, where k is any integer, X(e?) remains ‘unchanged implying that the phase function cannot be uniquely specified for any Fourier transform. Untess otherwise stated, we will assume that the phase function (co) is restricted to the following range of values, a1 <0@) ‘Time-shitting: xin tial ee Geeley Frequeney-shitiing ef" gf] G (ere) Differcotiation ati) in frequency nell 1 be Comoluton gal tn} Giei® cote Modulation alalinel EIB Geo Heilya9 Parevatsretion > elaitint = 2 f” Giel)t1%e do Sequence Discrete-Time Fourier Transform. Xeeiry Xe) ston} xe) Retebnl} Kester) = F1xCet + xem) Fitri Xeated®) = HX Ce) — XM Hy cole) Xectely eal] Kanto Note: Xes(e/} and Xeg(e/") are the conjugate-symumetric and conjugate-antisyrametri¢ parts of X(ei#), respectively. Likewise, xosfl and Xcein| are the conjugate-symumetric and conjugate-antisymmetsic parts of x[a. respectively,3.1. The Discrete-Time Fourier Transform 127 ‘Table 3.4: Symmouy reluions of the discrete-bne Fourier ansform of a real sequence. Sequence Discrete-Time Fourier Transferm, ste rest] Keele”) Soult Mintel) Keefe) = xte ey Nieto) = Keeler Symmetry relations Xighell) =» Xi e224) [rte = 1x eI) argh ie} = — migtxceJ)y Note: sevfa) aad xpa(7) denote the even and odd pans of x12}, respectively EXAMPLEST Wh corsquse the eewngy nf the mequence typ [mi of Bay C121. Froey ig (HLM meee Mp piety dia = [aaa Honce, ip pla} i a Binte-enerpy sequen Recall from Eq, (2.105) that the autocorrelation sequence rg[¢] of gli) can be expressed as DY stelsi-€ - oi = 2l@al-- G.20) rl Now from Table 3.3, the DTFT of g{~€] is Gle~). Therefore, using the convolution property of the DTFT given in Table 3.2, we observe that the DTFT of g[£]@al—E) is given by G(e!*)Gie~!) IG(e!#)/?, where we have used the fact that for a real sequence z{n], G(e!”) = G*(e/). As a result, the energy density spectrum Sege*) of a real sequence g[n] can be computed by taking the DTFT of its autocorrelation sequence reglél, Le, 2p128 Chapter 3; Discrete-Time Signals in the Transform Domain Analogously. the DTFT S,4(e!) of the cross-correlation sequence rg4[é] of two sequences gf] and ‘h[n] is called the cross-energy density spectrum: Sen6eF) = SO ry (flee (3.22) 3.1.6 OTFT Computation Using MATLAB The Signal Processing Toolbox in Mart.spincludes anumber of M-files toaid in the DTFT-based analysis of Giserete-time signals. Specifically, the functions that can be used are freqz, abs, angle, and unwrap, In addition, the built-in MaTLas functions rea and imag are also useful in some applications. The function Ereqz can be used to compute the values of the DTFT of a sequence, described as a rational function in ein the form of Eq, (3.17) at a prescribed set of discrete frequeney points @ = wr. For a reasonably accurate plot, a fairly large nurober of frequency points should he selected. There are various forms of this function: Ho> freqz(num,den,w), Hos freaz(nun,den,£,PTI, [H,w] = freqetmum,den,k}, [H,£] = freqz(num,@en,k, FT), [Rew] = freqz (num,den, x, ‘whole’, Ix, £] = freqz(num,den,x,/whole’,PT), freq2(num, den). The function trea returns the frequency response values as a vector H of a DTFT defined in terms of the vectors mum and Gen containing the coefficients (p:} and {d;), respectively, at a prescribed set of frequency points. InH > treqz (nium, den. w). the prescribed set of frequencies between O and 27 are given by the vector. InH = freaz (num, den, f, PD) the vector £ is used to provide the prescribed frequency points whose values mustbe in the range Oto FT /2 with F' being the sampling frequency. The {otal umber of frequency points can be specified by Ic in the argument of £reqz, In this case, the DTFT Values H are computed al k equally spaced points between () and 2, and returned as the output data vector w or computed at k equally spaced points between O and F'T/2, and returned as the output data vector £. For faster computation, it is recommended that the number & be chosen as a power of 2, such as 256 of 512, By including ‘whole’ in the argument of freaz, the range of frequencies becomes 0 to 27 or 0 to PP, as the case may be. After the DTFT values have been determined, they can be plotted either showing their reat and imaginary parts using the functions real and imag or in terms of their magnitude and phase components using the funetions abs and ang le. The function angle computes the phase angle in fadians. If desired, the phase can be unwrapped using the function unwrap. freqz (num, den) with no ‘cutput arguments computes and plots the magnitude and phase response values as a function of frequency in the current figure window. We illustrate the DTFT compuiation using Mar. 4p in the folk ng example. EXAMPLES Programs 3,\ canbe employed telecine the vuluer nf the DTFT of wtmal asquetice deteriboe Jie Aexciona Aanction fm e~-*" rier Traterotie Cea Hea: tie desired fenath of orp3.1. The Discrete-Time Fourler Transform, 129 6 emer eie: gee = © Compute ws Ope rRiDt hoe /Feesiurmum, Oey, w) seauie elev wid abe ch} fy gris. Sitla("Hagh(tude Bpgetinim!) slabel ( \emaga 5uh0 2 oh sunnier (2.2541 Bt ato (Nl) parkd 11+ Magnitude!) rartiaaett ‘The par dara guested hy the peg ke the mirabes uf Lequericy pains head whic the DIFF isto be the vectin rind es eitaining ye coelficsenis ofthe numezaine and theddedomarator of tc FITPT respectively, powersai'e "!Theas wycnaes sat oa entctes aide spun: bracket. The pinyin Corpus the EYTE'T ilies athe presesibel Ueipienuy clots anal jkots Ue real seed itingincy pure, aay! (her mage ane hive wpectiome. It-stojl be:eite! thet heme of the’ nyrummeity petty of Mie DUET 0 real aejueice a indieste i Take 3-3 the DTT is reslaniee! ony ut ke ccpully spuped valies af wi Berieee O aed “Ad it exanryple We edn er the phiting of te Flay ETT: RR = Oe + ORE — one + One Teast TSE > ee pa ‘The impul da sed fi tie: DFT ten abure-are aa follow: h = ane nium = {000m ous o-noaT den = fk 2 144 ‘Toe preynam fist commpuies the TTT a the peciied 25% dicrete lepqucncy ata wagnally spiced Bear (nd ar, H then Sompytes the sal and iccagioury poet. andthe moeysituele aad phase of llc TET ul hone fragoemcien sehen posed a shea i Pipe. As conte ene (rots eter. the ythave-spream diaplaps a iscuetienaty ia 3594 around sy = 072. Thi scondinity, can be nena! wing the fusetion unieeas ae he nares have plorti a thown pn Pine 1 3.1.7 Linear Convolution Using DTFT At important property of the DTT is given by the convolution theorem in Table 3.2, which states that the DIET ¥(e/*) of a sequence y[n] generated by the linear convolution of two sequences, gl] and Abul. is simply given by the product of their respective DTFTs, Gée!#) and H(e!”). This implies that the linear130 Chapter Discrete-Time Signals in the Transform Domain ep mame , 7\] os /\ 4 / 1 Be J \ a oe ae fw ©) _ Mognice gor i oa os oe @ Figure 3.5: Plots ofthe real and imaginary parts, and the magnitude and phase spectrums of the DTFT of Example 3.8 wrapped phase specs “o 02 ue os a Figure 3.6: Unwrapped phase spectrum of the DTFT of Example 3.8. convolution [2] of two sequences, gin| and hf], can de implemented by computing first their DTFTs, GC(e'™) and H(e?), torming the product ¥ (e?”) = Ge!) (e/"), and then computing the inverse DTFT of the product. In some applications, particularly in the case of infinite-length sequences, this DTET-based approach may be mote convenient 10 carry out than the direct convolution.3:2. The Discrete Fourior Transform 134 3.2 The Discrete Fourier Transform Tn the case of a finite-length sequence xi], 0 N- itis trencated to the first WV’ samples, whereas, if R= N, the vector x is zero-padded at the end to make it into a length-N’ sequence, Likewise, the function ££ {X) computes the R-point IDFT of a vector X, where R is the Jength of %, while 1 ££ (, 1} computes the IDFT of X, with the size N of the IDFT being specified by the user. As before, if R > N, it is automatically truncated to the first V samples, whereas, if R < N, the DFT vector x is zero-padded at the end by the program to make it into a length-V DPT sequence, In addition, the function di tmex (N} in the Signal Processing Toolbox of Marian can be used to compute the N x N DFT matrix Dyy defined in Fq (3.40). To compute the inverse of the N x DET ‘matrix, one can use the function con j (atm (N}17N. We illustrate the application of the above M-fites in the following threr examples. EXAMPLE 10 hing Micri.na we deaucmine te f-poune 1 (UIA) Uf the: Foltowiay Nope mmypence Ce eee alt= [fh las To tae wl so ct nse Pepe 3.2 girth Belen, ‘rang econ: che peng requmee Ue eng taal, Ta eevore cormce DFT vali Mf mos be gresterihan Gr const an N., Atte thevage entered. it cummputen the Mf-pnind DFT amt pets the ctighnal NV point sequence. wnt the rangi seal phase lf the DPT acquumee ax indica i igre 9:7 for N ne B und Af = 16 at NET Compltation At he per cm dama. A Maar buco”)3.2. The Discrete Fourier Transform 135, Original ime-dormin sequence woe ep ee eb O8 | a | Bou 02 % 1 2 3 405 6 Tents fa) Mgntute of DFT sts Pac ofthe DFT stops . 1 is 2 2 ® weet 5 $ % 1s 5 % is Frewery ide k equ nde (by Figure 3.7: (a) Original length. sequence of Eq, (3.44) and (b) its M-point DFT for N = @ and M = 16.196 ‘Chapter 3: Discrete-Time Signals in the Transfarm Domain % Compute ita N-point IDFT us LEC: A Plot the DPT and its IDPT wed imy stem{k-1,U) selabel (“Frequency index k'}: ylabel (‘Amplitude’) Eitle("Original OFT samples’) pause subplot (2.1.1) n= O:2:N-1y stenin. real(u)) title(*Real part of the time-donain samples") xlabel ("Time index n*}: ylabel (*Ampli tude") subplot (2,1, 2) stem(n, imag(u}) title(Imaginary part of che tine-donsin samples’) wlabel ("Tine index n'}) ylabel (‘Amplitude’) {As the program is run, i calls for the inpat data consisting of the length of dhe DET and the length of the IDET. It then compates the IDFF of the ramp DET sequence af Eq. (3.45) and plots the original DFT sequence and its [BFT ‘as indicated in Figure 3.8. Note that even though the DFT sequence is real, its IDFT is a complex time-domain sequence as expected, IENAMPLE 343. Lewr = 3aand A = 16 for the finine-tength sequence x(a} of Eq. (3.33). From Eq. (3.36) its \6-poiat DFT is therefore given by &, fork 3, 8, fork = 13, 0, otherwise ‘We desermine the DTFT X (e/* of the length-16.x{] by computing a $12-point DFT using the MATLAB program indicated betow. x "Program 34 § Wumerical Computation of TPT Using DFT 4 © § Generate the length-16 sinusoidal sequence i = 0:25; x = cos(2#piske3/16); N Compute ite 5iz-point Der K > fet ix: HE = eft (x,512); ‘Plot the Frequency response be 02511; BLOtIL/512 abe (xe) ) hold plot tk/16-abetx). '071 slabel (‘Normalize sngular frequency’) yilabel ("Nagnitude’) Figure 3.9 shows the plot of DTFT X(e!™) along wilh the FT samples (K]. As indicated in this gure the DET vais HUH), intone by cles, are precisely the requ samples of he TFT fe!) af ao = 8,33. Relation between the DTFT ang the DFT, and Their Inverses 197 Origins! DFT samples - fea 1 t m il pe Real par of the tne-domsia samples !magimary part ofthe time-domain seonples Anplitade Angie poet] | 04 -— Fos — % Sg ™ “ ja “] “Lt poeta tee t Ge 8 ow ne My Pa 6 ‘Dime index a Tine index 0 (by © Figure 3.8: (a) Original DFT sequence of length K' = B, and (b) its 13-point IDFT. Figure 3.9: The magnitudes of the DTFT Xie) and the DFT XTK] of the sequence xf] of Bq. (3.33) with r = 3 and # = 16. The DTFT is plotied as a solid line and the DET sazaples are shown by circles. 3.3 Relation between the DTFT and the DFT, and Their inverses We now examine the explicit relation between the DTET and the V-point DFT of a Tength-¥ sequence, and the relation between the DTFT of a length-M sequence and the N-point DFT obcained by sampling the DTFT,138 Chapter 3: Discrete-Time Signals in the Transform Bomain 3.3.1 DTFT from DFT by Interpotation As indicated by Eq, (3.23), the W-point DFT X{&] of length-N sequence x{rt] is simply the frequency samples of its DTFT X (e’*) evaluated at N uniformly spaced frequency points, © = ay = 2rk/N radians, @ = & = N—1. Given the W-point DFT X[k] of a length-N sequence, it is also possible to determine its DFT X(e!*) uniquely. To this end, we first determine x[:r] using the IDPT retation of Eq. (3.26) and then compute its DTFT using Eq. (3.1), resulting in x wipe xe) = So xtmge = = [s xuawe] jon w= fo Lima =r Sete ie, us & where we have used Eq. (3.24). Now the right-hand summation in the above expression can be rewritten as y eden Ink/Nn een 28) 4% oe aR eat HPL gin (ONS2=4) =F ilen B AN) si (onstaey : a eS aan Substimuting Eq, (3.47) in Eq. (3.46) we obtain the cesired relation expressing Xe!) in terms of X{]: Del gi Xe = = xt =m vg fle @ak/M W123 aay 3.3.2 Sampling the DTFT Consider a sequerice (x[n]} with a discrete-time Fourier transform (DTFT) X(e!*). We sample X(e!"”) at N equally spaced points a, = 27k/N, 0 < k = N ~ 1, developing the N frequency samples (X(e!")}. ‘These W frequency samples can be considered as an N-point DET ¥[k] whose N-point inverse DET is a Jength-M sequence {y[n]}],0 wie, Gas where Wy = e7/27/™), An inverse DPT of ¥[&] yields Nel H m= aw” vl & YEW (3.50)8.3. Relation between the DTFT and the DFT, ang Their Inverses 139 ‘Substituting Eq. (3.49) in Eq. (3.50), we get ww yim = > neh fab to = ws 1 kins ya [5 wy as Recall from Eq. (3.28) that 1, for anemia, 0, otherwise. (3.52) Making use of the above identity in Bq. (3.51), we finally arrive at the desired relation vin So atetmay, Osmew—1 oss ‘The above relation indicates that y[7] is obtained from x[n) by adding an infinite number of shifted replicas of an) to x[2t], with each replica shifted by an integer multiple of N sampling instants, and observing the sum only for the interval 0 = n = W — 1. To apply Eq. (3.53) to finite-length sequences we assume the samples outside the specified range are zeros. Thus. if x{n] is a finite-length sequence of length M loss than or equal to V, then yl] = x(n] for 9 > N:140 Chapter 3: Discrete-Time Signals in the Transform Domain Yvert = Tater asa) Xitel Define u new sequence xe] obtained from x|2r| by augmenting with Af — N zero-valued samples seal =f 2.55) Making we of s-[] in By. (3.54) we arrive at tei) = 7 abel 3561 witch Is Seen to be an Mf-point DET X,(¢| of the Jength-Af sequence a-la|. The DET X.1é] can be computed very efficiently using the FFT algorithm if Mf is an integer power of 2 ‘The Matias function frecu, described in Section 3.1.6, employs the above approach to evuluate the frequency response of a rational DTFT expressed as a rational tunetion in e~#" ata prescribed sec of diserete frequencies. Ireomputes tie DFTs of the ourterator andi the denominator separately by considering each as finite Jength sequences, and then expresses the ratio of the DFT samples at cach frequency point to evaluite the DTFT. 3.4 Discrete Fourier Transform Properties Like the DTET. the DFT also satisfies a number of properties that are useful in signal processing appli- cations. Some of these properties are essentially identical to those of the DTFT, while some others are somewhat different. A summary of the DPT properties are included in Tables 3.5. 3,6, und 3.7. Their proois are again quite straightiorward und ave been lefl as exercises, Most of these properties can also be verified using MaTLan. We discuys next those properties that are different from their counterparts for the DTFT. 3.4.1 Circular Shift of a Sequence This property is analogous to the nme-shifting property’ of the DTET as given in Table 3.2, but with a subtle difference. Let us consider length-4 sequences defined for 0 < n = N ~ 1. Such sequences have sample values equi to zero form < O and a > W. If xin] is such 2 sequence, then, for any arbitrary integer 1, the shifted sequence 1)[n] = alr — nyL is no longer defined for the range 0 0 (right circular sift, the above equation implies alt ~ tole form =n eN= 1, XIN = habit], for 0 St = ry B58 ‘The concept of a circular shift of a finite-length sequence is illustrated in Figure 3,10. Figure 3.101) shows a length-6 sequence «|11]. Figure 3.10(b) shows its circularly shifted version shifted to the right by Fong =r mala3.4. Discrete Fourier Transform Properties 441 ‘Table 3.5: General properties of the DET. Type of Property Length-N” Sequence v-point DFT girl cu Att Hii Linearity xin + Bia GUL + BATA Circular time-shifting alts = teabw| wacky Circa se, Seequency-shifling weed Ce Bl Duality Gint Nigi-By semen realy OSE elle — mis) cutie) wiution Modulation slatatn wa wt Parseval's relation Stee? = gp Yo ee? = i Length-1 Sequence N-point DET sled aT int Kw] Toba XK Reletalt Xposlkd = $18 ee XR J lni{ end) X pool] = FUT — XRD Sess Re( Xf} Areal] sma XE Note: pest] and ges] are the periodie conjugate-symmetric and periodic conjugate-anusvmmettic pans of x], respectively. Likewise, Xpeslt and Xpeq[K] are the periodic conjugate symmettic and periodic canjagate-antisymmettic pats of X{k|, respectively,142, Chapter 3: Discrete-Time Signals in the Transform Domain ‘Table 3.7: Symictey properties of the DFT of a real sequence Length-¥ Sequence N-point DET Xk] = Ref Xk) + 4 ImiXtED speln] Ref X11) pol! tnx) KI = XtKiy Re X[K] = Re XU-2>y7} Syummetry relations Im X[k] = — Im Xk] [UAL = XT) arg XK] Note: pel} and spol] are the periodic even and periodie add parts of [| respectively, orzses * cr sas” OTe sas @ a © gure 3.10 Mustration oF a circular shift ofa finte-lengih sequence, (a) abn}, (b) sl ~ igh = an + S]ghe and (alta — Aig] = xt + 2g. | sampte period or, equivalently, shifted to the left by 5 sample periods. Likewise, Figure 2,40(c) depicts ‘ts circularly shifted version shifted to the right by 4 sample periods ot, equivalently, shifted to the left by 2 sample periods. As can be seen from Figure 3.10(h) and (¢), a right circular shift by 1, is equivalent to a left circular shift by N — 2 sample periods. 1t should be noted that a circular shift by an integer number ni» greater than J is equivalent (oa circular shift by 1.) y- If we view the length-W sequence displayed on the circumference of a cylinder at N equally spaced points, then the circular shift operation can be considered as a clockwise or anticlockwise rotation of the sequence by ng sample spacings on the cylinder.3.4, Discrete Fourier Transform Properties 143, a all -_ te 2 wats Figure 3.11: Two lenpth-4 sequences. B42 Cireular Convolution “This propery is analogous to the lineur convolution of Eg. (2.64). but with a subtle difference. Consider two length-# sequences, ¢{] and hf] respectively. Their linear convolution reselts in a length-(2N — 1) sequence yz{n] given by sulal =F elmihte = mk On ON = nab (3.59) where we have assumed that both \V-length sequences have been zero-padded to extend their lengths to 2N — 12 The longer length of ye [2] results from the titne-reversal of the sequence Alm] and its linear shitting to the right. The first aonzero value of yz] is y,[0] = g[0J[0], and the last nonzero value of pebulis yel2N ~ 2 = glN ~ 1ALW ~ 1). ‘To develop a convolution-like operation resulting in a tength-N sequence yc[r], we need to define 4 circuiar time-reversal and then apply a circular time-shift. The resulting operation, called a circular convotation. is defined below-* wot ela) = >> glalh [tn — my]. (3.60) ao) Since the above operation involves two length-N sequences, it is often referred to as an N-point cércular convolution, denoted as. velnl = gin@ kb. Gon Like the linear convolution, the circular convolution is commutative (Problem 3.65), ie. sla@ hla = hinl® gb) (3.62) ‘We illustrate the concept of circular convolution through several examples. EXAMPLEALS — Bétermine the 4-posn circnlar eonvsitntion of the bwo kengtb-§ sexpaciccs gel and jn ve by sere tt 2 0/1), Mets G che abil shisched én Figure 3.01 Ube real oa ength-itsequence yf} green by Hine) = 32 xf ihliw medi, Os act Freue gs (4250, yc TOL i ven oy As indicated in Section 25.1, the sum of the indices of each sample product inside the summation ix equal to the index af the ‘sample being generated hy the inear convolution operation Hote thar here the sum ef Ue indices ofeach sample product inside he summation modulo Is equal othe index ofthe sample being generate by the circular convolution operation,Chapter 3: Discrete-Time Signals in the Transform Domain 144 2 2 2 1 : deol, [leer site, well’, ote atten toot i (a> tb) w) (ad Figure 3.12; The circularly time reversed sequence and its circvlaly shifted versions: éa) h{ {mr} (b) f(1 ~ male (6 #{(2 = mgh and (4) AL = mI Yelnl e ¥ lal x c s orzs" orrsase6” @ & Figure 3.13: Results of convolution of the two sequences of Figure 3.11. (a) Circular convolution, and (b> linear convolution. vel) = 3 ethane ess = ‘Theciroplarty time ceva anquence Al(--rn)4| ix ahwon in Figure 3.120). By forveind the ptechiets oF ei wit thar a{-mvis | foreach vatue ofan inte mnie O wt «3 und sisi the preds, w. am i cl) = glOWNO + sf LIACS + wP2InLa + CIAL = er Gi XBL =i ia Ved here Di the oc A DEE macs. Lei the pnt OF af the begueout Af) CAB i piven by st mo) 1 2 6 =t 2 te aay | = 1 Wane = ay 1 1 hee ‘Anlst 4 povan Tw th pcued e ) = TABRELAL vam |_| elena |_ [37 yen} |=] emjapy [=| 3 | +) Feb GANG a we Arrive at dh sede ite costo sul: ei, 8] yk pe $ rel ef =f ae at a =a lie] a wea | =a") oO aa] feeeeah | Ba o [=|s]- 97 an a fot ae z 3 which in eum 19 che tilts gevew in igs (3. S.the0 (3.701, EXAMPLE .17 sit ein he errant ee fog ma ota ea ar a lr wih @ 4 £3 inl= aon146 Chapter 3: Discrete-Time Signals in the Transform Domain eres ams) tell = [eS Se We med deweinite tie Finke ciecalit coed oy fah ae bf tod SF stent = mis om From the sbsive PAE eH > sel La LOT + ao TNSEST 4 OTT el Abell mAASMeG ETT + eel ODT chao ny pen By, (05771 (3:7) C2.) aie wk HO} = aIB AIO) — (8 <3) — 2 Neatwecamapte yi. Rim i C179) HV aedilhcl t= ef MHhy tO + et2bnelOL A [SIR] + Be AY = cb SAG ST elle oui suf a MI nd (7. Contin OVAL + OY 10 DPT a The he sho ye pcm. ee arrive ithe remsiniey suspen OF 9S slog Exe 017) HAE] — @IOTAES) = ef) IWEA) © eEZINIO me ol Ae hee 2h es, V3) = WAOWAEN] + LV UAET E+ se STALN) + L HIOD =fhe) +(x T+ Om 520 tes, 94} = aU + IAT] el = 2 ee LA he M3} = al OL + Opt =O bey Sane Ya HOB =O et Wis eebiheot thon the above that 1a} le preckiey tin renal yj, cSavabiation ple] and susie 312i} cba ey = nor ‘The /V-point circular convolution operation of Eq. (3.61) can be written in matrix form as G82) veld 410) ALN 1) AW =2) ATI gt yell} ALN ALO) ALN 1] s+ ALJ ell) vel |] ali ail] a] +. AIF] | gf) vel¥ 1 Lalw ay aN 2) tw 31 tod Letw— ‘The elements in each diagonal of the N x W matrix of Eq. (3.82) are equal. Such a matrix is called a circulant matrix, 3.5 Computation of the DFT of Real Sequences {n most practical applications, sequences of interest are real. In such cases, the symmetry properties of the DFT given in Table 3.7 can be exploited to make the DFT computations more efficient.3.5. Computation of the DFT of Real Sequences 147 3.8.1 NePoint OF Ts of Two Real Sequences Using a Single N-Point DFT Let gin] and Alm be two real sequences of tength N each with G[&| and H[&] denoting their respective N-point DFTs. These two N-point DFTs can be computed efficiently using a single V-poim DFT X{k] of 2 complex length-/ sequence x(n] defined by ada] = gla] + ala) (3.83) From the above, g[n] = Re{x[a]} and hla From Table 3.6 we arrive at Ln{xln}}, GIkl Ik] [XA] + XU kad} (G84) ay AXUR) — Xk]. G85) Note that X*((—A}w} = XUN — dd BXAMPLICSAN nib exarple we tina ‘of Example 3,15 wing o single 4-point DPT Hane the Sempron of (he Aspect 1 6 the twe6 real exparmicee From By, C3635 the corpbes sence ifn] = ela]-+ jAl bse by sink (t+ 72 Bod: yeh te OFT den io 1 my +e a8 SH poy ee =o || tea r my Ff = St y= “ xe) ay) ee bey en he aba t — ia Thereliorn WEA ye) 72 = oan Sudurinriyy Bye, (3.86) and (3. Td Be on Vey =2) th mie i=p 0 ney 1358) seriFjing the resulte tsi in Kaarigle 3.16, 3.5.2 2N-Point DFT of a Real Sequence Using a Single N-Point DFT Let vfa] be aseal sequence of length 2N with ¥[£] denoting its 2.V-point DFT. Define two real sequences g(t] and [rn] of length N each as sr} = vn], hf) eet, On sfni poant [DFT |Length(N+M—1) ey 9B le = Leng "Lw-1) zeros point DET [H7-1k) Figure 3.14; DF'T-based implementation of the linear convolution of two finite-length sequences. 3.6 Linear Convolution Using the DFT Linear convolution is a key operation in most signal processing applications. Since an N-point DFT can be implemented very efficiently using approximately N (og, NY) arithmetic operations, it is of interest to investigate methods for the implementation ofthe linear convolutionusing the DFT. Earlier in Example 3.17, ‘we have already illustrated for a very specific case how to implement a lineer convolution using a circular convolution. We first generalize this example for the linear convolution of two finite-length sequences of ‘unequal lengths, Later we consider the implementation of the lincar convolution of a finite-length sequence with an infinite-length sequence. 3.6.1. Linear Convolution of Two Finite-Length Sequences Let gin] and h(n) be finite-length sequences of lengths Nand Mf, respectively. Denote L = M +N —1 Define two length-L sequences, geln) = (sinh 05" esp 92) hain = {HOH obtained by appending g[7] and h{n] with zero-valued samples. Then vila) = gln@hln] = ycin] = geln}Oheinl. 3.93) To implement Faq. (3.93) using the DFT, we first zero-pad g{n] with (Mf — 1) ze10s to obtain gel], and zero-pad hn] with (JV — 1) zeros to obtain h,[a}. Thea we compute the (V + M ~ 1)-point DFTs of geln] and fie(t], respectively, resulting in Ge{t] and H[k]. An (N+ M ~ 1)-point LDFT of the product Gelé1H,[k] results in yz[n]. The process involved is sketched in Figure 3.14. ‘The following exainple uses MATLAB to illustrate the above approach. EXAMPLE 1.20 Program 3.4 com’ scl tn deceraie the linear comophon of te Mie tength nepuenses vin di DPT baned-apecich aac compare the melt usd. a izeet linear coowctation. Ths input at to be ‘Sibcod in wecor farthalHnide nquare Packets ars the wi sewuscooes Wo econ The prtigemm plot he raulh ‘of hs near convolution abéatned ining the DET-bases approschy stl the difereece between thin resale unl the sequence ubtainedtuning adie! iar canvelition ining the M-Rit con. Cis ais pngearn wy wert dees fof Exatnple 3.17 as desist is Figue 118 ® Prodram 2S © binder Comvolue athe aPt150 Chapter 3: Discrete-Time Signals in the Transtorm Domain Rest of DFT-paed line conesion Higure 3.15: Plots of the output and the error sequences. ‘ Wmead to the two, sequences soa Input (Atype ie the Firat esquemce « “17 = faputt'fygme in the second sequen: § determine the Imgth of the reralt of comolytson & ' i = Length twiatenattti et Comite the ve iy eure-pedatig Hs EGE Gell i 2 Peteenine the ier yi DEES Ome) 5 A Plot the iuince generated: by LT-ba: lon apd the ersur frov dine Leen ater KVR) siane} (time inex a! bsy label i'AmpLltaite jy Sent kanalx gt HeT-bayed linewr convelut fon"?! anes) | aubpick 2 fede (hk whe ferro) y wiabel (Tide (nue hoy (Flabel\ rane tivke("Magnitade of error sequence 3.6.2 Linear Convolution of a Finite-Lengthh Sequence with an Infinite- Length Sequence We consider now the DFF based implementation of wet yle] = SO Alelale - €1 = Ab I@at). G94) =o3.6, Linear Convolution Using the DFT 181 where f[7] isa tiaite-Fength sequence of length Mf and stn] is of infinite length (or a fiaige-Tengih sequence of length much greater than 34}, There arc two uiffereni approaches to solving this problem, as described below [St066 Overiap-Add Method In this method, we frst segment «]. assumed to be a causal sequence here without any loss of general im a set of contiguous finite-tength subsequences x,,[0} of length N each: alin] = SO wml — me), 395) wet where afn+mN], O2nsN-1, val ={5. otherwise: 3.961 Substituting Eq, (3.95) in Ba. (3.94) we get SIA) = SO yl — 1, G97) mo where Ynltt| = klm1@ rula]. Since hia] is of length M and x(t] is of length MY, the linear convolution 'Ga1@ xml] is of length (W + Mf — 1), AS a result, the desired linear convolution of Eq, (3.94) has been broken up into « sum of an infinite number of short-length linear convolutions of length (N + M — 1) each. Bach of these short convolutions can be implemented using tae method outlined in Figure 3.44, where now the DFTs (and the IDPT) are computed on the basis of (N+ M ~ 1) points. There is one more subtlety to take care of before we can implement Eq. (3.97} using the DFT-based method. Now the first short convolution in Eq. (3.97) given by h[i@ xoln], whichis of length (N + Mf — 1), is, defined for = x = N+ M — 2. The second short convolution in Eq, 3.97), given by h{i@) xan}, is also of length (W + M — 1} but is detined for N Mf, the first M — 1 samples of the circular convolution are incorrect and are rejected, while the remaining N ~ Mf +1 samples correspond to the correct samples of the linear convolution of flyr] and xin). Now consider an infinitely long or a very long sequence x(n]. We break it up as a collection of smaller length (length-4) sequences x [7] as indicated below: mit] =xlnt2ml Asn=3, Osmeos, (3.100) Next, we form welt] = A[n]@xmin|, or equivalently, MO}sm10) + ALL eS] + [2b fT, LObemi 11 + AU Lae O] + [Zep 3], AlOMmof21 + ALTE] + LZ DLO], MO} mE31 + ALI el 21 + 12D lon3.7. The z-Transform 185 Computing the above form = 0.1.2.3... ere substitucing the values of sp [a] from Eq, (3.100), we aeeest ayfD] = ALO |s(0] + PUI DRA31 = ALU 12) = Reject ofl] = MOI L1} EAL SLO] + Leff Reject uyl2) = A[0|0)/2] + ALLL ALZIVIOP= v2) Sane u93) = HONE] FMM 4 APU] = Bk Save yf) = ALO 2+ ALUSISL + 12) + Reject v1) = AlGLA (SL + AULT 21 + AECL] © Reject wil} = ALOITT+ AEE a2e2I = yl, Sate v3] = ALOTWIS] + AUNT] + AIDE = IS], Sane vw2fO] = ALO 14] + AE LS) + HIE), Reject walt) = AU ]a(5} + Hf etd) + 2) 171 < Reject wwf] = ALOLsTON + A(T feL 3] + ML 2bab4] © Save wrL3} = REO} (7) + A Mf] + C216] — Save M{ should he noted that to determing y{O] and y11], we need to form x rr x0 Oe MM =O, 2b xO}, x1) = KT. and compute w—s[r] = ln |@a 121] for O < mn < 3. reject w [0] and wif}. and save w 112] = (OL and w 13] = yt. Generalizing above. let hla] he a sequence of length Mf, and x[ih, the mth section of an infinitely tong sequience a[rr] defined by tala] = axle tN M+ DL OSn< NA 1, 3.102) be of length W with Ms N. If wml} denotes the N-point circular convolution of Alm] and xm[n). ic, winlell = AIRIG snk}, then we reject the first AM ~ 1 samples of wali and “abot” the remaining N= M + 1 saved samples of wa ot] form yz [1], the linear convolution of f{[m] and x{7r|. TF we denote the saved portion of winds] a8 vali h ie. Youle Uinta Moen 2 (03) gilt mN MED) = yin Matsa eh G104 The above process is iWhustrated in Figure 3.18, The approach is called the overlup-save method since the input is segmented into overlapping sections and part of the results of the cizcular convolution are suved and abutted to determine the Jinear convolution result 3.7 The z-Transform The discrete-time Fourier ansform provides a frequency-domain representation of discrete-time signals and LTT systems, Because of the convergence condition, in many cases, the discrete-time Fourier transforin of a sequence may got exist, and as a result, it iy noi possible to make use of such frequency-domain characterization in these cases. A generalization of the discrete-time Founer transform defined in Eq. G1) Jeudsto the z-transform. which may exist for many sequences for which the discrete-time Fourier transform.156 Chapter 3: Discrete-Time Signals in the Transform Domain Mota overlap fe) Figure 3.18 Mloiration ofthe ovetapcive method, (a) Overlapped segments of the sequence a] of Figure 3.6 } sequetives generared by an 11-point citeular esavolution, and (<) sequence obrained by rejecting the first Four samples of 1; 22} and sbutting the zeansiaing samples. » seeing eas fom3.7. The z-Transform 187 does not exist. Moreover, the use of z-transform techniques permits simple algebraic manipulations. Consequently, the z-transform has become an important tool in the analysis and design of digital filters. ‘We first define the z-transform of a sequence and study its properties by treating it as a generalization of the discrete-time Fourier transform. This leads to the concept of the region of convergence of a z- transform that is investigated in detail. We then describe the inverse transform operation and point out two straightforward approackes for the computation of the inverse of a real rational z-transform. Next, the properties of the z-transform are reviewed. 3.7.1 Definition For a given sequence g [1 its z-transform G(z) is defined as Zgial= Do etal’, (3.105) where z = Re(z) + jlm(z) is a complex variable. If we let z = re, then the right-hand side of the above expression reduces to (3.106) which can be interpreted as the discrete-time Fourier transform of the modified sequence {¢[n]r—"). For r= 1G.e. [z| = 1), the z-transform of g[7] reduces to its discrete-time Fourier transform, provided the later exists. The contour |z| = 1 is a circle in the z-plane of unity radius and is called the wnit circle. Like the discrete-time Fourier transform, there are conditions on the convergence of the infinite series of Bq. (3.105), For a given scquence, the set R of values of z for which its z-transform converges is called the rexion of convergence (ROC). It follows from our earlier discussion on the uniform convergence of the discrete-time Fourier transform that the series of Eq. (3.106) converges if gln]r~" is absolutely summable, ie. if 107) Jn general, the region of convergence of a z-transform of a sequence g[n] is an annular region of the =-plane: Rew < lel < Ry (3.108) where 0 < Ry- < Rey % 00. It should be noted that the z-transform as defined by Eq. (3.105) is a form of 2 Laurent series and is an analytic function at every point in the ROC. This in turn implics that the s-transform and all its derivatives are coatinuous functions of the complex variable z in the ROC. EXAMPLE S22 Let us dutermine the ztranstion 22) of the Jar158 Chapter 3: Discrete-Time Signals in the Transform Domain Table 3.8: Some commonly used z-transform pars. Sequence z-Transform Roc alo 1 All values of = win les) a pint la] > [at fr" coswpmiule keler ( sinexgn vital lao The z-transform 1) of the unit step sequence je(7] can he obtained from Bq, (3.110) by setting w = 1 we) po tories <1 Bulb z ‘The ROC of (2) is thus the annular tegion | « |z| < 90, Note that the unit step sequence is not absolutely summable, and, as a result, its Fourier wansform does not converge uniformly. EXAMPLE 123 er ho nical sejucitce wf =i if =H) thal Big i ear a 1 ina here new tbe HOC ie ree annie reyio isp < or Itshould be noted that in both of the above examples. the z-transforms are identical even though their parent sequences are different. The only way a unique sequence can be associated with a z-transform is by specifying its ROC. We shall discuss further the importance of the ROC in the following section. Itfotlows from the above that the Fourier transform G(e/”) of a sequence gin] converges uniformly if and only if the ROC of the z-transform G (z) of the sequence includes the unit circle. On the other hand, the existence of the Fourier transformdoes not always imply the existence of the z-transform. For example the finite-energy sequence hz p[n] of Eq, (3.12) has a Fourier transform hz pe!) given by Eq, (3.11) which. converges in the mean-square sense. However, this sequence does not have a z-transform as Ay elat7—" is not absolutely summable for any value of r. ‘Some commonly used z-transform pairs are listed in Table 3.8.3.8. Region of Convergence of a Rational z-Transform 159 3.7.2 Rational z-Transforms we systems that we are concemed with in this text, all pertinent <-transforms, , are ratios of €wo polynomials in z~!: In the case of LTI discrete-t are rational functions of g7! i. PD) _ pot pis! tet pwns + pe DG) dette Fda ON bide Gt) G13) where the degree of the numerator polynomial P(z) is M and that of the denominator polynomial D(z) is NV. An altemate representation of a rational z-transform is as a ratio of two polynomials in 2: aay Po + pie! -- + pm iz + pw G FN NDE nn 3.414) © yeh + di dy ya dy on ‘The above equation can be alternately written in factored form as po TT O82 _ vay Pe TL 80 G6) =e Se a G5) do Thea) Ree“) are Ata root2 = § of the numerator polynomial, G (gz) = 0, and asa result, these values of z are known as the zeros of Giz). Likewise, at a root z = Ay of the denominator polynomial, G(Ae) — oc, and these points in the z-plane are called the poles of G(z). Observe from the expression in Eq. (3.115) that there are M finite zeros and N finite potes of G(z). It also follows from the above expression that there are additional (K ~ M) zeros at ¢ ~ 0 (the origin in the z-plane) if N > Af of additional (4 — N) poles at 2 = if 4 OT empl thn de AES bs js mie she care going trop he pian 2 = —016 and Soni a the seer Sy mt Wee ot Fajgrre S21 Nome what 4c), haw a sent at c= Oem pole ad z ounity3.8. Region of Convergence of a Rational z-Transform 161 on Pena ead Figure 3.21: Pote-zero plot of Z((—0.6)" In]. In general, the ROC depends on the type of the sequence of interest as defined earlier in Section 2.1.1 ‘We examine n the next four examples the ROCs of the z-transforms of several different types of sequences. EXAROPLE 325 Chive « fimire-ferath mequence fn] détined Yor Jar Whaneas the wocnnd! term ooawerges for [2] = ber, and tinnce. there ia inn entiag of the bo BEC. For a sequence with a rational z-transform, the ROC of the z-transform cannot contain any poles and is bounded by the poles. ‘This property of such z-transforms can be seen from the z-transform of a unit step sequence given by Eq. (3.116) and illustrated by the pole-zero plot of Figure 3.20. Another example is the sequence defined in Example 3.24 and its z-transform given by Eq. (3.117), with the corresponding pole-zero plot given in Figure 3.2t ‘To show that it is bounded by the poles, assume that the z-transform X (z) has simple poles atc and 6, with |a| < [6]. If the sequence is also assumed to be a right-sided sequence, then it is of the form ata] = {ri(ay" +r2(8)") el — Nod, 123) where N, is a positive or negative integer. Now the z-transform of a right-sided sequence (7)" in — No] ists if ~ Y love 1M for some z. It can be seen that the above holds for |z| > |y| but not for |z| = |y’|. The right-sided sequence ‘of Eq. (3.123) has thus an ROC defined by [A] < |z| < oo. A similar argument shows that if X(z) is the z-transform of a left-sided sequence of the form of Eq, (3.123), with In — Na} replaced by je[—n — Nol, then its ROC is defined by 0 = |z| < |e]. Finally, for a two-sided sequence, some of the poles contribute: to terms form < 0 and the others to terms for » 0. The ROC is thus bounded on the outside by the pole with the smallest magnitude that contributes for m < 0 and on the inside by the pole with the largest magnitude that contributes for n > 0, Figure 3.22 shows the three possible ROCs of a rational z-transform with poles at z =a and z = f and with each ROC associated with a unique sequence. In general, if the rational z-transform has NV poles with R distinct magnitudes, then it has R + 1 ROCs and, as a result, R + 1 distinct sequences having the same