Linear Constant-coefficient Difference Equations

Slides:



Advertisements
Similar presentations
Signal Processing in the Discrete Time Domain Microprocessor Applications (MEE4033) Sogang University Department of Mechanical Engineering.
Advertisements

Copyright ©2010, ©1999, ©1989 by Pearson Education, Inc. All rights reserved. Discrete-Time Signal Processing, Third Edition Alan V. Oppenheim Ronald W.
Lecture 7: Basis Functions & Fourier Series
AMI 4622 Digital Signal Processing
Ideal Filters One of the reasons why we design a filter is to remove disturbances Filter SIGNAL NOISE We discriminate between signal and noise in terms.
Review of Frequency Domain
Chapter 8: The Discrete Fourier Transform
DT systems and Difference Equations Monday March 22, 2010
Z-Transform Fourier Transform z-transform. Z-transform operator: The z-transform operator is seen to transform the sequence x[n] into the function X{z},
Systems: Definition Filter
Relationship between Magnitude and Phase (cf. Oppenheim, 1999)
Analysis of Discrete Linear Time Invariant Systems
Discrete-Time and System (A Review)
1 Chapter 8 The Discrete Fourier Transform 2 Introduction  In Chapters 2 and 3 we discussed the representation of sequences and LTI systems in terms.
Chapter 2 Discrete-Time Signals and Systems
Chapter 2: Discrete time signals and systems
Fourier Series Summary (From Salivahanan et al, 2002)
IIR Filter design (cf. Shenoi, 2006) The transfer function of the IIR filter is given by Its frequency responses are (where w is the normalized frequency.
Signal and Systems Prof. H. Sameti Chapter 5: The Discrete Time Fourier Transform Examples of the DT Fourier Transform Properties of the DT Fourier Transform.
Fourier Series. Introduction Decompose a periodic input signal into primitive periodic components. A periodic sequence T2T3T t f(t)f(t)
Zhongguo Liu_Biomedical Engineering_Shandong Univ. Chapter 8 The Discrete Fourier Transform Zhongguo Liu Biomedical Engineering School of Control.
Course Outline (Tentative) Fundamental Concepts of Signals and Systems Signals Systems Linear Time-Invariant (LTI) Systems Convolution integral and sum.
1 Lecture 1: February 20, 2007 Topic: 1. Discrete-Time Signals and Systems.
Department of Electrical and Computer Engineering Brian M. McCarthy Department of Electrical & Computer Engineering Villanova University ECE8231 Digital.
Fourier Analysis of Signals and Systems
EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department.
CHAPTER 2 Discrete-Time Signals and Systems in the Time-Domain
Discrete-Time Signals and Systems
Course Outline (Tentative) Fundamental Concepts of Signals and Systems Signals Systems Linear Time-Invariant (LTI) Systems Convolution integral and sum.
DTFT continue (c.f. Shenoi, 2006)  We have introduced DTFT and showed some of its properties. We will investigate them in more detail by showing the associated.
Sampling and Reconstruction The impulse response of an continuous-time ideal low pass filter is the inverse continuous Fourier transform of its frequency.
Fourier Representation of Signals and LTI Systems.
1 Fourier Representation of Signals and LTI Systems. CHAPTER 3 School of Computer and Communication Engineering, UniMAP Amir Razif B. Jamil Abdullah EKT.
Analysis of Linear Time Invariant (LTI) Systems
ENEE 322: Continuous-Time Fourier Transform (Chapter 4)
Prepared by:D K Rout DSP-Chapter 2 Prepared by  Deepak Kumar Rout.
In summary If x[n] is a finite-length sequence (n  0 only when |n|
Review of DSP.
Convergence of Fourier series It is known that a periodic signal x(t) has a Fourier series representation if it satisfies the following Dirichlet conditions:
1 Chapter 8 The Discrete Fourier Transform (cont.)
Digital Image Processing Lecture 8: Fourier Transform Prof. Charlene Tsai.
Discrete Time Signal Processing Chu-Song Chen (陳祝嵩) Institute of Information Science Academia Sinica 中央研究院 資訊科學研究所.
Signals & systems Ch.3 Fourier Transform of Signals and LTI System
IIR Filter design (cf. Shenoi, 2006)
Review of DSP.
DIGITAL SIGNAL PROCESSING ELECTRONICS
In summary If x[n] is a finite-length sequence (n0 only when |n|
CE Digital Signal Processing Fall Discrete-time Fourier Transform
CEN352 Dr. Nassim Ammour King Saud University
Discrete-time Systems
Computational Data Analysis
Description and Analysis of Systems
UNIT II Analysis of Continuous Time signal
Quick Review of LTI Systems
Ideal Filters One of the reasons why we design a filter is to remove disturbances Filter SIGNAL NOISE We discriminate between signal and noise in terms.
لجنة الهندسة الكهربائية
Chapter 8 The Discrete Fourier Transform
UNIT-I SIGNALS & SYSTEMS.
Z TRANSFORM AND DFT Z Transform
Finite Wordlength Effects
Tania Stathaki 811b LTI Discrete-Time Systems in Transform Domain Frequency Response Transfer Function Introduction to Filters.
Chapter 8 The Discrete Fourier Transform
Lecture #8 (Second half) FREQUENCY RESPONSE OF LSI SYSTEMS
Tania Stathaki 811b LTI Discrete-Time Systems in Transform Domain Ideal Filters Zero Phase Transfer Functions Linear Phase Transfer.
山东省精品课程《生物医学信号处理(双语)》
Discrete-Time Signal processing Chapter 3 the Z-transform
Zhongguo Liu Biomedical Engineering
Chapter 8 The Discrete Fourier Transform
Concept of frequency in Discrete Signals & Introduction to LTI Systems
Review of DSP.
Presentation transcript:

Linear Constant-coefficient Difference Equations for all n An important subclass of linear time-invariant systems consist of those system for which the input x[n] and output y[n] satisfy an Nth-order linear constant-coefficient difference equation. A general form is shown above.

Signal Flow Graph of the Difference Equation Assume that a0 = 1. Let TD denote one-sample delay. x[n] TD x[n-2] x[n-1] x[n-M] + b1 b0 b2 bM y[n]  a1  a2  aN y[n-N] y[n-2] y[n-1]

Difference Equation: FIR system The assumption a0 = 1 can be always achieved by dividing all the coefficients by a0 if a00. The difference equation characterizes a recursive way of obtaining the output y[n] from the input x[n]. When ak = 0 for k = 1 … N, the difference equation degenerates to a FIR system. The output consists of a linear combination of finite inputs.

Difference equation: IIR System When bm are not all zeros for m = 1 … M, the difference equation degenerates to This causes an IIR system The effect of an impulse response sequence applied to the input keeps on circulating around the feedback loops indefinitely.

Example Accumulator

Example (continue) Moving average system when M1=0: The impulse response is h[n] = u[n]  u[nM2 1] Also, note that The term y[n]  y[n1] suggests the implementation can be cascaded with an accumulator.

Moving Average System Hence, there are at least two difference equation representations of the moving average system. First, x[n] TD x[n-2] x[n-1] x[n-M] + b y[n] where b = 1/ (M2+1) and TD denotes one-sample delay

Moving Average System (continue) Second, The first representation is FIR, and the second is IIR.

Solution of Difference Equation Just as differential equations for continuous-time systems, a linear constant-coefficient difference equation for discrete-time systems does not provide a unique solution if no additional constraints are provided. Solution: y[n] = yp[n] + yh[n] yh[n]: homogeneous solution obtained by setting all the inputs as zeros. yh[n]: a particular solution satisfying the difference equation.

Solution of Difference Equation Additional constraints: consider the N auxiliary conditions that y[-1], y[-2], …, y[-N] are given. The other values of y[n] (n0) can be generated by when x[n] is available, y[1], y[2], … y[n], … can be computed recursively. To generate values of y[n] for n<N recursively,

Example of the Solution Consider the difference equation y[n] = ay[n-1] + x[n]. Assume the input is x[n] =K  [n], and the auxiliary condition is y[1] = c. Hence, y[0] = ac+K, y[1] = a y[0]+0 = a2c+aK, … Recursively, we found that y[n] = an+1c+anK, for n0. For n<1, y[-2] = a1(y[1] x[1] ) = a1c, y[2] = a1 y[1] = a2 c, …, and y[n] = an+1c for n<1. Hence, the solution is y[n] = an+1c+Kanu[n],

Example of the Solution (continue) The recursively-implemented system for finding the solution is non-causal. The solution system is non-linear: When K=0, i.e., the input is zero, the solution (system response) y[n] = an+1c. Since a linear system requires that the output be zero for all time when the input is zero for all time. The solution system is not shift invariant: when input were shifted by n0 samples, x1[n] =K  [n - n0], the output is y1[n] = an+1c+Kann0 u[n - n0].

LTI solution Our principal interest in the text is in systems that are linear and time invariant. How to make the recursively-implemented solution system be LTI? Initial-rest condition: If the input x[n] is zero for n less than some time n0, the output y[n] is also zero for n less than n0. The previous example does not satisfy this condition since x[n] = 0 for n<0 but y[1] = c. Property: If the initial-rest condition is satisfied, then the system will be LTI and causal.

Frequency-Domain Representation of Discrete-time Signals and Systems Eigen function of a LTI system When apply an eigenfunction as input, the output is the same function multiplied by a constant. x[n] = ejwn is the eigenfunction of all LTI systems. Let h[n] be the impulse response of an LTI system, when ejwn is applied as the input,

Eigenfunction of LTI Let we have consequently, ejwn is the eigenfunction of the system, and the associated eigenvalue is H(ejw). We call H(ejw) the LTI system’s frequency response that consists of the real and imaginary parts, H(ejw) = HR(ejw) + jHI(ejw), or in terms of magnitude and phase,

Example of Frequency Response Frequency response of the ideal delay system, y[n] =x[n  nd], If we consider x[n] = ejwn as input, then Hence, the frequency response is The magnitude and phase are

Linear Combination When a signal can be represented as a linear combination of complex exponentials: By the principle of superposition, the output is Thus, we can find the output if we know the frequency response of the system.

Example of Linear Combination Sinusoidal responses of LTI systems: The response of x1[n] and x2[n] are If h[n] is real, it can be shown that H(e-jw0) = H*(ejw0), the total response y[n] = y1[n] + y2[n] is

Difference to Continuous-time System Response For a continuous-time system, the frequency response is not necessarily to be periodic. However, for a discrete-time system, the frequency response is always periodic with period 2, since Because H(ejw) is periodic with period 2, we need only specify H(ejw) over an interval of length 2, eg., [0, 2] or [, ]. For consistency, we choose the interval [, ]. The inherent periodicity defines the frequency response everywhere outside the chosen interval.

Ideal Frequency-selective Filters The “low frequencies” are frequencies close to zero, while the “high frequencies” are those close to . Since that the frequencies differing by an integer multiple of 2 are indistinguishable, the “low frequency” are those that are close to an even multiple of , while the “high frequencies” are those close to an odd multiple of . Ideal frequency-selective filters: An important class of linear-invariant systems includes those systems for which the frequency response is unity over a certain range of frequencies and is zero at the remaining frequencies.

Frequency Response of Ideal Low-pass Filter

Frequency Response of Ideal High-pass Filter

Frequency Response of Ideal Band-stop Filter

Frequency Response of Ideal Band-pass Filter

Frequency Response of the Moving-average System The impulse response of the moving-average system is Therefore, the frequency response is By noting that the following formula holds:

Frequency Response of the Moving-average System (continue) (magnitude and phase)

Frequency Response of the Moving-average System (continue) M1 = 0 and M2 = 4 Amplitude response Phase response 2w

Suddenly Applied Complex Exponential Inputs In practice, we may not apply the complex exponential inputs ejwn to a system, but the more practical-appearing inputs of the form x[n] = ejwn  u[n] i.e., complex exponentials that are suddenly applied at an arbitrary time, which for convenience we choose n=0. Consider its output to a causal LTI system:

Suddenly Applied Complex Exponential Inputs (continue) We consider the output for n  0. Hence, the output can be written as y[n] = yss[n] + yt[n], where Steady-state response Transient response

Suddenly Applied Complex Exponential Inputs (continue) If h[n] = 0 except for 0 n  M (i.e., a FIR system), then the transient response yt[n] = 0 for n+1 > M. That is, the transient response becomes zero since the time n = M. For n  M, only the steady-state response exists. For infinite-duration impulse response (i.e., IIR) For stable system, Qn must become increasingly smaller as n  , and so is the transient response.

Suddenly Applied Complex Exponential Inputs (continue) Illustration for the FIR case by convolution

Suddenly Applied Complex Exponential Inputs (continue) Illustration for the IIR case by convolution

Representation of Sequences by Fourier Transforms Fourier Representation: representing a signal by complex exponentials. A signal x[n] is represented as the Fourier integral of the complex exponentials in the range of frequencies [, ]. The weight X(ejw) of the frequency applied in the integral can be determined by the input signal x[n], and X(ejw) reveals how much of each frequency is required to synthesize x[n]. Inverse Fourier transform Fourier transform (or forward Fourier transform)

Representation of Sequences by Fourier Transforms (continue) The phase X(ejw) is not uniquely specified since any integer multiple of 2 may be added to X(ejw) at any value of w without affecting the result. Denote ARG[X(ejw)] to be the phase value in [, ]. Since the frequency response of a LTI system is the Fourier transform of the impulse response, the impulse response can be obtained from the frequency response by applying the inverse Fourier transform integral:

Existence of Fourier Transform Pairs Whey they are transform pairs? Consider the integral

Conditions for the Existence of Fourier Transform Pairs Conditions for the existence of Fourier transform pairs of a signal: Absolutely summable Mean-square convergence: In other words, the error |X(ejw)  XM(ejw) | may not approach for each w, but the total “energh” in the error does.

Conditions for the Existence of Fourier Transform Pairs (continue) Still some other cases that are neither absolutely summable nor mean-square convergence, the Fourier transform still exist: Eg., Fourier transform of a constant, x[n] = 1 for all n, is an impulse train: The impulse of the continuous case is a “infinite heigh, zero width, and unit area” function. If some properties are defined for the impulse function, then the Fourier transform pair involving impulses can be well defined too.

Conditions for the Existence of Fourier Transform Pairs (continue) Properties of continuous impulse function: Eg., consider a sequence whose Fourier transform is the periodic impulse train then the sequence is a complex exponential sequence (note that extends only over one period, from, we need include the term)

Symmetry Property of the Fourier Transform Conjugate-symmetric sequence: xe[n] = xe*[n] If a real sequence is conjugate symmetric, then it is called an even sequence satisfying xe[n] = xe[n]. Conjugate-asymmetric sequence: xo[n] = xo*[n] If a real sequence is conjugate antisymmetric, then it is called an odd sequence satisfying x0[n] =  x0[n]. Any sequence can be represented as a sum of a conjugate-symmetric and asymmetric sequences, x[n] = xe[n] + xo[n], where xe[n] = (1/2)(x[n]+ x*[n]) and xo[n] = (1/2)(x[n]  x*[n]).

Symmetry Property of the Fourier Transform (continue) Similarly, a Fourier transform can be decomposed into a sum of conjugate-symmetric and anti-symmetric parts: X(ejw) = Xe(ejw) + Xo(ejw) , where Xe(ejw) = (1/2)[X(ejw) + X*(ejw)] and Xo(ejw) = (1/2)[X(ejw)  X*(ejw)]

Symmetry Property of the Fourier Transform (continue) Fourier Transform Pairs (if x[n]  X(ejw)) x*[n]  X*(e jw) x*[n]  X*(ejw) Re{x[n]}  Xe(ejw) (conjugate-symmetry part of X(ejw)) jIm{x[n]}  Xo(ejw) (conjugate anti-symmetry part of X(ejw)) xe[n] (conjugate-symmetry part of x[n])  XR(ejw) = Re{X(ejw)} xo[n] (conjugate anti-symmetry part of x[n])  jXI(ejw) = jIm{X(ejw)}

Symmetry Property of the Fourier Transform (continue) Fourier Transform Pairs (if x[n]  X(ejw)) Any real xe[n]  X(ejw) = X*(ejw) (Fourier transform is conjugate symmetric) Any real xe[n]  XR(ejw) = XR(ejw) (real part is even) Any real xe[n]  XI(ejw) = XI(ejw) (imaginary part is odd) Any real xe[n]  |XR(ejw)| = |XR(ejw)| (magnitude is even) Any real xe[n]  XR(ejw)= XR(ejw) (phase is odd) xo[n] (even part of real x[n])  XR(ejw) xo[n] (odd part of real x[n])  jXI(ejw)

Example of Symmetry Properties The Fourier transform of the real sequence x[n] = anu[n] for a < 1 is Its magnitude is an even function, and phase is odd.

Fourier Transform Theorems Linearity x1[n]  X1(ejw), x2[n]  X2(ejw) implies that a1x1[n] + a2x2[n]  a1X1(ejw) + a2X2(ejw) Time shifting x[n]  X(ejw)

Fourier Transform Theorems (continue) Frequency shifting x[n]  X(ejw) implies that Time reversal If the sequence is time reversed, then x[n]  X(ejw) Furthermore, if x[n] is real then x[n]  X*(ejw), since X(ejw) is conjugate symmetric.

Fourier Transform Theorems (continue) Differentiation in frequency x[n]  X(ejw) implies that Parseval’s theorem

Fourier Transform Theorems (continue) The convolution theorem x[n]  X(ejw) and h[n]  H(ejw), and if y[n] = x[n]  h[n], then Y(ejw) = X(ejw)H(ejw) The modulation or windowing theorem x[n]  X(ejw) and w[n]  W(ejw), and if y[n] = x[n]w[n], then a periodic convolution

Fourier Transform Pairs

Fourier Transform Pairs (continue)

Fourier Transform Pairs (continue)

Determining a Fourier Transform Using Symmetric Properties and Pair-wise Formulas – Examples Suppose we wish to find the Fourier transform of x[n] = anu[n-5].

Another Example Determining the impulse response for a difference equation y[n](1/2) y[n1] = x[n] (1/4)x[n1] To find the impulse response, we set x[n] = [n]. Then the above equation becomes h[n](1/2) h[n1] = [n]  (1/4)[n1] Applying the Fourier transform, we obtain H(ejw)  (1/2)e-jwH(ejw) = 1  (1/4) e-jw So H(ejw) = (1  (1/4) e-jw) / (1  (1/2) e-jw)

Another Example (continue) From the pairwise table, we know thus, (1/2)nu[n]  1 / (1  (1/2) e-jw) By the shifting property, (1/4)(1/2)n1u[n1]  (1/4) e-jw / (1  (1/2) e-jw) Thus, h[n] = (1/2)nu[n]  (1/4)(1/2)n1u[n1]