<<

z Transform and Block Diagrams and Transfer Functions Just as with CT systems, DT systems are conveniently described by block diagrams and transfer functions can be determined from them. For example, from this DT system block diagram the difference equation can be determined.

1 yxx[]nnn= 21[]−−[]−− y[] n1 2

5/10/04 M. J. Roberts - All Rights Reserved 2 Block Diagrams and Transfer Functions From a z-domain block diagram the can be determined.

−−1 YX()zzzzzz= 2 ()− 11 X()− Y() 2 Y()z 2 − z −1 21z − H()z = = = () 1 − 1 X z 1+ z 1 z + 2 2

5/10/04 M. J. Roberts - All Rights Reserved 3 Block Diagram Reduction

All the techniques for block diagram reduction introduced with the apply exactly to z transform block diagrams.

5/10/04 M. J. Roberts - All Rights Reserved 4 System Stability

A DT system is stable if its is absolutely summable. That requirement translates into the z-domain requirement that all the poles of the transfer function must lie in the open interior of the unit circle.

5/10/04 M. J. Roberts - All Rights Reserved 5 System Interconnections Cascade

Parallel

5/10/04 M. J. Roberts - All Rights Reserved 6 System Interconnections Feedback

Y()z H ()z H ()z H()z = = 1 = 1 () + () () + () X z 11HH12zz T z

()= () () THHzzz12

5/10/04 M. J. Roberts - All Rights Reserved 7 Responses to Standard

N()z If the system transfer function is H () z = the z D()z z N()z transform of the unit-sequence response is Y()z = z −1 D()z which can be written in partial-fraction form as N ()z z Y()zz= 1 + H()1 D()z z −1 N ()z If the system is stable the transient term, z 1 , dies out D()z z and the steady-state response is H1 () . z −1

5/10/04 M. J. Roberts - All Rights Reserved 8 Responses to Standard Signals

Kz Let the system transfer function be H()z = zp−

z Kz K  z pz  Then Y()z = =  −  z −−11zp −−p  z 1zp− 

K + and yu[]n = ()1− pnn 1 [] 1− p

Let the constant, K be 1 - p. Then yu[]npn=−()1 n+1 []

5/10/04 M. J. Roberts - All Rights Reserved 9 Responses to Standard Signals Unit Sequence Response One-Pole System

5/10/04 M. J. Roberts - All Rights Reserved 10 Responses to Standard Signals Unit Sequence Response Two-Pole System

