EE Homework 5 - Solutions

Similar documents
Need for transformation?

UNIT-II Z-TRANSFORM. This expression is also called a one sided z-transform. This non causal sequence produces positive powers of z in X (z).

Z Transform (Part - II)

ELEG 305: Digital Signal Processing

(i) Represent discrete-time signals using transform. (ii) Understand the relationship between transform and discrete-time Fourier transform

Lecture 1 From Continuous-Time to Discrete-Time

EE 210. Signals and Systems Solutions of homework 2

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

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 )

6.003: Signals and Systems

Determine the Z transform (including the region of convergence) for each of the following signals:

The z-transform Part 2

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

QUESTION BANK SIGNALS AND SYSTEMS (4 th SEM ECE)

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

Digital Signal Processing

Use: Analysis of systems, simple convolution, shorthand for e jw, stability. Motivation easier to write. Or X(z) = Z {x(n)}

The Z transform (2) 1

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

Properties of LTI Systems

Power Series Solutions We use power series to solve second order differential equations

The Convolution Sum for Discrete-Time LTI Systems

CH.6 Laplace Transform

ESE 531: Digital Signal Processing

Module 4 : Laplace and Z Transform Problem Set 4

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

The Laplace Transform

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

Chapter 7: The z-transform

DIGITAL SIGNAL PROCESSING. Chapter 3 z-transform

SIGNALS AND SYSTEMS. Unit IV. Analysis of DT signals

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

z-transform Chapter 6

Lecture V: Linear difference and differential equations

ESE 531: Digital Signal Processing

Differential and Difference LTI systems

EEL3135: Homework #4

! z-transform. " Tie up loose ends. " Regions of convergence properties. ! Inverse z-transform. " Inspection. " Partial fraction

Discrete-Time Fourier Transform (DTFT)

Lecture 3 January 23

Lecture 04: Discrete Frequency Domain Analysis (z-transform)

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

Module 4. Related web links and videos. 1. FT and ZT

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

The Laplace Transform

Lecture 8 - IIR Filters (II)

Math 4329: Numerical Analysis Chapter 03: Newton s Method. Natasha S. Sharma, PhD

Like bilateral Laplace transforms, ROC must be used to determine a unique inverse z-transform.

DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING EXAMINATIONS 2010

Lecture 7 - Separable Equations

Review of Discrete-Time System

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

Discrete-Time Signals and Systems. The z-transform and Its Application. The Direct z-transform. Region of Convergence. Reference: Sections

The Laplace Transform

6.003 Homework #6 Solutions

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

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

Lecture 2. Introduction to Systems (Lathi )

7.17. Determine the z-transform and ROC for the following time signals: Sketch the ROC, poles, and zeros in the z-plane. X(z) = x[n]z n.

Laplace Transforms Chapter 3

How to manipulate Frequencies in Discrete-time Domain? Two Main Approaches

EE Control Systems LECTURE 9

Generalizing the DTFT!

Digital Signal Processing, Homework 2, Spring 2013, Prof. C.D. Chung. n; 0 n N 1, x [n] = N; N n. ) (n N) u [n N], z N 1. x [n] = u [ n 1] + Y (z) =

Module 4 : Laplace and Z Transform Lecture 36 : Analysis of LTI Systems with Rational System Functions

ECE503: Digital Signal Processing Lecture 4

Very useful for designing and analyzing signal processing systems

Modeling and Analysis of Systems Lecture #8 - Transfer Function. Guillaume Drion Academic year

EE Homework 12 - Solutions. 1. The transfer function of the system is given to be H(s) = s j j

NAME: ht () 1 2π. Hj0 ( ) dω Find the value of BW for the system having the following impulse response.

Interconnection of LTI Systems

Z-Transform. 清大電機系林嘉文 Original PowerPoint slides prepared by S. K. Mitra 4-1-1

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

Notice the minus sign on the adder: it indicates that the lower input is subtracted rather than added.

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) =

GATE EE Topic wise Questions SIGNALS & SYSTEMS

III. Time Domain Analysis of systems

y[n] = = h[k]x[n k] h[k]z n k k= 0 h[k]z k ) = H(z)z n h[k]z h (7.1)

Discrete-time signals and systems

Signals and Systems. Spring Room 324, Geology Palace, ,

