Docsity

Discrete-Time Signal Processing: Convolution and Z Transforms - Prof. Dennis M. Sullivan, Study notes of Signals and Systems

Toggle sidebar
bg1
5.1 Discrete Signals
If I start with a continuous signal f(t) and sample at constant
intervals T, I get a discrete-time signal
f t f kT f k
.
Instead of differential equations, we have difference equations
1 2
2 1y k a y k a y k f k
With initial conditions
0 0
, 1 ,...y k y k
Like before, we can talk about zero-input and zero-state response
zi zs
y k y k y k
zi
y k
is due to I.C.
zs
y k
is due to the forcing function
There are many similar functions (page 5)
1 0
0 0
k
kk
1 0
0 0
k
u k k
There is a discrete rectangular pulse (page 38)
1 / 2 / 2
0
m
m k m
p k k elsewhere
There are similar theorems:
Sifting theorem
0 0
k
f k k k f k
(5.1.1)
Notice that
0
0
1
0 0
k k
k k k
And therefore,
0 0 0
f k k k f k k k
{Notice that summation takes the place of integration.}
Convolution of Discrete-Time Signals
Convolution in the discrete-time domain is
Z.I 12/1/2020
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13

Partial preview of the text

Download Discrete-Time Signal Processing: Convolution and Z Transforms - Prof. Dennis M. Sullivan and more Study notes Signals and Systems in PDF only on Docsity!

5.1 Discrete Signals

If I start with a continuous signal f(t) and sample at constant

intervals T, I get a discrete-time signal

f  t   f  kT   f  k 

Instead of differential equations, we have difference equations

1 2

y k  2  a y k  1  a y kf k

With initial conditions

0 0

y k , y k 1 ,...

Like before, we can talk about zero-input and zero-state response

zi zs

y ky ky k

zi

y k is due to I.C.

zs

y k is due to the forcing function

There are many similar functions (page 5)

k

k

k

k

u k

k

k k

r k

k

There is a discrete rectangular pulse (page 38)

m

m k m

p k

k elsewhere

There are similar theorems:

Sifting theorem

0 0

k

f kk k f k

 

Notice that

0

0

k k

k k

k

And therefore,

0 0 0

f kkkf kkk

{Notice that summation takes the place of integration.}

Convolution of Discrete-Time Signals

Convolution in the discrete-time domain is

1 2

1 2

m

f k f k f k

f m f k m

 

It has many of the same properties

Commutativity

1 2 2 1

f k * f kf k * f k

Distributivity

               1 2 3 1 2 1 3

f k * f kf kf k * f kf k * f k

Associativity

 

 

1 2 3 1 32 3

f k * f k * f kf k * f k * f k

Duration

If

1

f k is duration 1

M

And

2

f k is duration 2

M

Then

1 2

f k * f k is duration 1 2

M  M

Note: Duration is NOT the number of terms; it is the distance between the

first and last terms.

Time-Shifting

1 1 2 1

f kk * f kf kk

1 1 2 2 1 2

f kk * f kkf kkk

Example 6.12 (page 298)

The convolution of the unit step with any causal signal produces a

summation

0 0

m m

f k u k f m u k m f m

 

 

 

The convolution of two causal signals can be simplified to

2 2 1 2

0

1 2 1 2 1 2

k

m

f k f k f m f k m

f f k f f k f k f

Sliding Tape Method (page 298)

This is a graphical convolution method

Step 1: the signals are recorded on two tapes

1 1 1 1 1

2 2 2 2 2

f f f f f

f f f f f

Step 2. The second is flipped

k x[k] y[k-1] y[k]

I surmise that the output can be written

k

y kh ku k

Now I want the output for some other input, say

x ku k

We know that the output is the convolution of the impulse response and

the input

0

0

k

m

k

m

y k h k x k h m u k m

h m

Suppose I were given a system described by the differential

equation

dy t

y t x t

dt

To put this in a computer, I have to discritize it. I will have to approximate

the derivative

dy t y k 1 y k

dt t

Then the differential equation becomes a difference equation

y k y k

y k x k

