Lecture 1
Lecture 1
Lecture 1
LECTURE 1
Eng. Matsiya B
brianmatsiya@gmail.com
Chapter 1
To understand what is Digital Signal Processing (DSP) we need to examine what does each of its words mean.
Definitions
Signal
A signal is defined as any physical quantity that varies with time, space, or ay other independent variable or variables.
Signal Processing
Signal processing is the manipulation of the properties of a specific signal to obtain a signal with more desirable
properties.
System
A system may be defined as a physical device that performs an operation on a signal; For our purposes, it is convenient to
broaden the definition of a system to include not only physical devices, but also software realizations of operations on a
signal.
For instance: When we pass a signal through a “system”, as in filtering, we say we have processed the signal.
Examples of Signals
Examples of Signals
Audio compression,
digital image processing,
compression of videos,
speech processing and recognition,
digital communications,
radio detection ,
seismology, and sound navigation
Satellite communication
The Components of Digital Signal
Processing
Ω = 2𝜋𝐹 (1.2)
Substituting (1.2) into (1.1) we get:
(1.3)
𝑥𝑎 𝑡 = 𝐴𝑐𝑜𝑠 2𝜋𝐹𝑡 + 𝜃 , −∞ < 𝑡 < ∞
Continuous Time Signal
The Fig. below is an illustration of a continuous time signal because we can get value of signal at each instant of time
.
Signal Definition: Discrete Time (DT) signal
Discrete-time signals are a set of numbers or sequences formed from a set of samples taken
from an analog signal or they may be words taken from digital binary data.
These are signals defined at distinct instances of time, i.e. a discrete time signal is a sequence of
numbers 𝑥, where the 𝑛𝑡ℎ number in the sequence is represented 𝑥 𝑛 where 𝑛 is an integer.
Discrete-time signals are often created from sampling continuous time signal.
Discrete Time Signal
The Fig. below is an illustration of a discrete time signal.
Mathematically, a discrete time signal can be formularized as: 𝑥 = 𝑥 𝑛 , −∞ < 𝑛 < ∞, where 𝑛 is an integer.
.
Discrete Time (DT) Sinusoidal Signals
A discrete time sinusoidal signal may be expressed as:
𝑥 𝑛 = 𝐴𝑐𝑜𝑠 𝜔𝑛 + 𝜃 , −∞ < 𝑛 < ∞ (1.4)
Where n is an integer variable called the sample number, 𝐴 is the amplitude of the sinusoid; 𝜔
is the frequency in radians per sample (𝑟𝑎𝑑ൗ𝑠𝑎𝑚𝑝𝑙𝑒), and 𝜃 is the phase in radians.
If instead of 𝜔, we use the frequency variable 𝑓 defined by:
(1.5)
𝜔 = 2𝜋𝑓
Substituting (1.5) into (1.4) we get:
This relation is true if and only if there exists an integer k such that;
2𝜋𝑓0 𝑵 = 2𝑘𝜋,
Or equivalently:
𝑘
𝑓0 = (1.8)
𝑵
Properties of Discrete Time (DT) Sinusoids
The highest rate of oscillation in a discrete-time sinusoid is attained when
𝟏 𝟏
𝝎 = 𝝅 (𝝎 = −𝝅) or equivalently, 𝒇 = (𝒇 = − ).
𝟐 𝟐
To illustrate this property, let us investigate the characteristics of the sinusoidal signal
sequence.
By definition, a definition a discrete-time signal 𝑥 𝑛 is periodic with period N (𝑵 >
0) if and only if :
𝑥 𝑛 = 𝑐𝑜𝑠 𝜔0 𝑛
Basic Continuous Time Signals
In general, to test a system, standard or basic signals are used. These signals
are the basic building blocks for many complex signals. Hence, they play a
very important role in the study of signals and systems.
Analog vs Digital
Recap on basic continuous time signals and DT signals.
Continuous Discrete
For the signal to become periodic, the following condition should be satisfied;
𝑥(𝑛 + 𝑁) = 𝑥(𝑛) => 𝐴cos(2𝜋𝑓0 𝑛 + 2𝜋𝑓0 𝑁 + 𝜃) = 𝐴cos(2𝜋𝑓0 𝑛 + 𝜃)
i.e. 2𝜋𝑓0𝑁 is an integral multiple of 2𝜋
2𝜋𝑓0𝑁 = 2𝜋𝐾
=> 𝑁 = 𝐾/𝑓0
Frequencies of discrete sinusoidal signals are separated by integral multiples of
2𝜋.
Classification: Energy or Power signal
Discrete time signals can be classified according to the conditions or operations on the
signals.
Energy Signal
The energy of a discrete time signal, 𝐸, can be written as;
If each individual values of 𝑥(𝑛) are squared and added, we get the energy signal. Here
𝑥(𝑛) is the energy signal and its energy is finite over time i.e. 0 < 𝐸 < ∞
Power Signal
Average power of a discrete signal is represented as 𝑃. Mathematically, this can be written
as;
This implies that if the response to the input 𝑥1 (𝑛) is 𝑦1 (𝑛) and the response to
the input 𝑥2 (𝑛) is 𝑦2 (𝑛) then the response to a linear combination
𝛼𝑥1 𝑛 + 𝛽𝑥1 (𝑛) is 𝛼𝑦1 𝑛 + 𝛽𝑦2 (𝑛), where 𝛼 and 𝛽 are arbitrary constants
and 𝑥1 𝑛 and 𝑥2 𝑛 are signals of any value.
Mathematically we can state that the system is time invariant if the response to
the input 𝑥(𝑛) is 𝑦(𝑛) then the response to input 𝑥(𝑛 − 𝑛0 ) is y(𝑛 − 𝑛0 ).
A system that satisfies both the linearity and the time-invariance properties is referred
to as a Linear-Time Invariant (LTI) system. LTI systems are easy to model and analyze;
the input output relationship can be represented by a convolution process.
Time Variant and Time Invariant
Systems
Basic Operations on DT signals
Shifting
Shifting means movement of the signal, either in time domain (around X-axis) or in
amplitude domain (around Y-axis). We can classify the shifting into two categories named as
Time shifting and Amplitude shifting
Time Shifting
Time shifting means, shifting of signals in the time domain. Mathematically, it can be written as
𝑥(𝑛) → 𝑦(𝑛 + 𝑘)
This 𝑘 value may be positive or it may be negative. According to the sign of 𝑘 value, we have two
types of shifting named as Right shifting and Left shifting.
Shifting: Left shifting
Left shifting
When 𝑘 is greater than zero, the shifting of the signal takes place to the left in
the time domain. Therefore, this type of shifting is known as Left Shifting of
the signal.
Right shifting
When 𝑘 s less than zero the shifting of signal takes place towards right in the
time domain. Therefore, this type of shifting is known as Right shifting.
Multiplication
The multiplication of two sequences 𝑥(𝑛) and 𝑦(𝑛) to form a new sequence 𝑧(𝑛) is
achieved by multiplying corresponding samples.
If the sequences are not the sample length they are padded with zeros to make them defined in
exactly the same range.
Multiplication by constant
The multiplication of a sequences 𝑥 𝑛 by a constant 𝛼 to obtain a new sequence 𝑦(𝑛) is
achieved if each sample of the sequence 𝑥(𝑛) is multiplied by the constant.
Addition
The addition of two sequences 𝑥 𝑛 and y 𝑛 to obtain a new sequence 𝑧(𝑛) is achieved by
adding corresponding samples. If the sequences are not the sample length they are padded
with zeros to make them defined in exactly the same range.
subtraction
Delay
A sequences 𝑥 𝑛 is delayed by one unit delay to give a new sequence y 𝑛 if each sample
of 𝑥 𝑛 is delayed by the same unit delay. A unit delay is represented by a multiplication by
𝑧 −1 in the 𝑧 − domain.
Convolution
The convolution of two signals in the time domain is equivalent to the multiplication of their
representation in frequency domain.
)
Properties of Convolution
Commutative
It states that the order of convolution does not matter, which can be shown
mathematically as
𝑥1(𝑡)∗𝑥2(𝑡)=𝑥2(𝑡)∗𝑥1(𝑡)
Associative
It states that order of convolution involving three signals, can be anything.
Mathematically, it can be shown as;
𝑥1(𝑡)∗[𝑥2(𝑡)∗𝑥3(𝑡)]=[𝑥1(𝑡)∗𝑥2(𝑡)]∗𝑥3(𝑡)
Distributive
Two signals can be added first, and then their convolution can be made to the
third signal. This is equivalent to convolution of two signals individually with
the third signal and added finally. Mathematically, this can be written as;
𝑥1(𝑡)∗[𝑥2(𝑡)+𝑥3(𝑡)]=[𝑥1(𝑡)∗𝑥2(𝑡)+𝑥1(𝑡)∗𝑥3(𝑡)]
Delay
Suppose a signal 𝑦(𝑡) is a result from the convolution of two signals 𝑥1(𝑡) and 𝑥2(𝑡). If the two signals are
delayed by time t1 and 𝑡2 respectively, then the resultant signal 𝑦(𝑡) will be delayed by
(𝑡1 + 𝑡2). Mathematically, it can be written as-
If,
𝑥1(𝑡) ∗ 𝑥2(𝑡) = 𝑦(𝑡)
Then,
𝑥1(𝑡 − 𝑡1) ∗ 𝑥2(𝑡 − 𝑡2) = 𝑦[𝑡 − (𝑡1 + 𝑡2)]
Stability
A stable system satisfies the BIBO (bounded input for bounded output)
condition. Here, bounded means finite in amplitude. For a stable system, output
should be bounded or finite, for finite or bounded input, at every instant of
time.
Some examples of bounded inputs are functions of sine, cosine, DC, signum and
unit step.