impulse response of a causal LTI system This is a difference equation to a causal LTI system:
$y[n] = ay[n - 1] + x[n] - a^Nx[n - N]$
Where N is a positive integer. I need to determine the impulse response of the system, so I have the equation:
$h[n] = ah[n-1] + \delta[n] - a^N\delta[n - N]$
h[n] is simple to find for the case where n &lt; 0, n = 0, or n = 1. However, the response could be different for the case n = 2, depending on the value of N (in this case, N = 1 or N = 2):
$h[2] = ah[1] + 0 - a^1\delta[2-1] = a^2$
$h[2] = ah[1] + 0 - a^2\delta[2-2] = 0$
So which one is it? Intuition tells me the top one as the impulse response will be decaying, but we only know that N is positive.
HINT:
Just write down the values of the output signal $y[n]$ for $x[n]=\delta[n]$ for values of $n$ from $0$ to $N-1$ (you don't need any specific value for $N$, just use $n=0,1,2,\ldots$ and then you'll see what happens at $n=N-1$). Then figure out what happens at $n=N$, and what consequences this has on the output values for $n&gt;N$. You may be surprised to find out that the given system has a finite length impulse response, even though it is recursive.