LTI systems

This section contains a selection of the material from the module on discrete-time systems. This section will describe the general form of the LTI system and will describe 2 ways of characterizing such a system, but first the meaning of an linear time-invariant system will be briefly recapped.



Linear time-invariant

Linearity and time-invariance are two discrete-time system properties, both describing a different property of the system.

Linearity

A system is regarded to be linear if its both additive and homogeneous. Suppose that we have a system, which we provide separately with two distinct input signals $x_1[n]$ and $x_2[n]$. These signals are individually transformed by the system into two output signals, $y_1[n]$ and $y_2[n]$ respectively. This can be represented intuitively as \begin{equation} x_1[n] \rightarrow y_1[n] \quad \text{and} \quad x_2[n] \rightarrow y_2[n]. \end{equation}

This system is called additive if and only if the output of this system equals the sum of the individual outputs when driven by the sum of the two distinct inputs. In other words, when the individual input signals are simultaneously applied to the system, the respective outputs are also observed simultaneously. This can be represented as \begin{equation} \text{Additive:} \quad x_1[n] + x_2[n] \rightarrow y_1[n] + y_2[n]. \end{equation}

Furthermore, this system can be called homogeneous if and only if the output of this system contains a identically scaled output when driven by a scaled input. In other words, when the input signal is scaled with some scaling coefficient $c$, the output is also scaled with the same scaling coefficient. This can be represented as \begin{equation} \text{Homogeneous:} \quad c \cdot x_1[n] \rightarrow c \cdot y_1[n]. \end{equation}

When a system is both additive and homogeneous, the system is linear. This is represented as \begin{equation} \text{Linear:} \quad \alpha \cdot x_1[n] + \beta \cdot x_2[n] \rightarrow \alpha \cdot y_1[n] + \beta \cdot y_2[n], \end{equation} where $\alpha$ and $\beta$ are scaling coefficients.

Time-invariance

Another system property is time invariance. This property concerns signal delays or temporal shifts. A system is called time invariant if a temporal shift in the input signal results in the same temporal shift in the respective output signal. This can be represented as \begin{equation} \text{Time-invariance:} \quad x[n-n_0] \rightarrow y[n-n_0], \end{equation} where $n_0$ represents the temporal shift.

System architecture

A general LTI system can be represented using a so-called signal flow diagram as in Fig. 1. The system is driven by an input signal $x[n]$ and outputs the signal $y[n]$. The output is obtained by the addition of two main branches. The upper branch, which is connected to the input signal, transforms the input and delayed inputs into an output. This branch is also called the moving-average part of the system. The lower branch, which is connected to the output signal, transforms delayed outputs into a new output. This branch is also called the auto-regressive part of the system. A more detailed explanation of the individual building blocks can be found here.

Signal flow diagram of an LTI system.
Signal flow diagram of an LTI system.



Difference equation

The operations of the system can be represented mathematically by the weighted sum of the current input and delayed versions of the input and delayed outputs. This mathematical description is called the difference equation. The output $y[n]$ at sample index $n$ can be calculated as \begin{equation}\label{eq:DE} y[n] = \underbrace{\sum_{k=0}^{M-1} b_k x[n-k]}_\text{moving-average} + \underbrace{\sum_{k=1}^{N-1} a_k y[n-k]}_\text{auto-regressive}, \end{equation} where two distinct terms can be distinguished between. First is the moving-average part, which represents the upper branch of Fig. 1, and secondly follows the auto-regressive part, which represents the lower branch of Fig. 1. The weights are represented by the coefficients $a_k$ and $b_k$.



Impulse response

Besides the difference equation, there is another way of describing the functioning of a system. This representation is called the impulse response and will prove useful in the following sections. The impulse response is the output, or response, of a system when driven by a short impulse $\delta[n]$ and is denoted by $h[n]$. This can be described intuitively as \begin{equation} \delta[n] \rightarrow h[n], \end{equation} where $\delta[n]$ represents the Dirac delta pulse, which is defined as \begin{equation} \delta[n] = \begin{cases} 1, & \text{for } n=0, \newline 0, & \text{elsewhere}. \end{cases} \end{equation} Another way of representing the definition of the impulse response is \begin{equation} h[n] = y[n]\bigg\rvert_{x[n] = \delta[n]}, \end{equation} which simply states that the impulse response is the output of a system when the input of that system is given by a Dirac delta pulse.

The impulse response can be metaphorically compared with a tuning fork. A tuning fork is used to tune an instrument. The fork is hit against another object, after which it will resonate at a specific frequency. This frequency is used as a guideline for the tuning of an instrument. This can be compared to the discussion of the impulse response. The system (the tuning fork) is excited with an impulse (hitting it against a solid object) and will output a signal, also called the impulse response (the sound signal at the resonant frequency).



FIR and IIR filters