t

y k  1  y k    t 0.2 y k   t x k

y k  1   1    t 0.2 y k   t x k

If

  t 1

y k  1  0.8 y kx k

5.2 Introduction to Z Transforms

We will consider the one-sided Z transforms

      

0

k

k

F z Z f k f k z

In a way, the Z-transform is the simplest because it has the effect of adding

1

z

for each

delay.

f  k   4  k  2   2   k  4    k  6 

2 4 6

F z 4 z 2 z z

  

A valuable series formula to remember is

2 3

q q q if q

q

Example

 

1 2 3 4

1

z

Z u k z z z z

z z

   

Similarly

  

1 2 2 3 3 4 4

1

k

z

Z a u k az a z a z a z

az z a

   

What is the Z transform of  

k ? Obviously, this only has one term

    

0

k

k

Zkk z

Properties of Z Transforms

1. Linearity

         1 2 1 2

Zf k   f k  F z  F z

The proof comes directly from the definition

         

1 2 1 2

0

1 2

0 0

1 2

k

k

k k

k k

Z f k f k f k f k z

f k z f k z

F z F z

 

 

 

 

2. Right Time Shift

    

0

0 0

k

Z f k k u k k z F z

0

k positive integer

Proof

         0 0 0 0

0

k

k

Z f k k u k k z f k k u k k

 

 

0

0

0 0

0 0

0 0

0

0 0

1

0

1

i k

i k

k i k i i

i k i i k

k k i

i k

Z f k k u k f i u i k z

z f i z z f i z f i z

z F z z f i z

 



  

    

  

  



  

Figure 5.2.2.

Example

Look at the previous example:

k

f ku k

And calculate

     1

F zZ f k  2 u k

Solution

        

 

 

 

1

2 2

0

2

2 2 2 1

2 1

1

2

1 1

i

i

Z f k k u k z F z z f i z

z

z z f z f z

z

z

z z

z

z z z

z

z z

z z z z

z z

  



 

 

 

Example

Solve for the impulse response

y k [ ]  0.5 [ y k  1]  k

Start by taking the Z transform of each term. Since the Z transform starts at n=0, I am

implicitly taking the Z transforms of

y k u k [ ]  0.5 [ y k  1] u k   k u k

      

1

Y z 0.5 z Y z y 1 1

Since we are looking for an impulse response, we assume all initial conditions are zero, which

leaves

1

Y z 0.5 z Y z 1

   

1

Y z 1 0.5 z 1

1

z

Y z

z z

So

k

h ku k

3. Left Time Shift (Derivative)

    

Z f k  1 u kzF zzf 0

    

2 2

Z f k  2 u kz F zz f 0  zf 1

Example

For

k

f ku k

Find        2

F zZ f k  2 u k

Figure 5.2.3.

Solution

        

1 2 1 2

0

2 1

0

1 2

m

m

m

m

Z f k f k f m F z z

F z f m z

F z F z

     

Example

Convolve the following two signals

Figure 5.2.4.

1 2

1

F z 1 z z

1 2

2

F z 0.5 z 0.5 z

   

1 2 1 2

1 2

1 2

3 4

1 2 3 4

F z F z z z z z

z z

z z

z z z z

   

 

 

   

Figure 5.2.5. Convolution of the two functions in Fig. 5.2.4.

Notice that with that with the one basic transform,

  

k

z

Z a u k

z a

We can begin to generate many more. For instance, there is nothing that says a can’t be a

complex number. So

ik T

i T

z

Z e u k

z e

and

ik T

i T

z

Z e u k

z e

Or

2

2

2

cos 0.

2 2 2 cos 1

cos

2 cos 1

ik T ik T

i T i T

i T i T

Z k T u k Z e e u k

z z e z z e z z

z e z e z z T

z z T

z z T

 

 

 

Similarly,

2

sin 0.

sin

2 cos 1

ik T ik T

i T i T

Z k T u k Z j e e u k

j z z

z e z e

z T

z z T

 

 

What is the Z transform of      

cos

k

f ka kT u k ?

cos

k

k ik T k ik T

