Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory...

35
Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Discrete Time Systems: Impulse responses and convolution; An introduction to the Z-transform Lecture 5

Transcript of Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory...

Page 1: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

Discrete Time Systems:Impulse responses and convolution; An introduction to the Z-transform

Lecture 5

Page 2: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

Impulse response and system output

Using impulse response, output can be calculated as:y[k] = h[k] * u[k]Proof:

ConclusionThe impulse of a system describes the input/output behavior completely.

Definition of impulse response

Time-invariance

Linearity

Definition of convolution

2

Page 3: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

Impulse response and system outputVisually:

3

Page 4: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

Z-transform

Discrete equivalent to the Laplace-transformConverts time dependent descriptions of systems to the time-independent Z-domain.Simplifies many calculations

Convolution theorem → convolution becomes multiplicationLinear difference equations become simple algebraic expressions...

4

Page 5: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

Z-transform

2 formsBilateral:

Requires knowledge of h for all values of k, including negative valuesCan be used for non-causal systems

Unilateral:Only requires knowledge of h for positive values of kCan only be used for causal systems without loss of information

5

Page 6: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

Z-transform: properties

6

Page 7: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

Transfer function (DT)

The transfer function of a discrete system is the Z-transform of the impulse response.H(z) = Z{h[k]}Recall: y[k] = h[k] * u[k]Let U(z) = Z{u[k]}

Y(z) = Z{y[k]}Thus, applying the convolution theorem:

Y(z) = H(z) . U(z)BUT: Only applies when system starts from a null state

(Reason: impulse response itself starts from a null state)

7

Page 8: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

Getting rid of convolutions (DT)

8

Page 9: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

List of common Z-transform pairs

9

Page 10: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

List of common Z-transform pairs

10

Page 11: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

For the Z-transform to converge the following must hold:

We will look at convergence separately for positive and negative k, splitting the convergence criterion in 2:

Using z = r ejϴ

with R+ as small as possible and R- as large as possible we get:

11

Region of convergence

Page 12: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

Region of convergence

The sums are finite if andRegion of convergence:

R+< R-: RingR-< R+: No ROC

Causal system, for negative k:

cannot contain any poles of the systemROC of a stable system always contains

the unit circle

12

R+

R-

Source: http://www.expertsmind.com/learning/z-transform-and-realization-of-digital-filters-assignment-help-7342873888.aspx

Page 13: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

Region of convergence

System 1: Causal: h[k] = { …, 0, 0, 0, 1, 1/3, (1/3)2

, (1/3)3

, … }System 2: Anti-causal: h[k] = { …, 3

3

, 32

, 3, 1, 0, 0, 0, … }Analytical representation: h[k] = (1/3)

k

After Z-transform: H(z) = z / (z – 1/3)2 systems with very different behaviors, but the same transfer function?Answer: different ROC:

System 1: |z| > 1/3System 2: |z| < 1/3

13

Page 14: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

Inverse Z-transform

Split the transfer function up in partial fractionsThis is done by first factorizing the denominatorIf all poles have multiplicity 1 then the following can be used:

The coefficients can be calculated by:

14

Page 15: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

Inverse Z-transform

If there are poles with multiplicity higher than 1 then the following approach is needed:

Where the highest coefficient for each pole can be calculated by:

15

Page 16: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

Inverse Z-transform

Any remaining coefficients can be found by evaluating the equation:

for a number of values of z.

16

Page 17: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

Inverse Z-transform

Because of the linearity of the inverse Z-transform, each partial fraction can be transformed individually and the results can be added together afterwards.The individual inverse Z-transforms can be found with the following:

17

Page 18: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

Example

Transfer function:Partial fraction decomposition:

Using the given formula’s:

This gives:

By evaluating the transfer function for z=1 we get:

18

Page 19: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

Example

The resulting transfer function is:

We can now find the inverse Z-transform for each individual fraction:

19

Page 20: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

Inverse Z-transform

Another technique for calculating the inverse Z-transform is direct divisionThe numerator of the transfer function is divided by the denominator via long division.Example:

⇒Z-1

