ECE-S352 Introduction to Digital Signal Processing Lecture 3A Direct Solution of Difference Equations

Similar documents
Discrete-Time Systems, LTI Systems, and Discrete-Time Convolution

DIGITAL SIGNAL PROCESSING LECTURE 3

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

Signals and Systems. Problem Set: From Continuous-Time to Discrete-Time

Solution of Linear Constant-Coefficient Difference Equations

ECE4270 Fundamentals of DSP. Lecture 2 Discrete-Time Signals and Systems & Difference Equations. Overview of Lecture 2. More Discrete-Time Systems

Discrete-Time Signals and Systems. Discrete-Time Signals and Systems. Signal Symmetry. Elementary Discrete-Time Signals.

FIR Filters. Lecture #7 Chapter 5. BME 310 Biomedical Computing - J.Schesser

Appendix: The Laplace Transform

Signals & Systems Chapter3

ECE 308 Discrete-Time Signals and Systems

Time-Domain Representations of LTI Systems

Frequency Response of FIR Filters

GEORGIA INSTITUTE OF TECHNOLOGY SCHOOL OF ELECTRICAL AND COMPUTER ENGINEERING

Recurrence Relations

Recursive Algorithms. Recurrences. Recursive Algorithms Analysis

The z-transform. 7.1 Introduction. 7.2 The z-transform Derivation of the z-transform: x[n] = z n LTI system, h[n] z = re j

Chapter 7: The z-transform. Chih-Wei Liu

COMM 602: Digital Signal Processing

CHAPTER 5. Theory and Solution Using Matrix Techniques

Signal Processing. Lecture 02: Discrete Time Signals and Systems. Ahmet Taha Koru, Ph. D. Yildiz Technical University.

Classification of DT signals

EEO 401 Digital Signal Processing Prof. Mark Fowler

3. Z Transform. Recall that the Fourier transform (FT) of a DT signal xn [ ] is ( ) [ ] = In order for the FT to exist in the finite magnitude sense,

6.3 Testing Series With Positive Terms

Analog and Digital Signals. Introduction to Digital Signal Processing. Discrete-time Sinusoids. Analog and Digital Signals

Computing the output response of LTI Systems.

ADVANCED DIGITAL SIGNAL PROCESSING

Digital signal processing: Lecture 5. z-transformation - I. Produced by Qiangfu Zhao (Since 1995), All rights reserved

Chapter 4 : Laplace Transform

ELEG 4603/5173L Digital Signal Processing Ch. 1 Discrete-Time Signals and Systems

Chapter 7 z-transform

Lecture 3. Digital Signal Processing. Chapter 3. z-transforms. Mikael Swartling Nedelko Grbic Bengt Mandersson. rev. 2016

Sigma notation. 2.1 Introduction

NICK DUFRESNE. 1 1 p(x). To determine some formulas for the generating function of the Schröder numbers, r(x) = a(x) =

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Science. BACKGROUND EXAM September 30, 2004.

SOLUTIONS TO EXAM 3. Solution: Note that this defines two convergent geometric series with respective radii r 1 = 2/5 < 1 and r 2 = 1/5 < 1.

Chapter 4. Fourier Series

Question1 Multiple choices (circle the most appropriate one):

A Proof of Birkhoff s Ergodic Theorem

Chapter Vectors

FIR Filter Design: Part II

MAS160: Signals, Systems & Information for Media Technology. Problem Set 5. DUE: November 3, (a) Plot of u[n] (b) Plot of x[n]=(0.

EECE 301 Signals & Systems

CHAPTER 10 INFINITE SEQUENCES AND SERIES

Math 113 Exam 3 Practice

It is often useful to approximate complicated functions using simpler ones. We consider the task of approximating a function by a polynomial.

8. Applications To Linear Differential Equations

CSI 2101 Discrete Structures Winter Homework Assignment #4 (100 points, weight 5%) Due: Thursday, April 5, at 1:00pm (in lecture)

Introduction to Signals and Systems, Part V: Lecture Summary

Ma 530 Introduction to Power Series

We are mainly going to be concerned with power series in x, such as. (x)} converges - that is, lims N n

Olli Simula T / Chapter 1 3. Olli Simula T / Chapter 1 5

Discrete-Time Signals and Systems. Signals and Systems. Digital Signals. Discrete-Time Signals. Operations on Sequences: Basic Operations

