Lecture - 02 - 03 - Discrete Time Signals - 2.1-2.4 PDF
Lecture - 02 - 03 - Discrete Time Signals - 2.1-2.4 PDF
Arbab Latif
Spring 2023
Resources:
Discrete Time Signal Processing, A. V. Oppenheim and R. W. Schaffer, 3rd Edition, 2010 (Chapter 2.1-2.7)
2 Today’s Class
• Signal
• Discrete Time Signals
• Discrete Time Systems
– Types / Properties
• Linear Time Invariant Systems
• Properties of LTI Systems
Discrete Time Signals
Section 2.1
4 Signal Types
Signals
Continuous-time Discrete-time
Continuous time –
Continuous amplitude
Continuous time –
Discrete amplitude
Discrete time –
Continuous amplitude
Discrete time –
Discrete amplitude
7 Discrete-Time Signals: Sequences
• Discrete-time signals are represented by sequence of numbers
– The nth number in the sequence is represented with x[n]
• Often times sequences are obtained by sampling of continuous-
time signals
– In this case x[n] is value of the analog signal at xc(nT)
– Where T is the sampling period
10
-10
0 20 40 60 80 100 t (ms)
10
-10
0 10 20 30 40 50 n (samples)
8 Example of a discrete-time Signal:
9 A sampled signal:
10 Unit Sample Sequence:
1 𝑛=0
• 𝑥 𝑛 =𝛿 𝑛 =ቊ
0 𝑛≠0
https://youtu.be/LznjC4Lo7lE
18 Periodic Signals:
• A signal 𝑥 𝑛 is considered periodic if ?
Arbab Latif
Spring 2023
Resources:
Discrete Time Signal Processing, A. V. Oppenheim and R. W. Schaffer, 3rd Edition, 2010 (Chapter 2.1-2.7)
Discrete Time Systems
• Section 2.2
22 Discrete-time System
• A discrete-time system is a transformation or mapping
from an input sequence 𝑥[𝑛] to the output sequence with
values 𝑦 𝑛 .
• 𝑦 𝑛 =𝑇 𝑥 𝑛 .
x[n]
T{.} y[n]
23 Example 2.3: Ideal Delay System
• The ideal delay system is defined by the equation: ?
𝑦 𝑛 = 𝑥[𝑛 − 𝑛𝑑 ], −∞ < 𝑛 < ∞.
• When 𝑛𝑑 > 0, the system provides a time delay of 𝑛𝑑
samples
• When 𝑛𝑑 < 0, the system provides a time advance of 𝑛𝑑
samples.
• Impulse Response: ?
𝛿[𝑛 − 𝑛𝑑 ]
• Frequency Response: ?
𝑒 −𝑗𝜔𝑛𝑑
24 Ex. 2.4: Moving Average System:
• The moving average system is defined by the equation:
1 𝑀2
• 𝑦𝑛 = σ𝑘=−𝑀 𝑥[𝑛 − 𝑘]
𝑀1 +𝑀2 +1 1
1
• 𝑦𝑛 = ሼ𝑥 𝑛 + 𝑀1 + 𝑥 𝑛 + 𝑀1 − 1 + ⋯ 𝑥 𝑛 − 1 + 𝑥 𝑛 + ⋯
𝑀1 +𝑀2 +1
+ 𝑥 𝑛 − 𝑀2 ሽ.
• The system is non-causal when ?
• −M1 < 0
25 Memoryless Systems:
• A memoryless system requires only the current value of the
input sequence 𝑥[𝑛] to compute the current value of the
output 𝑦 𝑛 .
𝜹[𝒏 − 𝟏]
x[2n] 0
29 Causality:
• For a causal system, the computation of the output must not
require any future value.
• The compressor system 𝑦 𝑛 = 𝑥[2𝑛] is non-causal because
𝑦 1 = 𝑥[2].
• Forward-difference system, i.e.,
𝑦 𝑛 = 𝑥 𝑛 + 1 − 𝑥[𝑛]
is non-causal as 𝑦 1 = 𝑥 2 − 𝑥 1 .
• Backward-difference system, i.e.,
𝑦 𝑛 = 𝑥 𝑛 − 𝑥[𝑛 − 1]
is causal.
• All memoryless systems are causal.
30 Stability:
• A bounded input must produce a bounded output,
• i.e., if there exists a positive real number 𝐵𝑥 < ∞ such that
𝑥 𝑛 ≤ 𝐵𝑥 for all 𝑛, then there must exist 𝐵𝑦 ∈ ℝ+ such that
𝑦 𝑛 ≤ 𝐵𝑦 < ∞.
• Is an accumulator a stable system ?
• For example, if 𝑥 𝑛 = 𝑢[𝑛], then we can choose 𝐵𝑥 = 1, i.e.,
the input is bounded.
• Now the output is
0, 𝑛 < 0
𝑦𝑛 =ቊ
𝑛 + 1, 𝑛 ≥ 0.
• Thus, the output is unbounded, hence, its an unstable system.
Linear Time-invariant Systems
Section 2.3
32 LTI Systems:
• Linear and Time-invariant Systems.
• Now, as 𝑥 𝑛 = σ+∞
𝑘=−∞ 𝑥 𝑘 𝛿[𝑛 − 𝑘].
• So, 𝑦 𝑛 = 𝑇ሼσ+∞
𝑘=−∞ 𝑥 𝑘 𝛿[𝑛 − 𝑘]ሽ
• Thus, 𝑦 𝑛 = σ+∞
𝑘=−∞ 𝑥 𝑘 ℎ[𝑛 − 𝑘]
33 Convolution Sum:
𝑘=∞
𝑦 𝑛 = 𝑥 𝑘 ℎ[𝑛 − 𝑘]
𝑘=−∞
• How to compute:
– Take two signals 𝑥[𝑛] and ℎ 𝑛 .
– Express 𝑥[𝑛] over the variable of summation, i.e., 𝑥[𝑘] .
– Express ℎ[𝑛] over the variable of summation, i.e., ℎ 𝑘 .
– Flip ℎ[𝑘] about the 𝑦 − 𝑎𝑥𝑖𝑠 and get ℎ[−𝑘]
– Add 𝑛 to the axis to get ℎ[𝑛 − 𝑘].
– For each 𝑛, multiply 𝑥[𝑘] and ℎ[𝑛 − 𝑘] and sum over 𝑘.
34
Example 2.13: Computation of the
Convolution Sum
• ℎ 𝑛 =𝑢 𝑛 −𝑢 𝑛−𝑁
• 𝑥 𝑛 = 𝛼 𝑛 𝑢[𝑛]
35
Example 2.13 : Computation of the
Convolution Sum (contd.)
• For 𝑛 < 0, 𝑦 𝑛 = 0. No overlap.
36
Example 2.13 : Computation of the
Convolution Sum (contd.)
• For 0 ≤ 𝑛 and 𝑛 − 𝑁 − 1 ≤ 0:
• 𝑦 𝑛 = σ𝑛𝑘=0 𝛼 𝑘 , 𝑓𝑜𝑟 0 ≤ 𝑛 ≤ 𝑁 − 1
𝛼 𝑁1 −𝛼 𝑁2+1
• Using the relation σ𝑁2
𝑘=𝑁1 𝛼 𝑘 =
1−𝛼
1−𝛼 𝑛+1
• 𝑦𝑛 = , 𝑓𝑜𝑟 0 ≤ 𝑛 ≤ 𝑁 − 1
1−𝛼
37
Example 2.13 : Computation of the
Convolution Sum (contd.)
• For 0 < 𝑛 − 𝑁 − 1 or 𝑛 > N +1
• 𝑦 𝑛 = σ𝑛𝑘=𝑛−𝑁+1 𝛼 𝑘
𝛼 𝑛−𝑁+1 −𝛼 𝑛+1 𝑛−𝑁+1 1−𝛼
𝑁
• 𝑦𝑛 = = 𝛼 ( )
1−𝛼 1−𝛼
38 Example 2.13: Solution
Properties of Linear Time-
Invariant Systems
Section 2.4
40 Properties of Convolution:
• Convolution is commutative:
– 𝑥 𝑛 ∗ ℎ 𝑛 = ℎ 𝑛 ∗ 𝑥[𝑛]
– Proof: 𝐿𝐻𝑆 = 𝑥 𝑛 ∗ ℎ 𝑛
• = σ∞𝑘=−∞ 𝑥 𝑘 ℎ[𝑛 − 𝑘]
• = σ∞𝑚=−∞ 𝑥 𝑛 − 𝑚 ℎ[𝑚]
• = σ∞𝑚=−∞ ℎ[𝑚]𝑥 𝑛 − 𝑚
• = ℎ 𝑛 ∗ 𝑥 𝑛 = 𝑅𝐻𝑆.
41 Properties of Convolution:
• Distribution over Addition [Parallel Systems]:
– 𝑥 𝑛 ∗ ℎ1 𝑛 + ℎ2 𝑛 = 𝑥 𝑛 ∗ ℎ1 𝑛 + 𝑥 𝑛 ∗ ℎ2 [𝑛]
42 Properties of Convolution:
• Associative Property /Cascade/Series Connected
Systems:
43
An LTI System is stable iff the impulse response is
absolutely summable
• If 𝑥 𝑛 is bounded, so that
• Then,
44 Causality
• Causality ↔ ℎ 𝑛 = 0 for 𝑛 < 0.
45 Impulse Response:
45
1
2. Moving Average: ℎ 𝑛 = σ𝑀2
𝛿[𝑛 − 𝑘]
𝑀1 +𝑀2 +1 𝑘=−𝑀1
4. Forward Difference: ℎ 𝑛 = 𝛿 𝑛 + 1 − 𝛿 𝑛 .
5. Backward Difference: ℎ 𝑛 = 𝛿 𝑛 − 𝛿 𝑛 − 1 .
46 Inverse System: