Module 1
Module 1
Module 1
INTODUCTION
A signal is defined as any physical quantity that varies with time, space, or any other
independent variable or variables. Mathematically, we describe a signal as a function
of one or more independent variables. For example, the functions
1-Dimensional signals mostly have time as the independent variable. For example,
𝑆1 (𝑡) = 5𝑡
𝑆2 (𝑡) = 20𝑡 2
2-Dimensional signals have two independent variables. For example, image is a 2-D
signal whose independent variables are the two spatial coordinates (x, y)
Video is a 3 – dimensional signal whose independent variables are the two spatial
coordinates, (x, y) and time (t).
Similarly, a 3 -D picture is also a 3- D signal whose independent variables are the three
spatial coordinates (x,y,z).
Signals 𝑆1 (𝑡), 𝑆2 (𝑡) and S (t) belong to a class that are precisely defined by specifying
the functional dependence on the independent variables.
Natural signals like speech signal, ECG, EEG, images, videos, etc. belong to
the class which cannot be described functionally by mathematical expressions.
System
A system is a physical device that performs an operation on a signal. For example,
natural signals are generated by a system that responds to a stimulus or force.
For eg., speech signals are generated by forcing air through the vocal cords. Here, the
vocal cord and the vocal tract constitute the system (also called the vocal cavity). The
air is the stimulus.
The stimulus along with the system is called a signal source.
An electronic filter is also a system. Here, the system performs an operation on the
signal, which has the effect of reducing the noise and interference from the desired
information – bearing signal.
When the signal is passed through a system, the signal is said to have been processed.
Properties of a System
Processing
The operation performed on the signal by the system is called Signal Processing. The
system is characterized by the type of operation that it performs on the signal. For
example, if the operation is linear, the system is called linear system, and so on.
Most of the signals encountered in real world are analog in nature. i.e., the signal value
and the independent variable take on values in a continuous range. Such signals may
be processed directly by appropriate analog systems, in which case, the processing is
called analog signal processing. Here, both the input and output signals are in analog
form.
These analog signals can also be processed digitally, in which case, there is a need for
an interface between the analog signal and the Digital Signal Processor. This interface
is called the Analog – to – Digital Converter (ADC), whose output is a digital signal
that is appropriate as an input to the digital processor.
In applications such as speech communications, that require the digital output of the
digital signal processor to be given to the user in analog form, another interface from
digital domain to analog domain is required. This interface is called the Digital – to –
Analog Converter (DAC).
In applications like radar signal processing, the information extracted from the radar
signal, such as the position of the aircraft and its speed are required in digital format.
So, there is no need for a DAC in this case.
In digital signal processor, active elements like transistors are used, which dissipate
more power.
The above are some of the advantages and disadvantages of digital signal processing
over analog signal processing.
Multi-channel signal
The signal which is generated by multiple sources or multiple sensors and are
represented in vector form is called as multichannel signal.
Example: Earth quake generated wave,
In electrocardiography. for example, 3-lead and 12-lead electrocardiograms (E C G)
are often used in practice, which result in 3-channel and 12-channel signals.
Multidimensional Signals
The signal which is a function of more than one independent variable are called as
multidimensional signal.
Example: f (x, y) =𝑥 2 + 2y+3
NOTE: - If the signal is a function of a single independent variable. the signal is called
a one-dimensional signal. On the other hand. a signal is called M-dimensional if its
value is a function of M independent variables.
Discrete-time signals
The signals which are defined only at certain specific values of time. These time
instants need not be equidistant. but in practice they are usually taken at equally spaced
intervals for computational convenience and mathematical tractability.
Example
Deterministic Signal
Any signal that can be uniquely described by an explicit mathematical expression,
a table of data, or a well-defined rule is called deterministic. This term is used to
emphasize the fact that all past, present. and future values of the signal are known
precisely, without any uncertainty.
Example: Sinusoidal signal
Random Signals
The signals that either cannot be described to any reasonable degree of accuracy by
explicit mathematical formulas or any such description.
Signals evolve in time in an unpredictable manner
Example: seismic signals, speech signal.
The analog sinusoidal signal in above eqn is characterized by the following properties:
1. For every fixed value of the frequency F, x,(r) is periodic. Indeed. it can easily
be shown, using elementary trigonometry, that where T, = 1/F is the
fundamental period of the sinusoidal signal.
2. Continuous-time sinusoidal signals with distinct (different) frequencies are
themselves distinct.
3. Increasing the frequency F results in an increase in the rate of oscillation of the
signal, in the sense that more periods are included in a given time interval.
Consider a single x (n) with values X (-2) = -3, x(-1) = 2, x(0) = 0, x(1) = 3, x(2) = 1
and x(3) = 2 This discrete-time single can be represented graphically as shown in
Figure 2.1
5. Sinusoidal sequence
6. Real exponential sequence
7. Complex exponential sequence
The shifted version of the discrete-time unit step sequence u(n – k) is defined as:
Figure 2.2 Discrete–time (a) Unit step function (b) Shifted unit step function
The discrete-time unit ramp sequence r (n) is that sequence which starts at n = 0 and
increases linearly with time and is defined as:
or r(n) = nu(n)
It starts at n = 0 and increases linearly with n.
The shifted version of the discrete-time unit ramp sequence r(n – k) is defined as:
Or r(n – k) = (n – k) u(n – k)
The graphical representation of r(n) and r(n – 2) is shown in Figure 2.3[(a) and (b)].
Figure 2.3 Discrete–time (a) Unit ramp sequence (b) Shifted ramp sequence
The discrete-time unit impulse function (n), also called unit sample sequence, is
defined as:
This means that the unit sample sequence is a signal that is zero everywhere, except
at n = 0, where its value is unity. It is the most widely used elementary signal used for
the analysis of signals and systems.
The shifted unit impulse function (n – k) is defined as:
The graphical representation of (n) and (n – k) is shown in Figure 2.4 [(a) and (b)].
Figure 2.4 Discrete–time (a) Unit sample sequence (b) Delayed unit sample sequence.
Sinusoidal Sequence
The discrete-time sinusoidal sequence is given by
X(n) = A sin (𝜔𝑛+ ∅)
Where A is the amplitude, is angular frequency, is phase angle in radians and n is an
integer.
The period of the discrete-time sinusoidal sequence is:
2π
N= 𝑚
ω
Where N and m are integers.
All continuous-time sinusoidal signals are periodic, but discrete-time sinusoidal
sequences may or may not be periodic depending on the value of.
For a discrete-time signal to be periodic, the angular frequency must be a rational
multiple of 2. The graphical representation of a discrete-time sinusoidal signal is
shown in Figure 2.5.
Figure 2.6 Discrete-time exponential signal an for (a) a > 1 (b) 0 < a < 1 (c) a < -1
(d) -1 < a < 0.
For |a| = 1, the real and imaginary parts of complex exponential sequence are
sinusoidal.
For |a| > 1, the amplitude of the sinusoidal sequence exponentially grows as shown
in Figure 2.7(a).
For |a| < 1, the amplitude of the sinusoidal sequence exponentially decays as
shown in Figure 2.7(b).
Figure 2.7 complex exponential sequence x(n) = 𝑎𝑛 𝑒 𝑗 (𝜔0𝑛+∅) for (a)a > 1 (b) a < 1.
Time Shifting
The time shifting of a signal may result in time delay or time advance. The time shifting
operation of a discrete-time signal x(n) can be represented by
y(n) = x(n – k)
This shows that the signal y (n) can be obtained by time shifting the signal x(n) by k
units. If k is positive, it is delay and the shift is to the right, and if k is negative, it is
advance and the shift is to the left.
An arbitrary signal x(n) is shown in Figure 2.8(a). x(n – 3) which is obtained by shifting
x(n) to the right by 3 units (i.e. delay x(n) by 3 units) is shown in Figure 2.8(b). x(n +
2) which is obtained by shifting x(n) to the left by 2 units (i.e. advancing x(n) by 2
units) is shown in Figure 2.8(c).
Time Reversal
The time reversal also called time folding of a discrete-time signal x(n) can be obtained
by folding the sequence about n = 0. The time reversed signal is the reflection of the
original signal. It is obtained by replacing the independent variable n by –n. Figure
2.9(a) shows an arbitrary discrete-time signal x(n), and its time reversed version x(–n)
is shown in Figure 2.9(b).
Figure 2.9 (a) Original signal x(n) (b) Time reversed signal x(-n) (c) Time reversed and
delayed signal x(-n+3) (d) Time reversed and advanced signal x(-n-3).
SJCIT CB’PURA | DEPT. OF ELECTRONICS & COMMUNICATION ENGG. 17
DIGITAL SIGNAL PROCESSING | MODULE1:
BEC502
INTRODUCTION
Figure 2.9[(c)&(d)] shows the delayed and advanced versions of reversed signal x(–n).
The signal x(–n + 3) is obtained by delaying (shifting to the right) the time reversed
signal x(–n) by 3 units of time. The signal x(–n – 3) is obtained by advancing (shifting
to the left) the time reversed signal x(–n) by 3 units of time.
Amplitude Scaling
The amplitude scaling of a discrete-time signal can be represented by
y(n) = ax(n)
where a is a constant.
The amplitude of y(n) at any instant is equal to a times the amplitude of x(n) at that
instant. If a > 1, it is amplification and if a < 1, it is attenuation. Hence the amplitude
is rescaled. Hence the name amplitude scaling.
Figure 2.11(a) shows a signal x(n) and Figure 2.11(b) shows a scaled signal y(n) =
2x(n).
Time Scaling
Time scaling may be time expansion or time compression. The time scaling of a
discrete- time signal x(n) can be accomplished by replacing n by an in it.
Mathematically, it can be expressed as:
y(n) = x(an)
We can plot the time scaled signal y(n) = x(2n) as shown in Figure 2.12(b). Here the
signal is compressed by 2.
We can plot y(n) = x(n/2) as shown in Figure 1.16(c). Here the signal is expanded by
2. All odd components in x(n/2) are zero because x(n) does not have any value in
between the sampling instants.
Figure 2.12 Discrete–time scaling (a) Plot of x(n) (b) Plot of x(2n) (c) Plot of x(n/2)
Time scaling is very useful when data is to be fed at some rate and is to be taken out
at a different rate.
Signal Addition
In discrete-time domain, the sum of two signals x1(n) and x2(n) can be obtained by
adding the corresponding sample values and the subtraction of x2(n) from x1(n) can
be obtained by subtracting each sample of x2(n) from the corresponding sample of
x1(n) as illustrated below.
If x1(n) = {1, 2, 3, 1, 5} and x2(n) = {2, 3, 4, 1, –2}
Then x1(n) + x2(n) = {1 + 2, 2 + 3, 3 + 4, 1 + 1, 5 – 2} = {3, 5, 7, 2, 3}
and x1(n) – x2(n) = {1 – 2, 2 – 3, 3 – 4, 1 – 1, 5 + 2} = {–1, –1, –1, 0, 7}
Signal multiplication
The multiplication of two discrete-time sequences can be performed by multiplying
their values at the sampling instants as shown below.
If x1(n) = {1, –3, 2, 4, 1.5} and x2(n) = {2, –1, 3, 1.5, 2}
Then x1 (n) x2 (n) = {1 × 2,- 3 ×-1, 2 × 3, 4 × 1.5, 1.5 × 2}
= {2, 3, 6, 6, 3}
The signals can be classified based on their nature and characteristics in the time
domain. They are broadly classified as: (i) continuous-time signals and (ii) discrete-
time signals.
The signals that are defined for every instant of time are known as continuous-time
signals. The continuous-time signals are also called analog signals. They are denoted
by x (t). They are continuous in amplitude as well as in time. Most of the signals
available are continuous-time signals.
The signals that are defined only at discrete instants of time are known as discrete-
time signals. The discrete-time signals are continuous in amplitude, but discrete in
time. For discrete- time signals, the amplitude between two time instants is just not
defined. For discrete-time signals, the independent variable is time n. Since they are
defined only at discrete instants of time, they are denoted by a sequence x (nT) or
simply by x(n) where n is an integer.
Figure 2.13 shows the graphical representation of discrete-time signals. The discrete-
time signals may be inherently discrete or may be discrete versions of the continuous-
time signals.
A signal exhibiting no uncertainty of its magnitude and phase at any given instant of
time is called deterministic signal. A deterministic signal can be completely represented
by mathematical equation at any time and its nature and amplitude at any time can be
predicted.
Examples: Sinusoidal sequence x(n) = cos n, Exponential sequence x(n) = 𝑒 𝑗𝑛 ramp
sequence x(n) = n.
A signal characterized by uncertainty about its occurrence is called a non-deterministic
or random signal. A random signal cannot be represented by any mathematical
equation. The behavior of such a signal is probabilistic in nature and can be analyzed
only stochastically. The pattern of such a signal is quite irregular. Its amplitude and
phase at any time instant cannot be predicted in advance. A typical example of a non-
deterministic signal is thermal noise.
Figure 2.14 Example of discrete-time: (a) Periodic and (b) non-periodic signals
Problem Show that the complex exponential sequence x(n) =𝑒 𝑗𝜔0 𝑛 is periodic.
A signal is said to be an energy signal if and only if its total energy E over the interval
(– ∞, ∞) is finite (i.e., 0 < E < ∞). For an energy signal, average power P = 0. Non-
periodic signals which are defined over a finite time (also called time limited signals)
are the examples of energy signals. Since the energy of a periodic signal is always either
zero or infinite, any periodic signal cannot be an energy signal.
A signal is said to be a power signal, if its average power P is finite (i.e., 0 < P < ∞).
For a power signal, total energy E = ∞. Periodic signals are the examples of power
signals. Every bounded and periodic signal is a power signal. But it is true that a power
signal is not necessarily a bounded and periodic signal.
Both energy and power signals are mutually exclusive, i.e. no signal can be both energy
signal and power signal.
The signals that do not satisfy the above properties are neither energy signals nor
power signals. For example, x(n) = u(n), x(n) = nu(n), x(n) = n2 u(n).
These are signals for which neither P nor E are finite. If the signals contain infinite
energy and zero power or infinite energy and infinite power, they are neither energy
nor power signals.
If the signal amplitude becomes zero as |n| → ∞, it is an energy signal, and if the
signal amplitude does not become zero as |n| → ∞, it is a power signal.
A causal signal does not exist for negative time and an anti-causal signal does not exist
for positive time.
A signal which exists in positive as well as negative time is called a non-casual signal.
u(n) is a causal signal and u(– n) an anti-causal signal, whereas x(n) = 1 for – 2 ≤ n ≤
3 is a non-causal signal.
Any signal x(n) can be expressed as sum of even and odd components. That is
x(n) = 𝑥𝑒 (𝑛) + 𝑥𝑜 (𝑛)
where 𝑥𝑒 (𝑛) is even components and 𝑥𝑜 (𝑛) is odd components of the signal.
even signals are shown in Figure 2.15 (a). An even signal is identical to its reflection
about the origin. For an even signal 𝑥𝑜 (𝑛)= 0.
Thus, the product of two even signals or of two odd signals is an even signal, and the
product of even and odd signals is an odd signal.
Every signal need not be either purely even signal or purely odd signal, but
every signal can be decomposed into sum of even and odd parts.
An adder- Figure 2.16 illustrates a system (adder) that performs the addition of two
signal sequences to form another (the sum) sequence, which we denote as y(n). Note
that it is not necessary to store either one of the sequences in order to perform the
addition. In other words, the addition operation is memoryless.
A signal multiplier. - Figure 2.18 illustrates the multiplication of two signal sequences
to form another (the product) sequence, denoted in the figure as y(n). As in the
preceding two cases, we can view the multiplication operation as memoryless.
A unit delay element. The unit delay is a special system that simply delays the signal
passing through it by one sample. Figure 2.19 illustrates such a system. If the input
signal is x(n), the output is x (n - 1). In fact, the sample x (n- 1) is stored in memory
at time n - 1 and it is recalled from memory at time n to form
𝑦(𝑛) = 𝑥(𝑛 − 1)
Thus, this basic building block requires memory. The use of the symbol, 𝜏 −1 to
denote the unit of delay.
DEPT. OF ELECTRONICS & COMMUNICATION E N G G . |S J C I T
26
CB’PURA
DIGITAL SIGNAL PROCESSING | MODULE1: INTRODUCTION BEC502
A unit advance element. In contrast to the unit delay. a unit advance moves the
input x(n) ahead by one sample in time to yield x (n + 1). Figure 2.20 illustrates this
operation, with the operator: being used to denote the unit advance.
A system is defined as an entity that acts on an input signal and transforms it into an
output signal. A system may also be defined as a set of elements or functional blocks
which are connected together and produces an output in response to an input signal.
The response or output of the system depends on the transfer function of the system.
It is a cause-and-effect relation between two or more signals.
As signals, systems are also broadly classified into continuous-time and discrete-time
systems. A continuous-time system is one which transforms continuous-time input
signals into continuous-time output signals, whereas a discrete-time system is one
which transforms discrete-time input signals into discrete-time output signals.
For example, microprocessors, semiconductor memories, shift registers, etc. are
discrete- time systems.
A discrete-time system is represented by a block diagram as shown in Figure 2.21. An
arrow entering the box is the input signal (also called excitation, source or driving
function) and an arrow leaving the box is an output signal (also called response).
Generally, the input is denoted by x(n) and the output is denoted by y(n).
The relation between the input x(n) and the output y(n) of a system has the form:
y(n) = Operation on x(n)
Mathematically,
y(n) = T[x(n)]
which represents that x(n) is transformed to y(n). In other words, y(n) is the
transformed version of x(n).
A discrete-time LTI system is memoryless (static) if its impulse response h(n) is zero
for n<0. If the impulse response is not identically zero for n>0, then the system is
called dynamic system or system with memory.
Problem Find whether the following systems are dynamic or not:
(a) y(n) = x(n + 2) (b) y(n) = x2(n)
(c) y(n) = x (n – 2) + x(n)
Solution:
(a) Given y(n) = x (n + 2)
The output depends on the future value of input. Therefore, the system is dynamic.
(b) Given y(n) = 𝑥 2 (n)
The output depends on the present value of input alone. Therefore, the system is
static.
(c) Given y(n) = x (n – 2) + x(n)
The system is described by a difference equation. Therefore, the system is dynamic.
DEPT. OF ELECTRONICS & COMMUNICATION E N G G . |S J C I T
28
CB’PURA
DIGITAL SIGNAL PROCESSING | MODULE1: INTRODUCTION BEC502
Homogeneity property means a system which produces an output y(n) for an input
x(n) must produce an output ay(n) for an input ax(n).
Superposition property means a system which produces an output y1(n) for an input
x1(n) and an output y2(n) for an input x2(n) must produce an output y1(n) + y2(n) for
an input x1(n) + x2(n).
Combining them we can say that a system is linear if an arbitrary input 𝑥1 (𝑛)
produces an output 𝑦1 (𝑛) and an arbitrary input 𝑥2 (𝑛) produces an output 𝑦2 (𝑛),
then the weighted sum of inputs a𝑥1 (𝑛) + 𝑏𝑥2 (𝑛) where a and b are constants
produces an output 𝑎𝑦1 (𝑛) + 𝑏𝑦2 (𝑛)) which is the sum of weighted outputs.
Simply we can say that a system is linear if the output due to weighted sum of inputs
is equal to the weighted sum of outputs.
In general, if the describing equation contains square or higher order terms of input
and/or output and/or product of input/output and its difference or a constant, the
system will definitely be non-linear.
A system not satisfying the above requirements is called a time-variant system (or
shift- variant system). A time-invariant system is also called a fixed system.
The time-invariance property of the given discrete-time system can be tested as
follows:
Let x(n) be the input and let x(n – k) be the input delayed by k units.
y(n) = T[x(n)] be the output for the input x(n).