Lecture 3 PDF
Lecture 3 PDF
MEC222
Chapter One
Introduction to Digital Signals Processing
Discrete
Signals
Energy Signal
Power Signal Neither Energy nor Power Signal
If and only if If and only if
If previous conditions not met.
0 < 𝐸𝐸 < ∞ 0 < 𝑃𝑃 < ∞
𝑃𝑃 = 0 𝐸𝐸 = ∞ 𝐸𝐸 = ∞ 𝑎𝑎𝑎𝑎𝑎𝑎 𝑃𝑃 = 0
Or
𝐸𝐸 = 0 𝑎𝑎𝑎𝑎𝑎𝑎 𝑃𝑃 = ∞
2
4. Energy and Power Discrete Signals
The total energy in the discrete signal x(n) is E and mathematically written as
𝐸𝐸 = � 𝑥𝑥 𝑛𝑛 2
𝑛𝑛=−∞
The average power in the discrete signal x(n) is P and is written mathematically as
𝑁𝑁
1 2
𝑃𝑃 = lim � 𝑥𝑥 𝑛𝑛
𝑁𝑁→∞ 2𝑁𝑁 + 1
𝑛𝑛=−𝑁𝑁
N: fundamental period
3
Example 13
Consider the following finite discrete signals:
1) 𝑥𝑥 𝑛𝑛 = −𝛿𝛿 𝑛𝑛 + 2𝛿𝛿 𝑛𝑛 − 1 − 2𝛿𝛿(𝑛𝑛 − 2)
2) x(n)={1,0,-1}
Solution
The energy in the signal is
∞
𝐸𝐸 = � 2 −1 𝑛𝑛 2 = 4 1+1 + ⋯ =∞
𝑛𝑛=0
1 1 4(𝑁𝑁+1)
𝑃𝑃 = lim ∑𝑁𝑁
𝑛𝑛=−𝑁𝑁 𝑥𝑥 𝑛𝑛 2
= lim 4 ∑𝑁𝑁
𝑛𝑛=0 1 = lim =2
𝑁𝑁→∞ 2𝑁𝑁+1 𝑁𝑁→∞ 2𝑁𝑁+1 𝑁𝑁→∞ 2𝑁𝑁+1
Solution
𝜋𝜋2
which converges to .
6
6
Discrete time System
Linear time-invariant
Causal systems
Time-invariance
Stability of system
7
1.1 Linear Discrete Systems
8
Example 15
For an input:
𝑥𝑥 𝑡𝑡 = 𝛼𝛼𝑥𝑥1 𝑛𝑛 + 𝛽𝛽𝑥𝑥2 (𝑛𝑛)
Solution
𝑦𝑦1 𝑛𝑛 = 𝑥𝑥12 (𝑛𝑛)
𝑦𝑦2 𝑛𝑛 = 𝑥𝑥22 (𝑛𝑛)
For an input:
𝑥𝑥 𝑡𝑡 = 𝛼𝛼𝑥𝑥1 𝑛𝑛 + 𝛽𝛽𝑥𝑥2 (𝑛𝑛)
A time-invariant system is illustrated in next figure, where 𝑦𝑦1 𝑛𝑛 is the system output for the input 𝑥𝑥1 (𝑛𝑛)
If the system is time invariant and 𝑦𝑦1 (𝑛𝑛) is the system output due to the input 𝑥𝑥1 𝑛𝑛 , then the shifted system
input 𝑥𝑥1 (𝑛𝑛 − 𝑛𝑛0 ) will produce a shifted system output 𝑦𝑦1 (𝑛𝑛 − 𝑛𝑛0 ) by the same amount of time 𝑛𝑛0 .
11
Example 15
Check the time invariance of the following system 𝑦𝑦 𝑛𝑛 = 3 𝑥𝑥(𝑛𝑛 − 4)
Solution
𝑦𝑦 𝑛𝑛 = 3𝑥𝑥(𝑛𝑛 − 𝑛𝑛0 − 4) 2
1 = 2
12
Example 15
Check the time invariance of the following system 𝑦𝑦 𝑛𝑛 = 2𝑛𝑛 𝑥𝑥(𝑛𝑛 − 5)
Solution
𝑦𝑦 𝑛𝑛 = 2𝑛𝑛𝑛𝑛(𝑛𝑛 − 𝑛𝑛0 − 5) 2
1 ≠ 2
13
Causality
A causal system is the one in which the output 𝑦𝑦(𝑛𝑛) at time n depends only on:
The current input 𝑥𝑥(𝑛𝑛) at time n,
and its past input sample values such as 𝑥𝑥 𝑛𝑛 − 1 , 𝑥𝑥(𝑛𝑛 − 2)
A Noncausal system is the one in which the output 𝑦𝑦(𝑛𝑛) at time n depends only on:
14
Example 15
Are causal
Answer
a) Since for 𝑛𝑛 ≥ 0, the output y(n) depends on the current input x(n) and its past value 𝑥𝑥(𝑛𝑛 − 2) the
system is causal.
a) Since for 𝑛𝑛 ≥ 0, the output y(n) depends on the current input x(n) and its future value 𝑥𝑥(𝑛𝑛 + 1) the
system is noncausal.
15
Example 15
The first sample of the input has appeared at n = 0, as does the first sample of the output.
Therefore, the system is causal.
16
2.3 Systems with Memory
If at any value of n, y(n) depends totally on x(n) at that particular value, then in such a case, we say the system
is without memory. Otherwise the system is with memory.
Example 7
2
Consider the input–output relation. 𝑦𝑦 𝑛𝑛 = 𝑥𝑥 𝑛𝑛 Is the system with or without memory?
Solution
For any value of n, y(n) depends on x(n) at that particular value. If we look at the output at n = 4 then we look at the
input at n = 4 as well. In this case, the system is without memory.
17
Example 8
Consider the input–output relation. 𝑦𝑦 𝑛𝑛 = 𝑛𝑛𝑛𝑛(𝑛𝑛 − 1) Is the system with or without memory?
Solution
The output y(n) at n = 0 depends on x(n) at n = −1. Therefore, the system is with memory.
18
2.7 Stable System
The signal x(n) is considered bounded if |x(n)| < β < ∞ for all n, where β is a real number.
A system is said to be BIBO (bounded-input bounded-output) stable if and when the input is bounded the
output is also bounded.
y(n), the output, is bounded if |y(n)| < β < ∞.
𝑀𝑀−1
Example 11 Consider the system 𝑦𝑦 𝑛𝑛 = � 𝑥𝑥(𝑛𝑛 − 𝑘𝑘) and assume that x(n) is bounded. Is the system stable?
𝑘𝑘=0
Solution
But a shifted version of x(n) is also bounded for x(n) is bounded. Therefore,
𝑀𝑀−1
𝑦𝑦 𝑛𝑛 = � 𝑥𝑥 𝑛𝑛 − 𝑘𝑘 ≤ 𝑀𝑀𝑀𝑀
𝑘𝑘=0
Consider that x(n) is bounded and applied to a system where y(n) is 𝑦𝑦 𝑛𝑛 = 𝑛𝑛 � 𝑥𝑥(𝑛𝑛 − 𝑘𝑘)
obtained as 𝑘𝑘=0
Solution
Since x(n) is bounded, we have |x(n)| < β. We also know that a shifted version of x(n) is also bounded. Thus,
𝑀𝑀−1
𝑦𝑦 𝑛𝑛 = 𝑛𝑛 � 𝑥𝑥 𝑛𝑛 − 𝑘𝑘 ≤ 𝑛𝑛𝑛𝑛𝑛𝑛
𝑘𝑘=0
However, as n approaches infinity, y(n) will grow without bounds and the system is not BIBO.
20
3.3 Difference Equations and Impulse Responses
A causal, linear, time-invariant system can be described by a difference equation having the following general form:
where 𝑎𝑎1 , 𝑏𝑏1 , 𝑎𝑎𝑁𝑁 , 𝑏𝑏𝑁𝑁 … are the coefficients of the difference equation. Previous equation can also be written as
or
𝑁𝑁 𝑀𝑀
21
Example 12
𝑦𝑦 𝑛𝑛 = 0.25𝑦𝑦 𝑛𝑛 − 1 + 𝑥𝑥(𝑛𝑛)
Answers
22
Example 12
𝑦𝑦 𝑛𝑛 = 𝑥𝑥 𝑛𝑛 + 0.5 𝑥𝑥(𝑛𝑛 − 1)
Answers
23
Sheet 3
1 Compute the signal energy and signal power for the discrete-time signals
1 𝑛𝑛
a) 𝑥𝑥 𝑛𝑛 =
4
𝑢𝑢(𝑛𝑛) b) 𝑥𝑥 𝑛𝑛 = 𝑒𝑒 𝑗𝑗10𝑛𝑛 𝑢𝑢(𝑛𝑛)
𝑅𝑅2 2
a) 𝑦𝑦 𝑛𝑛 = 𝑥𝑥 𝑛𝑛 b) 𝑦𝑦 𝑛𝑛 = 𝑥𝑥(𝑛𝑛) c) 𝑦𝑦 𝑛𝑛 = 𝑥𝑥(𝑛𝑛)
𝑅𝑅1 +𝑅𝑅2
2𝑥𝑥 𝑛𝑛 +1
24
Sheet 3
b) 𝑦𝑦 𝑛𝑛 = 𝑥𝑥 𝑛𝑛 + 2 − 0.4 𝑦𝑦(𝑛𝑛 − 1)
c) 𝑦𝑦 𝑛𝑛 = 𝑥𝑥 𝑛𝑛 − 1 + 0.5 𝑦𝑦(𝑛𝑛 + 2)
25
Sheet 3
6 Check weather each of the following systems is linear and time invariant :
a) 𝑦𝑦 𝑛𝑛 = 0.5 𝑛𝑛 𝑥𝑥 𝑛𝑛 + 1
b) 𝑦𝑦 𝑛𝑛 = 0.5 𝑛𝑛 cos(2𝑥𝑥 𝑛𝑛 )
c) 𝑦𝑦 𝑛𝑛 = sin 𝑛𝑛 − 𝑥𝑥(𝑛𝑛)
a) 𝑦𝑦 𝑛𝑛 = 0.5 𝑛𝑛 𝑥𝑥 𝑛𝑛
b) 𝑦𝑦 𝑛𝑛 = 𝑛𝑛 0.5 𝑛𝑛 𝑥𝑥 𝑛𝑛
26