Screencast video [⯈]
Convolution sum operation
One of the most important consequences of an LTI system is that the output $y[n]$ can be described by applying the so called convolution sum procedure between the input $x[n]$ and the impulse response $h[n]$.
The derivation of this procedure uses the general signal description as a sequence of a, possible infinite, sum of weighted and shifted delta pulses: $$ x[n] = \sum_{k=-\infty}^{\infty} x[k] \delta[n-k]. $$ For any LTI system we can now perform the following steps:
When applying a delta pulse to the input of the system, the result is the impulse response $h[n]$. Because of the Time Invariance property a shifted delta puls over $k$ samples will result in a shifted impulse response $h[n-k]$: \begin{eqnarray*} \delta[n] \mapsto h[n] & \Rightarrow & \delta[n-k] \overset{\text{TI}}{\mapsto} h[n-k] \text{ for any } k \end{eqnarray*} Multiplying the shifted delta pulse with a constant $x[k]$ will result in $x[k] h[n-k]$ because of Linearity: \begin{eqnarray*} && x[k] \delta[n-k] \overset{\mbox{L}}{\mapsto} x[k] h[n-k] \mbox{ for any } k \end{eqnarray*} When summing over all indices $k$ will result into the output $y[n]$: \begin{eqnarray*} && \sum_k x[k] \delta[n-k] \overset{\mbox{L}}{\mapsto} y[n] = \sum_k x[k] h[n-k] \end{eqnarray*} Summarizing the convolution sum procedure is as follows:
Convolution sum procedure:
- Plot both input $x$ and impulse response $h$ as function of index $k$
- Mirror (reverse) $h[k]$ $\Rightarrow$ $h[-k]$
- For each new index $n$:
- Shift mirrored $h[-k]$ to index $n$ $\Rightarrow$ $h[n-k]$.
- Output $y[n]$ is equal to the result of the sum of element by element multiplications of $x[k]$ and $h[n-k]$.
- In general the summation index $k$ of the convolution sum runs from $k=-\infty$ to $k=+\infty$, while for an FIR filter this range is automatically limited because of the finite length of the impulse response.
- When the length of input signal samples is limited to $N$ and the length of the sequence of impulse response values is $M$, then the convolution sum procedure $y[n]=x[n] \star h[n]$ results in a sequence of length $N+M-1$ output signal samples.
Example
Show in a plot the convolution sum result of $x[n]=\delta[n]+2 \delta[n-1]+3 \delta[n-2]$ with an FIR filter with coefficients $b_0=b_1=b_2=1$.
Convolution sum properties
In this subsection we introduce properties of the convolution sum that can be used to simplify the evaluation of the convolution sum procedure.
Commutative property
The first property is the commutative property which implies that the convolution sum of $x[n]$ with $h[n]$ behaves exactly the same as the other way around: $$ \boxed{ y[n]=h[n] \star x[n] = x[n] \star h[n]} $$ as represented in Fig. 1.
Proof of commutative property
Associative property
A second property is the associative property, which implies that if two systems with impulse responses $h_1[n]$ and $h_2[n]$ are connected in cascade, an equivalent system is one that has impulse response equal to the convolution sum of $h_1[n]$ and $h_2[n]$: $$ \boxed{ \{ x[n] \ast h_1[n] \} \ast h_2[n] = x[n] \ast \{ h_1[n] \ast h_2[n] \}} $$ as represented in Fig. 2.
Distributive property
The third property is the distributive property which implies that if two systems with impulse response $h_1[n]$ and $h_2[n]$ are connected in parallel, an equivalent system is one that has an impulse response that is equal to the sum of $h_1[n]$ and $h_2[n]$: $$ \boxed{ x[n] \ast h_1[n] + x[n] \ast h_2[n] = x[n] \ast \{ h_1[n] + h_2[n] \}} $$ as represented in Fig. 3.