1 Applications of z-transforms

1.1 Transfer (or system) function

Consider a first order linear constant coefficient difference equation

y n + a y n 1 = b x n n = 0 , 1 , 2 , (1)

where { x n } is a given sequence.

Assume an initial condition y 1 is given.

Task!

Take the z-transform of (1), insert the initial condition and obtain Y ( z ) in terms of X ( z ) .

Using the right shift theorem

Y ( z ) + a ( z 1 Y ( z ) + y 1 ) = b X ( z )

where X ( z ) is the z-transform of the given or input sequence { x n } and Y ( z ) is the z-transform of the response or output sequence { y n } .

Solving for Y ( z )

Y ( z ) ( 1 + a z 1 ) = b X ( z ) a y 1

so

Y ( z ) = b X ( z ) 1 + a z 1 a y 1 1 + a z 1 (2)

The form of (2) shows us clearly that Y ( z ) is made up of two components, Y 1 ( z ) and Y 2 ( z ) say, where

  1. Y 1 ( z ) = b X ( z ) 1 + a z 1 which depends on the input X ( z )
  2. Y 2 ( z ) = a y 1 1 + a z 1 which depends on the initial condition y 1 .

Clearly, from (2), if y 1 = 0 (zero initial condition) then

Y ( z ) = Y 1 ( z )

and hence the term zero-state response is sometimes used for Y 1 ( z ) .

Similarly if { x n } and hence X ( z ) = 0 (zero input)

Y ( z ) = Y 2 ( z )

and hence the term zero-input response can be used for Y 2 ( z ) .

In engineering the difference equation (1) is regarded as modelling a system or more specifically a linear discrete time-invariant system. The terms linear and time-invariant arise because the difference equation (1) is linear and has constant coefficients i.e. the coefficients do not involve the index n . The term ‘discrete’ is used because sequences of numbers, not continuous quantities, are involved. As noted above, the given sequence { x n } is considered to be the input sequence and { y n } , the solution to (1), is regarded as the output sequence.

Figure 8

No alt text was set. Please request alt text from the person who provided you with this resource.

A more precise block diagram representation of a system can be easily drawn since only two operations are involved:

1. Multiplying the terms of a sequence by a constant.

2. Shifting to the right, or delaying, the terms of the sequence.

A system which consists of a single multiplier is denoted as shown by a triangular symbol:

Figure 9

No alt text was set. Please request alt text from the person who provided you with this resource.

As we have seen earlier in this workbook a system which consists of only a single delay unit is represented symbolically as follows

Figure 10

No alt text was set. Please request alt text from the person who provided you with this resource.

The system represented by the difference equation (1) consists of two multipliers and one delay unit. Because (1) can be written

y n = b x n a y n 1

a symbolic representation of (1) is as shown in Figure 11.

Figure 11

No alt text was set. Please request alt text from the person who provided you with this resource.

The circle symbol denotes an adder or summation unit whose output is the sum of the two (or more) sequences that are input to it.

We will now concentrate upon the zero state response of the system i.e. we will assume that the initial condition y 1 is zero.

Thus, using (2),

Y ( z ) = b X ( z ) 1 + a z 1

so

Y ( z ) X ( z ) = b 1 + a z 1 (3)

The quantity Y ( z ) X ( z ) , the ratio of the output z-transform to the input z-transform, is called the transfer function of the discrete system. It is often denoted by H ( z ) .

Key Point 16

The transfer function H ( z ) of a discrete system is defined by

H ( z ) = Y ( z ) X ( z ) =  z - transform  of output sequence  z - transform  of input sequence

when the initial conditions are zero.

Task!
  1. Write down the transfer function H ( z ) of the system represented by (1)
    1. using negative powers of z
    2. using positive powers of z .
  2. Write down the inverse z-transform of H ( z ) .
  1. From (3)
    1. H ( z ) = b 1 + a z 1
    2. H ( z ) = b z z + a
  2. Referring to the Table of z-transforms at the end of the Workbook:

    { h n } = b ( a ) n n = 0 , 1 , 2 ,

We can represent any discrete system as follows

Figure 12

No alt text was set. Please request alt text from the person who provided you with this resource.

From the definition of the transfer function it follows that

Y ( z ) = X ( z ) H ( z ) (at zero initial conditions).

The corresponding relation between { y n } , { x n } and the inverse z-transform { h n } of the transfer function will be discussed later; it is called a convolution summation .

The significance of { h n } is readily obtained.

