Module 1
Module 1
Introduction
where {𝐴𝑖 (𝑡)}, {𝐹𝑖 (𝑡)}, 𝑎𝑛𝑑 {𝜃𝑖 (𝑡)} are the sets of (possibly time-varying) amplitudes,
frequencies, and phases, respectively, of the sinusoids.
Thus signal generation is usually associated with a system that responds to a stimulus
or force. In a speech signal, the system consists of the vocal cords and the vocal tract, also
called the vocal cavity. The stimulus in combination with the system is called a signal source.
A system may also be defined as a physical device that performs an operation on a
signal. For example, a filter used to reduce the noise and interference corrupting a desired
information-bearing signal is called a system.
If the operation is linear, the system is called linear. If the operation on the signal is
nonlinear, the system is said to be nonlinear, and so forth. Such operations are usually referred
to as signal processing.
In digital processing of signals on a digital computer, the operations performed on a
signal consist of a number of mathematical operations as specified by a software program. In
this case, the program represents an implementation of the system in software.
Digital signal processing provides an alternative method for processing the analog signal, as
illustrated in Fig. 1.2.
1. To perform the processing digitally, there is a need for an interface between the analog
signal and the digital processor. This interface is called an analog-to-digital (A/D)
converter. The output of the A/D converter is a digital signal that is appropriate as an
input to the digital processor.
2. The digital signal processor may be a large programmable digital computer or a small
microprocessor programmed to perform the desired operations on the input signal.
3. Programmable machines provide the flexibility to change the signal processing
operations through a change in the software, whereas hardwired machines are difficult
to reconfigure.
4. In applications where the digital output from the digital signal processor is to be given
to the user in analog form, such as in speech communications, we must provide another
interface from the digital domain to the analog domain. Such an interface is called a
digital-to-analog (D/A) converter.
Classification of Signals
The methods we use in processing a signal or in analyzing the response of a system to a signal
depend heavily on the characteristic attributes of the specific signal.
i. Multichannel and Multidimensional Signals
The value of the function (i.e., the dependent variable) can be a real-valued scalar
quantity, a complex-valued quantity, or perhaps a vector. For example, the signal
𝑠1 (𝑡) = 𝐴 sin(3𝜋𝑡) ------> real-valued signal
𝑥1 (𝑡) = cos(𝜋𝑡) , 𝑥2 (𝑡) = 𝑒 −|𝑡| , −∞ < 𝑡 < ∞ are examples of analog signals.
Discrete-time signals 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.
The signal 𝑥(𝑡𝑛 ) =𝑒 −𝑡𝑛 , 𝑛 = 0, ±1, ±2, . .. is an example of a discrete-time signal. The
index 𝑛 of the discrete time instants as the independent variable, the signal value becomes a
function of an integer variable (i.e., a sequence of numbers). If the time instants 𝑡𝑛 are equally
spaced (i.e., 𝑡𝑛 = 𝑛𝑇 ), the notation 𝑥(𝑛𝑇 ) is also used. For example, the sequence
0.8𝑛 , 𝑖𝑓 𝑛 ≥ 0
𝑥(𝑛) = {
0, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
Fig 1.4: Graphical representation of the discrete time signal 𝒙(𝒏) = 𝟎. 𝟖𝒏 for 𝒏 ≥ 𝟎 and
𝒙(𝒏) = 𝟎 for 𝒏 < 𝟎.
3. Sequence representation
An infinite-duration signal or sequence with the time origin (n = 0) indicated by the
symbol ↑ is represented as
𝑥(𝑛) = {. . . 0, 0, 1, 4, 1, 0, 0,. . . }
↑
A sequence 𝑥(𝑛), which is zero for 𝑛 < 0, can be represented as
𝑥(𝑛) = { 0, 1, 4, 1, 0, 0,. . . }
↑
The even signal component 𝑥𝑒 (𝑛) is formed by adding 𝑥(𝑛) to 𝑥(−𝑛) and dividing by 2
1
𝑥𝑒 (𝑛) = [𝑥(𝑛) + 𝑥(−𝑛)]
2
Similarly, we form an odd signal component 𝑥𝑜 (𝑛) according to the relation
1
𝑥𝑜 (𝑛) = [𝑥(𝑛) − 𝑥(−𝑛)]
2
Thus any arbitrary signal 𝑥(𝑛) can be expressed as
𝑥(𝑛) = 𝑥𝑒 (𝑛) + 𝑥0 (𝑛)
Discrete-Time Systems
A discrete-time system is a device or algorithm that operates on a discrete-time signal, called
the input or excitation, according to some well-defined rule, to produce another discrete-time
signal called the output or response of the system.
Ex2: The accumulator described by (2.30) is excited by the sequence 𝑥(𝑛) = 𝑛𝑢(𝑛).
Determine its output under the condition that:
= 𝑦(−1) + ∑ 𝑥(𝑘)
𝑘=0
𝑛(𝑛 + 1)
= 𝑦(−1) +
2
a) It is initially relaxed [i.e., 𝑦(−1) = 0] and hence
𝑛(𝑛 + 1)
𝑦(𝑛) = , 𝑛≥0
2
b) On the other hand, if the initial condition is 𝑦(−1) = 1, then
𝑛(𝑛 + 1) 𝑛2 + 𝑛 + 2
𝑦(𝑛) = 1 + = , 𝑛≥0
2 2
• A constant multiplier
• A signal multiplier
Ex: Using basic building blocks introduced above, sketch the block diagram representation of
the discrete-time system described by the input–output relation
1 1 1
𝑦(𝑛) = 𝑦(𝑛 − 1) + 𝑥(𝑛) + 𝑥(𝑛 − 1)
4 2 2
where x(n) is the input and y(n) is the output of the system.
Sol:
1 1
𝑦(𝑛) = 𝑦(𝑛 − 1) + [𝑥(𝑛) + 𝑥(𝑛 − 1)
4 2
Ex: Determine if the systems shown in Fig are time invariant or time variant.
If a relaxed system does not satisfy the superposition principle as given by the definition above,
it is called nonlinear
On the other hand, a linear combination of the two outputs in (1) and (2) results in the
output
𝑎1 𝑦1 (𝑛) + 𝑎2 𝑦2 (𝑛) = 𝑎1 𝑥1 (𝑛2 ) + 𝑎2 𝑥2 (𝑛2 ) (4)
Since the right-hand sides of (3) and (4) are identical, the system is linear.
(c) For two input sequences 𝑥1 (𝑛) and 𝑥2 (𝑛), the corresponding outputs are
𝑦1 (𝑛) = 𝑥1 2 (𝑛) (1)
On the other hand, a linear combination of the two outputs in (1) and (2) results in the
output
𝑎1 𝑦1 (𝑛) + 𝑎2 𝑦2 (𝑛) = 𝑎1 𝑥1 2 (𝑛) + 𝑎2 𝑥2 2 (𝑛) (4)
Since the right-hand sides of (3) and (4) are not identical, the system is non linear.
for all 𝑛. If, for some bounded input sequence 𝑥(𝑛), the output is unbounded (infinite),
the system is classified as unstable.
In other words, each multiplication of the signal 𝑥(𝑛) by a unit impulse at some delay 𝑘,
[i.e., 𝛿(𝑛 − 𝑘)], in essence picks out the single value 𝑥(𝑘) of the signal 𝑥(𝑛) at the delay
where the unit impulse is nonzero.
𝑥(𝑛)𝛿(𝑛 − 𝑘) = 𝑥(𝑘)𝛿(𝑛 − 𝑘)
Consequently, if we repeat this multiplication over all possible delays, −∞ < 𝑘 < ∞, and sum
all the product sequences, the result will be a sequence equal to the sequence 𝑥(𝑛), that is,
∞
Thus the right-hand side of (3.10) gives the resolution or decomposition of any arbitrary signal
x(n) into a weighted (scaled) sum of shifted unit sample sequences.
Sol: Since the sequence 𝑥(𝑛) is nonzero for the time instants 𝑛 = −1, 0, 2, we need
three impulses at delays 𝑘 = −1, 0, Following we find that
𝑥(𝑛) = 2𝛿(𝑛 + 1) + 4𝛿(𝑛) + 3𝛿(𝑛 − 1)
𝑥(𝑛) = ∑ 𝑥(𝑘)𝛿(𝑛 − 𝑘)
𝑘=−∞
then the response of the system to x(n) is the corresponding sum of weighted outputs, that is
∞
= ∑ 𝑥(𝑘)𝒯[𝛿(𝑛 − 𝑘)]
𝑘=−∞
∞
= ∑ 𝑥(𝑘)ℎ(𝑛, 𝑘)
𝑘=−∞
This expression is a function of both 𝑥(𝑛) and the responses ℎ(𝑛, 𝑘) of the system to the unit
impulses 𝛿(𝑛 − 𝑘) for −∞ < 𝑘 < ∞.
If the response of the LTI system to the unit sample sequence 𝛿(𝑛) is denoted as ℎ(𝑛), that is
ℎ(𝑛) = 𝒯 [𝛿(𝑛)]
The formula in (3.17) that gives the response 𝑦(𝑛) of the LTI system as a function of the input
signal 𝑥(𝑛) and the unit sample (impulse) response ℎ(𝑛) is called a convolution sum.
Note: Now we observe that the relaxed LTI system is completely characterized by a single
function ℎ(𝑛), namely, its response to the unit sample sequence 𝛿(𝑛).
Suppose that we wish to compute the output of the system at some time instant, 𝑛0 . The
response at 𝑛 = 𝑛0 is
∞
𝑦(𝑛0 ) = ∑ 𝑥(𝑘)ℎ(𝑛0 − 𝑘)
𝑘=−∞
To summarize, the process of computing the convolution between x(k) and h(k) involves the
following four steps.
1. Folding. Fold ℎ(𝑘) about 𝑘 = 0 to obtain ℎ(−𝑘).
2. Shifting. Shift ℎ(−𝑘) by 𝑛0 to the right (left) if 𝑛0 is positive (negative), to obtain
ℎ(𝑛0 − 𝑘).
3. Multiplication. Multiply 𝑥(𝑘) by ℎ(𝑛0 − 𝑘) to obtain the product sequence
𝑣𝑛0 (𝑘) ≡ 𝑥(𝑘)ℎ(𝑛0 − 𝑘) .
4. Summation. Sum all the values of the product sequence 𝑣𝑛0 (𝑘) to obtain the value of
the output at time 𝑛 = 𝑛0 .
𝑦(0) = ∑ 𝑥(𝑘)ℎ(−𝑘)
𝑘=−∞
Since the shift 𝑛 = 0, we use ℎ(−𝑘) directly without shifting it. The product sequence
𝑣0 (𝑘) ≡ 𝑥(𝑘)ℎ(−𝑘)
Finally, the sum of all the terms in the product sequence yields
∞
𝑦(0) = ∑ 𝑣0 (𝑘) = 2 + 2 = 4
𝑘=−∞
𝑦(1) = ∑ 𝑥(𝑘)ℎ(1 − 𝑘)
𝑘=−∞
The sequence ℎ(1 − 𝑘) is simply the folded sequence ℎ(−𝑘) shifted to the right by one unit
in time. This sequence is illustrated in Fig. The product sequence
Dept. of ECE, CMRIT
𝑣1 (𝑘) ≡ 𝑥(𝑘)ℎ(1 − 𝑘)
𝑦(1) = ∑ 𝑣1 (𝑘) = 8
𝑘=−∞
In a similar manner, we obtain 𝑦(2) by shifting ℎ(−𝑘) two units to the right, forming the
product sequence
𝑣2 (𝑘) ≡ 𝑥(𝑘)ℎ(2 − 𝑘)
and then summing all the terms in the product sequence obtaining
𝑦(2) = ∑ 𝑣2 (𝑘) = 8
𝑘=−∞
By shifting ℎ(−𝑘) farther to the right, multiplying the corresponding sequence, and summing
over all the values of the resulting product sequences, we obtain
𝑦(3) = 3,
𝑦(4) = −2,
𝑦(−1) = ∑ 𝑥(𝑘)ℎ(−1 − 𝑘)
𝑘=−∞
Now the sequence ℎ(−1 − 𝑘) is simply the folded sequence ℎ(−𝑘) shifted one time unit to
the
Ex: Determine the output 𝑦(𝑛) of a relaxed linear time-invariant system with impulse response
ℎ(𝑛) = 𝑎𝑛 𝑢(𝑛), |𝑎| < 1
when the input is a unit step sequence, that is 𝑥(𝑛) = 𝑢(𝑛)
Sol: In this case both ℎ(𝑛) and 𝑥(𝑛) are infinite-duration sequences.
∞
Geometric Series
If 𝛽 is a complex number, then the following relationships hold
𝑙 𝛽 𝑘 − 𝛽 𝑙+1
, 𝛽≠1
∑ 𝛽𝑛 = { 1 − 𝛽
𝑛=𝑘 𝑙 − 𝑘 + 1, 𝛽=1
𝑀−1 1 − 𝛽𝑀
, 𝛽≠1
∑ 𝛽𝑛 = { 1 − 𝛽
𝑛=0 𝑀, 𝛽=1
∞
1
∑ 𝛽𝑛 = , |𝛽| < 1
1−𝛽
𝑛=0
∞
𝛽𝑘
𝑛
∑𝛽 = , |𝛽| < 1
1−𝛽
𝑛=𝑘
∞
𝛽
∑ 𝑛𝛽 𝑛 = , |𝛽| < 1
(1 − 𝛽)2
𝑛=𝑘
First, we obtain the graph of 𝑥[𝑘] and ℎ[𝑛 − 𝑘], treating 𝑛 as constant and 𝑘 as the independent
variable.
∞
1⁄ , 0 ≤ 𝑛 − 𝑘 ≤ 3
ℎ[𝑛 − 𝑘] = { 4
0, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
𝑛 − 𝑘 ≥ 0 and 𝑛 − 𝑘 ≤ 3
𝑛 ≥ 𝑘 and 𝑛 − 3 ≤ 𝑘
1⁄ , 𝑛 − 3 ≤ 𝑘 ≤ 𝑛
ℎ[𝑛 − 𝑘] = { 4
0, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
i. For 𝑛 < 0,
No common overlap interval between 𝑥[𝑘] and ℎ[𝑛 − 𝑘]
𝑦[𝑛] = ∑ 𝑥[𝑘]ℎ[𝑛 − 𝑘]
𝑘=−∞
𝒚[𝒏] = 𝟎
𝑦[𝑛] = ∑ 𝑥[𝑘]ℎ[𝑛 − 𝑘]
𝑘=−∞
𝑛
= ∑ 𝑥[𝑘]ℎ[𝑛 − 𝑘]
𝑘=0
𝑛
1
=∑
4
𝑘=0
𝑦[𝑛] = ∑ 𝑥[𝑘]ℎ[𝑛 − 𝑘]
𝑘=−∞
𝑛
= ∑ 𝑥[𝑘]ℎ[𝑛 − 𝑘]
𝑘=𝑛−3
𝑛
1
= ∑
4
𝑘=𝑛−3
1
= (𝑛 − (𝑛 − 3) + 1)
4
𝒚[𝒏] = 𝟏, 𝟑<𝒏≤𝟗
𝑦[𝑛] = ∑ 𝑥[𝑘]ℎ[𝑛 − 𝑘]
𝑘=−∞
9
= ∑ 𝑥[𝑘]ℎ[𝑛 − 𝑘]
𝑘=𝑛−3
𝟏𝟑 − 𝒏
𝒚[𝒏] = , 𝟗 ≤ 𝒏 ≤ 𝟏𝟐
𝟗
𝑦[𝑛] = ∑ 𝑥[𝑘]ℎ[𝑛 − 𝑘]
𝑘=−∞
𝒚[𝒏] = 𝟎, 𝒏 > 𝟏𝟐
Tabulation Method:
𝑥[𝑛] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1}
↑
1 1 1 1
ℎ[𝑛] = { , , , }
4 4 4 4
↑
1 1 3 3 1 1
𝑦[𝑛] = { , , , 1, 1, 1, 1, 1, 1, 1, , , }
4 2 4 4 2 4
↑
𝑦[𝑛] = ∑ 𝑥[𝑘]ℎ[𝑛 − 𝑘]
𝑘=−∞
1, 𝑘≥0
𝑥[𝑘] = 𝑢[𝑘] = {
0, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
1, 𝑘 − 3 ≥ 0
ℎ[𝑘] = 𝑢[𝑘 − 3] = {
0, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
1, 𝑘≥3
ℎ[𝑘] = {
0, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
ℎ[𝑛 − 𝑘] = 𝑢[𝑛 − 𝑘 − 3]
↑
Constant
1, 𝑛−𝑘−3≥ 0
ℎ[𝑛 − 𝑘] = {
0, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
1, 𝑘 ≤𝑛−3
ℎ[𝑛 − 𝑘] = {
0, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
𝒚[𝒏] = 𝟎 , 𝒏 < 𝟑
ii. When 𝑛 − 3 ≥ 0
𝑦[𝑛] = ∑ 𝑥[𝑘]ℎ[𝑛 − 𝑘]
𝑘=0
= ∑1
𝑘=0
= (𝑛 − 3) − 0 + 1
𝒚[𝒏] = 𝒏 − 𝟐, 𝒏≥𝟑
Hence
𝟎, 𝒏<𝟑
𝒚[𝒏] = {
(𝒏 − 𝟐), 𝒏 ≥ 𝟑
1 𝑛
(b) 𝑦[𝑛] = (2) 𝑢[𝑛 − 2] ∗ 𝑢[𝑛]
1 𝑛
Sol: Let 𝑥[𝑛] = (2) 𝑢[𝑛 − 2] and ℎ[𝑛] = 𝑢[𝑛]
𝑦[𝑛] = ∑ 𝑥[𝑘]ℎ[𝑛 − 𝑘]
𝑘=−∞
1 𝑘
𝑥[𝑘] = ( ) 𝑢[𝑘 − 2]
2
1 𝑘
= {(2) , 𝑘 − 2 ≥ 0
0, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
1 𝑘
𝑥[𝑘] = { 2) , 𝑘 ≥ 2
(
0, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
i. When 𝑛 < 2
𝒚[𝒏] = 𝟎 , 𝒏<𝟐
𝑦[𝑛] = ∑ 𝑥[𝑘]ℎ[𝑛 − 𝑘]
𝑘=2
𝑛
1 𝑘
= ∑( )
2
𝑘=2
1 2 1 𝑛+1
(2) − (2)
=
1
1 − (2)
1 1 𝑛−2
− (
=4 2)
1
2
1 1 𝑛−1
= −( )
2 2
Hence
𝟎, 𝒏<𝟐
𝒏−𝟏
𝒚[𝒏] = {𝟏 𝟏
−( ) , 𝒏≥𝟐
𝟐 𝟐
𝑦(𝑛0 ) = ∑ ℎ(𝑘)𝑥(𝑛0 − 𝑘)
𝑘=−∞
Suppose that we subdivide the sum into two sets of terms, one set involving present and past
values of the input [i.e., 𝑥(𝑛) 𝑓𝑜𝑟 𝑛 ≤ 𝑛0 ] and one set involving future values of the input
[i.e., 𝑥(𝑛), 𝑛 > 𝑛0 ]. Thus we obtain
∞ −∞
We observe 𝑥(𝑛0 ), 𝑥(𝑛0 − 1), 𝑥(𝑛0 − 2) are the present and past values of the input signal.
𝑥(𝑛0 − 1), 𝑥(𝑛0 − 2) are the future values of the input signal.
If the output at time 𝑛 = 𝑛0 is to depend only on the present and past inputs, then, clearly, the
impulse response of the system must satisfy the condition
𝒉(𝒏) = 𝟎 , 𝒏 < 𝟎
Hence an LTI system is causal if and only if its impulse response is zero for negative values
of 𝒏.
Ex: For given impulse responses, determine whether the corresponding systems is causal.
1 𝑛
i. ℎ(𝑛) = (2) 𝑢[𝑛]
1 𝑛
Sol: ℎ[𝑛] = (2) 𝑢[𝑛]
1 𝑛
ℎ(𝑛) = { 2) ,
( 𝑛≥0
0, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