Discrete Time Systems
Discrete Time Systems
Introduction
In our discussion of Sampling we introduced an analog system which was equivalent to a discrete-time
system. y(nTs)
x(nTs)
y(t)
x(t) Sample Re-Sample Reconstruct
(Ts sec.) h(t) (Ts sec.)
and
y n = y (n * Ts ) = y (t ) t =n*T
s
Where the input, output and “pulse response” are each sequences of sampled values of the corresponding
analog function.
y (t ) = xk ( − k * Ts )h (t − )d
= −
k =0
Where hn is the sequence of samples of the original impulse response at the t = n*Ts
If we let the input sequence, xn, be the unit pulse at n = 0
n = 0 if n 0
1 if n =0
y n = k * h( n −k ) = hn
k =0 so hn is the “Unit Pulse Response” of the discrete-time system
In general h(n,k) is the response at sample time n due to a pulse that occurred at sample time k
An example discrete-time system
xn + yn
Delay
Ts sec
This is a simple geometric series. To get a closed form without resorting to formulas pull out the first term
and add/subtract an extra term
n +1
y n = 1 + a k − a (n +1)
k =1
Now let p = k - 1
n
y n = 1 + a p +1 − a (n +1)
p =0
yn = 1 + ayn − a (n+1)
(1 − a )* yn = 1 − a (n+1) or
1 − a (n +1)
yn =
(1 − a ) for n ≥ 0
We therefore have our macroscopic approach to solving for the output of discrete-time systems.
yn − a * yn−1 = xn
This is a finite difference equation which describes the example system at a moment in time. It is analogous
to the differential equation:
dy(t ) 1
* y (t ) = * x (t )
1
−
dt RC RC
which describes the RC low pass example in the discussion of Linear Systems.
These difference equations can be solved directly using the same techniques used to solve differential
equations. As an example we will solve the same problem used in the section on discrete convolution.
yn − a * yn−1 = xn ; 0 < a < 1; xn is the unit step and the system is initially at rest with yn = 0.
Step 1: Find the homogeneous (AKA natural or transient) solution
yn − a * yn−1 = 0
Assume an exponential solution yn = Cn
Cn - aC(n-1) = 0
C n = aC(n-1) or
C=a
The homogeneous solution is therefore
yn = KH * an
Step 2: Find the particular (AKA forced or steady-state) solution – we shall again use the method of
undetermined coefficients
The particular solution for this problem must be of the form
yn = K0 + K1*n since the input is a constant. Therefore
y(n-1) = (K0 – K1) +K1*n
Now substituting into the difference equation for n ≥ 0
K0 + K1*n –a[(K0 – K1) +K1*n = 1
Or
[K0*(1-a) + a* K1] + [K1(1-a)]*n = 1
Therefore
K1 = 0 and K0 = 1/(1-a)
The total solution is the sum of the homogeneous and particular solutions so
yn = KH*an +1/(1-a)
but y0 = 1 so
1 = KH*a0 +1/(1-a)
Or KH = 1 – 1/(1-a) = -a/(1-a)
This makes the total solution
yn = -a(n+1)/(1-a) + 1/(1-a)
Or
yn = [1-a(n+1)]/(1-a) for n ≥ 0
Which agrees with our previous solution.