The FIR filter, as described in the previous sections, belongs to a general class of systems that is used very often in practice: The so called Linear Time Invariant (LTI) systems.
In the first subsections the definitions Linearity and Time Invariance are given. In the last subsection it will be shown that the convolution sum operator is a result of LTI.
In this section the new symbol x[n]↦y[n] will be used with the following interpretation: The system maps the sequence of input signal samples x[n] to the sequence of output signal samples y[n].
Linear systems
When a system results into the following mappings: x1[n]↦y1[n] and x2[n]↦y2[n], then such a system is Linear if for any linear combination of input sequences x1[n] and x2[n] the system maps this linear combination to the same linear combination of output sequences y1[n] and y2[n]. With scalars α and β, this definition can mathematically be described as follows:
x[n]=αx1[n]+βx2[n]↦y[n]=αy1[n]+βy2[n]
A visualisation of this definition is depicted in Fig. 1.
Example of a linear system.
Example
Show that the system y[n]=(x[n])2 is non-linear.
Referring to the left-hand side of Fig. 1 we obtain:
y[n]=(x[n])2=(αx1[n]+βx2[n])2=α2x21[n]+2αβx1[n]x2[n]+β2x22[n]
Referring to the right-hand side of Fig. 1 we obtain:
w[n]=αy1[n]+βy2[n]=αx21[n]+βx22[n]
Since w[n]≠y[n] it follows that the system y[n]=(x[n])2 is non-linear.
Time Invariant systems
When a system results into the following mapping: x[n]↦y[n] then a system is Time Invariant
if a delayed sequence of input samples x[n−n0] is mapped by the system to a sequence of output samples y[n−n0], which is delayed by the same amount of samples. With integer delay n0, this definition can mathematically be described as follows:
x[n]↦y[n]⇒x[n−n0]↦y[n−n0]
A visualisation of this definition is depicted in Fig. 2.
Example of a time-invariant system.
Example
Show that the system y[n]=(x[n])2 is Time Invariant.
From the upper part of Fig. 2 it follows that
w[n]=x2[n−n0]. From the lower part of the same Figure it follows:
y[n]=x2[n]⇒y[n−n0]=x2[n−n0]
The system y[n]=(x[n])2 is Time Invariant since w[n]=y[n−n0].
Convolution sum as result of LTI
When a system is LTI then the sequence of output samples y[n] can be expressed as a convolution sum of the sequence of input samples x[n] with the impulse response h[n] of the LTI system, thus y[n]=x[n]⋆h[n]. The proof of this property is as follows:
δ[n]↦h[n]⇒δ[n−k]TI↦h[n−k] for any k⇒x[k]δ[n−k]L↦x[k]h[n−k] for any k⇒∑kx[k]δ[n−k]L↦y[n]=∑kx[k]h[n−k]=x[n]⋆h[n]
Note that in general for an LTI system the summation index k of the convolution sum runs from k=−∞ to k=+∞, while for an FIR filter this range is automatically limited because of the finite length of the impulse response.
Cascading LTI systems
In the first subsection it is shown that the convolution sum operator has the commutative property. As a result it is sown in the next subsection that the cascading of two LTI systems can be combined to one LTI system, while above that the order of the cascaded LTI systems can be interchanged.
Commutative property convolution sum operator
The convolution sum operator is a commutative operation. This implies that the result y[n] of the convolution sum operator can be obtained by either convolving h[n] by x[n] or the other way around:
y[n]=h[n]⋆x[n]=x[n]⋆h[n] Proof:y[n]=h[n]⋆x[n]=∞∑k=−∞h[k]x[n−k]p=n−k=−∞∑p=+∞h[n−p]x[p]=∞∑p=−∞x[p]h[n−p]=x[n]⋆h[n]
Note that for an FIR filter the range of the convolution sum is automatically limited by the finite length of the impulse response.
Thus in case of an FIR filter the commutative property of the convolution sum operator results on the one hand into:
y[n]=h[n]⋆x[n]=∞∑k=−∞h[k]x[n−k]FIR=M−1∑k=0h[k]x[n−k]
where we used the fact that h[n]=0 for n<0 and n>M. On the other hand we have:
y[n]=x[n]⋆h[n]=∞∑k=−∞x[k]h[n−k]FIR=n∑k=n−(M−1)x[k]h[n−k]
where we used the finite length of an FIR as follows:
h[n−k]=0 for {n−k<0⇒k>nn−k>M⇒k<n−M
Example
In the example of the section of the convolution sum it is shown that with x[n]=δ[n]+2δ[n−1]+3δ[n−2] and h[n]=δ[n]+δ[n−1]+δ[n−2] the convolution sum result y[n]=h[n]⋆x[n] was equal to y[n]=δ[n]+3δ[n−1]+6δ[n−2]+5δ[n−3]+3δ[n−4]. Show that the result of x[n]⋆h[n] is the same.
The convolution sum operator for this FIR filter equals:
y[n]=x[n]⋆h[n]=∑nk=n−2h[n−k]x[k]
Writing this equation out step by step results into:
⋮⋮⋮y[−1]=−1∑k=−3h[−1−k]x[k]=h[2]x[−3]+h[1]x[−2]+h[0]x[−1]=0y[0]=0∑k=−2h[0−k]x[k]=h[2]x[−2]+h[1]x[−1]+h[0]x[0]=1y[1]=1∑k=−1h[1−k]x[k]=h[2]x[−1]+h[1]x[0]+h[0]x[1]=3y[2]=2∑k=0h[2−k]x[k]=h[2]x[0]+h[1]x[1]+h[0]x[2]=6y[3]=3∑k=1h[3−k]x[k]=h[2]x[1]+h[1]x[2]+h[0]x[3]=5y[4]=4∑k=2h[4−k]x[k]=h[2]x[2]+h[1]x[3]+h[0]x[4]=3y[5]=5∑k=3h[5−k]x[k]=h[2]x[3]+h[1]x[4]+h[0]x[5]=0⋮⋮⋮
This result is indeed equivalent to
y[n]=h[n]⋆x[n]=δ[n]+3δ[n−1]+6δ[n−2]+5δ[n−3]+3δ[n−4].
Cascade equivalences
The upper left hand figure of Fig. 3 shows the cascading of two LTI systems, one with impulse response h1[n] and the other one with impulse response h2[n]. When applying a delta pulse δ[n] to the first LTI system, the output equals the impulse response h1[n]. When applying this sequence to the second LTI system, the result is the convolution sum result h1[n]⋆h2[n].
Equivalence of cascading LTI filters.
The lower left hand figure shows one LTI system with impulse response h[n]=h1[n]⋆h2[n]. When applying a delta pulse δ[n] to this system the result is the same as above.
The cascading of two LTI systems, one with impulse response h1[n] and the other one with impulse response h2[n], can be combined to one LTI system with impulse response h[n]=h1[n]⋆h2[n].
Finally it follows from the commutative property of the convolution sum operator that:
h[n]=h1[n]⋆h2[n]=h2[n]⋆h1[n]
which is shown in the lower right part of Fig. 3. This combined impulse response can be split again into the cascading of two LTI systems, as shown in the upper right figure. In this last step however the LTI systems with impulse response h1[n] and h2[n] have interchanged from order.
The order of two LTI systems, one with impulse response h1[n] and the other one with h2[n], can be interchanged.
Example
The cascading of two LTI systems is depicted in the figure below. Give an expression for the impulse responses h1[n] and h2[n] of both systems and evaluate the impulse response h[n] of the combined LTI system. Give also a realization scheme of this combined system.
Example of cascading two LTI systems.
From the figure it follows that the impulse response are as follows:
h1[n]={10≤n≤20elsewhere
and
h2[n]={10≤n≤20elsewhere
The combined impulse response can be found as follows:
h[n]=h1[n]⋆h2[n]=(δ[n]+δ[n−1]+δ[n−3])⋆(δ[n]+δ[n−1]+δ[n−3])=δ[n]+2δ[n−1]+3δ[n−2]+2δ[n−3]+δ[n−4]
A realization scheme of this combined LTI system is depicted in the lower part of the figure above.