Lecture 18: Stability

The Z-Transform. Fall 2012, EE123 Digital Signal Processing. Eigen Functions of LTI System. Eigen Functions of LTI System

Chapter 1: Precalculus Review

C. HECKMAN TEST 1A SOLUTIONS 170

LTI Systems (Continuous & Discrete) - Basics

One-Sided Laplace Transform and Differential Equations

信號與系統 Signals and Systems

Chapter 13 - Inverse Functions

EE 224 Signals and Systems I Review 1/10

Raktim Bhattacharya. . AERO 422: Active Controls for Aerospace Vehicles. Dynamic Response

Digital Control & Digital Filters. Lectures 21 & 22

Section 7.4: Inverse Laplace Transform

à 2.1 General Definitions and Classifications

This homework will not be collected or graded. It is intended to help you practice for the final exam. Solutions will be posted.

4.8 Partial Fraction Decomposition


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

Digital Signal Processing. Midterm 1 Solution

6.003 Homework #6. Problems. Due at the beginning of recitation on October 19, 2011.

Stability Condition in Terms of the Pole Locations

Transcription:

EE054 - Homework 5 - Solutions 1. We know the general result that the -transform of α n 1 u[n] is with 1 α 1 ROC α < < and the -transform of α n 1 u[ n 1] is 1 α 1 with ROC 0 < α. Using this result, the inverse -transforms of the given functions can be found as follows: (a) with ROC 2 < < : Noting that = 1, we obtain 2 2 1 2 1 the inverse -transform of to be 2 2n u[n]. Observe that the signal 2 n u[n] is causal and hence the ROC of its -transform is the exterior of a circle. (b) with ROC 0 < < 2: Note that = 1. The ROC 2 2 1 2 1 is given to be the interior of the circle with radius 2. Hence, the inverse -transform is the anti-causal signal 2 n u[ n 1]. (c) with ROC 0.5 < < 2: The given function 1 2.5 1 + 2 has two poles since the denominator is a second order polynomial. The locations of the two poles can be found by solving the quadratic equation 1 2.5 1 + 2 1 2.5 1 + 2 = 0 (1) which is equivalent to the quadratic equation 2 2.5 + 1 = 0. (2) The roots of the quadratic equation (2) are located at 2 and 0.5. Hence, the given -transform function can be decomposed into partial fractions as follows: 1 2.5 1 + 2 = A 1 1 2 1 + A 2 1 0.5 1 () where A 1 and A 2 are constants. To find A 1 and A 2, multiply both sides of () by 1 2.5 1 + 2 to obtain = A 1 (1 0.5 1 ) + A 2 (1 2 1 ). (4) The equation (4) yields the following two equations in terms of A 1 and A 2 : = A 1 + A 2 (5) 0 = 0.5A 1 2A 2. (6) 1

