1 / 10

Difference Equations

Difference Equations. Iterative Solutions. Example: y [ n ] - ½ y [ n -1] = x [ n ] How many initial conditions do we need? For x [ n ] = n 2 u [ n ] and y [-1] = 16 , causal system, y [ n ] = ½ y [ n -1] + x [ n ] Compute answer iteratively: y [0] , y [1] , …

halia
Download Presentation

Difference Equations

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Difference Equations

  2. Iterative Solutions • Example: y[n] - ½ y[n-1] = x[n] How many initial conditions do we need? • For x[n] = n2u[n] and y[-1] = 16, causal system, y[n] = ½ y[n-1] + x[n] • Compute answer iteratively: y[0], y[1], … y[0] = ½ y[-1] + x[0] = ½ (16) + 0 = 8 y[1] = ½ (8) + (1)2 = 5 y[2] = 6.5 y[3] = 12.25 y[4] = 22.125

  3. Stability • Is the system bounded-input bounded-output (BIBO) stable? y[n] - ½ y[n-1] = x[n] Impulse response is the output y[n] for input x[n] = d[n] Zero-state response ys[n] to input d[n] is1, 0.5, 0.25, …, for n = 0, 1, 2, … System appears to be BIBO stable. • x[n] = n2 u[n] is unbounded in amplitude as n goes to infinity

  4. Example:y[n] - ½ y[n-1] = x[n] with y0[-1] = 16 Zero-input solution y0[n] - ½ y0[n-1] = 0 y0[n] = ½ y0[n-1] y0[n] = 8 (½)nu[n] 8, 4, 2, 1, ½, … Zero-state solution ys[n] - ½ ys[n-1] = n2 ys[0] = 0 ys[1] = (½) 0 + (1)2 = 1 ys[2] = (½) 1 + (2)2 = 4.5 Important identity Zero-Input, Zero-State Solutions

  5. Complete Solution • Closed-form solution of impulse response Algebraic solution (not numerical or iterative solution) y[n] = zero-input solution + zero-state solution y[n] = y0[n] + ys[n] • Using Mathematica on example on previous slide Needs[ “DiscreteMath`Master`” ]; RSolve[ { y[n] - (1/2) y[n-1] == n^2,y[-1] == 16 }, y[n], n] • Complete solution (for non-negative n) y[n] = -14 ( n + 2 ) + 2 ( n + 2 ) ( n + 3 ) + 22 + 2 (½)n

  6. Forms of Difference Equations • Anti-causal (advance operator form) • Causality requires MN Set M = N; delay input/output by N samples • Iterative solution 2N initial conditions (N initial conditions if causal input) Analysis Only Analysis and Implementation

  7. Characteristic Modes

  8. Zero Input Response Slide by Prof. Adnan Kavak • Linear combination of characteristic modes

  9. Distinct Roots

  10. Repeated Roots

More Related