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

Similar documents
DSP-I DSP-I DSP-I DSP-I

Lecture 1 From Continuous-Time to Discrete-Time

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

EE 210. Signals and Systems Solutions of homework 2

Differential and Difference LTI systems

Chapter 3 Convolution Representation

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

EE Homework 5 - Solutions

Euler-Cauchy Using Undetermined Coefficients

ECE 314 Signals and Systems Fall 2012

Frequency-Domain C/S of LTI Systems

Lecture 19 IIR Filters

Elementary ODE Review

Ch 2: Linear Time-Invariant System

ECE 301 Fall 2011 Division 1 Homework 5 Solutions

Module 1: Signals & System

Systems. x 1 = ax 1 + bx 2, x 2 = cx 1 + dx 2,

Course roadmap. ME451: Control Systems. Example of Laplace transform. Lecture 2 Laplace transform. Laplace transform

Lecture 11 FIR Filters

The Convolution Sum for Discrete-Time LTI Systems

4.2 Homogeneous Linear Equations

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

PROBLEM SET 3. Note: This problem set is a little shorter than usual because we have not covered inverse z-transforms yet.

Lecture 3 January 23

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

Discrete-Time Fourier Transform (DTFT)

信號與系統 Signals and Systems

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

信號與系統 Signals and Systems

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

Lecture 1: Introduction Introduction

Homework 6 Solutions

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

GATE EE Topic wise Questions SIGNALS & SYSTEMS

Solutions to Homework 5, Introduction to Differential Equations, 3450: , Dr. Montero, Spring y 4y = 48t 3.

Chapter 3 : Linear Differential Eqn. Chapter 3 : Linear Differential Eqn.

MATH 312 Section 4.5: Undetermined Coefficients

Problem Set 3: Solution Due on Mon. 7 th Oct. in class. Fall 2013

EEL3135: Homework #4

Question Paper Code : AEC11T02

Chapter 2 Time-Domain Representations of LTI Systems

Section 2.4 Linear Equations

DIGITAL SIGNAL PROCESSING LECTURE 1

Module 4 : Laplace and Z Transform Problem Set 4

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

LINEAR EQUATIONS OF HIGHER ORDER. EXAMPLES. General framework

Discrete-time signals and systems

MATH 2250 Final Exam Solutions

MATH 312 Section 8.3: Non-homogeneous Systems

Forced Mechanical Vibrations

School of Mechanical Engineering Purdue University. ME375 Dynamic Response - 1

/ \ ( )-----/\/\/\/ \ / In Lecture 3 we offered this as an example of a first order LTI system.

6 Systems Represented by Differential and Difference Equations

The Johns Hopkins University Department of Electrical and Computer Engineering Introduction to Linear Systems Fall 2002.

Control Systems I. Lecture 6: Poles and Zeros. Readings: Emilio Frazzoli. Institute for Dynamic Systems and Control D-MAVT ETH Zürich

MAE143A Signals & Systems - Homework 5, Winter 2013 due by the end of class Tuesday February 12, 2013.

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

Lecture 10: Powers of Matrices, Difference Equations

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.

Discussion Section #2, 31 Jan 2014

Linear Filters and Convolution. Ahmed Ashraf


Math 308 Week 8 Solutions

Solutions to Math 53 Math 53 Practice Final

Interconnection of LTI Systems

(i) Represent continuous-time periodic signals using Fourier series

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

QUESTION BANK SIGNALS AND SYSTEMS (4 th SEM ECE)

We consider systems of differential equations of the form. x 1 = ax 1 + bx 2,

Time Response of Systems

Finding Transfer Functions of Circuits Using State-Space

Chap 2. Discrete-Time Signals and Systems

Digital Signal Processing Lecture 4

Review Problems for Exam 2

Control Systems I. Lecture 7: Feedback and the Root Locus method. Readings: Jacopo Tani. Institute for Dynamic Systems and Control D-MAVT ETH Zürich

Solutions - Homework # 3

ECE317 : Feedback and Control

Introduction to Modern Control MT 2016

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

Using MATLAB with the Convolution Method

Signals & Systems interaction in the Time Domain. (Systems will be LTI from now on unless otherwise stated)

SECOND-ORDER DIFFERENTIAL EQUATIONS

EE 225D LECTURE ON DIGITAL FILTERS. University of California Berkeley

Lecture 2. Introduction to Systems (Lathi )

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

SOLVING DIFFERENTIAL EQUATIONS. Amir Asif. Department of Computer Science and Engineering York University, Toronto, ON M3J1P3

