The Convolution Sum for Discrete-Time LTI Systems

Similar documents
Properties of LTI Systems

Analog vs. discrete signals

6.02 Fall 2012 Lecture #11

6.02 Fall 2012 Lecture #10

Digital Signal Processing Lecture 4

Digital Signal Processing

New Mexico State University Klipsch School of Electrical Engineering EE312 - Signals and Systems I Fall 2015 Final Exam

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

ELEG 305: Digital Signal Processing

Professor Fearing EECS120/Problem Set 2 v 1.01 Fall 2016 Due at 4 pm, Fri. Sep. 9 in HW box under stairs (1st floor Cory) Reading: O&W Ch 1, Ch2.

Lecture 2 Discrete-Time LTI Systems: Introduction

Chapter 3 Convolution Representation

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

Chap 2. Discrete-Time Signals and Systems

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

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

Discussion Section #2, 31 Jan 2014

信號與系統 Signals and Systems

Module 1: Signals & System

EC Signals and Systems

Digital Signal Processing Lecture 3 - Discrete-Time Systems

EE 210. Signals and Systems Solutions of homework 2

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

Therefore the new Fourier coefficients are. Module 2 : Signals in Frequency Domain Problem Set 2. Problem 1

Signals and Systems Profs. Byron Yu and Pulkit Grover Fall Midterm 2 Solutions

信號與系統 Signals and Systems

Review of Frequency Domain Fourier Series: Continuous periodic frequency components

EE 224 Signals and Systems I Review 1/10

Module 3. Convolution. Aim

CH.3 Continuous-Time Linear Time-Invariant System

Discrete-time signals and systems

LTI Systems (Continuous & Discrete) - Basics

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

1. Linearity of a Function A function f(x) is defined linear if. f(αx 1 + βx 2 ) = αf(x 1 ) + βf(x 2 )

The objective of this LabVIEW Mini Project was to understand the following concepts:

VU Signal and Image Processing

EE Homework 5 - Solutions

Frequency Response (III) Lecture 26:

Ch 2: Linear Time-Invariant System

Chapter 2 Time-Domain Representations of LTI Systems

ELEN E4810: Digital Signal Processing Topic 2: Time domain

ECE 308 Discrete-Time Signals and Systems

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

NAME: 13 February 2013 EE301 Signals and Systems Exam 1 Cover Sheet

Digital Signal Processing Lecture 5

Lecture 1 From Continuous-Time to Discrete-Time

ECE 314 Signals and Systems Fall 2012

Lecture 11 FIR Filters

Review of Fundamentals of Digital Signal Processing

Discrete Time Signals and Systems Time-frequency Analysis. Gloria Menegaz

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

Chapter 7: The z-transform

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

Convolution and Linear Systems

06/12/ rws/jMc- modif SuFY10 (MPF) - Textbook Section IX 1


Interconnection of LTI Systems

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

considered to be the elements of a column vector as follows 1.2 Discrete-time signals

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

EE361: Signals and System II

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

III. Time Domain Analysis of systems

Signal Processing and Linear Systems1 Lecture 4: Characterizing Systems

ECE-S Introduction to Digital Signal Processing Lecture 4 Part A The Z-Transform and LTI Systems

Lecture 1: Introduction Introduction

Differential and Difference LTI systems

2 Classification of Continuous-Time Systems

SIGNALS AND SYSTEMS. Unit IV. Analysis of DT signals

Lecture 3 January 23

DIGITAL SIGNAL PROCESSING LECTURE 1

ECE-314 Fall 2012 Review Questions for Midterm Examination II

ECE 301: Signals and Systems. Course Notes. Prof. Shreyas Sundaram. School of Electrical and Computer Engineering Purdue University

QUESTION BANK SIGNALS AND SYSTEMS (4 th SEM ECE)

Fourier series for continuous and discrete time signals

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

Interchange of Filtering and Downsampling/Upsampling

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

Solving Dynamic Equations: The State Transition Matrix II

Linear Convolution Using FFT

Fundamentals of Digital Signal Processing

Discrete-Time Signals & Systems

Homework 6 Solutions

ENT 315 Medical Signal Processing CHAPTER 2 DISCRETE FOURIER TRANSFORM. Dr. Lim Chee Chin