f k a k T u k

a e a e

 

2

2 2

cos

2 cos

i T i T

z z

F z

z ae z ae

z za T

z a T a

 

Property 5. Frequency Scaling Property

k

z

Z a f k F

a

Proof

z

F z

z

The first term is solved by time multiplication

  

2

2

d z

Z kf k z

dz z

z z

z

z

z

z

The second term comes from frequency scaling

z z z

F

z z

The third term form the right shift theorem

 

1

2

z z

Z f k u k z

z z

And the last from the left shift theorem

 

2

z

Z f k u k z zf

z

z z z z z

z z

z z z

3. Inverse Z Transforms

The inverse Z transform is defined as follow:

1

k

f k F z z dz

j



This can be done using contour integration. Needless to say, what we prefer to do is get

every term in a form that we can look up in the table.

Example

What is the inverse Z transform of

2 4

F z 1 2 z 3 z

 

Solution

f k   k  2  k  2  3  k  4

Or we might say

f 0 1, f 2 2, f 4 3.

Example

Solve

y k  0.3 y k  1  u k y 0  0

Solution

First take the Z transforms of both sizes

1

z

Y z z Y z

z

 

1

z

Y z

z z

2

z

Y z

z z

To get back to the sampled time domain, we have to transform each term back. We use a

version of partial fraction expansion similar to what we used for the Laplace transforms.

Start by dividing everything by z:

Y z z A B

z z z z z

Multiplying through by z-0.3 and evaluating at z = 0.3 gives us A

0.3 0.

z z

B z

A z

z z

 

Multiplying through by z-1 and evaluating at z = 1 gives us B

1 1

z z

A z

B z

z z

 

Now we multiply back through by the z that we saved to give us terms that we can find in the

tables.

z z

Y z

z z

And we can easily go to the sampled time-domain

k

y k u k

Example

Find the inverse Z transform of

0

f 0  1  0.5  0

f 1 0.

f 2 0.

Notice that this is

k

u k with the first term missing. Could I have done this another

way? Suppose I say

1

z

F z z

z

I know

1

z k

Z u k

z

then the right shift theorem tells me

1

k

k

f k u k

u k

Notice that

f 0  0

f 1 0.

f 2 0.

8. Initial Value Theorem

0 lim

z

f F z

 

This comes about from the definition of the Z transform and the fact that every term

m

z

will

go to zero.

9. Final Value Theorem

1

lim lim

k z

z

f k F z

z   

Proof

First note that

          

1

z

Z f k f k F z z F z F z

z

Then take the following limit as z  1

         

             

1

0 0

lim 1 1

k

z

k k

f k f k z f k f k

f f f f f f

f

 

 

 

Which is what we were trying to prove.

Note that the final value theorem is only applicable to functions that actually have a

limit at infinity. For instance

z

F z

z

Does not because the corresponding inverse is

k

f ku k

Another way to say this is that it has a pole outside the unit circle. In fact, the formal test for

the applicability of the final value theorem is the    

z  1 F z can have no poles on or outside

the unit circle.

Example

z

F z

z

I can use the final value theorem because    

z  1 F z has no poles outside the unit circle.

Example

I cannot use the final value theorem on

z

F z

z z

Because it has a pole outside the unit circle.

Partial Fraction expansion of multiple poles

Find the inverse Z of

2

z z

F z

z z

The first step is to save a z:

2 2

F z z A B C

z z z z z z

Multiply through by z-1 and evaluate at z = 1

3 1 2

z A

z B C z D z

z z

To get C I take the first derivative

2

z d A

z C D z

dz z z

And to get D I have to take the second derivative

2

1

2

z d A

z C D

dz z z

So

2

2

.

z

z d

D

dz z

Notice that I would now have a term

3

Bz

z

The closest transform in Table 5.2 is

k

k k k k m a u k

m

1

1

m

m

z

z

To get it in this form

3

2

3 3

z z

z m

z z

3

1

3

k z

Z k k k u k

z

3

2 1 2

3

2

k

k

z

Z z k k k u k

z

k k k u k

  