ELEG3503 Introduction to Digital Signal Processing

Polynomial Functions and Their Graphs

You may work in pairs or purely individually for this assignment.

In algebra one spends much time finding common denominators and thus simplifying rational expressions. For example:

Subject: Differential Equations & Mathematical Modeling-III

Filter banks. Separately, the lowpass and highpass filters are not invertible. removes the highest frequency 1/ 2and

Unit 6: Sequences and Series

Ma 530 Infinite Series I

Polynomials with Rational Roots that Differ by a Non-zero Constant. Generalities

MAXIMALLY FLAT FIR FILTERS

September 2012 C1 Note. C1 Notes (Edexcel) Copyright - For AS, A2 notes and IGCSE / GCSE worksheets 1

Infinite Sequences and Series

Principle Of Superposition

Section 11.8: Power Series

The Z-Transform. (t-t 0 ) Figure 1: Simplified graph of an impulse function. For an impulse, it can be shown that (1)

Løsningsførslag i 4M

Linear Differential Equations of Higher Order Basic Theory: Initial-Value Problems d y d y dy

Zeros of Polynomials

Chapter 10: Power Series

2D DSP Basics: 2D Systems

Math 2784 (or 2794W) University of Connecticut

Chapter 9: Numerical Differentiation

Signal Processing in Mechatronics. Lecture 3, Convolution, Fourier Series and Fourier Transform

Chapter 2 Systems and Signals

PAPER : IIT-JAM 2010

Properties and Hypothesis Testing

Lesson 10: Limits and Continuity

EE Midterm Test 1 - Solutions

is also known as the general term of the sequence

62. Power series Definition 16. (Power series) Given a sequence {c n }, the series. c n x n = c 0 + c 1 x + c 2 x 2 + c 3 x 3 +

Math 312 Lecture Notes One Dimensional Maps

A.1 Algebra Review: Polynomials/Rationals. Definitions:

Discrete-time signals and systems See Oppenheim and Schafer, Second Edition pages 8 93, or First Edition pages 8 79.

SECTION 1.5 : SUMMATION NOTATION + WORK WITH SEQUENCES

Most text will write ordinary derivatives using either Leibniz notation 2 3. y + 5y= e and y y. xx tt t

CS / MCS 401 Homework 3 grader solutions

Apply change-of-basis formula to rewrite x as a linear combination of eigenvectors v j.

2.4 - Sequences and Series

[ 11 ] z of degree 2 as both degree 2 each. The degree of a polynomial in n variables is the maximum of the degrees of its terms.

The Discrete Fourier Transform

Mechatronics. Time Response & Frequency Response 2 nd -Order Dynamic System 2-Pole, Low-Pass, Active Filter

Sequences, Mathematical Induction, and Recursion. CSE 2353 Discrete Computational Structures Spring 2018

Calculus 2 - D. Yuen Final Exam Review (Version 11/22/2017. Please report any possible typos.)

1 Generating functions for balls in boxes

Web Appendix O - Derivations of the Properties of the z Transform

Module 18 Discrete Time Signals and Z-Transforms Objective: Introduction : Description: Discrete Time Signal representation

Transcription:

ECE-S352 Itroductio to Digital Sigal Processig Lecture 3A Direct Solutio of Differece Equatios Discrete Time Systems Described by Differece Equatios Uit impulse (sample) respose h() of a DT system allows us to use the covolutio summatio to fid the respose of the same system to ay iput x() y() = h(k)x(-k) k = - Easy to do for FIR (fiite impulse respose) systems; however IIR (ifiite impulse respose) systems are a little more challegig. So, what is a Differece Equatio? Solutio is to use differece equatios. Recursive Differece Equatio Examples: Cosider the cumulative average of a sigal i the iterval 0<=k<= y() = 1/(+1) x(k) Implemetatio of the above equatio requires storage for all the iputs x(), i fact if we wated to add more iputs (say goes to +5) we eed additioal storage uits. Also ote that each time we add more terms we must perform the summatio all over. However we ca write the summatio equatio as: -1 (+1)y() = x(k) + x() ECE-S352 DSP 1 of 13

