Linear Constant-Coefficient Difference Equations

Slides:



Advertisements
Similar presentations
ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: Response to a Sinusoidal Input Frequency Analysis of an RC Circuit.
Advertisements

Lecture 7: Basis Functions & Fourier Series
ECE 8443 – Pattern Recognition ECE 3163 – Signals and Systems Objectives: Review Resources: Wiki: State Variables YMZ: State Variable Technique Wiki: Controllability.
Review of Frequency Domain
EE-2027 SaS 06-07, L11 1/12 Lecture 11: Fourier Transform Properties and Examples 3. Basis functions (3 lectures): Concept of basis function. Fourier series.
Laplace Transforms Important analytical method for solving linear ordinary differential equations. - Application to nonlinear ODEs? Must linearize first.
Lecture 19: Discrete-Time Transfer Functions
Lecture 5: Linear Systems and Convolution
Lecture 8: Fourier Series and Fourier Transform
Lecture 14: Laplace Transform Properties
EE-2027 SaS, L11 1/13 Lecture 11: Discrete Fourier Transform 4 Sampling Discrete-time systems (2 lectures): Sampling theorem, discrete Fourier transform.
Lecture 9: Fourier Transform Properties and Examples
Lecture 6: Linear Systems and Convolution
Chapter 3 1 Laplace Transforms 1. Standard notation in dynamics and control (shorthand notation) 2. Converts mathematics to algebraic operations 3. Advantageous.
Discrete-Time Fourier Series
ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: Definition of a System Examples Causality Linearity Time Invariance.
ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: First-Order Second-Order N th -Order Computation of the Output Signal.
1 Signals & Systems Spring 2009 Week 3 Instructor: Mariam Shafqat UET Taxila.
Properties of the z-Transform
EE3010 SaS, L7 1/19 Lecture 7: Linear Systems and Convolution Specific objectives for today: We’re looking at continuous time signals and systems Understand.
CISE315 SaS, L171/16 Lecture 8: Basis Functions & Fourier Series 3. Basis functions: Concept of basis function. Fourier series representation of time functions.
ECE 8443 – Pattern Recognition ECE 3163 – Signals and Systems Objectives: Derivation Transform Pairs Response of LTI Systems Transforms of Periodic Signals.
ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: Review Resources: Wiki: Superheterodyne Receivers RE: Superheterodyne.
ECE 8443 – Pattern Recognition ECE 3163 – Signals and Systems Objectives: First-Order Second-Order N th -Order Computation of the Output Signal Transfer.
ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: Convolution Definition Graphical Convolution Examples Properties.
Fourier Series. Introduction Decompose a periodic input signal into primitive periodic components. A periodic sequence T2T3T t f(t)f(t)
ECE 8443 – Pattern Recognition ECE 3163 – Signals and Systems Objectives: Definition of a System Examples Causality Linearity Time Invariance Resources:
Fourier Analysis of Discrete-Time Systems
Linear Time-Invariant Systems
Representation of CT Signals (Review)
Course Outline (Tentative) Fundamental Concepts of Signals and Systems Signals Systems Linear Time-Invariant (LTI) Systems Convolution integral and sum.
Chapter 2. Signals and Linear Systems
Chapter 2 Time Domain Analysis of CT System Basil Hamed
Motivation Thus far we have dealt primarily with the input/output characteristics of linear systems. State variable, or state space, representations describe.
THE LAPLACE TRANSFORM LEARNING GOALS Definition
ECE 8443 – Pattern Recognition ECE 3163 – Signals and Systems Objectives: Demultiplexing and Demodulation Superheterodyne Receivers Review Resources: Wiki:
ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: Causality Linearity Time Invariance Temporal Models Response to Periodic.
Course Outline (Tentative) Fundamental Concepts of Signals and Systems Signals Systems Linear Time-Invariant (LTI) Systems Convolution integral and sum.
Motivation for the Laplace Transform
Signals and Systems Analysis NET 351 Instructor: Dr. Amer El-Khairy د. عامر الخيري.
ECE 8443 – Pattern Recognition ECE 3163 – Signals and Systems Objectives: Frequency Response Response of a Sinusoid DT MA Filter Filter Design DT WMA Filter.
Linear Constant-Coefficient Difference Equations
ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: FIR Filters Design of Ideal Lowpass Filters Filter Design Example.
Signals and Systems Lecture #6 EE3010_Lecture6Al-Dhaifallah_Term3321.
Description and Analysis of Systems Chapter 3. 03/06/06M. J. Roberts - All Rights Reserved2 Systems Systems have inputs and outputs Systems accept excitation.
Chapter 2 System Models – Time Domain
Learning from the Past, Looking to the Future James R. (Jim) Beaty, PhD - NASA Langley Research Center Vehicle Analysis Branch, Systems Analysis & Concepts.
Math for CS Fourier Transforms
Time Domain Representations of Linear Time-Invariant Systems
Lecture 7: Basis Functions & Fourier Series
Properties of the z-Transform
Control Systems With Embedded Implementation (CSEI)
Recap: Chapters 1-7: Signals and Systems
Description and Analysis of Systems
UNIT II Analysis of Continuous Time signal
Signal and Systems Chapter 2: LTI Systems
Chapter 1 Fundamental Concepts
Notes Assignments Tutorial problems
Lecture 5: Linear Systems and Convolution
LECTURE 18: FOURIER ANALYSIS OF CT SYSTEMS
Signal Processing First
LECTURE 39: APPLICATIONS OF STATE VARIABLES
Signals and Systems Lecture 2
LECTURE 05: CONVOLUTION OF DISCRETE-TIME SIGNALS
LECTURE 07: CONVOLUTION FOR CT SYSTEMS
Lecture 22 IIR Filters: Feedback and H(z)
LECTURE 20: FOURIER ANALYSIS OF DT SYSTEMS
LECTURE 02: BASIC PROPERTIES OF SIGNALS
Laplace Transforms Important analytical method for solving linear ordinary differential equations. - Application to nonlinear ODEs? Must linearize first.
Laplace Transforms Important analytical method for solving linear ordinary differential equations. - Application to nonlinear ODEs? Must linearize first.
Presentation transcript:

