Basics of DSP
Basics of DSP
Class Notes
Dr. Kaustubh Bhattacharyya
Signal is any physical phenomenon that varies with respect to time or any spatial
coordinate. Mathematically signal is a function of one or more independent variable.
A discrete time signal 𝒙[𝒏] is defined only for integer values of 𝒏 and is undefined for non-
integer values of 𝒏.
An infinite-duration discrete time signal x[n] can be written as a sequence of numbers
inside braces.
𝒙[𝒏] = {… … … . , 𝒙[−𝟑], 𝒙[−𝟐], 𝒙[−𝟏], 𝒙[𝟎], 𝒙[𝟏], 𝒙[𝟐], 𝒙[𝟑], 𝒙[𝟒], … … … }
Where the arrow denotes the value of the signal 𝒙[𝒏] at 𝒏 = 𝟎. The sample values to the
right of the arrow are for positive values of n, and the sample values to its left are for the
negative values of 𝒏.
A system is defined as a physical device that performs an operation on signal.
System is characterized by the type of operation that performs on the signal. Such
operations are referred to as signal processing.
Advantages of DSP
1. A digital programmable system allows flexibility in reconfiguring the digital signal processing
operation by changing the program. In analog redesign of hardware is required
2. In digital accuracy depends on word length, floating Vs fixed point arithmetic etc. in analog it
depends on components.
3. Can be stored on disk
4. It is very difficult to perform precise mathematical operations on signal in analog form but these
operations can be routinely implemented on a digital computer using software.
5. Cheaper to implement.
6. Small size
7. Several filters need several boards in analog, whereas in digital same DSP processor is used for many
filters.
Disadvantages of DSP
1. When analog signal is changing very fast, it is difficult to convert digital form.
2. Finite word length problem.
3. When the signal is weak, within a few tenths of millivolts, we can not amplify the signal after it
digitized.
4. DSP hardware is more expensive than general purpose microprocessor & microcontrollers.
5. Dedicated DSP can do better than general purpose DSP
Applications of DSP
1. Filtering
2. Speech synthesis
3. Speech compression and expansion
4. Speech recognition
5. Signal analysis
6. Image processing
7. PCM used in telephone communication
8. High speed NODEM
9. Wave form generation
Classification of Discrete time Signal:
1. Based on number of independent variables: 1-Dimensional and Multidimensional signal
2. Finite length and Infinite length signals
A discrete-time signal may be finite-length or an infinite-length. A finite-length (also called finite -
duration) signal is defined only for a finite time interval:
𝑁1 ≤ 𝑛 ≤ 𝑁2
Where, −∞ < 𝑁1 and 𝑁2 < ∞ and 𝑁2 > 𝑁1 . The length or duration 𝑁 of the finite length signal is
𝑁 = 𝑁2 − 𝑁1 + 1
A length-𝑁 discrete time signal consists of 𝑁 samples and is often referred to as an 𝑁-point signal.
For example, a finite-duration signal can be represented as
𝑥[𝑛] = {3, −2, 5, 4, 6, 2, −6, 5, 8, 2, 7} −4≤𝑛≤6
∑ 𝑥[𝑛] = 0
𝑛=−∞
Proof:
∞ −1 ∞
∑ |𝑥[𝑛]| < ∞
𝑛=−∞
A signal 𝑥[𝑛] is said to be absolutely square-summable if
∞
∑ |𝑥[𝑛]|2 < ∞
𝑛=−∞
6. Energy signal and power signal
The energy of a discrete time signal 𝑥[𝑛] is given by
∞
𝐸𝑥 = ∑ |𝑥[𝑛]|2
𝑛=−∞
The average power of a discrete time signal 𝑥[𝑛] is given by
𝑁
1
𝑃𝑥 = lim ∑ |𝑥[𝑛]|2
𝑁→∞ 2𝑁 + 1
𝑛=−𝑁
If 0 < 𝐸𝑥 < ∞, that is, if Energy 𝐸𝑥 of the signal 𝑥[𝑛] is finite and the power 𝑃𝑥 = 0, then the signal
𝑥[𝑛] is referred to as an energy signal. A necessary condition for the energy to be finite is that the
signal amplitude must → 0 as |𝑛| → ∞. All the finite length signals are energy signal.
If 0 < 𝑃𝑥 < ∞, that is, if power 𝑃𝑥 of the signal 𝑥[𝑛] is finite and the power 𝐸𝑥 = ∞, then the signal
𝑥[𝑛] is referred to as a power signal.
A signal cannot both be an energy signal and power signal. On the other hand, there are signals that
are neither energy nor power signals. All practical signals have finite energies and are therefore
energy signals. It is impossible to generate a true power signal in practice because such signal has
infinite duration and infinite energy. All finite periodic signals are power signals; however not all
power signals are periodic, for example, unit step signal.
7. Periodic and aperiodic signal
A discrete time signal x[n] is periodic if and only if
𝑥[𝑛] = 𝑥[𝑛 + 𝑘𝑁]; 𝑓𝑜𝑟 𝑎𝑙𝑙 𝑛
Where 𝑘 is an integer and 𝑁 is a positive integer and is the period of the signal measured in terms of
number of samples spacings. The smallest value of 𝑁 is called the fundamental period of the
periodic signal. If there is no value of 𝑁 that satisfy the above equation, then the signal is called
aperiodic or nonperiodic signal.
Properties of periodic signal:
1. A periodic signal is an everlasting signal
2. The sum of samples of 𝑥[𝑛] over any interval 𝑁 is the same, that is, for any real integers 𝑝 and 𝑞,
𝑝+𝑁 𝑞+𝑁
∑ 𝑥[𝑛] = ∑ 𝑥[𝑛]
𝑛=𝑝 𝑛=𝑞
This results from the fact that a periodic signal takes the same values at the intervals of 𝑁.
3. The sum of 𝑀 periodic signal is always periodic with period 𝑁 which equals the LCM of their
individual periods, that is,
𝑁 = 𝐿𝐶𝑀(𝑁1 , 𝑁2 , 𝑁3 , … … … . . , 𝑁𝑀 )
Where, 𝑁1 , 𝑁2 , 𝑁3 , … … … . . , 𝑁𝑀 are the periods of individual periodic signals.
Discrete Time Unitary Signals:
1. Unit Step Signal:
1; 𝑛 ≥ 0
𝑢[𝑛] = {
0; 𝑛 < 0
𝑢[𝑛] = {1, 1, 1, 1 … … … … . . }
𝑦[𝑛] = 𝑥[𝑛]𝑢[𝑛]
Where 𝑥[𝑛] = 0; 𝑓𝑜𝑟 𝑎𝑙𝑙 𝑛 < 0
2. Unit Impulse:
1; 𝑛 = 0
𝛿[𝑛] = {
0; 𝑛 ≠ 0
𝛿[𝑛] = {… … . .0, 0, 0, 1, 0, 0, 0 … … … … . . }
1; 𝑘𝑛 = 0 − −→ 𝑛 = 0 1; 𝑛 = 0
𝛿[𝑘𝑛] = { = = 𝛿[𝑛]
0; 𝑘𝑛 ≠ 0 − −→ 𝑛 ≠ 0 0; 𝑛 ≠ 0
𝛿[𝑛]
n=0
u[n]
………………
n=0
𝜹[𝒏] = 𝒖[𝒏] − 𝒖[𝒏 − 𝟏]
𝒖[𝒏] = 𝜹[𝒏] + 𝜹[𝒏 − 𝟏] + 𝜹[𝒏 − 𝟐] + ⋯
∝
𝒖[𝒏] = ∑ 𝜹[𝒏 − 𝒌]
𝒌=𝟎
n=0
3. Multiplication Property:
𝒙[𝒏] = 𝒙[𝒏]𝜹[𝒏 − 𝒌] = 𝒙[𝒌]𝜹[𝒏 − 𝒌]
𝟏; 𝒏 = 𝒌
𝜹[𝒏 − 𝒌] = {
𝟎; 𝒏 ≠ 𝒌
4. Sum Property
∞
∑ 𝜹[𝒏] = 𝟏
𝒏=−∞
∞ −𝟏 ∞
𝒙[𝒏] = ∑ 𝒙[𝒌]𝜹[𝒏 − 𝒌]
𝒌=−∞
3. Unit Ramp Signal
𝒏 ;𝒏 ≥ 𝟎
𝒓[𝒏] = {
𝟎 ;𝒏 < 𝟎
𝒓[𝒏] = {𝟎, 𝟏, 𝟐, 𝟑, 𝟒, 𝟓, … … … … }
𝑟[𝑛] = 0. 𝛿[𝑛] + 1. 𝛿[𝑛 − 1] + 2. 𝛿[𝑛 − 2] + 3. 𝛿[𝑛 − 3] + ⋯.
∞
𝒓[𝒏] = ∑ 𝒌𝜹[𝒏 − 𝒌]
𝒌=𝟎
𝑟[𝑛] = 𝑛. 𝑢[𝑛]
4. Discrete time real exponential signal
5. Discrete time complex exponential signal
6. Discrete time sinusoidal signal
7.
Discrete Time Signal Operation
1. Transformation of Dependent Variable (Amplitude)
a. Signal Addition
𝒚[𝒏] = 𝒙[𝒏] + 𝒘[𝒏]
𝒙[𝒏] = {𝟏, 𝟓, 𝟕, 𝟑, −𝟔, 𝟒, 𝟖}
𝒏𝒙 = −𝟐, −𝟏, 𝟎, 𝟏, 𝟐, 𝟑, 𝟒
𝒏𝒙𝟏 = −𝟐, 𝒏𝒙𝟐 = 𝟒
𝒘[𝒏] = {𝟖, −𝟓, 𝟐, 𝟒, −𝟑, 𝟒, 𝟕}
𝒏𝒘 = −𝟏, 𝟎, 𝟏, 𝟐, 𝟑, 𝟒, 𝟓
𝒏𝒘𝟏 = −𝟏, 𝒏𝒘𝟐 = 𝟓
𝒏𝒚𝟏 = 𝒎𝒊𝒏(𝒏𝒙𝟏 , 𝒏𝒘𝟏 ), 𝒏𝒚𝟐 = 𝒎𝒂𝒙(𝒏𝒙𝟐 , 𝒏𝒘𝟐 ),
𝒏𝒚𝟏 = −𝟐, 𝒏𝒚𝟐 = 𝟓
𝒏𝒚 = 𝒏𝒚𝟏 : 𝒏𝒚𝟐
𝒏𝒚 : − 𝟐, −𝟏, 𝟎, 𝟏, 𝟐, 𝟑 𝟒, 𝟓
𝒚[𝒏] = {𝟏, 𝟏𝟑, 𝟐, 𝟓, −𝟐, 𝟏, 𝟏𝟐, 𝟕}
b. Scalar Addition
𝒚[𝒏] = 𝒂 + 𝒙[𝒏]
𝒙[𝒏] = {𝟏, 𝟓, 𝟕, 𝟑, −𝟔, 𝟒, 𝟖}
𝒏𝒙 = −𝟐, −𝟏, 𝟎, 𝟏, 𝟐, 𝟑, 𝟒
𝒂=𝟓
𝒚[𝒏] = {𝟔, 𝟏𝟎, 𝟏𝟐, 𝟖, −𝟏, 𝟗, 𝟏𝟑}
𝒏𝒚 = −𝟐, −𝟏, 𝟎, 𝟏, 𝟐, 𝟑, 𝟒
c. Signal Multiplication
𝒚[𝒏] = 𝒙[𝒏] ∗ 𝒘[𝒏]
𝒙[𝒏] = {𝟏, 𝟓, 𝟕, 𝟑, −𝟔, 𝟒, 𝟖}
𝒏𝒙 = −𝟐, −𝟏, 𝟎, 𝟏, 𝟐, 𝟑, 𝟒
𝒏𝒙𝟏 = −𝟐, 𝒏𝒙𝟐 = 𝟒
𝒘[𝒏] = {𝟖, −𝟓, 𝟐, 𝟒, −𝟑, 𝟒, 𝟕}
𝒏𝒘 = −𝟏, 𝟎, 𝟏, 𝟐, 𝟑, 𝟒, 𝟓
𝒏𝒘𝟏 = −𝟏, 𝒏𝒘𝟐 = 𝟓
𝒏𝒚𝟏 = 𝒎𝒊𝒏(𝒏𝒙𝟏 , 𝒏𝒘𝟏 ), 𝒏𝒚𝟐 = 𝒎𝒂𝒙(𝒏𝒙𝟐 , 𝒏𝒘𝟐 ),
𝒏𝒚𝟏 = −𝟐, 𝒏𝒚𝟐 = 𝟓
𝒏𝒚 = 𝒏𝒚𝟏 : 𝒏𝒚𝟐
𝒏𝒚 : − 𝟐, −𝟏, 𝟎, 𝟏, 𝟐, 𝟑 𝟒, 𝟓
𝒚[𝒏] = {𝟎, 𝟒𝟎, −𝟑𝟓, 𝟔, −𝟐𝟒, −𝟏𝟐, 𝟑𝟐, 𝟎}
d. Scalar Multiplication
𝒚[𝒏] = 𝒂 ∗ 𝒙[𝒏]
𝒙[𝒏] = {𝟏, 𝟓, 𝟕, 𝟑, −𝟔, 𝟒, 𝟖}
𝒏𝒙 = −𝟐, −𝟏, 𝟎, 𝟏, 𝟐, 𝟑, 𝟒
𝒂=𝟓
𝒚[𝒏] = {𝟓, 𝟐𝟓, 𝟑𝟓, 𝟏𝟓, −𝟑𝟎, 𝟐𝟎, 𝟒𝟎}
𝒏𝒚 = −𝟐, −𝟏, 𝟎, 𝟏, 𝟐, 𝟑, 𝟒
2. Transformation of Independent Variable (Time)
a. Time-Shifting
𝒚[𝒏] = 𝒙[𝒏 − 𝒌]
i. Delay (Right Shifted): if ‘k’ is +ve
Then, 𝒚[𝒏] = 𝒙[𝒏 − 𝒌]
𝒙[𝒏] = {𝟏, 𝟓, 𝟕, 𝟑, −𝟔, 𝟒, 𝟖}
𝒏𝒙 = −𝟐, −𝟏, 𝟎, 𝟏, 𝟐, 𝟑, 𝟒
𝒌=𝟑
𝒏𝒙𝟏 = −𝟐, 𝒏𝒙𝟐 = 𝟒
𝒚[𝒏] = 𝒙[𝒏 − 𝟑]
𝒏𝒙 = −𝟐, −𝟏, 𝟎, 𝟏, 𝟐, 𝟑, 𝟒
𝒏𝒙𝟏 = −𝟐, 𝒏𝒙𝟐 = 𝟒
𝒌 = −𝟑
𝒚[𝒏] = 𝒙[𝒏 + 𝟑]
𝒚[𝒏] = {𝟏, 𝟓, 𝟕, 𝟑, −𝟔, 𝟒, 𝟖, 𝟎, 𝟎, 𝟎 }
𝒏𝒙𝟏 𝒏𝒙𝟐
𝒏𝒚𝟏 = +𝒗𝒆 𝒓𝒐𝒖𝒏𝒅 ( ) = −𝟏; 𝒏𝒚𝟐 = −𝒗𝒆 𝒓𝒐𝒖𝒏𝒅 ( )=𝟐
𝒌 𝒌
𝒏𝒚 = 𝒏𝒚𝟏 : 𝒏𝒚𝟐
𝒏𝒚 = −𝟏, 𝟎, 𝟏, 𝟐
ii. p sampling/Interpolation/Expansion
𝒏
𝒚[𝒏] = 𝒙 [ ]
𝒌
𝒙[𝒏] = {−𝟒, 𝟏, 𝟓, 𝟕, 𝟑, −𝟔, 𝟒, 𝟖, 𝟗}
Combined Operation:
𝒏
𝒚[𝒏] = 𝒙 [− − 𝒌]
𝒎
Time reversal (Folding) and Time delaying (or advancing) on a signal are not commutative
𝑭𝑫[𝒙[𝒏]] = 𝒙[−𝒏]
Whereas
𝑭𝑫[𝑻𝑫𝒌 [𝒙[𝒏]]] = 𝑭𝑫{𝒙[𝒏 − 𝒌]} = 𝒙[−𝒏 − 𝒌] = 𝒙[−𝒏 − 𝒌]
System
Input x[n] Output y[n]
𝑻[. ]
𝒙[𝒏] → 𝒚[𝒏]
𝒚[𝒏] = 𝑻[𝒙[𝒏]]
𝑻[. ]
𝐒𝐈𝐒𝐎: Single Input Single Output
SIMO: Single Input Multiple Output
MISO: Multiple Input Single Output
MIMO: Multiple Input Multiple Output
Properties of the System:
1. Linearity: Linear System or Non-Linear System
𝒂𝒙𝟏 [𝒏] → 𝒂𝒚𝟏 [𝒏]
𝒃𝒙𝟐 [𝒏] → 𝒃𝒚𝟐 [𝒏]
𝒚[𝒏] = 𝒚𝟏 [𝒏] + 𝒚𝟐 [𝒏]
𝒂𝒙𝟏 [𝒏] + 𝒃𝒙𝟐 [𝒏] → 𝒚′ [𝒏] = 𝒂𝒚𝟏 [𝒏] + 𝒃𝒚𝟐 [𝒏]
𝑰𝒇, 𝒚[𝒏] = 𝒚′ [𝒏]; 𝒕𝒉𝒆𝒏 𝒕𝒉𝒆 𝒔𝒚𝒔𝒕𝒆𝒎 𝒊𝒔 𝑳𝒊𝒏𝒆𝒂𝒓
𝒙[𝒏] = 𝒂𝒙𝟏 [𝒏] + 𝒃𝒙𝟐 [𝒏] → 𝒚[𝒏] = 𝒏(𝒂𝒙𝟏 [𝒏] + 𝒃𝒙𝟐 [𝒏]) = 𝒂𝒏𝒙𝟏 [𝒏] + 𝒃𝒏𝒙𝟐 [𝒏] = 𝒂𝒚𝟏 [𝒏] + 𝒃𝒚𝟐 [𝒏]
= 𝒚′ [𝒏]
𝒚[𝒏] = 𝑻[𝒙[𝒏]]
𝒚[𝒏, 𝒌] = 𝒏𝒙[𝒏 − 𝒌]
𝒚[𝒏 − 𝒌] = (𝒏 − 𝒌)𝒙[𝒏 − 𝒌]
𝒚[𝒏] = 𝒏𝒙[𝒏]
|𝒚[𝒏]| = |𝒏𝒙[𝒏]| = |𝒏||𝒙[𝒏]| = |𝒏|𝑩𝒙
𝒊𝒇 𝒏 → ∞; 𝒕𝒉𝒆𝒏 |𝒚[𝒏]| → ∞ => 𝒘𝒉𝒊𝒄𝒉 𝒍𝒆𝒂𝒅𝒔 𝒕𝒐 𝒖𝒏𝒃𝒐𝒖𝒏𝒅𝒆𝒅
The condition that the input signal is bounded is not sufficient to guarantee a bounded output.
Hence the system is Unstable
5. Dynamicity Property: System can be Static or Dynamic: Also called System
without memory or System with Memory
𝒚[𝒏] = 𝟓𝒙[𝒏] + 𝒙[𝒏 − 𝟏]
Example: 𝒚[𝒏] = 𝒏𝒙[𝒏]
6. Passivity: Active System or Passive System
If the energy of the output does not exceed the energy of the input, then the system is Passive
System. A system is said to be Passive, if for finite energy input signal x[n], the output signal
y[n]has at most the same energy of x[n].
∞ ∞
∑ |𝒚[𝒏]|𝟐 ≤ ∑ |𝒙[𝒏]|𝟐
𝒏=−∞ 𝒏=−∞
If the energy of the output exceeds the energy of the input, then the system is Active System.
∞ ∞
LTI System
𝒙[𝒏] = 𝜹[𝒏] y[n]
h[n]
𝒙[𝒏] → 𝒚[𝒏]
𝒚[𝒏] = 𝑻[𝒙[𝒏]]
𝜹[𝒏] → 𝒉[𝒏] => 𝑼𝒏𝒊𝒕 𝑰𝒎𝒑𝒖𝒍𝒔𝒆 𝑹𝒆𝒔𝒑𝒐𝒏𝒔𝒆
𝒚[𝒏] = 𝒉[𝒏] = 𝑻[𝜹[𝒏]]
𝒚[𝒏] = 𝑻[𝒙[𝒏]]
∞
𝒚[𝒏] = ∑ 𝒙[𝒌]𝒉(𝒏, 𝒌)
𝒌=−∞
∞
𝒚[𝒏] = ∑ 𝒙[𝒌]𝒉[𝒏 − 𝒌]
𝒌=−∞
𝑪𝒐𝒏𝒗𝒐𝒍𝒖𝒕𝒊𝒐𝒏 𝑺𝒖𝒎
𝒚[𝒏] = 𝒙[𝒏] ∗ 𝒉[𝒏]
1. 𝒙[𝒏] and 𝒉[𝒏]
2. 𝒙[𝒌] and 𝒉[𝒌]
3. 𝒉[−𝒌]--------Folding
4. 𝒉[𝒏 − 𝒌]-------Shifting
5. 𝒙[𝒌]. 𝒉[𝒏 − 𝒌]-----Multiplication
6. ∑∞
𝒌=−∞ 𝒙[𝒌]𝒉[𝒏 − 𝒌] − − − − − 𝑺𝒖𝒎𝒎𝒂𝒕𝒊𝒐𝒏
1. Commutative:
Convolution is Commutative:
𝒙[𝒏] ∗ 𝒉[𝒏] = 𝒉[𝒏] ∗ 𝒙[𝒏]
2. Associative:
𝒙[𝒏] ∗ (𝒉𝟏 [𝒏] ∗ 𝒉𝟐 [𝒏]) = (𝒙[𝒏] ∗ 𝒉𝟏 [𝒏]) ∗ 𝒉𝟐 [𝒏]
LTI System LTI System 𝒚[𝒏] = 𝒘[𝒏] ∗ 𝒉𝟐 [𝒏] = (𝒙[𝒏] ∗ 𝒉𝟏[𝒏]) ∗ 𝒉𝟐 [𝒏]
h1[n] h2[n]
3. Distributive:
𝒙[𝒏] ∗ (𝒉𝟏 [𝒏] + 𝒉𝟐 [𝒏]) = 𝒙[𝒏] ∗ 𝒉𝟏 [𝒏] + 𝒙[𝒏] ∗ 𝒉𝟐 [𝒏]
LTI System
h1[n]
𝒙[𝒏] + 𝒚[𝒏]
LTI System
h2[n]
LTI System
𝒙[𝒏] 𝒚[𝒏]
h1[n]+h2[n]
4. Impulse Convolution
𝒙[𝒏] ∗ 𝜹[𝒏] = 𝒙[𝒏]
5. Shift Property
𝑰𝒇, 𝒙[𝒏] ∗ 𝒉[𝒏] = 𝒚[𝒏]
𝑻𝒉𝒆𝒏, 𝒙[𝒏] ∗ 𝒉[𝒏 − 𝒌] = 𝒙[𝒏 − 𝒌] ∗ 𝒉[𝒏] = 𝒚[𝒏 − 𝒌]
6. Width Property
𝒚[𝒏] = 𝒙[𝒏] ∗ 𝒉[𝒏]
𝒏𝒙𝟏 = 𝑺𝒕𝒂𝒓𝒕𝒊𝒏𝒈 𝒕𝒊𝒎𝒆 𝒊𝒏𝒅𝒆𝒙 𝒐𝒇 𝒙[𝒏]
𝒏𝒙𝟐 = 𝑬𝒏𝒅𝒊𝒏𝒈 𝒕𝒊𝒎𝒆 𝒊𝒏𝒅𝒆𝒙 𝒐𝒇 𝒙[𝒏]
𝒏𝒉𝟏 = 𝑺𝒕𝒂𝒓𝒕𝒊𝒏𝒈 𝒕𝒊𝒎𝒆 𝒊𝒏𝒅𝒆𝒙 𝒐𝒇 𝒉[𝒏]
𝒏𝒉𝟐 = 𝑬𝒏𝒅𝒊𝒏𝒈 𝒕𝒊𝒎𝒆 𝒊𝒏𝒅𝒆𝒙 𝒐𝒇 𝒉[𝒏]
𝒏𝒚𝟏 = 𝑺𝒕𝒂𝒓𝒕𝒊𝒏𝒈 𝒕𝒊𝒎𝒆 𝒊𝒏𝒅𝒆𝒙 𝒐𝒇 𝒚[𝒏]
𝒏𝒚𝟏 = 𝒏𝒙𝟏 + 𝒏𝒉𝟏
𝑵𝒙 = 𝑵𝒖𝒎𝒃𝒆𝒓 𝒐𝒇 𝑺𝒂𝒎𝒑𝒍𝒆𝒔 𝒊𝒏 𝒙[𝒏]
𝑵𝒉 = 𝑵𝒖𝒎𝒃𝒆𝒓 𝒐𝒇 𝑺𝒂𝒎𝒑𝒍𝒆𝒔 𝒊𝒏 𝒉[𝒏]
𝑵𝒚 = 𝑵𝒖𝒎𝒃𝒆𝒓 𝒐𝒇 𝑺𝒂𝒎𝒑𝒍𝒆𝒔 𝒊𝒏 𝒚[𝒏]
𝑵𝒚 = 𝑵𝒙 + 𝑵𝒉 − 𝟏
7. Sum Property
𝒚[𝒏] = 𝒙[𝒏] ∗ 𝒉[𝒏]
∞ ∞ ∞
𝒚[𝒏] = ∑ 𝒙[𝒌]𝒉[𝒏 − 𝒌]
𝒌=−∞
∞
𝒚[𝒏] = ∑ 𝒉[𝒌]𝒙[𝒏 − 𝒌]
𝒌=
−∞
−𝟏 ∞
= ∑ 𝒉[𝒌]𝒙[𝒏 − 𝒌] + ∑ 𝒉[𝒌]𝒙[𝒏 − 𝒌]
𝒌=−∞ 𝒌=𝟎
𝒚[𝒏] = [… 𝒉[−𝟑]. 𝒙[𝒏 + 𝟑] + 𝒉[−𝟐]𝒙[𝒏 + 𝟐] + 𝒉[−𝟏]. 𝒙[𝒏 + 𝟏]]
+ [𝒉[𝟎]𝒙[𝒏] + 𝒉[𝟏]𝒙[𝒏 − 𝟏] + ⋯ ]
𝑻𝒉𝒆 𝒄𝒐𝒏𝒅𝒊𝒕𝒊𝒐𝒏 𝒇𝒐𝒓 𝑪𝒂𝒖𝒔𝒂𝒍𝒊𝒕𝒚 𝒐𝒇 𝒂𝒏 𝑳𝑻𝑰 𝒔𝒚𝒔𝒕𝒆𝒎:
𝒉[𝒏] = 𝟎; 𝒇𝒐𝒓 𝑨𝒍𝒍 𝒏 < 𝟎
9. Stability for LTI System:
∞
𝒚[𝒏] = ∑ 𝒉[𝒌]𝒙[𝒏 − 𝒌]
𝒌=−∞
∞
|𝒚[𝒏]| ≤ 𝑩𝒙 ∑ |𝒉[𝒌]|
⏟
𝒌=−∞
𝑩𝒚
|𝒚[𝒏]| ≤ 𝑩𝒙 𝑩𝒚
From this equation, we can conclude that if the impulse response is absolutely summable, that is ,
if
∞
∑ |𝒉[𝒌]| = 𝑩𝒚 < ∞
𝒌=−∞
Then y[n] is bounded and hence the system is stable.
10. Invertibility for LTI System
Invertible Inverse
LTI System 1 w[n] LTI System 2
y[n]=x[n]
x[n] 𝒉𝟏 [𝒏] 𝒉𝟐 [𝒏]
𝒚[𝒏] = ∑ 𝒉[𝒌]𝒙[𝒏 − 𝒌]
𝒌=−∞
−𝟏 ∞
= ∑ 𝒉[𝒌]𝒙[𝒏 − 𝒌] + ∑ 𝒉[𝒌]𝒙[𝒏 − 𝒌]
𝒌=−∞ 𝒌=𝟎
𝒚[𝒏] = [… 𝒉[−𝟑]. 𝒙[𝒏 + 𝟑] + 𝒉[−𝟐]𝒙[𝒏 + 𝟐] + 𝒉[−𝟏]. 𝒙[𝒏 + 𝟏]]
+ [𝒉[𝟎]𝒙[𝒏] + 𝒉[𝟏]𝒙[𝒏 − 𝟏] + ⋯ ]
𝒉[𝒏] = 𝑲𝜹[𝒏], 𝑲 = 𝒉[𝟎]
𝒚[𝒏] = ∑ 𝒉[𝒌]𝒙[𝒏 − 𝒌]
𝒌=−∞
𝒙[𝒏]𝒂𝒏𝒅 𝒉[𝒏]−→
𝑰𝒏𝒇𝒊𝒏𝒊𝒕𝒆 𝒍𝒆𝒏𝒈𝒕𝒉 𝒂𝒏𝒅 𝒇𝒊𝒏𝒊𝒕𝒆 𝒍𝒆𝒏𝒈𝒕𝒉 𝒃𝒖𝒕 𝒂𝒓𝒆 𝒅𝒆𝒔𝒄𝒓𝒊𝒃𝒆𝒅 𝒃𝒚
𝒔𝒊𝒎𝒑𝒍𝒆 𝒆𝒏𝒐𝒖𝒈𝒉 𝒂𝒏𝒂𝒍𝒚𝒕𝒊𝒄𝒂𝒍 𝒆𝒙𝒑𝒓𝒆𝒔𝒔𝒊𝒐𝒏
𝒙[𝒏]𝒊𝒔 𝑪𝒂𝒖𝒔𝒂𝒍 = 𝒙[𝒏]𝒖[𝒏]
𝒖[𝒌]𝒂𝒏𝒅 𝒖[𝒏 − 𝒌]
Sol.
By definition
∞
𝒚[𝒏] = ∑ 𝒙[𝒌]𝒉[𝒏 − 𝒌]
𝒌=−∞
∞
𝟐
𝒚[𝒏] = ∑ 𝒆−𝒌 𝟑(𝒏 − 𝒌)𝟐
𝒌=−∞
∞
𝟐
𝒚[𝒏] = ∑ 𝒆−𝒌 𝟑(𝒏𝟐 − 𝟐𝒏𝒌 + 𝒌𝟐 )
𝒌=−∞
∞ ∞ ∞
𝟐 −𝒌𝟐 −𝒌𝟐 𝟐
𝒚[𝒏] = 𝟑𝒏 ∑ 𝒆 − 𝟔𝒏 ∑ 𝒆 . 𝒌 + 𝟑 ∑ 𝒆−𝒌 . 𝒌𝟐
𝒌=−∞ 𝒌=−∞ 𝒌=−∞
∞ ∞
𝟐 −𝒌𝟐 𝟐
𝒚[𝒏] = 𝟑𝒏 ∑ 𝒆 − 𝟎 + 𝟑 ∑ 𝒆−𝒌 . 𝒌𝟐 = 𝟓. 𝟑𝟏𝟖𝒏𝟐 + 𝟐. 𝟔𝟓𝟒
𝒌=−∞ 𝒌=−∞
Ex.2. Compute the convolution 𝒚[𝒏] = 𝒙[𝒏] ∗ 𝒉[𝒏] of the following signals
𝒚[𝒏] = ∑ 𝒙[𝒌]𝒉[𝒏 − 𝒌]
𝒌=−∞
∞
𝒚[𝒏] = ∑ 𝒖[𝒌]𝒖[𝒏 − 𝒌]
𝒌=−∞
= 𝟏; 𝒇𝒐𝒓𝒂𝒍𝒍 𝒌 ≥ 𝟎
𝒖[𝒌] = {
𝟎; 𝑶𝒕𝒉𝒆𝒓𝒘𝒊𝒔𝒆
𝟏; 𝒇𝒐𝒓𝒂𝒍𝒍 𝒏 − 𝒌 ≥ 𝟎; 𝒏 ≥ 𝒌
𝒖[𝒏 − 𝒌] = {
𝟎; 𝑶𝒕𝒉𝒆𝒓𝒘𝒊𝒔𝒆; 𝒏 − 𝒌 < 𝟎; 𝒏 < 𝒌
𝒏
𝟎; 𝒏 < −𝟓
𝒙[𝒏] = { 𝟏 𝒏
( ) ; 𝒏 ≥ −𝟓
𝟐
𝟏 𝒌
𝒙[𝒌] = ( ) ; 𝒌 = −𝟓, −𝟒, −𝟑, … … ∞
𝟐
𝟎; 𝒏 < 𝟑
𝒏
𝒉[𝒏] = { 𝟏
( ) ;𝒏 ≥ 𝟑
𝟑
𝟏 𝒏−𝒌
𝒉[𝒏 − 𝒌] = ( ) ; 𝒏 − 𝒌 ≥ 𝟑 => 𝒌 ≤ 𝒏 − 𝟑
𝟑
Do it……
2. Graphical Method
∞
𝒚[𝒏] = ∑ 𝒙[𝒌]𝒉[𝒏 − 𝒌]
𝒌=−∞
1. Plotting: Plot x[k] and h[k] as a function of k
2. Fold the h[k] to make h[-k]
3. Shift h[-k] to make it h[n-k]
4. Multiplication and addition.
𝒙[𝒏] = {𝟏, 𝟓, 𝟑, 𝟒, 𝟐}
𝒉[𝒏] = {−𝟏, 𝟕, 𝟐, 𝟑, 𝟓}
Sol.
𝒙[𝒏] = {𝟏, 𝟓, 𝟑, 𝟒, 𝟐}
𝒉[𝒏] = {−𝟏, 𝟕, 𝟐, 𝟑, 𝟓}
Sol.
4. Multiplication Method
h[n]: -1 7 2 3 5
x[n]: 1 5 3 4 2
-2 14 4 6 10
-4 28 8 12 20
-3 21 6 9 15
-5 35 10 15 25
-1 7 2 3 5
-1 2 34 30 52 56 31 26 10
Matrix Method