Lecture V: Linear difference and differential equations

Similar documents
Digital Signal Processing Lecture 5

Lecture 1 From Continuous-Time to Discrete-Time

EE Homework 5 - Solutions

Chapter 3 Convolution Representation

Signals and Systems. VTU Edusat program. By Dr. Uma Mudenagudi Department of Electronics and Communication BVCET, Hubli

Chapter 1 Fundamental Concepts

Background LTI Systems (4A) Young Won Lim 4/20/15

2. CONVOLUTION. Convolution sum. Response of d.t. LTI systems at a certain input signal

Lecture 2. Introduction to Systems (Lathi )

ELEG 305: Digital Signal Processing

Chapter 2 Time-Domain Representations of LTI Systems

CLTI System Response (4A) Young Won Lim 4/11/15

Differential and Difference LTI systems

x(t) = t[u(t 1) u(t 2)] + 1[u(t 2) u(t 3)]

Discrete-time signals and systems

Digital Signal Processing Lecture 3 - Discrete-Time Systems

Chapter 1 Fundamental Concepts

ECE 308 Discrete-Time Signals and Systems

ECE-314 Fall 2012 Review Questions for Midterm Examination II

Interconnection of LTI Systems

Lecture 7 - IIR Filters

Solution 10 July 2015 ECE301 Signals and Systems: Midterm. Cover Sheet

Rui Wang, Assistant professor Dept. of Information and Communication Tongji University.

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

Final Exam January 31, Solutions

Lecture Discrete dynamic systems

EECE 301 Signals & Systems

Analog vs. discrete signals

Lecture 19 IIR Filters

UNIT - III PART A. 2. Mention any two techniques for digitizing the transfer function of an analog filter?

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

NAME: 23 February 2017 EE301 Signals and Systems Exam 1 Cover Sheet

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

Digital Signal Processing, Homework 1, Spring 2013, Prof. C.D. Chung

EEM 409. Random Signals. Problem Set-2: (Power Spectral Density, LTI Systems with Random Inputs) Problem 1: Problem 2:

Basic concepts in DT systems. Alexandra Branzan Albu ELEC 310-Spring 2009-Lecture 4 1

EE123 Digital Signal Processing

Z Transform (Part - II)

Digital Signal Processing Lecture 4

hapter 8 Simulation/Realization 8 Introduction Given an nth-order state-space description of the form x_ (t) = f (x(t) u(t) t) (state evolution equati

Discrete-Time Systems

EE 210. Signals and Systems Solutions of homework 2

EECE 301 Signals & Systems Prof. Mark Fowler

EE538 Final Exam Fall :20 pm -5:20 pm PHYS 223 Dec. 17, Cover Sheet

Noise - irrelevant data; variability in a quantity that has no meaning or significance. In most cases this is modeled as a random variable.

Lecture 11 FIR Filters

ECE301 Fall, 2006 Exam 1 Soluation October 7, Name: Score: / Consider the system described by the differential equation

EEL3135: Homework #4

2.161 Signal Processing: Continuous and Discrete Fall 2008

Module 1: Signals & System

Modeling and Analysis of Systems Lecture #3 - Linear, Time-Invariant (LTI) Systems. Guillaume Drion Academic year

5 Kalman filters. 5.1 Scalar Kalman filter. Unit delay Signal model. System model

The z-transform Part 2

信號與系統 Signals and Systems

New Mexico State University Klipsch School of Electrical Engineering. EE312 - Signals and Systems I Fall 2017 Exam #1

6.003 Homework #1. Problems. Due at the beginning of recitation on September 14, 2011.

Each problem is worth 25 points, and you may solve the problems in any order.

LTI Systems (Continuous & Discrete) - Basics

Introduction to DSP Time Domain Representation of Signals and Systems

DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING EXAMINATIONS 2010

Discussion Section #2, 31 Jan 2014

24 Butterworth Filters

EE361: Signals and System II

信號與系統 Signals and Systems

2 M. Hasegawa-Johnson. DRAFT COPY.

ECE 301 Division 1 Exam 1 Solutions, 10/6/2011, 8-9:45pm in ME 1061.

Solutions. Number of Problems: 10

Dynamical systems: basic concepts

Multi-rate Signal Processing 3. The Polyphase Representation

Linear Filters and Convolution. Ahmed Ashraf

Shift Property of z-transform. Lecture 16. More z-transform (Lathi 5.2, ) More Properties of z-transform. Convolution property of z-transform

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

The Continuous-time Fourier

New Mexico State University Klipsch School of Electrical Engineering. EE312 - Signals and Systems I Spring 2018 Exam #1

! Introduction. ! Discrete Time Signals & Systems. ! Z-Transform. ! Inverse Z-Transform. ! Sampling of Continuous Time Signals

Chapter 2: Time-Domain Representations of Linear Time-Invariant Systems. Chih-Wei Liu

6.02 Fall 2012 Lecture #10

DSP-I DSP-I DSP-I DSP-I

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

University of California Department of Mechanical Engineering ECE230A/ME243A Linear Systems Fall 1999 (B. Bamieh ) Lecture 3: Simulation/Realization 1

EE 224 Signals and Systems I Review 1/10

e jωt y (t) = ω 2 Ke jωt K =

Frequency-Domain C/S of LTI Systems

Ch 2: Linear Time-Invariant System

Homogeneous and particular LTI solutions

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

/ (2π) X(e jω ) dω. 4. An 8 point sequence is given by x(n) = {2,2,2,2,1,1,1,1}. Compute 8 point DFT of x(n) by

Signals and Systems Lecture 8: Z Transform

Chapter 3. Discrete-Time Systems

Notes 22 largely plagiarized by %khc

Chapter 5 Frequency Domain Analysis of Systems

Chapter 5 Frequency Domain Analysis of Systems

DIGITAL SIGNAL PROCESSING LECTURE 1

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 )

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

Review of Frequency Domain Fourier Series: Continuous periodic frequency components

Nonparametric and Parametric Defined This text distinguishes between systems and the sequences (processes) that result when a WN input is applied

Linear Systems. ! Textbook: Strum, Contemporary Linear Systems using MATLAB.

III. Time Domain Analysis of systems

Fourier Series Representation of

Transcription:

Lecture V: Linear difference and differential equations BME 171: Signals and Systems Duke University September 10, 2008

This lecture Plan for the lecture: 1 Discrete-time systems linear difference equations autoregressive moving-average (ARMA) filters recursive implementation of ARMA filters analytical solution of linear difference equations ZIR/ZSR decomposition 2 Continuous-time systems linear differential equations ZIR/ZSR decomposition numerical solution by discretization

Linear difference equations A wide variety of discrete-time systems are described by linear difference equations: y[n] + a i y[n i] = b i x[n i], n = 0, 1, 2,... where the coefficients a 1,..., a N and b 0,..., b M do not depend on n. In order to be able to compute the system output, we also need to specify the initial conditions (IC s) Systems of this kind are y[ 1], y[ 2],..., y[ N] linear time-invariant (LTI): easy to verify by inspection causal: the output at time n depends only on past outputs y[n 1],...,y[n N] and on current and past inputs x[n], x[n 1],...,x[n M]

Autoregressive moving-average (ARMA) filters Systems of this kind are also called AutoRegressive Moving-Average (ARMA) filters. The name comes from considering two special cases. 1 autoregressive filter of order N, AR(N): b 0 =... = b M = 0 y[n] + a i y[n i] = 0, n = 0, 1, 2,... In the AR case, the system output at time n is a linear combination of N past outputs; need to specify the ICs y[ 1],...,y[ N]. 2 moving-average filter of order M: a 1 =... = a N = 0 y[n] = b i x[n i], n = 0, 1, 2,... In the MA case, the system output at time n is a linear combination of the current input and M past inputs; no need to specify ICs. An ARMA(N, M) filter is a combination of both.

Recursive solution of ARMA filter equations In general, the output of an ARMA filter due to a given input can be computed recursively using the ICs. y[n] + a i y[n i] = b i x[n i], n = 0, 1, 2,... ICs: y[ 1],..., y[ N] Let us first rearrange the system equation: Start at n = 0: y[n] = a i y[n i] + b i x[n i]. y[0] = a i y[ i] + dep. on the ICs b i x[ i] dep. on inputs x[0],...,x[ M]

Recursive solution of ARMA filter equations: cont d Now let n = 1: y[1] = a i y[1 i] + b i x[1 i] Let n = 2: N 1 = a 1 y[0] a i+1 y[ i] + dep. on the ICs y[2] = a i y[2 i] + b i x[2 i] N 2 = a 1 y[1] a 2 y[0] a i+2 y[ i] + dep. on the ICs b i x[1 i] dep. on inputs x[1],...,x[ M+1] b i x[2 i] dep. on inputs x[2],...,x[ M+2] etc.

Recursive solution of ARMA filter equations: cont d In general, to compute the output of an ARMA(N, M) filter at time n, we need the outputs at times n 1, n 2,...,n N and the inputs at times n, n 1,..., n M. Implementation complexity: memory at any time, need to store N output values and M + 1 input values, for a total of N + M + 1 values operations at any time n, the number of operations need to compute y[n] can be determined like this: y[n] = a i y[n i] N 1 add., N mult. + 1 add. b i x[n i] M add., M+1 mult. So wee need N + M additions and N + M + 1 multiplications, for a total of 2(N + M) + 1 operations. These considerations are important when implementing systems like this in software or in hardware. Computational complexity is proportional to L = N + M and is independent of n..

Analytical solution of linear difference equations When the difference equation is simple, we can actually solve the corresponding recursion. Example: y[n] + ay[n 1] = x[n], n = 0, 1, 2,... with the IC specifying y[ 1]. Then y[0] = y[1] = y[2] = y[3] = ay[ 1] + x[0]; ay[0] + x[1] = a( ay[ 1] + x[0]) + x[1] = a 2 y[ 1] ax[0] + x[1]; ay[1] + x[2] = a(a 2 y[ 1] ax[0] + x[1]) + x[2] = a 3 y[ 1] + a 2 x[0] ax[1] + x[2]; ay[2] + x[3] = a( a 3 y[ 1] + a 2 x[0] ax[1] + x[2]) + x[3] = a 4 y[ 1] a 3 x[0] + a 2 x[1] ax[2] + x[3]

Analytical solution of linear difference equations: cont d The pattern emerges: n y[n] = ( a) n+1 y[ 1] + ( a) n i x[i], n = 0, 1, 2,... Note that y[n] a sum of two terms: 1 ( a) n+1 y[ 1] depends only on the IC, but not on the input 2 n ( a)n i x[i] depends only on the input, but not on the IC This decomposition holds generally for any ARMA system: the system output at time n is a sum of the AR-only and the MA-only outputs at time n.

Decomposition of ARMA filter outputs Consider an ARMA(N, M) system y[n] = a i y[n i] + b i x[n i], n = 0, 1, 2,... with the ICs y[ 1],...,y[ N]. Then we can write the output at time n as y[n] = y 0 [n] + y 1 [n] where y 0 [n] and y 1 [n] satisfy the equations y 0 [n] = a i y 0 [n], n = 0, 1, 2,... with the ICs y 0 [ 1] = y[ 1],..., y 0 [ N] = y[ N], and y 1 [n] = a i y 1 [n i] + b i x[n i] with the ICs y 1 [ 1] =... = y 1 [ N] = 0.