Suppose { x n } = 1 n = 0 0 n = 1 , 2 , 3 ,

i.e. { x n } is the unit impulse sequence that is normally denoted by δ n . Hence, in this case,

X ( z ) = Z { δ n } = 1 so Y ( z ) = H ( z ) and { y n } = { h n }

In words:  { h n } is the response or output of a system where the input is the unit impulse sequence { δ n } . Hence { h n } is called the unit impulse response of the system.

Key Point 17

For a linear, time invariant discrete system, the unit impulse response and the system transfer function are a z-transform pair:

H ( z ) = { h n } { h n } = 1 { H ( z ) }

It follows from the previous Task that for the first order system (1)

H ( z ) = b 1 + a z 1 = b z z + a is the transfer function and

{ h n } = { b ( a ) n } is the unit impulse response sequence.

Task!

Write down the transfer function of

  1. a single multiplier unit
  2. a single delay unit.
  1. { y n } = { A x n } if the multiplying factor is A

    using the linearity property of z-transform

    Y ( z ) = A X ( z )

    so H ( z ) = Y ( z ) X ( z ) = A is the required transfer function.

  2. { y n } = { x n 1 }

    so Y ( z ) = z 1 X ( z ) (remembering that initial conditions are zero)

    H ( z ) = z 1 is the transfer function of the single delay unit.

Task!

Obtain the transfer function of the system.

y n + a 1 y n 1 = b 0 x n + b 1 x n 1 n = 0 , 1 , 2 ,

where { x n } is a known sequence with x n = 0 for n = 1 , 2 , .

[Remember that the transfer function is only defined at zero initial condition i.e. assume y 1 = 0 also.]

Taking z-transforms

Y ( z ) + a 1 z 1 Y ( z ) = b 0 X ( z ) + b 1 z 1 X ( z ) Y ( z ) ( 1 + a 1 z 1 ) = ( b 0 + b 1 z 1 ) X ( z )

so the transfer function is

H ( z ) = Y ( z ) X ( z ) = b 0 + b 1 z 1 1 + a 1 z 1 = b 0 z + b 1 z + a 1

1.2 Second order systems

Consider the system whose difference equation is

y n + a 1 y n 1 + a 2 y n 2 = b x n n = 0 , 1 , 2 , (4)

where the input sequence x n = 0 , n = 1 , 2 ,

In exactly the same way as for first order systems it is easy to show that the system response has a z-transform with two components.

Task!

Take the z-transform of (4), assuming given initial values y 1 , y 2 . Show that Y ( z ) has two components. Obtain the transfer function of the system (4).

From (4)

Y ( z ) + a 1 ( z 1 Y ( z ) + y 1 ) + a 2 ( z 2 Y ( z ) + z 1 y 1 + y 2 ) = b X ( z ) Y ( z ) ( 1 + a 1 z 1 + a 2 z 2 ) + a 1 y 1 + a 2 z 1 y 1 + a 2 y 2 = b X ( z ) Y ( z ) = b X ( z ) 1 + a 1 z 1 + a 2 z 2 ( a 1 y 1 + a 2 z 1 y 1 + a 2 y 2 ) 1 + a 1 z 1 + a 2 z 2 = Y 1 ( z ) + Y 2 ( z )  say .

At zero initial conditions, Y ( z ) = Y 1 ( z ) so the transfer function is

H ( z ) = b 1 + a 1 z 1 + a 2 z 2 = b z 2 z 2 + a 1 z + a 2 .

Example

Obtain (i) the unit impulse response (ii) the unit step response of the system specified by the second order difference equation

y n 3 4 y n 1 + 1 8 y n 2 = x n (5)

Note that both these responses refer to the case of zero initial conditions. Hence it is convenient to first obtain the transfer function H ( z ) of the system and then use the relation Y ( z ) = X ( z ) H ( z ) in each case.

We write down the transfer function of (5), using positive powers of z . Taking the z-transform of (5) at zero initial conditions we obtain

Y ( z ) 3 4 z 1 Y ( z ) + 1 8 z 2 Y ( z ) = X ( z ) Y ( z ) 1 3 4 z 1 + 1 8 z 2 = X ( z ) H ( z ) = Y ( z ) X ( z ) = z 2 z 2 3 4 z + 1 8 = z 2 ( z 1 2 ) ( z 1 4 )

We now complete the problem for inputs 1. x n = δ n 2. x n = u n , the unit step sequence, using partial fractions.