{F(z)} = 1, 3, 12, 25, ...

20

Page 21: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

Solving difference equations with the Z-transform

A system is described by a difference equation of the following form:

After the Z-transform:

Rearranged:

21

Page 22: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

Solving difference equations with the Z-transform

lWe’ll apply the following transformation of the double summations:

22

Page 23: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

Solving difference equations with the Z-transform

The final simplified result is:

With this result it is easy to find the resulting output from a given input or vice-versa given a difference equation.Right-hand fraction = output resulting from starting conditions: will vanish with time = transient behaviorLeft-hand fraction = output resulting from input: will remain = steady state response

is the “transfer function” of the system

23

Page 24: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

Steady state behavior via Z-transform

Starting from the previous result:

We wish to find the resulting output from the input:

To simplify derivation, we use:

u[k] = ej(kα + θ)

With Z-transform:

24

Page 25: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

Steady state behavior via Z-transform

Filling in U(z) and splitting into partial fractions:

Calculating the coefficient c:

After the inverse Z-transform:

25

Page 26: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

Steady state behavior via Z-transform

Because of linearity we can ignore the imaginary component, leading to the result:

In most applications (= stable system) we can ignore transient behavior as it will quickly die outUsing the transfer function steady state behavior can easily be determined by converting sinusoidal signals to phasorsThe input: cos(kα + θ)Will produce steady state: |H(ejα )| cos(kα + θ + ∠H(ejα))

26

Page 27: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

Example

We’ll have a look at the steady state response to the input for the system:

Evaluating the transfer function for the exponential with pulsation 3 gives:

The resulting output has been reduced to a third in amplitude and has undergone a small phase shift.

27

Page 28: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

Interpreting the Z-transform

Z-domain = frequency domain, similar to LaplaceThe results used for calculating steady state behavior can be used to give a more concrete interpretation to the Z-domainA z-value is the phasor representation of a sinusoidal signal in the k-domainEvery signal in the k-domain can be decomposed into a sum of sinusoidal signals.Every signal in the k-domain can be analyzed in the Z-domain as a sum of sinusoidal signals.

28

Page 29: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

State space to transfer function

The transfer function can be derived directly from the state space model of a system:

The Z-transform gives:

Rearranged to have X(z) in explicit form:

29

Page 30: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

State space to transfer function

The result for Y(z):

Left hand term = effect on output from starting conditions = transient behaviorRight hand term = effect on output from input = steady state behaviorIf all previous effects have died out we can equate the starting conditions to 0:Y(z) = H(z) U(z)H(z) = C (zI – A )-1 B + D

30

Page 31: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

Link between Eigenvalues and poles

Are Eigenvalues of A poles of H(z)?

As z approaches an Eigenvalue of A, is no longer defined. may still be defined depending on the values of C and B.An Eigenvalue of A will sometimes, but not always, be a pole of H(z).If every Eigenvalue of A is also a pole of H(z) then a minimal number of internal states has been achieved

31

Page 32: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

Link between Eigenvalues and poles

Are poles of H(z) Eigenvalues of A?

B, C and D are matrixes with properly defined valuesIf H(z) is undefined then must be the causez must be an Eigenvalue of APoles of H(z) are always Eigenvalues of A

32

Page 33: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

Stability (DT)

BIBO-Stability (Bounded-Input Bounded-Output)Every bounded input results in a bounded output

Internal StabilityStricter than BIBO-StabilityAll possible internal states return to zero after a finite time in the absence of an input.All Eigenvalues of the matrix A are contained within the a circle of radius 1 around zero in the complex plane.

BIBO-Stability follows from Internal Stability, but the inverse is not necessarily true.

33

Page 34: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

Stability (DT)

A discrete system is BIBO-Stable if all poles of H(z) are within a circle of radius 1 around the origin.

34

Page 35: Discrete Time Systems: Impulse responses and …maapc/static/files...Systems and Control Theory STADIUS - Center for Dynamical Systems, Signal Processing and Data Analytics Transfer

Systems and Control Theory

STADIUS - Center for Dynamical Systems,

Signal Processing and Data Analytics

Overview

35