Chapter 2: Linear systems & sinusoids OVE EDFORS DEPT. OF EIT, LUND UNIVERSITY

EEL3135: Homework #4

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

Using MATLAB with the Convolution Method

The z-transform Part 2

Discrete-Time Fourier Transform (DTFT)

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

Introduction to DFT. Deployment of Telecommunication Infrastructures. Azadeh Faridi DTIC UPF, Spring 2009

Question Paper Code : AEC11T02

LTI Models and Convolution

EE123 Digital Signal Processing

ECE503: Digital Signal Processing Lecture 6

S&S S&S S&S. Signals and Systems (18-396) Spring Semester, Department of Electrical and Computer Engineering

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

Review of Fundamentals of Digital Signal Processing

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

Transcription:

The Convolution Sum for Discrete-Time LTI Systems Andrew W. H. House 01 June 004 1 The Basics of the Convolution Sum Consider a DT LTI system, L. x(n) L y(n) DT convolution is based on an earlier result where we showed that any signal x(n) can be expressed as a sum of impulses. x(n) = x(k)δ(n k) So let us consider x(n) written in this form to be our input to the LTI system. [ ] y(n) = L [x(n)] = L x(k)δ(n k) This looks like our general linear form with a scalar x(k) and a signal in n, δ(n k). Recall that for an LTI system: Linearity (L): ax 1 (n) + bx (n) L ay 1 (n) + by (n) Time Invariance (TI): x(n n o ) L y(n n o ) We can use the property of linearity to distribute the system L over our input. [ ] y(n) = L x(k)δ(n k) = x(k)l [δ(n k)] So now we wonder, what is L [δ(n k)]? Well, we can figure it out. Suppose we know how L acts on one impulse δ(n), and we call it h(n) = L [δ(n)] ENGI 784 Discrete-Time Systems and Signals 1

then by time invariance we get our answer. h(n k) = L [δ(n k)] δ(n k) L h(n k) This means that if we know one input-output pair for this system, namely δ(n) L h(n) then we can infer which gives us the following. x(n) L y(n) y(n) = x(k)h(n k) This is the convolution sum for DT LTI systems. The convolution sum for x(n) and h(n) is usually written as shown here. y(n) = x(n) h(n) = x(k)h(n k) 1.1 Comments on the DT Convolution Sum 1. A system s impulse response, h(n), completely characterizes the behaviour of the system.. The impulse response h(n) can be generated directly from δ(n) through L, since δ(n) is an actual signal in DT. Thus, we can actually find the impulse response experimentally. 3. Compare convolution in DT and CT. DT convolution has an output variable n and a dummy variable k which causes a shift and flip. DT y(n) = x(n) h(n) = x(k)h(n k) CT convolution has one signal in terms of the dummy variable, and the other shifted and flipped on the dummy variable, but centred on the output variable. CT y(t) = x(t) h(t) = x(τ)h(t τ)dτ ENGI 784 Discrete-Time Systems and Signals

