I am trying to follow some notes on "Analytical Computation of the Convolution Sum (Graphical Method)" but am getting stuck on what I am doing, or if what I am doing is correct.
There are 5 given steps:
- Plot both the sequence $x[n]$ and $h[n]$ as functions of $k$ and flip one of them (either one) about $k = 0$ to obtain $x[-k]$ or $h[-k]$. Normally we chose the “simpler” signal to flip (often the one that begins at time $k = 0$ if possible).
- Label the index value in $x[-k]$ or $h[-k]$ that corresponds to $k = 0$ as the index $n$ to obtain $x[n-k]$ or $h[n-k]$. Write the equation for $x[n-k]$ or $h[n-k]$ by substituting $n = k$ into the original equation for $x[n]$ or $h[n]$.
- If $x[n-k]$ or $h[n-k]$ is a finite-length signal of length $L$, label the last non-zero value as the index $n-L+1$. Doing so will help us define the indices for the summation ranges in the convolution equation for each piece-wise case.
- We next identify all piece-wise cases involved in the convolution, i.e., non-overlapping and various over-lapping cases, that span the range of $n \in (-∞, ∞)$.
- For each identified case we evaluate $y[n]$ via the convolution sum. This involves first determining the indices of the convolution sum equation. We then evaluate the sum and simplify as much as possible.
I am given: $$x[n] = 2(u[n] - u[n-5])$$ $$h[n] = (n+1) (u[n] - u[n-10])$$
I decided to flip $x[n]$ and in doing so came up with:
Case 1: $n < 0$, no overlap $y[n] = 0$
Case 2: $0 \le n < 4$, partial overlap
Case 3: $4 \le n \le 9$, full overlap
Case 4: $9 < n \le 13$, partial overlap
Case 5: $13 < n$, no overlap $y[n] = 0$
I know that for discrete convolution, $$\sum_{k = -\infty}^{\infty} h[k] x[n-k]$$ but I am not sure how how to apply this to my cases. In addition I am not sure if my cases are even correct. I understand what the convolution needs to do graphically but how to generalize the summation for the cases is not clear to me.