From the representation of the general LTI system, two different types of systems can be distinguished between. These two types are finite impulse response (FIR) filters and infinite impulse response (IIR) filters. As the name indicates, the distinction is based on the length of the impulse response.

FIR filters are discussed in more detail here. FIR filters are the class of filters in which all auto-regressive coefficients $a_k$ are equal to zero. These filters effectively only contain the upper branch of the signal flow diagram in Fig. 1. If this class of filters is excited by an impulse, this signal will pass through the upper branch and is delayed a total of $M-1$ times. Besides that, a weighted version of the signal is also directed to the output of the system. Mathematically, the impulse response of an FIR filter can be determined by substituting $\delta[n]$ for $x[n]$ in \eqref{eq:DE} and by setting all auto-regressive coefficients $a_k$ to zero as \begin{equation} \begin{split} h[n] &= \sum_{k=0}^{M-1} b_k \cdot \delta[n-k] + \sum_{k=1}^{N-1} 0 \cdot y[n-k], \newline &= \sum_{k=0}^{M-1} b_k \cdot \delta[n-k] = b_n. \end{split}\label{eq:impulse_FIR} \end{equation} The last step in this equation can be understood by noting that $\delta[n-k]$ only equals $1$ when $n=k$ holds. From this it can be noted that the length of the impulse response depends on the number of moving-average weights $b_k$. The number of moving-average weights $b_k$ depends on the length of the upper branch of the filter, which should be finite to allow for a practical implementation. Therefore the number of moving-average weights is also finite, leading to finite impulse response given by \eqref{eq:impulse_FIR}.

IIR filters on the other hand, contain non-zero auto-regressive coefficients. Intuitively one could understand the consequence of this by paying close attention to the created feedback loop in the system, corresponding to the lower branch in the signal flow diagram in Fig. 1. Suppose an impulse is applied to the input of an IIR filter. This signal will propagate through the moving-average branch (or directly, when only $b_0$ is non-zero) to the output. Since at least one of the auto-regressive coefficients is non-zero, this output will pass through the auto-regressive branch back to the output and the signal will therefore keep propagating through the feedback loop and will keep generating outputs. By applying a single impulse at the input of the system, the system will keep generating outputs, leading to an infinitely long impulse response.

In the following example we will derive the impulse response of a simple system with a non-zero auto-regressive coefficient.

Example


Calculate the analytical impulse response of a first-order auto-regressive filter.
A first-order auto-regressive filter is defined as a system where the moving-average coefficients are all zero, except for $b_0$, which equals $1$, and where all auto-regressive coefficients are zero, except for $a_1$. Without the coefficient $b_0$, no signal would propagate to the output of the system and therefore there would be no influence of the auto-regressive portion. This definition gives rise to the corresponding difference equation \begin{equation*} y[n] = x[n] + a_1 y[n-1]. \end{equation*}

Let us first calculate the first outputs of the system when driven by an input $x[n]$ to get some intuition of an auto-regressive process. If an arbitrary input signal $x[n]$ would be applied to the system, the first output of the system would be calculated as \begin{equation*} y[0] = x[0] + a_1 y[-1] = x[0] + a_1 0 = x[0], \end{equation*} where the signal output is assumed to be $0$ for $n < 0$ From this first output of the system, the second output can be determined as \begin{equation*} y[1] = x[1] + a_1 y[0] = x[1] + a_1 x[0] \end{equation*} and the third output as \begin{equation*} y[2] = x[2] + a_1 y[1] = x[2] + a_1 \left( x[1] + a_1 x[0] \right) = x[2] + a_1x[1] + a_1^2 x[0]. \end{equation*} Through these iterations the reader should be able to see some structure in the output signal. Using this structure an equation for the output $y[n]$ can be found as \begin{equation} y[n] = \begin{cases} \displaystyle \sum^{n}_{k=0} a_1^k x[n-k], &\text{for } n\geq 0, \newline
0, & \text{for } n < 0. \end{cases} \end{equation} By using the definition of the unit step function $u[n]$, this can also be written as \begin{equation*} y[n] = u[n]\sum^{n}_{k=0} a_1^k x[n-k]. \end{equation*}

Since the impulse response of the system is defined as the output of the system when driven by a Dirac delta pulse, i.e. $x[n] = \delta[n]$, the impulse response can be found as \begin{equation} h[n] = u[n] \cdot a_1^n = \begin{cases} a_1^n, &\text{for } n\geq 0, \newline 0, &\text{for } n<0. \end{cases} \end{equation} Based on the value of $a_1^n$ the impulse response will have a different shape. The figure below shows several examples of possible impulse response for different values of $a_1^n$.

Different impulse responses for a first-order auto-regressive filter, depending on the value of the auto-regressive coefficient $a_1$.
Different impulse responses for a first-order auto-regressive filter, depending on the value of the auto-regressive coefficient $a_1$.