Hence, A 1 = 4 and A 2 = 1. Therefore, 1 2.5 1 + 2 = 4 1 2 1. (7) 1 1 0.5 1 The ROC is given to be 0.5 < < 2. Note that the pole of the first component in (7) is 2 while the pole of the second component is 0.5. Hence, the given ROC is in the interior of the circle through the pole of the first component and is in the exterior of the circle through the pole of the second component. Therefore, the first component in (7) yields an anti-causal term in the inverse -transform while the second component in (7) yields a causal term in the inverse -transform. Hence, the inverse -transform of 1 2.5 1 + 2 with the ROC 0.5 < < 2 is 4( 2 n u[ n 1]) (0.5) n u[n]. (8) 2. Let y[n] be the amount of money in Mr. Rich s bank account on the first day of the n th month. Then, the factors which contribute to the change from y[n 1] to y[n] are as follows: The interest earned based on the amount of money in the bank account on the fifteenth day of the (n 1) th month: Since Mr. Rich does not withdraw or deposit any money after the first day and before the fifteenth day of any month, the amount of money in the bank account on the fifteenth day of any month is equal to the amount of money in the bank account on the first day of that month. Hence, the amount of interest earned is 0.01y[n 1]. The amount of money ($500) that Mr. Rich withdraws on the last day of the (n 1) th month. Therefore, the difference equation relating y[n] to y[n 1] is y[n] = 1.01y[n 1] x[n] (9) where x[n] = 500 for each n. We are given that the amount of money in the bank account on January 1, 2005 is $10000. This represents the initial condition. Since our theoretical derivations have used n = 0 as the starting time with the initial conditions specified for n < 0, it is convenient to consider January 2005 as time n = 1 (note that the 2

system (9) is LTI so that we can choose any convenient time to be n = 0). We need to find the amount in the bank account on January 1, 2006, i.e., we need to find y[11]. Hence, the difference equation formulation of the problem is: Given the initial condition y[ 1]=10000, solve the difference equation y[n] = 1.01y[n 1] x[n] (10) with the input signal x[n] = 500 for all n 0 and compute y[11]. We can solve the difference equation (10) using either of the following two methods: Method 1 (Using one-sided -transform): Let the one-sided transforms of x[n] and y[n] be X() and Y (), respectively, i.e., X() = Y () = x[n] n n=0 y[n] n. (11) n=0 Recall that for one-sided -transforms, we have the identity Hence, {y[n n 0 ]} = n 0 Y () + n 0 1 n 1 = n 0 y[n 1 ] n 1. (12) {y[n 1]} = 1 Y () + 1 y[ 1] = 1 Y () + y[ 1]. (1) Taking the one-sided -transform of both sides of (10) and using (1), Hence, Y () = 1.01( 1 Y () + y[ 1]) X(). (14) (1 1.01 1 )Y () = 1.01y[ 1] X() (15) = Y () = 1.01y[ 1] (1 1.01 1 ) X() (1 1.01 1 ) = (1.01)(10000) (1 1.01 1 ) X() (1 1.01 1 ). (16)

The first term on the right hand side of (16) is the homogeneous response (response due to initial conditions) while the second term on the right hand side of (16) is the forced response (response due to input signal). To obtain the signal y[n], we need to take the inverse -transform of (16). Since the input signal is x[n] = 500 for all n 0, i.e., x[n] = 500u[n], the -transform (both one-sided and two-sided) of x[n] is X() = 500. (17) 1 1 To take the inverse -transform of the second term in (16), we can use the partial fraction expansion 1 (1 1 )(1 1.01 1 ) = 101 (1 1.01 1 ) 100 (1 1 ). (18) Noting that the original difference equation (10) is causal, both terms on the right hand side of (16) yield causal components when we take the inverse -transform. Hence, ( ) y[n] = (1.01)(10000)(1.01) n u[n] 500 101(1.01) n u[n] 100u[n] = 40400(1.01) n u[n] + 50000u[n] (19) Evaluating at n = 11, we have y[11] = 4927. (20) Hence, the amount of money in the bank account on January 1, 2006 is $4927. A point to think about: What happens to y[n] as n? What does this physically mean in the context of our original problem which involves money in a bank account? Method 2 (By guessing exponentials): From the difference equation (10), we know that the pole of the system is at 1.01. Since the input signal is x[n] = 500u[n], the pole introduced by the input signal is at 1. Equivalently, we can see from (16) that the poles of Y () are at 1 and 1.01. Furthermore, both these poles are simple poles, i.e., 4

they are not repeated poles. Hence, the solution y[n] should be a linear combination of the two exponential signals (1) n u[n] and (1.01) n u[n]. Let y[n] = c 1 (1) n u[n] + c 2 (1.01) n u[n]. (21) To solve for c 1 and c 2, we need to generate two equations. This can be done by numerically iterating the difference equation (10) for n = 0 and n = 1 to obtain y[0] = 1.01y[ 1] 500 = 1.01 10000 500 = 9600 y[1] = 1.01y[0] 500 = 1.01 9600 500 = 9196. (22) This yields the two equations: (1) 0 c 1 + (1.01) 0 c 2 = 9600 (1) 1 c 1 + (1.01) 1 c 2 = 9196. (2) Solving the equations above for c 1 and c 2, we get c 1 = 50000 and c 2 = 40400. Hence, from (21) y[n] = 50000(1) n u[n] 40400(1.01) n u[n]. (24) As expected, the answer above matches the answer we obtained in Method 1. The pole of the system (10) is at 1.01. Recall that the condition for BIBO stability is that all closed-loop poles should be inside the unit circle. Hence, the given system is not BIBO stable.. (a) The sampling period is picked to be T s = 0.01 seconds. Since y[n] = y(nt s ), we find that y[10 100] = y(10 100 0.01) = y(10). Hence, finding y(t) at t = 10 seconds is equivalent to finding y[n] at n = 10 100. (b) In the differential equation we are approximating d dt y using d y = y + x, (25) dt dy(nt s ) dt y(nt s) y((n 1)T s ) T s. (26) 5