ad ote: thus: -1 y(-1) = 1/ x(k) by defiitio y() = /(+1)y(-1) + 1/(+1) x() Here the cumulative average is easily foud by the recursive differece equatio. Cosider computig y( o ): all we eed is to have the iput x( o ) ad the iitial coditio y( o -1): y( o ) = o /( o +1)y( o -1) + 1/( o +1) x( o ) The followig is a realizatio of the recursive differece equatio for the cumulative sum. x() 1/(+1) y() Recursive ad No-recursive DT Systems Desirable/ecessary to express output of system ot oly i terms of the preset ad past values of the iput (as i covolutio summatio) but also i terms of the available past output values. A causal ad realizable recursive system ca be expressed as: y() = F[y(-1), y(-2), y(-n), x(), x(-1), x(-m)] ECE-S352 DSP 2 of 13

The above is called a recursive equatio ad provides the recipe for computig the system output as a fuctio F[.] of previous values of the output ad preset ad past iputs. This should be compared to a fuctio that oly depeds o the preset ad past iputs (such as a FIR covolutio summatio). y() = F[x(), x(-1), x(-m)] The above equatio is called o-recursive. Causal, realizable o-recursive system Causal, realizable recursive system (presece of feedback loop) ECE-S352 DSP 3 of 13

LTI Systems with Costat Coefficiet Differece Equatios Cosider: y() = ay(-1) + x() where a is a costat, y(-1) is I.C. y(0) = ay(-1) + x(0) y(1) = ay(0) + x(1) = a 2 y(-1) + ax(0) + x(1) y(2) = ay(1) + x(2) = a 3 y(-1) + a 2 x(0) + ax(1) + x(2) y() = ay(-1) + x() = a +1 y(-1) + a x(0) + a -1 x(-1) + ax(-1) + x() = a +1 y(-1) + a k x(-k) >=0 respose due to IC + respose due to iput Respose due to iput: y zs () = a k x(-k) >=0 forced respose zero-state respose (i.e. iitial coditios = 0) covolutio of iput x() with impulse respose h() = a u() Respose due to IC: y zi () = a +1 y(-1) >=0 due to memory of system atural respose (i.e. iitial coditios 0) zero-iput respose (x() = 0) homogeeous respose Total respose of the system: y() = y zi () + y zs () = y Total () = y T () ECE-S352 DSP 4 of 13

Geeral form of a recursive system described by costat coefficiet differece equatio: N M y() = - a k y(-k) + b k x(-k) k = 1 (ote mius sig) sometimes writte without explicitly solvig for y() as: N M a k y(-k) + b k x(-k) = 0 where a 0 1 (to get y()) Here there are delayed terms for both the iput ad output variable. N is the order of the differece equatio or the order of the system Hit Geerally M < N otherwise pick M if M>N. The recursive system described by a costat coefficiet differece equatio is liear ad time ivariat. Solutio of Liear Costat Coefficiet Differece Equatios: y() = y h () + y p () = homogeeous solutio + particular solutio homogeeous solutio also called complemetary solutio Homogeeous solutio: Assume that iput x() = 0, this gives us the atural respose N a k y(-k) = 0 Assume a solutio of the form: y h () = λ ECE-S352 DSP 5 of 13

Substitutio ito the homogeeous equatio yields: N a k λ - λ -N (λ N + a 1 λ N-1 + a 2 λ N-2 + a -1 λ 1 + a N ) = 0 where: λ N + a 1 λ N-1 + a 2 λ N-2 + a -1 λ 1 + a N = 0 is called the characteristic equatio (CE), if ot set to zero the the characteristic polyomial(cp) Roots of CE may be real or complex, ad some may be of multiple order. A th order system has roots, this may be repeated roots. The geeral solutio for distict roots is: y h () = C 1 λ 1 + C 2 λ 2 + C 3 λ 3 + C N λ N where the coefficiets are foud from the iitial coditios. Be careful i evaluatio homogeeous vs. complete. For repeated roots say λ 1 of multiplicity m we have: y h () = C 10 λ 1 C 11 λ 1 + C 12 2 λ 1 + + C 1(m-1) (m-1) λ 1 + + C 2 λ 2 + C 3 λ 3 + C N λ N coefficiets C rx : x stads for the power of multiplyig the repeated root or eigevalue λ r. ECE-S352 DSP 6 of 13

