The article on Z-Transforms introduced a difference equation for discrete stable causal Linear Time Invariant (LTI) systems, that from here on we will refer to as a LTI system, or system for short\(\)

$$ \begin{align} \sum_{k=0}^N a_k\,y[n-k] &= \sum_{k=0}^M b_k\,x[n-k]\quad\Rightarrow \nonumber \\[10mu] a_0y[n]+a_1y[n-1]+a_2y[n-2]+\ldots &= b_0x[n]+b_1x[n-1]+b_2x[n-2]+\ldots \nonumber \end{align} \nonumber $$

Here we will focus on the black box with discrete input signal \(x[n]\) and output \(y[n]\), where \(n\) is the sample number, sampled every \(T\) seconds.

We will following the notation from Z-transforms, where \(\def\lfz#1{\overset{\Large#1}{\,\circ\kern-6mu-\kern-7mu-\kern-7mu-\kern-6mu\bullet\,}} \def\ztransform{\lfz{\mathcal{Z}}} \ztransform\) is equivalent to the more common notation \(\mathfrak{Z}\left\{\,f[n]\,\right\}\), and \(f[n]\) is defined as the sample taken at time \(nT\). The terms filter and system will be used interchangeably.

## Linear Time Invariant System

The blackbox that we will examine is a *Stable Causal Linear Time Invariant* System (LTI). Most of the practical systems can be modeled as LTI systems or at least approximated by one around nominal operating point. Examples are include stereo engineering to counter the effect of a stadium on the music, or process control engineering in chemical plants.

The relation between the causal LTI system \(L\), its input \(x[n]\) and output \(y[n]\) can be expressed as

### Definition

Before we start exploring the properties of stable causal LTI systems, let’s take a moment to define what a stable causal LTI system is.

A Causal system:

Is one in which changes in output do not precede changes in input.

The Linearity property states:

If input \(x_{1}(t)\), produces response \(L\big(x_{1}(t)\big)\), and input \(x_{2}(t)\), produces response \(L\big(x_{2}(t)\big)\), and \(a_i\) are real scalars, then a scaled and summed input produces the scaled and summed response

The Time Invariance property states:

When we apply an input to the system now or \(\tau\) seconds from now, the output will be identical except for a time delay of \(a\) samples. That is, if the output due to input \(x(t)\) is \(y(t)\), then the output due to input \(x(t-\tau)\) is

Further more, the system needs to be stable:

LTI system is bounded-input bounded-output stable if all bounded inputs result in bounded outputs.

From here on we will refer to a stable causal linear time invariant system as a LTI system, or system for short.

### Combining systems

The two common configurations when combining filters are: series and parallel.

The figure below shows a *series*, or cascade, connection of filter \(H_1(z)\) and \(H_2(z)\), where the output from the first filter feeds the input of the next filter.

The transfer function for the series circuit is

The other common configuration is called *parallel* as shown below. In a parallel circuit, both filters get the same input signal and their outputs are summed.

The transfer function for the parallel circuit is

## Output of a causal LTI system

In the time-domain, we find the output of a Causal LTI system system by passing the function of the input signal as a parameter to the system equation as shown in equation \(\eqref{eq:ynLx}\)

$$ y[n] = \color{purple}{L\Big(\color{black}{x[n]}\Big)} \nonumber $$

### Convolution in the time-domain

The article on Z-transforms showed how any discrete input signal \(x[n]\) can be expressed as a summation of scaled impulses.

$$ x[n] = \sum_{k=0}^{\infty}{\color{green}{x[k]}\ \color{blue}{\delta[n-k]}} \nonumber $$

Consider this \(x[n]\) to be the input to LTI system \(L\). The output of the system follows from substituting the equation for signal \(x[n]\) in \(\eqref{eq:ynLx}\)

Equation \(\eqref{eq:yn}\) matches the general form of a LTI system with a scalar and variable as a function of time \(t=\color{blue}{n}T\). This implies that we can use the part of the linearity property \(\eqref{eq:linear}\) that states:

$$ \color{purple}{L\Big(\color{green}{a}\ \color{blue}{x[n]}\Big)}=\color{green}{a}\ \color{purple}{L\Big(\color{blue}{x[n]}\Big)} $$

Apply the linearity property to bring the time independent part out of the system function \(L\) in equation \(\eqref{eq:yn}\)

Let’s examine the expression \(L\big(\delta[n-k]\big)\). Suppose we know how \(L\) acts on one impulse function \(\delta[n]\), and define it as

*impulse response*\(h[n]\) fully describes any LTI system, like the difference equation coefficients. The \(h[n]\) is also called the

*Transfer Function*of the system.

Applying the time invariance property \(\eqref{eq:timeinvariance}\) to \(\eqref{eq:hn}\) yields

Substituting \(\eqref{eq:ldelta}\) in \(\eqref{eq:yn2}\), gives the convolution sum for LTI systems

In summary, when we model the transfer function of a LTI black box as \(h[n]\), in the time-domain the output signal \(y[n]\) is a convolution ‘\(\ast\)’ of input \(x[n]\) and the system impulse response \(h[n]\).

### Multiplication in the \(z\)-domain

Likewise, in the \(z\)-domain, the transfer function fully describes how the output signal \(Y(z)\) responds to an arbitrary input signal \(X(z)\).

As we have seen in Z-Transforms, the convolution in the time-domain transforms to a multiplication in the \(z\)-domain.

$$ \def\lfz#1{\overset{\Large#1}{\,\circ\kern-6mu-\kern-7mu-\kern-7mu-\kern-6mu\bullet\,}} \def\ztransform{\lfz{\mathcal{Z}}} (f\ast g)[n]\,\color{grey}{\gamma[n]} \ztransform F(z)\,G(z) \nonumber $$

That implies that the output \(Y(z)\) is the result of the input signal \(X(z)\) multiplied with the impulse response \(H(z)\) of the filter.

## Transfer function

Time to take a closer look at the transfer function of the LTI system. We will express the transfer function as a ratio of polynomials and show it in its factorized form.

The Z-Transforms article opened with a generic form of Linear Constant-Coefficient Difference Equation (LCCDE) that expresses the relation between input \(x[n]\) and output \(y[n]\)

$$ \begin{align} \sum_{k=0}^N a_k\,\color{blue}{y[n-k]} &= \sum_{k=0}^M b_k\,\color{blue}{x[n-k]} \label{eq:lccde} \end{align} $$

Recall the time delay property

$$ \def\lfz#1{\overset{\Large#1}{\,\circ\kern-6mu-\kern-7mu-\kern-7mu-\kern-6mu\bullet\,}} \def\ztransform{\lfz{\mathcal{Z}}} f[n-a]\, \color{grey}{\gamma[n} – a \color{grey}{]} \,\ztransform z^{-a}F(z) \nonumber $$

Apply the time delay property to transform both sides of equation \(\eqref{eq:lccde}\) to the \(z\)-domain

Bring \(X(z)\) and \(Y(z)\) to the left and the summations to the right, yields the generic form of the transfer function \(H(z)\)

The \(b_k\) coefficients are called feedforward coefficients, and the \(a_k\) coefficients are called feedback coefficients.

### Factorized form

It is often convenient to factor the polynomials of the transfer function \(\eqref{eq:tf_polynominal}\), and write the function in terms of those factors.

The first step towards a factorized form, is to rewrite \(H(z)\) in a standard from, so that the highest order term of the numerator and denominator are unity.

Factorize the polynomials

The \(q_i\)’s are the roots of the equation \(N(z)=0\) and are called the system *zeros*. The \(p_i\)’s are the roots of the equation \(D(z)=0\) and are defined as the system *poles*. The *filter order* equals the number of poles or zeros in the transfer function, whichever is greater.

If one would make a 3D plot with the \(z\)-plane being the base and \(|H(z)|\) on the vertical axis, then the poles will show as thin “poles” pointing up and the zeros will show as dips pointing down.

The (complex) poles and zeros are properties of the transfer function, and therefore of the difference equation. Together with the gain constant \(K\) and delay \(z^{-(\small N-M})\) give a complete description of the filter.

## Visualization

The article Z-transforms introduced the normalized angular frequency \(\omega T\) and the \(z\)-plane. Here we will visualize the poles, zeroes and their evaluation for complex variable \(z\).

### Poles and zeros

As we have seen in equation \(\eqref{eq:tf_prod}\), the factorized transfer function can be written as

The system may be represented graphically by plotting the poles and zeros in the complex \(z\)-plane. In these so called *pole-zero plots*, it is customary to mark a zero location with a circle (\(\circ\)) and a pole location with a cross (\(\times\)).

### Evaluating Poles and zeros

We will run ahead of ourselves and describe how the poles and zeroes affect the system response, later we will come back to this subject and explore it further.

Each of the poles \((z-p_i)\) and zeroes \((z-q_i)\) have a unique contribution to the transfer function. To give you an insight, we will we evaluate the factor \((z-p_i)\), but the same applies to zeroes.

this factor can be visualized with a vector drawn from \(r\) to \(z\). Each of the factors in the numerator and denominator may be interpreted as a vector in the *z*-plane, originating from the zero \(z_i\) or pole \(p_i\) and directed to the point \(z\) at which the function is evaluated.

The length and angle of these factors represent their contribution to the transfer function. For example for a pole \(p_i=\Re(p_i)+j\,\Im(p_i)\), the magnitude and angle of the vector to the variable \(z=\Re(z)+j\,\Im(z)\) are

### Multiplication and division

While we are on the subject, recall multiplication and division of complex numbers as it is most easily done in polar form

Applying \(|K|=K\) and \(\angle{K}=\mathrm{atan2}(0,K)=0\), the magnitude and angle of the complete transfer function \(H(z)\) may be written as