5/10/04 M. J. Roberts - All Rights Reserved 11 Responses to Standard Signals N()z If the system transfer function is H () z = the z transform D()z of the response to a suddenly-applied sinusoid is N()z zz[]− cos()Ω Y()z = 0 ()2 − ()Ω + D z zz21cos 0 Ω = j 0 Let pe 1 . Then the system response can be written as  N ()z  []= −1 1 + ()(()Ω +∠ ()[] y nzZ  () Hpnp10 cos H 1u n  D z  and, if the system is stable, the steady-state response is ()()Ω +∠ ()[] Hpnpn10 cos H 1 u a DT sinusoid with, generally, different magnitude and phase.

5/10/04 M. J. Roberts - All Rights Reserved 12 Pole-Zero Diagrams and Response For a stable system, the response to a suddenly-applied sinusoid approaches the response to a true sinusoid (applied for all time).

5/10/04 M. J. Roberts - All Rights Reserved 13 Pole-Zero Diagrams and

Let the transfer function of a DT system be z z H()z = = 2 z 5 ()zpzp− ()− z −+ 12 2 16 12+ j 12− j p = p = 1 4 2 4

e jΩ H()e jΩ = jjΩΩ−− epep12

5/10/04 M. J. Roberts - All Rights Reserved 14 Pole-Zero Diagrams and Frequency Response

5/10/04 M. J. Roberts - All Rights Reserved 15 The Jury Stability Test N()z Let a transfer function be in the form, H()z = D()z ()=+D D−1 +++L where D zazazD D−1 aza10

Form the “Jury” array L 1 aaa012 aaaDDD−− 21 L 2 aaDD−−12 a D a 210 aa L 3 bbb012 bbDD−− 21 L 4 bbbDDD−−−123 bb 10 L 5 ccc012 cD− 2 L 6 cccDDD−−−234 c 0 MMMMN − 23Dsss012

5/10/04 M. J. Roberts - All Rights Reserved 16 The Jury Stability Test

The third row is computed from the first two by

aa aa aa aa ==0 D 01D−− =02D L =01 b0 ,,b1 b2 ,,bD−1 aaD 0 aaD 1 aaD 2 aaDD−1

The fourth row is the same set as the third row except in reverse order. Then the c’s are computed from the b’s in the same way the b’s are computed from the a’s. This continues until only three entries appear. Then the system is stable if D1()> 0 ()−110D D()− > >> >L > aabbDDD00,,,,−− 10 cc 2 ss 0 2

5/10/04 M. J. Roberts - All Rights Reserved 17 Root Locus Root locus methods for DT systems are like root locus methods for CT systems except that the interpretation of the result is different.

CT systems: If the root locus crosses into the right half-plane the system goes unstable at that .

DT systems: If the root locus goes outside the unit circle the system goes unstable at that gain.

5/10/04 M. J. Roberts - All Rights Reserved 18 Simulating CT Systems with DT Systems

The ideal simulation of a CT system by a DT system would have the DT system’s excitation and response be samples from the CT system’s excitation and response. But that design goal is never achieved exactly in real systems at finite sampling rates.

5/10/04 M. J. Roberts - All Rights Reserved 19 Simulating CT Systems with DT Systems

One approach to simulation is to make the impulse response of the DT system be a sampled version of the impulse response of the CT system. []= () hhnnTs

With this choice, the response of the DT system to a DT unit impulse consists of samples of the response of the CT system to a CT unit impulse. This technique is called impulse-invariant design.

5/10/04 M. J. Roberts - All Rights Reserved 20 Simulating CT Systems with DT Systems

[]= () When hh nnT s the impulse response of the DT system is a sampled version of the impulse response of the CT system but the unit DT impulse is not a sampled version of the unit CT impulse.

A CT impulse cannot be sampled. First, as a practical matter the probability of taking a sample at exactly the time of occurrence of the impulse is zero. Second, even if the impulse were sampled at its time of occurrence what would the sample value be? The functional value of the impulse is not defined at its time of occurrence because the impulse is not an ordinary function.

5/10/04 M. J. Roberts - All Rights Reserved 21 Simulating CT Systems with DT Systems

In impulse-invariant design, even though the impulse response is a sampled version of the CT system’s impulse response that does not mean that the response to samples from any arbitrary excitation will be a sampled version of the CT system’s response to that excitation.

All design methods for simulating CT systems with DT systems are approximations and whether or not the approximation is a good one depends on the design goals.

5/10/04 M. J. Roberts - All Rights Reserved 22 Sampled-Data Systems

Real simulations of CT systems by DT systems usually sample the excitation with an ADC, process the samples and then produce a CT signal with a DAC.

5/10/04 M. J. Roberts - All Rights Reserved 23 Sampled-Data Systems

An ADC simply samples a signal and produces numbers. A common way of modeling the action of a DAC is to imagine the DT impulses in the DT signal which drive the DAC are instead CT impulses of the same strength and that the DAC has the impulse response of a zero-order hold.

5/10/04 M. J. Roberts - All Rights Reserved 24 Sampled-Data Systems

The desired equivalence between a CT and a DT system is illustrated below.

() () The design goal is to make y d t look as much like y c t as possible by choosing h[n] appropriately.

5/10/04 M. J. Roberts - All Rights Reserved 25 Sampled-Data Systems Consider the response of the CT system not to the actual signal, x(t), but rather to an impulse-sampled version of it, ∞ ()= ()δ()− = () () xδ tnTtnTtfft∑ xss xss comb n=−∞ The response is ∞ ∞ ()= ()∗ ()= ()∗ []δ()− = []()− yhxttδ tt h∑∑ x mtmTmtmTs xh s m=−∞ m=−∞ []= () where xx nnT s and the response at the nth multiple of Ts ∞ is ()= []()()− yxhnTss∑ m n m T m=−∞ []= () The response of a DT system with hh nnT s to the excitation, xx [] nnT = () is s ∞ yxh[]nnn= []∗ []= ∑ xh[] mnm[]− m=−∞

5/10/04 M. J. Roberts - All Rights Reserved 26 Sampled-Data Systems

The two responses are equivalent in the sense that the values at corresponding DT and CT times are the same.

5/10/04 M. J. Roberts - All Rights Reserved 27 Sampled-Data Systems

Modify the CT system to reflect the last analysis.

Then multiply the impulse responses of both systems by Ts

5/10/04 M. J. Roberts - All Rights Reserved 28 Sampled-Data Systems In the modified CT system,  ∞  ∞ ()= ()∗ ()= ()δ()− ∗ () = ()()− yxtδ t Tsss h t ∑∑ x nT t nT h t Tssss x nT h t nT T n=−∞  n=−∞ In the modified DT system, ∞ ∞ []= [][]− = []()()− yxhxhn∑∑ m nm mTnmTss m=−∞ m=−∞ []= () where hh nTnT ss and h(t) still represents the impulse

response of the original CT system. Now let T s approach zero. ∞ ∞ ()= ()()− = ()τττ()− lim yt lim∑ x nTsss h t nT T∫ x h t d TT→→00 ssn=−∞ −∞ () This is the response, y c t , of the original CT system.

5/10/04 M. J. Roberts - All Rights Reserved 29 Sampled-Data Systems

Summarizing, if the impulse response of the DT system is () chosen to be TnT ss h then, in the limit as the sampling rate approaches infinity, the response of the DT system is exactly the same as the response of the CT system.

Of course the sampling rate can never be infinite in practice. Therefore this design is an approximation which gets better as the sampling rate is increased.

5/10/04 M. J. Roberts - All Rights Reserved 30 Digital Filters

¥ design is simply DT system design applied to filtering signals ¥ A popular method of digital filter design is to simulate a proven CT filter design ¥ There many design approaches each of which yields a better approximation to the ideal as the sampling rate is increased

5/10/04 M. J. Roberts - All Rights Reserved 31 Digital Filters

¥ Practical CT filters have infinite-duration impulse responses, impulse responses which never actually go to zero and stay there ¥ Some digital filter designs produce DT filters with infinite-duration impulse responses and these are called IIR filters ¥ Some digital filter designs produce DT filters with finite-duration impulse responses and these are called FIR filters

5/10/04 M. J. Roberts - All Rights Reserved 32 Digital Filters

¥ Some digital filter design methods use time- domain approximation techniques ¥ Some digital filter design methods use frequency-domain approximation techniques

5/10/04 M. J. Roberts - All Rights Reserved 33 Digital Filters Impulse and Step Invariant Design

5/10/04 M. J. Roberts - All Rights Reserved 34 Digital Filters Impulse and Step Invariant Design Impulse invariant: −1 Sample () L () [] Z () Hs s h t h n Hz z

Step invariant: × 1 s () −1 Sample Hs s L () h− []n H ()s h−1 t 1 s s

− × z 1 z z Z H ()z H ()z z −1 z z

5/10/04 M. J. Roberts - All Rights Reserved 35 Digital Filters Impulse and Step Invariant Design Impulse invariant approximation of the one-pole system, 1 H ()s = s sa+ yields ()= 1 Hz z −− 1− ezaTs 1

5/10/04 M. J. Roberts - All Rights Reserved 36 Digital Filters Impulse and Step Invariant Design = ()= 1 Let a be one and let T s 01 . in Hz z −− 1− ezaTs 1

Digital Filter Impulse Response

CT Filter Impulse Response

5/10/04 M. J. Roberts - All Rights Reserved 37 Digital Filters Impulse and Step Invariant Design ()= 1 Step response of Hz z −− 1− ezaTs 1

Digital Filter Step Response

Notice scale difference

CT Filter Step Response

5/10/04 M. J. Roberts - All Rights Reserved 38 Digital Filters

Why is the impulse response exactly right while the step response is wrong?

This design method forces an equality between the impulse strength of a CT excitation, a unit CT impulse at zero, and the impulse strength of the corresponding DT signal, a unit DT impulse at zero. It also makes the impulse response of the DT system, h[n], be samples from the impulse response of the CT system, h(t).

5/10/04 M. J. Roberts - All Rights Reserved 39 Digital Filters A CT step excitation is not an impulse. So what should the correspondence between the CT and DT excitations be now? If the step excitation is sampled at the same rate as the impulse response was sampled, the resulting DT signal is the excitation of the DT system and the response of the DT system is the sum of the responses to all those DT impulses.

5/10/04 M. J. Roberts - All Rights Reserved 40 Digital Filters If the excitation of the CT system were a sequence of CT unit impulses, occurring at the same sampling rate used to form h[n], then the response of the DT system would be samples of the response of the CT system.

5/10/04 M. J. Roberts - All Rights Reserved 41 Digital Filters Impulse and Step Invariant Design Impulse invariant approximation of

s H ()s = s ss25++×400 2 10 with a 1 kHz sampling rate yields

zz()− 0. 9135 H()z = zz2 −+1.. 508 0 6703

5/10/04 M. J. Roberts - All Rights Reserved 42 Digital Filters Impulse and Step Invariant Design Step invariant approximation of

s H ()s = s ss25++×400 2 10 with a 1 kHz sampling rate yields

797. ×− 10−4 ()z 1 H ()z = z zz2 −+1.. 509 0 6708

5/10/04 M. J. Roberts - All Rights Reserved 43 Digital Filters Finite Difference Design Every CT transfer function implies a corresponding differential equation. For example, 1 d Hyyx()s = ⇒ ()()tatt+ ()= () s sa+ dt Derivatives can be approximated by finite differences. Forward Backward d yy[]nn+1 − [] d yy[]nn−−[]1 ()y()t ≅ ()y()t ≅ dt Ts dt Ts Central d yy[]nn+11−−[] ()y()t ≅ dt 2Ts

5/10/04 M. J. Roberts - All Rights Reserved 44 Digital Filters Finite Difference Design Using a forward difference to approximate the derivative,

11yy[]nn+ − [] H ()s = ⇒ + anyx[]= [] n s + sa Ts

A more systematic method is to realize that every s in a CT transfer function corresponds to a differentiation in the time domain which can be approximated by a finite difference.

Forward Backward Central z −1 1− z−1 zz− −1 s → s → s → Ts Ts 2Ts

5/10/04 M. J. Roberts - All Rights Reserved 45 Digital Filters Finite Difference Design Then 11  T ()= ⇒ ()= = s HHszs z +  +  z −1 −−() sa sas→ zaT1 s Ts

5/10/04 M. J. Roberts - All Rights Reserved 46 Digital Filters Finite Difference Design Finite difference approximation of

s H ()s = s ss25++×400 2 10 with a 1 kHz sampling rate yields

625. ×− 10−4 zz() 1 H()z = zz2 −+15.. 0625

5/10/04 M. J. Roberts - All Rights Reserved 47 Digital Filters Direct Substitution and Matched z-Transform Design Direct substitution and matched filter design use the relationship, ze = sT s to map the poles and zeros of an s-domain transfer function into corresponding poles and zeros of a z-domain transfer function. If there is an s-domain pole or zero at a, the z- domain pole or zero will be at e aT s .

Direct Substitution sa−→− zeaTs

Matched z-Transform − sa−→−1 ezaTs 1 ze= sTs

5/10/04 M. J. Roberts - All Rights Reserved 48 Digital Filters Direct Substitution and Matched z-Transform Design Matched z-transform approximation of

s H ()s = s ss25++×400 2 10

with a 1 kHz sampling rate yields

zz()−1 H ()z = z zz2 −+1.. 509 0 6708

5/10/04 M. J. Roberts - All Rights Reserved 49 Digital Filters Bilinear Transformation This method is based on trying to match the frequency response of a digital filter to that of the CT filter. As a practical matter it is impossible to match exactly because a digital filter has a periodic frequency response, but a good approximation can be made over a range of which can include all the expected signal power.

The basic idea is to use the transformation, 1 s → ln()z or ezsTs → Ts to convert from the s to z domain.

5/10/04 M. J. Roberts - All Rights Reserved 50 Digital Filters Bilinear Transformation 1 The straightforward application of the transformation, s → ln()z T would be the substitution, s

()= () 1 HHzszss→ ln()z Ts But that yields a z-domain function that is a transcendental function of z with infinitely many poles. The exponential function can be expressed as the infinite series, xx23 ∞ xk exx =++++=1 L ∑ 23!!k =0 k ! and then approximated by truncating the series.

5/10/04 M. J. Roberts - All Rights Reserved 51 Digital Filters Bilinear Transformation

Truncating the exponential series at two terms yields the transformation, +→ sTs z or z −1 s → Ts This approximation is identical to the finite difference method using forward differences to approximate derivatives. This method has a problem. It is possible to transform a stable s- domain function into an unstable z-domain function.

5/10/04 M. J. Roberts - All Rights Reserved 52 Digital Filters Bilinear Transformation The stability problem can be solved by a very clever modification of the idea of truncating the series. Express the T exponential as s s e 2 sTs =→ e T z −s s e 2 Then approximate both numerator and denominator with a truncated series.

+ sTs 1 21z − 2 → z s → sT T z +1 1− s s 2 This is called the bilinear transformation because both numerator and denominator are linear functions of z.

5/10/04 M. J. Roberts - All Rights Reserved 53 Digital Filters Bilinear Transformation

The bilinear transformation has the quality that every point in the s plane maps into a unique point in the z plane, and vice versa. Also, the left half of the s plane maps into the interior of the unit circle in the z plane so a stable s- domain system is transformed into a stable z- domain system.

5/10/04 M. J. Roberts - All Rights Reserved 54 Digital Filters Bilinear Transformation The bilinear transformation is unique among the digital filter design methods because of the unique mapping of points between the two complex planes. There is however a “warping” effect. It can be seen by mapping real frequencies in the z plane (the unit circle) into corresponding points in the s plane (the ω axis). Letting ze = jΩ with Ω real, the corresponding contour in the s plane is 21e jΩ − 2  Ω s = = j tan jΩ +   Ts e 1 Ts 2 or − ωT  Ω=2 tan 1 s  2 

5/10/04 M. J. Roberts - All Rights Reserved 55 Digital Filters Bilinear Transformation

Bilinear approximation of

s H ()s = s ss25++×400 2 10 with a 1 kHz sampling rate yields

z2 −1 H()z = zz2 −+152.. 068

5/10/04 M. J. Roberts - All Rights Reserved 56 Digital Filters FIR Filters

FIR digital filters are based on the idea of approximating an ideal impulse response. Practical CT filters have infinite-duration impulse responses. The FIR filter approximates this impulse by sampling it and then truncating it to a finite time (N impulses in the illustration).

5/10/04 M. J. Roberts - All Rights Reserved 57 Digital Filters FIR Filters

FIR digital filters can also approximate non-causal filters by truncating the impulse response both before time t = 0 and after some later time which includes most of the signal energy of the ideal impulse response.

5/10/04 M. J. Roberts - All Rights Reserved 58 Digital Filters FIR Filters

The design of an FIR filter is the essence of simplicity. It consists of multiple feedforward paths, each with a different delay and weighting factor and all of which are summed to form the response. N −1 []=−δ[] h Nmnanm∑ m=0

5/10/04 M. J. Roberts - All Rights Reserved 59 Digital Filters FIR Filters

Since this filter has no feedback paths its transfer function is of the form,

N −1 ()= − m H Nmzaz∑ m=0 and it is guaranteed stable because it has N - 1 poles, all of which are located at z = 0.

5/10/04 M. J. Roberts - All Rights Reserved 60 Digital Filters FIR Filters

The effect of truncating an impulse response can be modeled by multiplying the ideal impulse response by a “window” function. If a CT filter’s impulse response is truncated between t = 0 and t = T, the truncated impulse response is h,()ttT0 <<  h ()t =   = hw()tt () T 0, otherwise where, in this case,  T  t − ()=  2  wt rect   T   

5/10/04 M. J. Roberts - All Rights Reserved 61 Digital Filters FIR Filters

The frequency-domain effect of truncating an impulse response is to convolve the ideal frequency response with the transform of the window function. ()= ()∗ () HHT ffWf

If the window is a rectangle,

W()f= T sinc() Tf e− jfTπ

5/10/04 M. J. Roberts - All Rights Reserved 62 Digital Filters FIR Filters   ()= f − jfTπ Let the ideal transfer function be Hf rect  e The corresponding impulse response is 2B   T  h()tB=−22 sinc Bt   2  The truncated impulse response is   − T    t ()=−T  2  hT tB22 sinc Bt  rect   2   T    The transfer function for the truncated impulse response is

 f  −−ππ H()f = rectejfT∗ T sinc() Tf e jfT T  2B

5/10/04 M. J. Roberts - All Rights Reserved 63 Digital Filters FIR Filters

5/10/04 M. J. Roberts - All Rights Reserved 64 Digital Filters FIR Filters

5/10/04 M. J. Roberts - All Rights Reserved 65 Digital Filters FIR Filters

5/10/04 M. J. Roberts - All Rights Reserved 66 Digital Filters FIR Filters

The effects of windowing a digital filter’s impulse response are similar to the windowing effects on a CT filter.

h,[]nnN0 ≤<  h []n =   = hw[]nn [] N 0, otherwise

()ΩΩ= () Ω() HHWN jj j

5/10/04 M. J. Roberts - All Rights Reserved 67 Digital Filters FIR Filters

5/10/04 M. J. Roberts - All Rights Reserved 68 Digital Filters FIR Filters

5/10/04 M. J. Roberts - All Rights Reserved 69 Digital Filters FIR Filters

5/10/04 M. J. Roberts - All Rights Reserved 70 Digital Filters FIR Filters The “ripple” effect in the can be reduced by using windows of different shapes. The shapes are chosen to have DTFT’s which are more confined to a narrow range of frequencies. Some commonly-used windows are 1   2πn   1. von Hann w[]n =−1 cos , 0 ≤

2. Bartlett  2n N −1 , 0 ≤≤n N −1 2 w[]n =  2n N −1 2 − , ≤

5/10/04 M. J. Roberts - All Rights Reserved 71 Digital Filters FIR Filters (windows continued)  2πn  3. Hamming w[]n =−054 . 046 . cos , 0 ≤

5/10/04 M. J. Roberts - All Rights Reserved 72 Digital Filters FIR Filters Windows Window Transforms

5/10/04 M. J. Roberts - All Rights Reserved 73 Digital Filters FIR Filters Windows Window Transforms

5/10/04 M. J. Roberts - All Rights Reserved 74 Standard Realizations

¥ Realization of a DT system closely parallels the realization of a CT system ¥ The basic forms, canonical, cascade and parallel have the same structure ¥ A CT system can be realized with integrators, summers and multipliers ¥ A DT system can be realized with delays, summers and multipliers

5/10/04 M. J. Roberts - All Rights Reserved 75 Standard Realizations

Canonical Summer

Delay

Multiplier

5/10/04 M. J. Roberts - All Rights Reserved 76 Standard Realizations

Cascade

5/10/04 M. J. Roberts - All Rights Reserved 77 Standard Realizations Parallel

5/10/04 M. J. Roberts - All Rights Reserved 78 State-Space Analysis In DT system state-space analysis the “next” state-variable values are set equal to a linear combination of the “present” state-variable values and the “present” excitations. The system and output equations are q[]nnnnnn+1,= Aq[]+ Bx[] y []= Cq[]+ Dx[] For this system, 1 1 [] q1 n    q[]n =   A = 3 4 q []n  1  2  0 2  x []n  []= 1 10 x n  [] B =   x2 n  01 = [] y[]nn= []y[] C 23 D = []00

5/10/04 M. J. Roberts - All Rights Reserved 79 State-Space Analysis For illustration purposed let the excitation vector be u[]n  x[]n =   δ[]n  and let the system be initially at rest. Then by direct recursion, [] [] [] nnqqy12 n n 00 0 0 11 1 5 2 1... 5833 0 5 4 667 3 1... 6528 0 7917 5 681 MM M M

5/10/04 M. J. Roberts - All Rights Reserved 80 State-Space Analysis The recursion process proceeds as follows qAqBx[]100= []+ [] [] 2 q211= Aq[]+ Bx[]= A q[] 0+ ABx[] 01+ Bx[] [] 32 q322= Aq[]+ Bx[]= A q[] 0+ A Bx[] 0+ ABx[] 12+ Bx[] M [] qn = Ann q[]001+ A−−12 Bx[]+ A n Bx[]++L AABx10[]nn− 21+− ABx[] and y[]111= Cq[]+ Dx[]= CAq[] 0+ CBx[] 01+ Dx[] [] 2 y222= Cq[]+ Dx[]= CA q[] 0+ CABx[] 0+ CBx[] 12+ Dx[] [] 32 y333= Cq[]+ Dx[]= CA q[] 0+ CA Bx[] 0+ CABx[] 1+ CBx[] 23+ Dx[] M [] yCAn = nqqCABxCABxCABxDx[]001+ nn−−12[]+ []++L 0[]nn − 1+ []

5/10/04 M. J. Roberts - All Rights Reserved 81 State-Space Analysis The recursions can be written in the more compact forms, n−1 qAqABx[]nm= nnm[]0 + ∑ −−1 [] m=0 Zero-Input Zero-State Response Response n−1 y[]nmn= CAnnm q[]0 + C∑ A−−1 Bx[]+ Dx[] m=0 These two equations can be written in the forms, = φφ+− − ∗ qq[]nn1243[][]41011[] n444u[] n 2444 Bx[] 3 n zero−− excitation zero state response response y[]nn= Cφφ[][] q011+− C[] nnu[]− ∗ Bx[] nn+ Dx[]

where A n = φ [] n (pp. 866-867).

5/10/04 M. J. Roberts - All Rights Reserved 82 State-Space Analysis An alternate to the previous discrete-time-domain solution of the state and output equations is to solve them using the z transform. Transforming the system equation, zzQ()− z q[]0 = AQ() z+ BX() z

()=−−−111()+ =− ()+−− Qzz[] IA[] BX zz q[]00[]12 z IABX4444 3 zzz 1[][]4 IAq43 244 zero− state zero− excitation response response by comparing this equation with a previous one, = φφ+− − ∗ qq[]nn1243[][]41011[] n444u[] n 2444 Bx[] 3 n zero−− excitation zero state response response

− − it is apparent that φ [] nzz ←→ − Z [] IA 1and therefore Φ()zzz=−[]IA1

5/10/04 M. J. Roberts - All Rights Reserved 83 State-Space Analysis u[]n  Let the excitation vector again be x [] n =   and let the system δ[]n  be initially at rest. −1  −−1 1 z  10  z  Q()z = 3 4  −   1    z 1  − z  01  1   2  1.. 846 − 0 578 − 0. 268   − − +  Q()z = zz1 0. 5575 z0. 2242 0.. 923 0 519 0. 596   − +   zz−1 − 0. 5575 z+ 0. 2242 Inverse transforming (pg. 868),  − ()()nn−11−−()()−  = 1... 846 0 578 0 5575 0 .. 268 0 2242 − q[]nn ()− ()− u[]1 0... 923− 0 519() 0 5575nn11+− 0 .. 596() 0 2242 

5/10/04 M. J. Roberts - All Rights Reserved 84 State-Space Analysis

The response vector is easily found from the state-variable vector. ()− ()− y[]nn=−[]6... 461 2 713() 0 5575nn11+− 1 .. 252() 0 2242 u[]− 1 The closed-form solution has the same initial values as the recursion solution indicating it is probably correct. [] [] [] nnqqy12 n n 00 0 0 11 1 5 2 1... 5833 0 5 4 667 3 1... 6528 0 7917 5 681 MM M M

5/10/04 M. J. Roberts - All Rights Reserved 85 State-Space Analysis

Some other results of state-space analysis that are similar to those from the CT-system case are

− Transfer Function HCIABD()zz=−[]1 +

[]= [] []+ = []+ [] If qTq 21 nn and qAqBx 1111 nnn 1 then []+ = []+ [] qAqBx2222nnn1 = −1 = where ATAT 21 and BTB 21 and []= []+ [] yCqDxnnn22 2 = −1 = where CCT 21 and DD 21 .

5/10/04 M. J. Roberts - All Rights Reserved 86