




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Objective: To learn about discrete-time systems. To learn about numeric solution of difference equations. To learn about analytical solution of difference equations, including the zero-input response and the zero-state response. To investigates sta- bility issues for discrete-time systems.
Reading: pp. 540– Now we are ready to make a change of direction. Up till now we have focused on continuous time systems. Now we will look at discrete-time systems. This (I hope) will reinforce some of the stuff we have seen. Where do these things come from? (C/D, discrete-time system, D/C). There is a sample interval T. Many systems have an intrinsically defined period: days, weeks, months, etc. It is common to write y(kT ) = y[k]. (I may get sloppy on the parentheses and the brackets.)
Example 1 A sampled signal. suppose f (t) = A cos(ω 0 t+θ 0 ), and we sample every T seconds: f [k] = f (kT ) = A cos(ω 0 T k + θ 0 )
Let Ω 0 = ω 0 T. f [k] = A cos(Ω 0 k + θ 0 ).
We get a new frequency, Ω 0 , whose units are in radians per sample. The amplitude does not change; the phase does not change. Now consider a specific example. Suppose ω 0 = 2π1000 (A 1000-Hz signal). Let T = 40001. We get
f [k] = A cos(2π1000(1/4000)k) = A cos(π/ 2 k).
so Ω 0 = π/2. (Plot this.) Now let T = 10001. f [k] = 1. What happened? Now let T = 10001 − 40001. What happens? 2
Example 2 An example of a discrete-time Bank deposit = f [k]. Bank balance = y[k]. Bank pays some interest every period r. Then the money goes as
y[k] = y[k − 1] + ry[k − 1] + f [k]
(The money at the end of the k period is the money that was there, plus the money due to interest, plus any new deposits). Draw the block diagram (realization). 2
Example 3 If y(t) = df dt , then
y(kT ) =
df dt |t=kT
y[k] ≈
(f [k] − f [k − 1]) 2
Instead of using RLC, the elements in discrete-time systems are delays, adders, and multipliers. Comment on advantages: precision, stability, flexibility, variety, size, storage reliability, sophistication, sharing, cost.
Discrete-time unit impulse δ[k]:
δ[k] =
1 k = 0 0 k 6 = 0
Discrete-time unit step u[k]:
u[k] =
1 k ≥ 0 0 k < 0
Discrete-time exponential γk^.
γk^ grows when |γ| > 1, and decays when |γ| < 1. Plot on unit circle. What about when |γ| = 1? We can write this as ejΩk^ for some Ω. This is a rotating phasor.
Discrete-time sinusoid cos(Ωk + θ).
Note: Not all discrete-time sinusoids are periodic (unlike in the continuous- time case): f [k] = f [k + N 0 ] This is only possible if ΩN 0 is an integral multiple of 2π:
cos(Ωk) = cos(Ω(k + N 0 ))
iff ΩN 0 = 2πm or Ω 2 π
m N 0 Must therefore have Ω/ 2 π be a rational number. Note: There is non-uniqueness of discrete-time sinusoids. For example:
cos(9. 6 πk+θ) = cos(8πk+1. 6 πk+θ) = cos(1. 6 πk+θ) = cos(− 1. 4 πk+θ) = cos(0. 4 πk−θ)
All these frequencies “look” the same!
Exponentially damped sinusoid γk^ cos(Ωk + θ)
Essentially the same as for continuous time:
Time shifting: f [k + m] (shift left by m), etc.
Time reversal f [−k]
Time compression: Decimation
g[k] = f [2k]
(take every other point)
Time expansion g[k] = f [k/2] when k/2 is an integer.
(What happened for continuous time?) Similar. Let’s try a simply case to get started: (E − γ)y 0 [k] = 0
Try a solution y 0 [k] = cγk^. (Comment on the difference from earlier case.) Substi- tute in and show that it works.
Ecγk^ = cγk+
This works in the general case: subs. and show that it works. Substituting gives
(γn^ + an− 1 γn−^1 + · · · + a 1 γ + a 0 )y 0 [k] = 0
or Q[γ]y 0 [k] = 0
For an interesting (nontrivial) solution, we will look for roots of
Q[γ] = 0
Write as (γ − γ 1 )(γ − γ 2 ) · · · (γ − γn) = 0
Q[γ] is thus the characteristic polynomial, and we look at its roots. The roots are γ 1 , γ 2 ,... , γn. As before, we take all possible solutions in a linear combination:
y 0 [n] = c 1 γ 1 k + c 2 γk 2 + · · · + cnγnk
Repeated roots: If
Q[γ] = (γ − γ 1 )r^ (γ − γr+1)(γ − γr+2) · · · (γ − γn)
then y 0 [k] = (c 1 + c 2 k + · · · cr kr−^1 )γk 1 + cr+1γrk+1 + · · · + cnγkn So how do things behave as a function of root location. (0.8, -0.8, -.5, 1.2, k(0.8), 1, etc.) Same old, same old.
Example 7 Solve
y[k + 2] − 0. 6 y[k + 1] − 0. 16 y[k] = 5f [k + 2]
with y[−1] = 0 and y[−2] = 25/4 and f [k] = 4−k^ u[k].
(E^2 − 0. 6 E − 0 .16)y[k] = 5E^2 f [k]
Characteristic polynomial:
γ^2 − 0. 6 γ − 0 .16 = (γ + 0.2)(γ − 0 .8) = 0
y 0 [k] = c 1 (− 0 .2)k^ + c 2 (0.8)k
At k = −1,
0 = − 5 c 1 +
c 2
At k = −2,
25 /4 = 25c 1 +
c 2
So c 1 = 1/5 and c 2 = 4/5. (We will get the zero-state solution later.) Is this asymptotically stable? 2
Complex roots: With roots γ = |γ|ej±β^ , then
y[k] = c|γ|k^ cos(βk + θ)
with c and θ arbitrary constants (same steps as before).
Example 8 (E^2 − 1. 56 E + .81)y[k] = (E + 3)f [k]
y[−1] = 2 and y[−2] = 1. Characteristic polynomial:
γ^2 − 1. 56 γ + .81 = 0
Factor: (γ −. 78 − j.45)(γ − .78 + j.45) = 0
Roots:. 78 ± j.45 Convert to polar:
γ 1 =. 9 ejπ/^6 γ 2 =. 9 e−jπ/^6
Zero-input solution: y 0 [k] = c(.9)k^ cos(π/ 6 k + θ)
Need to find c and θ using the initial conditions. At k = − 1
2 =
c
. 9 cos(−π/6 + θ).
At k = −2: 1 =
c
. 81 cos(−π/3 + θ)
Using cos(a + b) = cos(a) cos(b) − sin(a) sin(b) (p. 65),
c cos θ +
c sin θ
c cos θ +
sin θ
Solve for unknowns c cos θ and c sin θ:
c cos θ = 2. 308
c sin θ = −. 397 θ = −.17 rad c = 2. 34 2
The steps are similar to what we did before: introduce delta function, then the impulse response, then the convolution sum. Discrete time impulse function:
δ[k] =
1 k = 0 0 otherwise
(Plot). We have the discrete-time impulse response h[k]:
Q[E]h[k] = P [E]δ[k]
Width: If f 1 has length m points and f 2 has length n points, then f 1 ∗ f 2 has length m + n − 1 points. (Note length given in points.)
For causal systems with causal inputs
y[k] =
∑^ k
m=
f [m]h[k − m]
Example 11 Find c[k] = f [k] ∗ g[k] when f [k] = (0.8)k^ u[k] and g[k] = (0.3)ku[k]:
c[k] =
∑^ k
m=
(0.8)m(0.3)k−m
c[k] = (0.3)k
∑m
m=
)m
Important fact: emblazon this in your head. (Also be aware that symbolic packages know this.) The sum of a geometric series is
∑^ k
m=
rm^ = rk+1^ − 1 r − 1
r 6 = 1
We get
c[k] = (0.3)k^ (0. 8 / 0 .3)k+1^ − 1 (0. 8 / 0 .3)k^ − 1
= 2[(.8)k+1^ − (.3)k+1]u[k]
2
Example 12 The problem we have seen before: y[k + 2] −. 6 y[k + 1] −. 16 y[k] = 5 f [k + 2]. with f [k] = 4−ku[k].
h[k] = [(−.2)k^ + 4(.8)k]u[k]
y[k] = h[k] ∗ f [k].
Use tables (and a lot of simplification)
y[k] =
(.25)k+1^ − (−.2)k+
. 25 − (−.2)
(.25)k+1^ − (.8)k+
. 25 −. 8
u[k]
= [− 5 .05(.25)k+1^ − 2 .22(−.2)k+1^ + 7.27(.8)k+1]u[k] = [− 1 .26(.25)k^ + .444(−.2)k^ + 5.81(.8)k]u[k]
2
Total response = zero-input component + zero-state component.
Example 13 Take the same system as before, with y[−1] = 0, y[−2] = 25/4. Then
y[k] = (.2(−.2)k^ + .8(.8)k^ ) + (− 1 .26(.25)k^ + .444(−.2)k^ + 5.81(.8)k)
2
The total solution may be divided into a natural and forced response, just like we did before. The natural response is those components of the total response which have the natural modes of the system. The forced response is everything else (which must necessarily come from the forcing function). For the last example,
y[k] = .644(−.2)k^ + 6.61(.8)k^ − 1 .26(.25)k
Plots as a function of pole location. (Asymptotically) stable, unstable, marginally stable. BIBO stability. System response to bounded inputs:
y[k] = h[k] ∗ f [k]
|y[k]| =
h[m]f [k − m]
m
|h[m]||f [m − k]|
For bounded input, |f [k − m]| < K 1 < ∞
|y[k]| ≤ K 1
m
|h[m]|
Bounded if
m |h[m]|^ <^ ∞, or all roots inside unit circle.