- #1
paul_harris77
- 52
- 0
I am trying to teach myself DSP, owing to bad lecture notes. In particular at the moment I'm trying to calculate impulse responses for LTI systems, given the system equation. I would really appreciate it if someone could tell me if my working and assumptions below are correct for the following question:
Find the unit impulse response of the following LTI system:
y[n+2] + y[n+1] + y[n] = x[n+1] - x[n]
-
Rearrange for y[n+2]:
y[n+2] = x[n+1]-x[n]-y[n+1]-y[n]
Since input is an impulse, and output is impulse response, can replace x with delta (&) and y with h.
h[n+2] = &[n+1] - &[n] - h[n+1] - h[n]
By the definition of impulse response, it is a zero state response, i.e. h[n] = 0 for all n<=0 - IS THIS CORRECT?
Therefore h[0] = 0
Starting iteration at n = -1
h[1] = &[0] - &[-1] -h[0] - h[-1]
h[1] = 1-0-0-0 = +1
n=0
h[2] = &[1] - &[0] - h[1] - h[0]
h[2] = 0 -1 -1 -0 = -2
All delta (&) terms are zero from now on.
n=1
h[3] = -h[2] -h[1]
h[3] = +2 -1 = +1
n=2
h[4] = -h[3] - h[2]
h[4] = -1 +2 = +1
Continuing in this way shows that h[n] = {0, +1, -2, +1, +1, -2, +1, +1, -2, +1, +1, -2, ...)
i.e. oscillatory response.
Please could someone tell me if my working is all correct, and if this is the correct answer?
Many thanks
Paul Harris
Homework Statement
Find the unit impulse response of the following LTI system:
y[n+2] + y[n+1] + y[n] = x[n+1] - x[n]
Homework Equations
-
The Attempt at a Solution
Rearrange for y[n+2]:
y[n+2] = x[n+1]-x[n]-y[n+1]-y[n]
Since input is an impulse, and output is impulse response, can replace x with delta (&) and y with h.
h[n+2] = &[n+1] - &[n] - h[n+1] - h[n]
By the definition of impulse response, it is a zero state response, i.e. h[n] = 0 for all n<=0 - IS THIS CORRECT?
Therefore h[0] = 0
Starting iteration at n = -1
h[1] = &[0] - &[-1] -h[0] - h[-1]
h[1] = 1-0-0-0 = +1
n=0
h[2] = &[1] - &[0] - h[1] - h[0]
h[2] = 0 -1 -1 -0 = -2
All delta (&) terms are zero from now on.
n=1
h[3] = -h[2] -h[1]
h[3] = +2 -1 = +1
n=2
h[4] = -h[3] - h[2]
h[4] = -1 +2 = +1
Continuing in this way shows that h[n] = {0, +1, -2, +1, +1, -2, +1, +1, -2, +1, +1, -2, ...)
i.e. oscillatory response.
Please could someone tell me if my working is all correct, and if this is the correct answer?
Many thanks
Paul Harris