LECTURE 06: DIFFERENCE AND DIFFERENTIAL EQUATIONS AND THEIR SOLUTIONS Objectives: Difference Equations Recursive Solutions Differential Equations Numerical Solutions Representation of CT SIgnals Resources: Wiki Difference Equations DS: Diff. To. Differential TK: Diff. Eq. Tutorial MIT 6.003: Lecture 4 MS Equation 3.0 was used with settings of: 18, 12, 8, 18, 12. URL: Audio:

Linear Constant-Coefficient Difference Equations We can model the input/output behavior of a DT LTI systems using an Nth-order input/output difference equation (also called a digital filter): DT LTI Solution of such equations can be easily computed by solving for y[n]: Let us consider a simple example: Let us assume: (the latter are referred to as initial conditions). The output can be computed using a table: n x[n] x[n-1] x[n-2] y[n] y[n-1] y[n-2] 1 2 3 4 2.5

Difference Equations in MATLAB The solutions to these equations can be easily programmed in MATLAB. Note that the key step is actually a dot product between the equation’s coefficients and the previous samples of the output and input (often referred to as the filter memory). The response to a unit step function can also be computed using the function recur. The unit step function is created by assigning values of “1” to x, followed by the invocation of the recur function that performs the difference equation computations.

Complete Response of a First-Order Equation Consider the first-order linear difference equation: Let us assume that: The first part of the response is due to the initial condition being nonzero. The second part of the response is due to the forcing function, x[n]. Together, they comprise the complete response of the system. We will see that closed-form solutions of these equations can be easily computed using the z-transform, which is very similar to the Laplace transform. The z-transform converts the difference equation to an algebraic equation. Closed-form solutions can also be found using summation tables.

Differential Equations For CT systems, such as circuits, our principal tool is the differential equation. For the circuit shown, we can easily compute the input/output differential equation using Kirchoff’s Law. What is the nature of the impulse response for this circuit?

Numerical Solutions to Differential Equations Consider our 1st-order diff. eq.: We can solve this numerically by setting t = nT: The derivative can be approximated: Substituting into our diff. eq.: Let and : We can replace n by n-1 to obtain: This is called the Euler approximation to the differential equation. With and initial condition, , the solution is: The CT solution is: Later, we will see that using the Laplace transform, we can obtain: But we can approximate this: Which tells us our 1st-order approximation is accurate!

Higher-Order Derivatives We can use the same approach for the second-order derivative: Higher-order derivatives can be similarly approximated. Arbitrary differential equations can be converted to difference equations using this technique. There are many ways to approximate derivatives and to numerically solve differential equations. MATLAB supports both symbolic and numerical solutions. Derivatives are quite tricky to compute for discrete-time signals. However, in addition to the differences method shown above, there are powerful methods for approximating them using statistical regression. Later in the course we will consider the implications of differentiation in the frequency domain.

Series RC Circuit Example Difference Equation: R=1;C=1;T=0.2; a=-(1-T/R/C);b=[0 T/R/C]; y0=0; x0=1; n=1:40; x=ones(1,length(n)); y1=recur(a, b, n, x, x0, y0); Analytic Solution: t=0:0.04:8; y2=1-exp(-t); y1=[y0 y1]; n=0:40; plot(n*T, y1, ’o’, t, y2, ’-’);

Representation of CT Signals Recall from calculus how we approximated a function by a sum of time- shifted, scaled pulse functions: We approximate the signal’s amplitude value as a constant over the interval : The signal changes discontinuously at the next step. What happens as ? Recall our representation of a CT impulse function:

Representation of CT Signals Using Impulse Functions We approximate a CT signal as a weighted pulse function. The signal can be written as a sum of these pulses: In the limit, as : Mathematical definition of an impulse function (the equivalent of the unit pulse for DT signals and systems): Unit pulses can be constructed from many functional shapes (e.g., triangular or Gaussian) as long as they have a vanishingly small width. The rectangular pulse is popular because it is easy to integrate 

Summary We introduced a linear constant coefficient difference equation. We demonstrated how to solve such equations numerically. We demonstrated how these difference equations can be used to approximate differential equations. We discussed how to convert derivatives to differences. We compared the accuracy of the analytic and approximate solutions for a series RC circuit. We introduced a method for representing CT signals as a combination of impulse functions. We will use this representation to derive the convolution integral for CT signals.