Example: Give: y() + a 1 y(-1) = x() Fid the homogeeous solutio. 1. y h () = λ assumed solutio with x() = 0 2. y h () + a 1 y h (-1) = 0 3. λ + a 1 λ -1 = 0 4. λ -1 (λ + a 1 ) = 0 5. root: λ = -a 1 later we will also call this a eigevalue 6. y h () = C(-a 1 ) 7. assumig the IC is the y(-1) symbol a. y(0) = - a 1 y(-1) b. y h () = C(-a 1 ) evaluated at =0 c. y h (0) = C d. hece C = - a 1 y(-1) 8. y h () = C(-a 1 ) = - a 1 y(-1)(-a 1 ) >=0 Note that DT solutios like to combie powers of for more succict otatio: 9. y h () = C(-a 1 ) = - a 1 y(-1)(-a 1 ) = y(-1)(-a 1 ) +1 >=0 As a check, evaluate y h (0) ad see it equals the IC y h (0) = y(-1)(-a 1 ) 1 which matches y(0) = - a 1 y(-1) ECE-S352 DSP 7 of 13

Secod order Differece Equatio Fid the homogeeous (or zero iput respose) solutio of : y() 3y(-1) 4y(-2) = 0 1. y h () = λ assumed solutio with x() = 0 2. substitute to get characteristic equatio: λ 3 λ -1-4λ -2 = 0 3. factor out λ -2 yieldig: λ -2 ( λ 2 3 λ 1 4) = 0 ( λ 2 3 λ 1 4) = ( λ +1) (λ - 4) = 0 4. fid roots of CE (or CP) λ 1 = -1, λ 2 = 4 5. solutio: y h () = C 1 (λ 1 ) + C 2 (λ 2 ) = C 1 (-1) + C 2 (4) 6. determie {C 1 C 2 } from the IC's y(-1) ad y(-2) a. y() = 3y(-1) + 4y(-2) evaluate at =0 ad = 1 b. y(0) = 3y(-1) + 4y(-2) c. y(1) = 3y(0) + 4y(-1) = 3[3y(-1) + 4y(-2)]+4y(-1) = 13y(-1) + 12y(-2) 7. y h () = C 1 (-1) + C 2 (4) evaluated at =0 ad =1 y h (0) = C 1 + C 2 y h (1) = -C 1 + 4C 2 8. ow equatig y h (0) = y(0) ad y h (1) =y(1) gives us two equatios i two ukows: y h (0) = y(0) => C 1 + C 2 = 3y(-1) + 4y(-2) = S1 y h (1) =y(1) => -C 1 + 4C 2 = 13y(-1) + 12y(-2) = S2 solve via matrix techiques: 1 1 C1 S1 = 1 4 C2 S2 ECE-S352 DSP 8 of 13

C C 1 2 = 1 1 1 4 1 S1 S2 C C 1 2 = 4 1 1 1 S1 5 S2 C1 = 1/5(4S1 S2) C2 = 1/5(S1+S2) C1 = 1/5[12y(-1) + 16y(-2) [13y(-1) + 12y(-2)]] C1 = 1/5[-y(-1) + 4y(-2)] C2 = 1/5[3y(-1) + 4y(-2) +13y(-1) + 12y(-2)] C2 = 16/5[y(-1) + y(-2)] 9. solutio: y h () = C 1 (λ 1 ) + C 2 (λ 2 ) = C 1 (-1) + C 2 (4) >=0 y h () = 1/5[-y(-1) + 4y(-2)] (-1) + 16/5[y(-1) + y(-2)](4) 10. It is good practice to check the solutio (homogeeous, particular ad complete) by testig the IC's y h (0) = 3y(-1) + 4y(-2) y h (1) = 13y(-1) + 12y(-2) y h () = 1/5[-y(-1) + 4y(-2)] (-1) + 16/5[y(-1) + y(-2)](4) Did it work????? Also test by recursio: y() = 3y(-1) + 4y(-2) ECE-S352 DSP 9 of 13