H ( z ) = z 2 z 1 2 z 1 4 = 2 z z 1 2 z z 1 4

  1. With x n = δ n so X ( z ) = 1 the response is, as we saw earlier,

    Y ( z ) = H ( z )

    so y n = h n

    where h n = 1 H ( z ) = 2 × 1 2 n 1 4 n n = 0 , 1 , 2 ,

  2. The z-transform of the unit step is z z 1 so the unit step response has z-transform Y ( z ) = z 2 z 1 2 z 1 4 z ( z 1 ) = 2 z z 1 2 + 1 3 z z 1 4 + 8 3 z z 1

    Hence, taking inverse z-transforms, the unit step response of the system is

    y n = ( 2 ) × 1 2 n + 1 3 × 1 4 n + 8 3 n = 0 , 1 , 2 ,

    Notice carefully the form of this unit step response - the first two terms decrease as n increases and are called transients . Thus

    y n 8 3  as n

    and the term 8 3 is referred to as the steady state part of the unit step response.

1.3 Combinations of systems

The concept of transfer function enables us to readily analyse combinations of discrete systems.

Series combination

Suppose we have two systems S 1 and S 2 with transfer functions H 1 ( z ) , H 2 ( z ) in series with each other. i.e. the output from S 1 is the input to S 2 .

Figure 13

No alt text was set. Please request alt text from the person who provided you with this resource.

Clearly, at zero initial conditions,

Y 1 ( z ) = H 1 ( z ) X ( z ) Y ( z ) = H 2 ( z ) X 2 ( z ) = H 2 ( z ) Y 1 ( z ) Y ( z ) = H 2 ( z ) H 1 ( z ) X ( z )

so the ratio of the final output transform to the input transform is

Y ( z ) X ( z ) = H 2 ( z ) H 1 ( z ) (6)

i.e. the series system shown above is equivalent to a single system with transfer function H 2 ( z ) H 1 ( z )

Figure 14

No alt text was set. Please request alt text from the person who provided you with this resource.

Task!

Obtain

  1. the transfer function
  2. the governing difference equation of the system obtained by connecting two first order systems S 1 and S 2 in series. The governing equations are:

    S 1 : y n a y n 1 = b x n

    S 2 : y n c y n 1 = d x n

  1. Begin by finding the transfer function of S 1 and S 2 and then use (6):

    S 1 : Y ( z ) a z 1 Y ( z ) = b X ( z ) so H 1 ( z ) = b 1 a z 1

    S 2 : H 2 ( z ) = d 1 c z 1

    so the series arrangement has transfer function

    H ( z ) = b d ( 1 a z 1 ) ( 1 c z 1 ) = b d 1 ( a + c ) z 1 + a c z 2

    If X ( z ) and Y ( z ) are the input and output transforms for the series arrangement, then

    Y ( z ) = H ( z ) X ( z ) = b d X ( z ) 1 ( a + c ) z 1 + a c z 2

  2. By transfering the denominator from the right-hand side to the left-hand side and taking inverse z-transforms obtain the required difference equation of the series arrangement:

    We have

    Y ( z ) ( 1 ( a + c ) z 1 + a c z 2 ) = b d X ( z )

    Y ( z ) ( a + c ) z 1 Y ( z ) + a c z 2 Y ( z ) = b d X ( z )

    from which, using the right shift theorem,

    y n ( a + c ) y n 1 + a c y n 2 = b d x n .

    which is the required difference equation.

    You can see that the two first order systems in series have an equivalent second order system. Feedback combination

    Figure 15

    No alt text was set. Please request alt text from the person who provided you with this resource.

    For the above negative feedback arrangement of two discrete systems with transfer functions H 1 ( z ) , H 2 ( z ) we have, at zero initial conditions,

    Y ( z ) = W ( z ) H 1 ( z ) where W ( z ) = X ( z ) H 2 ( z ) Y ( z )

Task!

Eliminate W ( z ) and hence obtain the transfer function of the feedback system.

Y ( z ) = ( X ( z ) H 2 ( z ) Y ( z ) ) H 1 ( z ) = X ( z ) H 1 ( z ) H 2 ( z ) H 1 ( z ) Y ( z )

so

Y ( z ) ( 1 + H 2 ( z ) H 1 ( z ) ) = X ( z ) H 1 ( z )

Y ( z ) X ( z ) = H 1 ( z ) 1 + H 2 ( z ) H 1 ( z )

This is the required transfer function of the negative feedback system.