LTI Systems (Continuous & Discrete) - Basics

Systems of differential equations Handout

Identification Methods for Structural Systems. Prof. Dr. Eleni Chatzi System Stability - 26 March, 2014

ECE-314 Fall 2012 Review Questions for Midterm Examination II

EE123 Digital Signal Processing

Chapter Intended Learning Outcomes: (i) Understanding the relationship between transform and the Fourier transform for discrete-time signals

Problem Value Score No/Wrong Rec 3

Lecture 8: Ordinary Differential Equations

Linear algebra and differential equations (Math 54): Lecture 20

One Dimensional Convolution

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

June 2011 PURDUE UNIVERSITY Study Guide for the Credit Exam in (MA 262) Linear Algebra and Differential Equations

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

Calculus for the Life Sciences II Assignment 6 solutions. f(x, y) = 3π 3 cos 2x + 2 sin 3y

Transcription:

S&S S&S S&S Signals Systems (-96) Spring Semester, 2009 Department of Electrical Computer Engineering SOLUTION OF DIFFERENTIAL AND DIFFERENCE EQUATIONS Note: These notes summarize the comments from the lecture on January 25, 2009 concerning the solution of linear constant-coefficient differential difference equations. Introduction Differential equations difference equations are a complementary way of characterizing the response of LTI/LSI systems (along with their impulse responses various transfm-based characterizations that we will discuss later in the semester). In these notes we review how they are solved using two relatively simple examples in continuous time discrete time. I. Linear constant-coefficient differential equations In general, differential equations can be expressed as N d k yt () a k k k 0 M d l xt () b l - l l 0 Recall that the solution to all differential equations is the sum of two solutions, the homogenous solution y h () t the particular solution y p () t : yt () y h () t + y p () t We consider the specific second-der equation yt () with dy() t d2 yt () 2 xt () dx () t xt () e t ut () The homogenous solution ( natural response transient response) reflects characteristics of the system itself, independently of the input to the system. The particular solution ( fced response steady-state response) is dependent only on the characteristics of the input. The homogeneous solution. The homogeneous solution y h () t is obtained by assuming solutions of the fm y h () t Ae st solving the iginal equation with the input xt () equal to zero:

-96 Notes on Differential Difference Equations-2- Spring, 2009 y h () t dy h () t d2 y h () t - 2 0 Ae st saest s 2 Ae st 0 Dividing by the common term Ae st s s 2 0 solving f s we obtain the characteristic equation which solves to ( s + ) ( s 2) 0 s 2 s The most general fm of the solution would be a linear combination of the two terms: y h () t A e t + A 2 e 2t f t > 0 The particular solution. The particular solution is obtained by assuming an output that is proptional to the input, at least f exponential inputs. (Remember also that a constant input is a special case of the exponential input.) In our example we would have Plugging this s 2 + 2s 0 y p () t Ke t y p () t y p () t into our equation, we obtain dy p () t d2 y p () t - 2 xt () dx () t Ke t ( )Ke t 9 ( )Ke t e t ( )e t Dividing both sides by the common fact e t we obtain K 9 + + 9 + K 2-5 Completing the solution. Combining our results, we now have yt () y h () t + y p () t A e t A 2 e 2t 2 t + + -e 5 We obtain values f the remaining coefficients A A 2 by invoking the conditions of initial rest that are necessary f the system to be linear time invariant. This means that at the instant befe the input is applied ( t 0 in our case), yt () all its derivatives must equal zero:

-96 Notes on Differential Difference Equations Spring, 2009 yt () t 0 dy - t 0 0 This produces 2 A + A 2 + - 0 f yt () 5 A + 2A 2 2-0 5 f dy - Solving the system of equations (with the help of MATLAB) produces A 7 A 2. yt () 7e t.e 2t 2 + -e t ut () 5 II. Linear constant-coefficient difference equations x[n] h[n] y[n] Introduction. Difference equations in discrete-time systems play the same role in characterizing the timedomain response of discrete-time LSI systems that differential equations play f continuous-time LTI systems. In the most general fm we can write difference equations as N M a k yn k b m xn [ m] k 0 m 0 where (as usual) xn [ ] represents the input yn [ ] represents the output. Since we can set a 0 equal to 0 without any loss of generality, we can rewrite this as N yn [ ] a k yn [ k] + b m xn [ m] k M m 0 In this representation we characterize the present output of an LSI system as a linear combination of past outputs combined with a linear combination of the present previous inputs. As befe, the difference equations alone do not uniquely specify the system. Initial conditions are needed as well. Nmally we