Hence, y[n] y[n 1] T s = y[n 1] + x[n 1]. (27) This yields the difference equation y[n] = (1 T s )y[n 1] + T s x[n 1] (28) = y[n] = 0.99y[n 1] + 0.01x[n 1]. (29) (c) The initial condition is given to be y(0) = 1. Since y[n] = y(nt s ), the equivalent initial condition for the difference equation approximation is y[0] = 1. The input signal is given to be x(t) = t. Hence, the sampled input signal is x[n] = x(nt s ) = nt s = 0.01n. (d) As in Problem 2, there are two methods to solve the difference equation (29), the first method using one-sided -transforms, and the second method using the method of guessing exponentials. In this case, the method of guessing exponentials is significantly simpler. This is partly because, as we will see below, the input signal introduces a repeated pole so that the partial fraction expansion required by the method using one-sided -transforms would be messy. Since the input signal is x[n] = 0.01n for all n 0, i.e., x[n] = 0.01nu[n], the -transform of the input signal is 1 X() = 0.01 (1 1 ). (0) 2 Recall that the -transform of nu[n] was worked out in Homework 4 to be 1 (1 1 ) 2. From (0), the input signal introduces a repeated pole at 1. From (29), the system itself has a pole at 0.99. Hence, the output signal y[n] must be of the form y[n] = c 1 (1) n u[n] + c 2 n(1) n u[n] + c (0.99) n u[n]. (1) To find the constants c 1, c 2, and c, we need to generate three equations. This can be done by numerically iterating the difference equation (29) for n = 1, n = 2, and n =. Remember that 6

the value of y[n] at n = 0 cannot be used as one of the equations to find c 1, c 2, and c because y[0] represents the initial condition (recall that when y[ 1] is the given initial condition, then we use y[0], y[1], etc. to solve for the coefficients c 1, c 2, etc.). We have y[1] = 0.99y[0] + 0.01x[0] = 0.99 1 + 0 = 0.99 y[2] = 0.99y[1] + 0.01x[1] = 0.99 0.99 + 0.01 0.01 = 0.9802 y[] = 0.99y[2] + 0.01x[2] = 0.99 0.9802 + 0.01 0.02 = 0.970598. Using (1), this yields the equations c 1 (1) 1 + c 2 (1)(1) 1 + c (0.99) 1 = 0.99 c 1 (1) 2 + c 2 (2)(1) 2 + c (0.99) 2 = 0.9802 c 1 (1) + c 2 ()(1) + c (0.99) = 0.970598. (2) Solving the equations above, we get c 1 = 1, c 2 = 0.01, and c = 2. Hence, y[n] = 1(1) n u[n] + 0.01n(1) n u[n] + 2(0.99) n u[n] = ( 1 + 0.01n + 2(0.99) n )u[n]. () Evaluating at n = 10 100, we obtain y[10 100] = 9.000086. (4) Note that we have approximately solved a differential equation by using difference equation techniques. It would be interesting to see how accurate our solution is. The original differential equation d y = y+x can be solved in closed form given the input x(t) = t. dt Using, for instance, the method of integrating factors, we have e t d dt y = et y + e t x (5) so that Hence, d dt (et y) = e t x = e t t. (6) e t y(t) y(0) = t 0 e τ τdτ. (7) 7

Using the method of integration by parts, we have t 0 Using (7), This yields e τ τdτ = (te t e t ) (0 e 0 ) = te t e t + 1. (8) e t y(t) = y(0) + te t e t + 1 = 2 + te t e t. (9) Evaluating at t = 10, we have y(t) = 2e t + t 1. (40) y(10) = 9.000091. (41) The difference between the exact solution obtained through the solution of the differential equation above and the approximate solution (4) can be thought of as the numerical error due to sampling the differential equation. It can be expected that if the sampling period T s is made smaller, then the error reduces. In fact, it can be proved that given any error tolerance, the sampling period can be made small enough to make the error smaller than the tolerance value. 8