4. CT convolution is a model of behaviour of CT systems. DT convolution is a model of behaviour of DT systems, but also an algorithm we can use to implement the system, since it is computable. This is another reason why we prefer DT signals and systems. Examples of Convolution Convolution is best understood when seen in action. Let s look at a couple of examples, one using signals and impulse responses defined functionally, and another with an impulse response defined point-wise. Example.1: DT Convolution: Step Response Say we are given the following signal x(n) and system impulse response h(n). ( ) n 1 x(n) = u(n) and h(n) = u(n) We wish to find the step response s(n) of the system (i.e. the response of the system to the unit step input x(n) = u(n). This is shown below. s(n) = x(n) h(n) = x(k)h(n k) Thus the step response is as follows, found by substituting our actual signals into the general convolution sum. s(n) = u(k) ( ) n k 1 u(n k) Let s look at this step response in smaller ranges to see what happens. First, consider the case where n < 0. ENGI 784 Discrete-Time Systems and Signals 3

Here, s(n) = 0. This is because u(n k) (and the associated exponential) will be starting at a point less than 0 in the k domain, and will extend to, whereas u(k) starts at 0 and extends to +. We can visualize this, say for a value of n =. Notice that there is no non-zero overlap of x(k) and h(n k). Since they are multiplied together, the zero part of one signal cancels out the non-zero part of the other, and vice versa. Thus, s(n) = 0 for n < 0. The more interesting case is when n 0. Recall the convolution sum we are using to determin s(n). s(n) = u(k) ( ) n k 1 u(n k) Note that u(k) means we know the summation will be 0 for all values of k < 0, so we can change the lower limit of the summation to 0. Similarly, the u(n k) term means that the summation for all values of k > n will be 0, since that unit step is flipped and extends toward. So, we can change the upper limit of the summation to n. In the range 0 k n, both of the unit steps will have a value of 1. This is shown below. ENGI 784 Discrete-Time Systems and Signals 4

s(n) = = = = = ( ) n k 1 u(k) u(n k) n ( ) n k 1 1 1 k=0 We can pull out any terms only in n since that is not the summation variable. n ( ) n ( ) k 1 1 k=0 ( ) n n ( 1 1 k=0 ( ) n n 1 k k=0 ) k Now we have a form consistent with a geometric series. We can use that to solve. n Recall k = 1 n+1 = n+1 1 1 k=0 So we have s(n) as follows. ( ) n 1 ( s(n) = n+1 1 ) ( ) n 1 = ( n 1) ( ) ( n ( ) n 1 1 = 1) ( ) n ( ) n ( ) n 1 1 1 = 1 ( ) n 1 s(n) = We can visualize this, say for n =, as shown below. Note how the system output comes from the overlap of the input signal and the shifted and flipped impulse response. ENGI 784 Discrete-Time Systems and Signals 5

So, overall, we have the following step response. [ ( ) n ] 1 s(n) = u(n) The u(n) comes from our first case above since s(n) = 0 for n < 0, and obviously the other part comes from the expression found in the second case above. Now consider some variations on this first example. Example.: Variations on the Step Response 1. How would the system in the previous example react if the input was x(n) = u(n) u(n 4)? We could work this through mathematically, using the convolution sum, but that is not necessary in this case. Remember, our system is LTI. (If the system is not LTI, there is no valid impulse response). Since the system is LTI, we can break down its response. ENGI 784 Discrete-Time Systems and Signals 6

y(n) = L[x(n)] = L[u(n) u(n 4)] = L[u(n)] L[u(n 4)] In the prior example we determined s(n) = L[u(n)] and since the system is time invariant, we also know that s(n 4) = L[u(n 4)]. So, overall, we have the following system output y(n). y(n) = s(n) s(n 4) [ ( ) n ] [ 1 = u(n) ( ) ] n 4 1 u(n 4). Now consider a different system, with impulse response h (n) = δ(n) ( 1 )n u(n). We want the step response of this LTI system. Since this system is LTI, and since the second term of the expression is the system considered in our first example, we can solve as follows without using the convolution sum. ENGI 784 Discrete-Time Systems and Signals 7

s (n) = u(n) h (n) [ ( ) n 1 = u(n) δ(n) u(n)] ( ) n 1 = u(n) δ(n) u(n) u(n) We can use the sifting property on the first term and the second term is just the step response from the first example. s (n) = u(n) s(n) [ ( ) n ] 1 = u(n) u(n) factoring out u(n) ( [ ( ) n ]) 1 = u(n) [ ( ) n ] 1 = u(n) ( ) n 1 s (n) = u(n) These variations have shown how we can deal with more complex systems as combinations of simpler systems that are often already known. Now let s consider an example which is not so nicely mathematically defined. Example.3: Graphical Convolution Even though the convolution sum is nicely defined, sometimes it can t be nicely worked out. Thus, it is also useful to understand the concept of how the convolution sum works. ENGI 784 Discrete-Time Systems and Signals 8

In the convolution sum, the impulse response is written as h(n k), meaning that in the k domain, the impulse response is shifted by n and flipped around that point. We can visualize the convolution operation as that shifted-and-flipped impulse response sliding along the k axis from to as the summation occurs. Whenever there is some non-zero overlap between this shifted-and-flipped impulse response and the input signal, the system output will be non-zero (unless the non-zero overlaps cancel each other). Let s consider a specific example. We are given the impulse response shown below. 0 for n < 0 1 for 0 n 3 h(n) = for 4 n 5 0 for n > 5 Let x(n) = u(n 4). ENGI 784 Discrete-Time Systems and Signals 9

We want to determine y(n) = x(n) h(n) = = = x(k)h(n k) u(k 4)h(n k) We can use u(k 4) to change the summation limits, but it doesn t help much. 1 h(n k) k=4 but we have no convenient functional representation of h(n) to allow us to solve. Consider the solution in a piece-wise fashion. For n < 4, y(n) = 0 since there is only zero overlap between the two signals. This is illustrated below. For n 4, we need to visualize what is happening in order to determine the value of y(n). In the figure below, we can see how h(n k) slides along the k axis and overlaps with x(k). ENGI 784 Discrete-Time Systems and Signals 10

So we have to determine the value of y(n) for specific values of n. We start at the first point of non-zero overlap, when n = 4. When n = 4, y(4) = 1 since only one point of the two signals overlaps, and 1 1 = 1. This is shown in the figure below. When n = 5, y(5) = since it is the sum of the two overlapping points. This is shown in the figure below. Similarly, y(6) = 3 and y(7) = 4. Note that when n = 8, we have a negative overlap, and so y(8) =. This is shown below. ENGI 784 Discrete-Time Systems and Signals 11

For the case where n 9, y(n) = 1 since it is summing over the entire length of the impulse response. This is shown in the figure below. Thus, we can plot our overall y(n) as shown here. Thus, we have evaulated the convolution some graphically by taking advantage of this shifting and flipping behaviour. ENGI 784 Discrete-Time Systems and Signals 1

3 Basic Properties of DT Convolution Discrete-time convolution has several useful properties that allows us to solve systems more easily. 3.1 Commutativity Convolution is a commutative operation, meaning signals can be convolved in any order. x(n) h(n) = h(n) x(n) This quite naturally is true of the convolution sums themselves, as well. x(k)h(n k) = h(k)x(n k) 3. Associativity Convolution is associative, meaning that convolution operations in series can be done in any order. (x(n) h(n)) g(n) = x(n) (h(n) g(n)) This is significant because it means systems in series can be reordered. Thus we have is the same as is the same as is the same as x(n) h(n) g(n) y(n) x(n) h(n) g(n) y(n) x(n) g(n) h(n) y(n) x(n) g(n) h(n) y(n) and so the systems in series can be reordered. ENGI 784 Discrete-Time Systems and Signals 13

3.3 Distributivity Convolution is distributive over addition. x(n) [h(n) + g(n)] = x(n) h(n) + x(n) g(n) This is significant to all parallel connections because it means the following two arrangements are equivalent. is the same as x(n) h(n) + g(n) y(n) 3.4 Identity We have previously established that δ(n) is the identity with respect to discrete-time convolution. Recall x(n) = x(k)δ(n k) = x(n) δ(n) So x(n) δ(n) = x(n). This concept is quite easily extended, so x(n) δ(n n o ) = x(n n o ) for n o x(n n o ) δ(n n 1 ) = x(n (n o + n 1 )) for n o, n 1 Z. Z and Example 3.1: Convolution Properties 1. Consider the following interconnection of systems. ENGI 784 Discrete-Time Systems and Signals 14

The system impulse response of the above overall system can be determined from the properties of DT convolution. h overall (n) = h 1 (n) [(h (n) h 3 (n)) + h 4 (n)] So we get the following overall system output. y(n) = x(n) h overall (n) = x(n) h 1 (n) [(h (n) h 3 (n)) + h 4 (n)] which can be further reducded if desired as = x(n) h 1 (n) h (n) h 3 (n) + x(n) h 1 (n) h 4 (n). Consider the following interconnection of systems. For the above systems, we can apply the same principles as in the first part of the example. Once we have found the overall impulse response, we can find the output just as with any other impulse response (albeit with a lot more tedium). h overall (n) = [h 1 (n) + h (n)] [(h 3 (n) [h 4 (n) + h 5 (n)]) + h 6 (n)] h 7 (n) As we have seen, it is possible to build more complex systems from interconnections of simpler ones, and still have an overall impulse response to represent the system. ENGI 784 Discrete-Time Systems and Signals 15