-96 Notes on Differential Difference Equations Spring, 2009 assume initial rest (i.e. the output is zero befe the input is applied). Otherwise the system would be neither linear n shift-invariant, as was discussed in Problem Set. Difference equations can be solved analytically, just as in the case of dinary differential equations. As befe, the solution involves obtaining the homogenous solution ( the natural frequencies) of the system, the particular solution ( the fced response). In this hout we consider the specific example of the simple difference equation yn [ ] y[ n ] y[ n 2] xn [ ] x[ n ], yn [ ] y[ n ] + y[ n 2] + x[ n] x[ n ] Solution by iteration. Let s first obtain the solution of this equation via iteration. This can be done by setting up a table of variables, entering the known entries f xn [ ] xn [ ] f all n, plus the initial conditions yn [ ] yn [ 2] 0 f n 0 yn [ 2] 0 f n, then filling in the remaining entries row by row:: n x[ n] xn [ ] yn [ 2] yn [ ] yn [ ] 0 0 0 0 / 0 2 /9 / 7/2 /27 /9 7/2 etc. / /27 7/2 We see, f example, that y[ 0] y[ ]. The homogeneous solution. As befe, the homogeneous solution is obtained by assuming solutions of an exponential fm, although this time we will use solved with the input y h [ n] xt () y h [ n ] Aα n Aαn equal to zero: y h [ n 2] 0 Aα n 2 0. Again, the iginal equation is Dividing by the common term Aα n solving f α we obtain the characteristic equation α α 2 0 y h [ n] y h [ n] Aα n

-96 Notes on Differential Difference Equations-5- Spring, 2009 α 2 α 0 which solves to α + α 0 α 2 α 2 The most general fm of the solution would be a linear combination of the two terms: y h [ n] A f n + A 2 2 n n > 0 The particular solution. As befe, particular solution is obtained by assuming an output that is proptional to the input. Here we would have Unftunately, the initial conditions can not be applied as easily f the case of discrete-time systems as they are f continuous-tome systems.in the case of the differential equations, the initial conditions are that the output all its derivitatives are zero when the input is applied. In the case of the difference equations the constraints are that all values of the output are zero when the input is applied. (Actually it is only necessary f the previous N values to be zero. In the example given, N 0 so the initial conditions are yn [ ] yn [ 2] 0. The problem arises because the total system input is (i.e. the right side of the difference equation) is This is an issue because while the first term is valid f n 0, the second term is valid only f n. Hence a single set of initial conditions cannot be applied at n 0. There are at least two ways of wking around this problem. SOLUTION I y p [ n] Kβ n n un [ ] n un [ ] In this method (which is the one discussed in the lecture) we first solve f a simple exponential input then obtain the solution we really want via superposition. Specifically, we solve the equation vn [ ] v[ n ] v[ n 2] n un [ ] The solution to our iginal equation is then obtained via superposition: yn [ ] v[ n] v[ n ] Note that vn [ ] v h [ n] + v p [ n] v h [ n] y h [ n] which we have already obtained.

-96 Notes on Differential Difference Equations-6- Spring, 2009 The particular solution can be easiliy obtained by letting v p [ n] K n Plugging in to the iginal equation we obtain v p [ n] v p [ n ] v p [ n 2] n un [ ] K n K n K n 2 n Dividing through by the common fact n we obtain K ( )K K 9 9 ( )K 7 v p [ n] 7 n Hence, the total solution is vn [ ] A + A 2 2 7 n Now we can apply the initial conditions v[ ] v[ 2] 0. Solving f n n 2 in turn, we obtain A A 2 2 + 7 0 A 2 A 2 2 2 + 7 2 0... A + 2A 2 6A + A 2 2-7 72-7 Solving this system of equations yields A A. 7 2 2

-96 Notes on Differential Difference Equations-7- Spring, 2009 So the complete solution f vn [ ] is vn [ ] n 2 7 2 n + 7 n un [ ] And now we can (finally) obtain our iginal solution as yn [ ] v[ n] v[ n ] yn [ ] n 2 7 2 n 7 n + un [ ] n 2 7 2 n 7 n + un [ ] Note that y[ 0] y[ ] as obtained iginally by iteration. This is a lot of wk! We will be able to obtain the same result much me easily later in the semester via transfm techniques. SOLUTION 2 The second approach (which probably is easier) is to use the iginal equation solve f the undetermined coefficients applying the initial conditions f values of n that occur after all inputs have been applied. These values would nmally be obtained by iteration. Details on this approach will be added later.