Decomposition of ARMA filter outputs: cont d Note that y 0 [n] is the output of the system determined by the ICs only (setting the input to zero), while y 1 [n] is the output of the system determined by the input only (setting the ICs to zero). To see that y[n] = y 0 [n] + y 1 [n], let z[n] = y 0 [n] + y 1 [n]. Then z[n] = y 0 [n] + y 1 [n] = a i y 0 [n i] a i y 1 [n i] + b i x[n i] = ) a i (y 0 [n i] + y 1 [n i] + z[n i] b i x[n i] with the ICs z[ 1] = y[ 1],..., z[ n] = y[ N]. Thus, z[n] satisfies the same system equation as y[n] with the same ICs.

Decomposition of ARMA filter outputs: cont d Consider the output decomposition y[n] = y 0 [n] + y 1 [n] of an ARMA(N, M) filter y[n] = a i y[n i] + b i x[n i], n = 0, 1, 2,... with the ICs y[ 1],...,y[ N]. y 0 [n] is often called the zero-input response (ZIR) of the filter (referring to the fact that it is determined by the ICs only), while y 1 [n] is called the zero-state response (ZSR) of the filter (referring to the fact that it is determined by the input only, with the ICs set to zero). Thus, the output of an ARMA filter at time n is the sum of the ZIR and the ZSR at time n.

Linear differential equations Now we switch to continuos-time systems. A wide variety of continuous-time systems are described the linear differential equations: N 1 y (N) (t) + a i y (i) (t) = b i x (M i) (t), t 0 where y (i) (t) denotes the ith derivative of y(t), and y (0) (t) = y(t). Just as before, in order to solve the equation for y(t), we need the ICs. In this case, the ICs are given by specifying the value of y and its derivatives 1 through N 1 at t = 0 (time just before t = 0): y(0 ), y (1) (0 ),..., y (N 1) (0 ). Note: the ICs are given at t = 0 to allow for impulses and other discontinuities at t = 0. Systems described in this way are 1 linear time-invariant (LTI): easy to verify by inspection 2 causal: the value of the output at time t depends only on the output and the input at times 0 τ t

Decomposition of the solution Just as in the discrete-time case, the solution y(t) of N 1 y (N) (t) + a i y (i) (t) = b i x (M i) (t), t 0 with the ICs y(0 ), y (1) (0 ),..., y (N 1) (0 ) can be decomposed as y(t) = y 0 (t) + y 1 (t) where the zero-input response (ZIR) y 0 (t) satisfies the equation N 1 y (N) 0 (t) + a i y (i) 0 (t) = 0, t 0 with the ICs y(0 ), y (1) (0 ),..., y (N 1) (0 ), while the zero-state response (ZSR) y 1 (t) satisfies the equation N 1 M y (N) 1 (t) + a i y (i) 1 (t) = b i x (M i) (t), t 0 with the ICs y 1 (0 ) = y (1) 1 (0 ) =... = y (N 1) 1 (0 ) = 0.

ZIR and ZSR Mathematicians use the names homogeneous solution and particular solution instead of ZIR and ZSR. A standard method for obtaining the ZIR is to try a solution of the form y 0 (t) = C i e λit and then use the ICs to solve for C 1,...,C N and λ 1,..., λ N. To obtain the ZSR, one would have to use the method of integrating factors, described in every textbook on differential equations. Later in this course, we will look at alternative ways of solving for the ZSR using the Laplace transform.

Discretization Linear differential equations can be solved numerically on a computer by converting them into linear difference equations. Example: y (t) + ay(t) = bx(t) Let us pick some T > 0. Then for each n = 0, 1, 2,... we have y (nt) + ay(nt) = bx(nt) Assuming T is sufficiently small, we can approximate y (nt) y(nt + T) y(nt) T This is called Euler s approximation of the first derivative. Now define discrete-time signals x[n] and y[n] via x[n] = x(nt) and y[n] = y(nt).

Discretization: cont d Then we approximate our original problem by y[n + 1] y[n] T + ay[n] = bx[n], n = 0, 1, 2,... Making the replacement n n 1, we obtain the discrete-time system y[n] + (at 1)y[n 1] = btx[n 1], n = 0, 1, 2,... which we can now implement recursively, given the (discretized) ICs. The same principle is used to discretize higher-order differential equations. For example, we can approximate y (nt) = y (nt + T) y (nt) T 1 ( y((n + 1)T + T) y((n + 1)T) T T y((n + 2)T) 2y((n + 1)T) + y(nt) T 2. ) y((n + 1)T) y(nt) T