Aother way to get CE or CP (referece VaLadigham 1991) Defie E as the shift operator. The: E[y()] = y(+1) E 2 [y()] = y(+2) E m [y()] = y(+m) Recall our otatio for the homogeeous equatio: N a k y(-k) = 0 0 = a 0 y()+ a 1 y(-1) + a 2 y(-2)+ a N-1 y(-(n-1)) + a N y(-n) But this is i terms of y(-m) ot y(+m) so we must chage the idices. Shift everythig by N (i.e. add N to each argumet of y) so that there are o egative sigs i the argumets. This does ot chage the relatioship of the equatio. 0 = a 0 y(+n)+ a 1 y(+n-1) + a 2 y(+n-2)+ a N-1 y(+1) + a N y() Now applyig the E operator 0 = [a 0 E N + a 1 E N-1 + a 2 E N-2 + a N-1 ye + a N ]y() Compare the polyomial i E to the polyomial i λ formed by assumig a solutio λ -N (λ N + a 1 λ N-1 + a 2 λ N-2 + a N-1 λ 1 + a N ) = 0 The resultig polyomial i E is the characteristic polyomial whose roots are the eigevalues used for the solutio. Example: Give: y() 3y(-1) 4y(-2) = 0 Rewrite as: y(+2) 3y(+1) 4y() = 0 E: (E 2 3E- 4)y() = 0 = (E +1)(E - 4) Same as before: λ -2 ( λ 2 3 λ 1 4) = ( λ 2 3 λ 1 4) = ( λ +1) (λ - 4) = 0 ECE-S352 DSP 10 of 13

Particular Solutio: The particular solutio y p () is ay solutio satisfyig The form for y p () depeds o x(). N M a k y p (-k) + b k x(-k) where a 0 1 Iput Sigal x() Particular solutio y p () A -- costat K AM umber to power KM A M -- power of K 0 M + K 1 (M-1) + K m A M A (K 0 M + K 1 (M-1) + K m ) Acosω 0 or K 1 cosω 0 +K 2 siω 0 Asiω 0 The coefficiet of the particular solutio will be evaluated as a fuctio of the iput coefficiet. You may have see this called the method of udetermied coefficiets. Example: Fid the particular solutio of the differece equatio: y() = 5/6 y(-1) 1/6y(-2) + x() where x() = 2 >=0 ad zero elsewhere thus x() = 2 u() 1. y p () = K 2 u() the u() keeps values for >=0 2. Substitutig ito DE yields: y p () = 5/6 y p (-1) 1/6y p (-2) + x() K 2 u() = 5/6K2-1 u(-1) 1/6K2-2 u(-2) + 2 u() 3. To fid K all that is eeded is to pick a value of where oe of the terms vaish; so ay >=2 is a valid choice. Usig = 2 K 2 2 u(2) = 5/6K2 2-1 u(2-1) 1/6K2 2-2 u(2-2) + 2 2 u(2) 4K = 5/6K2 1/6K + 4 K = 8/5 4. y p () = (8/5) 2 u() or y p () = 8/5 2 >=0 ECE-S352 DSP 11 of 13

Total Solutio: y() = y h () + y p () Allowed by the property of liearity. It is very importat to evaluate the costats, C i correspodig to the homogeeous solutio after we form the complete solutio. The particular solutio is foud first (with its coefficiets), the the homogeeous solutio with its C i terms is added to fid the complete or total solutio. Fially the C i terms are evaluated usig the iitial coditios. Example Give: y() + a1y(-1) = x() fid y() whe x() is a uit step sequece ad y(-1) is the iitial coditio (symbolic) 1. y h (x) = C(-a1) from our previous example 2. y p () = 1/(1+a1)u() from text pg 104 3. hece y() = C(-a1) + 1/(1+a1) >=0 4. compute C to satisfy IC: y(-1) with iput preset y() + a1y(-1) = x() evaluate at =0 y(0) + a1y(-1) = 1 y(0) = C + 1/(1+a1) from solutio 1 - a1y(-1) = C + 1/(1+a1) equatig C = 1- a1y(-1) - 1/(1+a1) C = a1/(1+a1) - a1y(-1) 5. y() = C(-a1) + 1/(1+a1) >=0 y() = [a/(1+a1) - a1y(-1)](-a1) + 1/(1+a1) y() = - a1y(-1)(-a1) + [1 - (-a1) +1 ]/(1+a1) y() is the complete solutio icludes the zero iput respose ad the zero state respose. What happes if y(-1) = 0? zero-state respose oly ECE-S352 DSP 12 of 13

A Detailed Example: Fid y(k) give: y(k+2) 3y(k+1) + y(k) = 3 k y(0) = 2 ad y(1) = 2 We ca check this by usig the recursive equatio to compute the first few terms. ECE-S352 DSP 13 of 13