Introduction to Signals and Systems
Introduction to Signals and Systems
Professor
ECE Dept, SCE Bangalore. ravishankarmn@[Link]
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. It may also be a hardwired digital processor
configured to perform a specified set of operations on the input signal. The desired processed analog output
signal can be obtained using D/A converter.
Advantages of Digital Signal Processing
(i) A digital programmable system allows flexibility in reconfiguring the digital signal processing operations
simply by changing the program. However reconfiguration of an analog system usually implies a redesign of
the hardware followed by testing and verification to see that it operates properly.
(ii) Accuracy considerations also play an important role in determining the form of the signal processor.
Tolerances in analog circuit components make it extremely difficult for the system designer to control the
This is a supporting material for the SCE students. Any use for commercial purpose has to be permitted by the author ©Ravi Shankara.M.N. Page 1
Ravi [Link]
ECE Dept, SCE Bangalore. ravishankarmn@[Link]
accuracy of an analog signal processing system. On the other hand, a digital system provides much better
control of accuracy requirements.
(iii) Digital signals are easily stored on magnetic media (tape or disk) without deterioration or loss of signal
fidelity. As a consequence, the signals become transportable and can be processed off-line in a remote
laboratory.
(iv)The digital signal processing method also allows for the implementation of more sophisticated signal
processing algorithms. However it is usually very difficult to perform precise mathematical operations on
signals in analog form but these same operations can be routinely implemented on a digital computer using
software.
(v) Generally digital implementation of the signal processing system is cheaper than its analog counterpart. The
lower cost may be due to the fact that the digital hardware is cheaper, or perhaps it is a result of the flexibility
for modifications provided by the digital implementation.
Applications
The application of digital signal processing techniques in speech processing and signal transmission on
telephone channels, in image processing and transmission, in seismology and geophysics, in oil exploration, in
the detection of nuclear explosions, in the processing of signals received from outer space, and in a vast variety
of other applications.
Classification of Signals
Multi-Channel Signal and Multi-Dimensional Signal
Multi-Channel Signal is generated by multiple sources or multiple sensors and is the vector sum of signals from
all sources. Ex- ECG signal
x1 t
Mathematically x t = x2 t
x3 (t)
Multi-Dimensional signal
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.
Ex- A black and white picture is a function of horizontal and vertical dimensions and its intensity is a function
of time. Mathematically written as P(x,y,t)
Deterministic and Random Signals
A Deterministic signal exhibits no uncertainty of values at any given instant of time and its value can be
accurately predicted by a mathematical equation. Example x(t) = 10 sin200t
A Random signal is characterized by uncertainty before its actual occurrence. The signal takes different values
at each instant of time for which the signal value is defined.
Ex- The Noise signal, The EMI signal, The seismic signal etc
This is a supporting material for the SCE students. Any use for commercial purpose has to be permitted by the author ©Ravi Shankara.M.N. Page 2
Ravi [Link]
ECE Dept, SCE Bangalore. ravishankarmn@[Link]
Note – The mathematical analysis of Random signal uses theory of probability and Stochastic processes.
Continuous Time (CT) and Discrete Time (DT) signals
A signal x(t) is said to be continuous if it is defined for all values of time t. A continuous time signal is an
analog signal. Ex - x(t) = 10 sin1000t
CT signals arise naturally when a physical phenomena (heart beat, acoustic pressure) is converted to an
electrical quantity using an appropriate transducer. Ex – Ac power, ECG waveform etc
Discrete Time (DT) signal x(n) is defined at discrete instants of time index n. DT signals are obtained by
sampling CT signals at regular intervals. Ex- Share Market Index, temperature variation recorded hourly basis.
x(n) = [ 1, 0, -2, 6, 1]
Sampling the CT signals at time t = nT yields a sample with a value x(nT)
x(n) = x(nT) = x(t)|t = nT where n = +0, +1, +2, …… and T is known as the sampling period / interval.
Corollary – If x1(n) and x2(n) are two periodic signals with periods N1 and N2 respectively, the resultant sum
signal x(n) = x1(n) + x2(n) is periodic if and only if their periods can be expressed as a rational number and the
fundamental period of the resulting signal N = LCM(N1, N2)
x1(n) = x1(n +mN1) and x2(n) = x2(n +kN2)
This is a supporting material for the SCE students. Any use for commercial purpose has to be permitted by the author ©Ravi Shankara.M.N. Page 3
Ravi [Link]
ECE Dept, SCE Bangalore. ravishankarmn@[Link]
N1 k
= = rational number and N = LCM of N1 and N2
N2 m
1. Determine which of the following sinusoids are periodic and compute their fundamental period.
30𝑛 62𝑛
(a) cos 0.01πn (b) cos 𝜋 105 (c) cos(3n) (d) sin3n (e) sin 𝜋 10
2𝜋𝑘 2𝜋𝑘
Solution (a) x(n) = cos 0.01πn = cos (N) 𝑁 = = 0.01π = [200k]k=1 = 200 samples
Since N is an integer, the given signal is periodic.
2𝜋𝑘 2𝜋𝑘
(c) x(n) = cos(3n) = cos (N) 𝑁 = = 3 = [2]k=1 = 2 samples
Since N is an integer, the given signal is periodic
2𝜋𝑘 2𝜋𝑘
(d) x(n) = sin(3n) = cos (N) 𝑁 = = = Not an integer
3 𝑘=1
Since N is an not an integer, the given signal is not periodic in nature
Determine whether or not each of the following signals is periodic. In case a signal is periodic, specify its
fundamental period.
(a) x(n) = 3 cos(5n + π/6)
𝜋 π π
Solution – x(n) = cos 5𝑛 + 6 = cos
(5n) cos − sin
(5n) sin = x1(n) + x2(n)
6 6
2𝜋𝑘 2𝜋𝑘
x1(n) = cos(5n) = cos (N) 𝑁 = = = Not an integer
5 𝑘=1
2𝜋𝑘 2𝜋𝑘
x2(n) = sin(5n) = sin (N) 𝑁 = = = Not an integer
5 𝑘=1
The given signal is not periodic
𝐧
n 𝑛 n n
(b) 𝐱 𝐧 = 𝟐𝐞𝐣 −𝛑
𝟔 = 2[cos − π + jsin −𝜋 = −2 cos + 𝑗sin = x1 n + x2 (n)
6 6 6 6
n 2𝜋𝑘 2𝜋𝑘
x1(n) = cos = cos (N) 𝑁 = = = Not an integer
6 1/6 𝑘=1
2𝜋𝑘 2𝜋𝑘
x2(n) = sin(n/6) = sin (N) 𝑁 = = = Not an integer
1/6 𝑘=1
The given signal is not periodic
𝐧 𝛑𝐧
𝐜 𝐱 𝐧 = 𝐜𝐨𝐬 𝐜𝐨𝐬
𝟖 𝟖
n πn
cos is non-periodic; cos is periodic; Their product is non-periodic.
8 8
𝛑𝐧 𝛑𝐧 𝛑𝐧 𝛑
(d) 𝒙 𝒏 = 𝐜𝐨𝐬 − 𝐬𝐢𝐧 + 𝟑𝐜𝐨𝐬 +𝟑
𝟐 𝟖 𝟒
πn πn πn π
cos is periodic with period 4; sin is periodic with period 16 and 3cos + 3 is also periodic with
2 8 4
period 8 and the given signal is periodic with period N = LCM(4, 16, 8) = 16 samples
This is a supporting material for the SCE students. Any use for commercial purpose has to be permitted by the author ©Ravi Shankara.M.N. Page 4
Ravi [Link]
ECE Dept, SCE Bangalore. ravishankarmn@[Link]
Decomposition of DT signal
A DT signal x(n) can be decomposed into sum of two signals x e(n) and xo(n) where xe(n) is the even part of
x(n) and xo(n) is the odd component of x(n).
x(n) = xe(n) + xo(n) ------(a) and x(–n) = xe(–n) + xo(–n) = xe(n) – xo(n) ------ (b)
x n +x −n x n − x(−n)
From (a) and (b) xe n = and xo (n) =
2 2
Energy Signal - A DT signal x(n) is called an energy signal if it satisfies the condition that the total energy of
the signal is finite. (0 E ) and is expressed mathematically as
∞
All non periodic signals are energy signals
E= |x n |2 (Joules) and the power of an energy signal is zero.
n= −∞
This is a supporting material for the SCE students. Any use for commercial purpose has to be permitted by the author ©Ravi Shankara.M.N. Page 5
Ravi [Link]
ECE Dept, SCE Bangalore. ravishankarmn@[Link]
Power Signal - A DT signal x(n) is called a Power signal if it satisfies the condition that the average power of
the signal is finite. (0 P ) and is expressed mathematically as
N All periodic signals are power signals and
1 the energy of a power signal is infinite.
P = lim |x n |2 (Watts)
N →∞ 2N + 1
n= −N
For a periodic signal with fundamental period N, the Average Power is given by
N−1
1
P= |x n |2 (Watts)
N
n= 0
1) Show that the product of two even signals or two odd signals is an even signal and the product of even
and odd signal is an odd signal.
Solution - Let the two signals be x1(n) and x2(n) such that x(n) = x1(n) . x2(n)
(a) When both signals are even (b) When both the signals are odd
x( –n) = x1( –n) . x2( –n) = x1(n) . x2(n) = x(n) x( –n) = x1( –n) . x2( –n) = [–x1(n)].[–x2(n)] = x(n)
(c) Let x1(n) be even signal and x2(n) be an odd signal
x( –n) = x1( –n) . x2( –n) = [x1(n)].[–x2(n)] = –x(n) ---(odd signal)
k k
This is a supporting material for the SCE students. Any use for commercial purpose has to be permitted by the author ©Ravi Shankara.M.N. Page 6
Ravi [Link]
ECE Dept, SCE Bangalore. ravishankarmn@[Link]
3) Show that the energy (power) of a real-valued energy (power) signal is equal to the sum of the energies
(powers) of its even and odd components.
Solution- Any arbitrary signal x(n) can be expressed as x(n) = xe(n) + xo(n)
∞ ∞ ∞ ∞ ∞
The third term is the product of even and odd signal which odd and summation of odd signal is zero. Hence
P = Pe + PO or E = Ee + EO
4) Classify the following signals according to whether they are (1) one- or multi-dimensional; (2) Single
or Multichannel, (3) Continuous time or Discrete time, and (4) Analog or Digital (in amplitude). Give a
brief explanation.
(a) Closing prices of utility stocks on the New One dimensional Multi Discrete Digital
York Stock Exchange Channel
(b) A color movie. Multi- Single Continuous Analog
dimensional Channel
(c) Position of the steering wheel of a car in One dimensional Single Continuous Analog
motion relative to car’s reference frame. Channel
(d) Position of the steering wheel of a car in One dimensional Single Continuous Analog
motion relative to ground reference frame. Channel
(e) Weight and height measurements of a child One dimensional Multi Discrete Digital
taken every month Channel
Check whether the following signals are Energy signals or Power signals and also find the associated
energy or power of the signal.
𝐜𝐨𝐬 𝐧 ; −𝟒 ≤ 𝐧 ≤ 𝟒
(a) x(n) =
𝟎; 𝐎𝐭𝐡𝐞𝐫𝐰𝐢𝐬𝐞
Soln - The given signal is defined for a finite period and not periodic. Hence it is an Energy signal.
∞ 4 4 4
E= 2
|x n | = |cos n | =2 n 2
[ −1 ] = −1 2n
= 4 − −4 + 1 = 9 Joules
n= −∞ n= −4 n= −4 n= −4
𝐜𝐨𝐬 𝐧 ; 𝐧 𝟎
(b) x(n) =𝒙 𝒏 =
𝟎; 𝐎𝐭𝐡𝐞𝐫𝐰𝐢𝐬𝐞
Soln - The given signal is defined for an infinite period for all n 0 and is periodic. Hence it is a Power signal.
Cos(n) = (– 1)n = [ 1, –1, 1, –1, 1, –1, ……..] The signal repeats for every 2 samples hence N = 2
For periodic signals with period N, the power associated with the signal is given by
N−1 2−1 1
1 1 1
P= 2
|x n | = |cos n | =2
−1 2n
= 1 + 1 = 1 Watt
N 2 2
n= 0 n= 0 n= 0
𝐬𝐢𝐧 𝐧 ; −𝟒 ≤ 𝐧 ≤ 𝟒
(c) x(n) =
𝟎; 𝐎𝐭𝐡𝐞𝐫𝐰𝐢𝐬𝐞
Soln- By inspection the signal has all samples zero (sin() = for all n) and is defined for a finite period and not
periodic. Also its energy is also zero. Hence the given signal is not a power or energy signal [i,e zero signal]
(d) Determine the power and energy of the unit step sequence.
This is a supporting material for the SCE students. Any use for commercial purpose has to be permitted by the author ©Ravi Shankara.M.N. Page 7
Ravi [Link]
ECE Dept, SCE Bangalore. ravishankarmn@[Link]
x(n) = u(n)
The average power associated with the signal is given by
N N
1 2
1 1 1 1 + 1/N 1
P = lim |x n | = lim |1|2 = lim N+1 = = W
N →∞ 2N + 1 N →∞ 2N + 1 N →∞ 2N + 1 2 1 + 1/2N 2
n= −N n= 0
ej 2nπ
= cos 2nπ + 𝑗𝑠𝑖𝑛 2nπ = 1+0 =1
The average power associated with the signal is given by
N N
1 2
1 1
P = lim |x n | = lim |2|2 |1|2 = lim 4 N − N + 1 = 4W
N →∞ 2N + 1 N →∞ 2N + 1 N →∞ 2N + 1
n= −N n= −N
𝒏𝝅 𝝅
𝒋 +
(i) 𝒙 𝒏 = 𝒆 𝟐 𝟔
j
nπ π
+ nπ π nπ π
x n = e 2 6 = cos + + j sin + = cos n + + j sin n +
2 6 2 6
The given signal is periodic with period N = 2(2) = 4 samples. Using the concept of RMS value of the signal, the average
1 2 1 2
power is given by Pav = P = 2
+ 2
= 1 Watt
This is a supporting material for the SCE students. Any use for commercial purpose has to be permitted by the author ©Ravi Shankara.M.N. Page 8
Ravi [Link]
ECE Dept, SCE Bangalore. ravishankarmn@[Link]
Exponential signal x(n) = an for all n ……… (with a real, x(n) is also real)
.
This is a supporting material for the SCE students. Any use for commercial purpose has to be permitted by the author ©Ravi Shankara.M.N. Page 9
Ravi [Link]
ECE Dept, SCE Bangalore. ravishankarmn@[Link]
Determine the odd and even components of (a) x(n) = [ –2, 1, 2, –1, 3]
x(0) = 2; x(1) = –1; x(–1) = 1; x(2) = 3 and x(–2) = –2
x 1 + x(−1) 1 − 1 x 2 + x(−2) 3 − 2
xe 0 = 2; xe 1 = = = 0; xe 2 = = = 0.5
2 2 2 2
x 1 − x(−1) −1 − 1 x 2 − x(−2) 3 + 2
x0 0 = 0; xo 1 = = = −1; x0 2 = = = 2.5
2 2 2 2
xe(n) = [ 0.5, 0, 2, 0, 0.5] and x(n) = [ –2.5, –1, 0, –1, 2.5]
(b) x(n) = n2(0.5)n – 2
x(– n) = (– n) 2(0.5) –n – 2
2 n−2 2 −n−2
x n + x −n n 0.5 + −n 0.5
xe n = = = n 2 [ 0.5 n−3
+ 0.5 −n−3
]
2 2
x n − x(−n) n 2 (0.5)n−2 − −n 2 (0.5)−n−2
x0 n = = = n 2 [ 0.5 n−3
− 0.5 −n−3
]
2 2
(c) x(n) = n u(n)
x(n) = n u(n) and x(– n) = – n u(– n)
αn
; n>0
x n + x −n αn u n + α−n u −n 2
xe n = = = 1; n = 0
2 2 α−n
; n<0
2
αn
; n>0
2
x n +x −n α n u n −α −n u −n αn
x0 n = = = 0; n = 0 = sgn(n)
2 2 2
α −n
; n<0
2
This is a supporting material for the SCE students. Any use for commercial purpose has to be permitted by the author ©Ravi Shankara.M.N. Page 10
Ravi [Link]
ECE Dept, SCE Bangalore. ravishankarmn@[Link]
This is a supporting material for the SCE students. Any use for commercial purpose has to be permitted by the author ©Ravi Shankara.M.N. Page 11
Ravi [Link]
ECE Dept, SCE Bangalore. ravishankarmn@[Link]
𝐧
𝟏 + 𝟑 ; −𝟑 ≤ 𝐧 ≤ −𝟏
(1) A discrete-time signal x(n) is defined as 𝐱 𝐧 = 𝟏; 𝟎 ≤ 𝐧 ≤ 𝟑
𝟎; 𝐄𝐥𝐬𝐞 𝐰𝐡𝐞𝐫𝐞
(a) Determine its values and sketch the signal x(n). Sketch the signals that result if we: (b) First fold x(n)
and then delay the resulting signal by four samples. (c) First delay x(n) by four samples and then fold the
resulting signal. (d) Can you express the signal x(n) in terms of signals δ(n) and u(n)?
This is a supporting material for the SCE students. Any use for commercial purpose has to be permitted by the author ©Ravi Shankara.M.N. Page 12
Ravi [Link]
ECE Dept, SCE Bangalore. ravishankarmn@[Link]
(b) The resulting signal is y(n) = x( – n +4) = [0, 1, 1, 1, 1, (2/3), (1/3), 0, 0…. ]
(c) The resulting signal is y(n) = x( – n – 4) = [….0, 1, 1, 1, 1, (2/3), (1/3), 0, 0 ]
(d) x(n) = (1/3) (n+2) + (2/3) (n+1) + (n) + (n – 1) + (n – 2) + (n – 3)
x(n) = (1/3) (n+2) + (2/3) (n+1) + u(n) – u(n – 4)
First fold the signal x(n) to get x(–n) and shift x(–n) 4 OR Shift x(n) 4 samples to the right first and fold the
samples to the Left. shifted signal to get x(4– n)
x(–n) = [0, 0, 0.5, 0.5, 1, 1, 1, 1, 0, 0] x(n + 4) = [0, 0, 1, 1, 1, 1, 0.5, 0.5, 0, 0]
x(4 – n) = [0, 0, 0.5, 0.5, 1, 1, 1, 1, 0, 0] x(4– n) = [0, 0, 0.5, 0.5, 1, 1, 1, 1, 0, 0]
x(n) u(2 – n)
First shift u(n) 2 samples to the right and fold the resulting signal to get u(2 – n)
u(n) = [1, 1, 1, 1, 1, ……] u(n + 2) = [1, 1, 1, 1, 1, ……] u(2 – n) = [. . . 1, 1, 1, 1, 1, 1, 1, 1, 1]
Multiply x(n) and u(2 – n) sample by sample to get the product signal
x(n) u(2 – n) = [0, 0, 1, 1, 1, 1, 0.5, 0.5, 0, 0] [. . . 1, 1, 1, 1, 1, 1, 1, 1, 1] = [0, 0, 1, 1, 1, 1, 0.5, 0.5, 0, 0]
x(n – 1)(n -3)
x(n – 1) = [0, 0, 1, 1, 1, 1, 0.5, 0.5, 0, 0] (n) =[0, 0, 0, 1, 0, 0, 0, 0, 0, 0] (n –3) =[0, 0, 0, 1, 0, 0, 0, 0, 0, 0]
x(n – 1)(n -3) = [0, 0, 1, 1, 1, 1, 0.5, 0.5, 0, 0] [ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0] = [ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]
x(n2) =[x(–3)2, x(–2)2, x(–1)2, x(0)2, x(1)2, x(2)2, x(3)2, x(4)2, x(5)2, x(6)2]
x(n2) = [x(9), x(4), x(1), x(0), x(1), x(4), x(9), x(16), x(25), x(36)] = [0, 0.5, 1, 1, 1, 0.5, 0, 0, 0, 0 ]
x(n) = [0, 0, 0, 0, 0, 1, 1, 1, 1, 0.5, 0.5, 0, 0] x(–n) = [0, 0, 0.5, 0.5, 1, 1, 1, 1, 0, 0]
x(n) 0 0 0 0 0 1 1 1 1 0.5 0.5 0 0
x(–n) 0 0 0.5 0.5 1 1 1 1 0 0 0 0 0
This is a supporting material for the SCE students. Any use for commercial purpose has to be permitted by the author ©Ravi Shankara.M.N. Page 13
Ravi [Link]
ECE Dept, SCE Bangalore. ravishankarmn@[Link]
This is a supporting material for the SCE students. Any use for commercial purpose has to be permitted by the author ©Ravi Shankara.M.N. Page 14
Ravi [Link]
ECE Dept, SCE Bangalore. ravishankarmn@[Link]
This is a supporting material for the SCE students. Any use for commercial purpose has to be permitted by the author ©Ravi Shankara.M.N. Page 16
Ravi [Link]
ECE Dept, SCE Bangalore. ravishankarmn@[Link]
In an Unstable system, for some bounded input sequence x(n), the output is unbounded (infinite)
Ex- Check whether the system y(n) = y2(n – 1) + x(n) is stable or not
Let the input be bounded as x(n) = C(n) where C is a constant and y(–1) = 0
y(0) = y2(– 1) + x(0) = C
y(1) = y2(0) + x(1) = C2 and y(n) = C2n
The output is unbounded for |C| >1 and the system is unstable.
-------------------------------------------------------------------------------------------------------------------------------------
Examine the following systems with respect to their properties
(a) y(n) = cos[x(n)]
Memory/memoryless
y(0) = cos[x(0)] The given system is Static system as output depends on present value of input.
Linearity Property
y1(n) = cos[x1(n)] and y2(n) = cos[x2(n)] so that [y1(n) + y2(n)]= cos[x1(n)] + cos[x2(n)] -----(a)
Let x3(n) = [x1(n) + x2(n)] so that y3(n) = cos[x3(n)] = cos [x1(n)+ x2(n)] --------------(b)
Equation (a) Equation (b) (Since cos(A+B) cosA + cosB), the system is non-linear.
Time Invariance
Delay the input by k units y(n,k) = cos[x(n – k)] ------(a)
Delay the output by k units y(n – k) = cos [x(n – k) ----(b)
y(n,k) = y(n – k) , the given system is time invariant
Causality
y(0) = cos[x(0)] The given system is a causal system as output depends on present value of input.
Stability – For bounded input, the output is bounded, hence the system is BIBO stable. [Note : –1 cos(x) 1]
Conclusion – The given system is a Non – linear, Time invariant, stable, causal and static system.
(b) y(n) = |x(n)|
Memory/memoryless
y(0) = [x(0)] The given system is Static system as output depends on present value of input.
Linearity Property
Let x1(n) = 1 and x2(n) = – 3 y1(n) = |x1(n)|= 1 and y2(n) = |x2(n)| = |– 3| =3
This is a supporting material for the SCE students. Any use for commercial purpose has to be permitted by the author ©Ravi Shankara.M.N. Page 17
Ravi [Link]
ECE Dept, SCE Bangalore. ravishankarmn@[Link]
This is a supporting material for the SCE students. Any use for commercial purpose has to be permitted by the author ©Ravi Shankara.M.N. Page 18
Ravi [Link]
ECE Dept, SCE Bangalore. ravishankarmn@[Link]
This is a supporting material for the SCE students. Any use for commercial purpose has to be permitted by the author ©Ravi Shankara.M.N. Page 19
Ravi [Link]
ECE Dept, SCE Bangalore. ravishankarmn@[Link]
Linearity Property
y1(n) = x1(n) + n x1(n+1) and y2(n) = x2(n) + n x2(n+1)
[y1(n) + y2(n)] = [x1(n) + n x1(n+1) + x2(n) + n x2(n+1)] -----(a)
Let x3(n) = [x1(n) + x2(n)] so that y3(n) = x3(n) = [x1(n) + n x1(n+1) + x2(n) + n x2(n+1)] --------------(b)
Equation (a) = Equation (b), the system is linear.
Time Invariance
Delay the input by k units y(n,k) = x1(n – k ) + n x1(n – k +1) ------(a)
Delay the output by k units y(n – k) = x1(n – k ) + (n – k) x1(n – k +1) ----(b)
y(n,k) y(n – k) , the given system is time variant
Causality
y(1) = x(1 ) + x(2) The given system is a non-causal system as output depends on future value of input.
Stability –
For bounded input, the output is not bounded due to the presence of term n, hence the system is not stable
Conclusion – The given system is a non -linear, Time variant, unstable, non-causal and Dynamic system
(h) y(n) = Round[x(n)], where Round[x(n)] denotes the integer part of x(n) obtained by rounding.
Linearity
Let x1(n) = x2(n) = 0.4 so that y1(n) = Round[x1(n)] = Round[0.4] = 0 = y2(n)
So that y1(n) + y2(n) = 2 ------(a)
Let x3(n) = x1(n) + x2(n) = [0.4 + 0.4] = 0.8 and y3(n) = Round[x3(n)] = Round[1.2] = 1 ---------(b)
Eqn (a) eqn (b) the given system is non-linear.
Conclusion – The given system is a non -linear, Time invariant, stable, causal and Static system.
(i) y(n) = log[x(n)]
Linearity
y1(n) = log[x1(n)] and y2(n) = log[x2(n)] So that y1(n) + y2(n) = log[x1(n)] + log[x2(n)] ------(a)
Let x3(n) = [x1(n) + x2(n)] and y3(n) = log[x3(n)] = log[x1(n) + x2(n] -----(b)
Eqn (a) eqn (b) the given system is non-linear.
Stability – Let x(0) = 0; then y(0) = log(0) = ; hence the system is unstable
Conclusion – The given system is a non -linear, Time invariant, unstable, causal and Static system.
∞
y n =x n δ n − 2k = x n δ n + x n δ n ∓ 2 + x n δ n ∓ 4 + … ..
k=−∞
Stability – let x(n) =u(n), the output becomes
n+1
0; n < −1
y n = u k = since y(n) → ∞ as n → ∞, the system is unstable.
n + 2; n ≥ −1
k=−∞
This is a supporting material for the SCE students. Any use for commercial purpose has to be permitted by the author ©Ravi Shankara.M.N. Page 20
Ravi [Link]
ECE Dept, SCE Bangalore. ravishankarmn@[Link]
Conclusion - The given system is Dynamic, linear, time invariant, non-causal and unstable in nature
The following basic building blocks are interconnected to form complete discrete time system.
Basic Building Blocks
Adder - An Adder adds two signal Constant Multiplier Signal Multiplier: It multiples two
sequences x1(n) and x2(n) to form another It represents applying a scale signal sequences x1(n) and x2(n) to
(the sum) sequence y(n) and the addition factor on the input x(n) and this form another (the sum) sequence y(n)
operation is memoryless operation is memoryless. and the operation is memoryless.
Draw the system equation for the block diagram shown below
This is a supporting material for the SCE students. Any use for commercial purpose has to be permitted by the author ©Ravi Shankara.M.N. Page 21
Ravi [Link]
ECE Dept, SCE Bangalore. ravishankarmn@[Link]
x(n) = x k δ n−k
k=−∞
Let y(n) be the output response of the system with H[ . ] being the system operator and x(n) being the input.
∞ ∞ ∞
where H[δ n − k ] is the response of the system to a time shifted impulse input (n–k) denoted by h(n – k).
Convolution sum involves – (a) Folding (b) Time shifting (c) Multiplication and (d) Addition operations.
Properties of Convolution
Commutative Property - For an LTI system with impulse response h(n) and input x(n), Commutative
property can be defined as x(n) ∗ h(n) = h(n) ∗ x(n)
∞
This is a supporting material for the SCE students. Any use for commercial purpose has to be permitted by the author ©Ravi Shankara.M.N. Page 22
Ravi [Link]
ECE Dept, SCE Bangalore. ravishankarmn@[Link]
Associative Property
Statement - x(n) [h1(n) h2(n)] = [x(n) h1(n)] h2(n)
∞
LHS = x k h1 r − k h2 n − r = x k h1 r − k h2 n − r = z r h2 n − r
k=−∞ l=−∞ k=−∞ r=−∞ r=−∞
∞ ∞ ∞
LHS = x k h1 r − k h2 n − r = z r h2 n − r = z n ∗ h2 n
k=−∞ r=−∞ r=−∞
Distributive Property
Statement x(n) [h1(n) + h2(n)] = [x(n) h1(n)] + [x(n) h2(n)]
Proof - let h(n) = [h1(n) + h2(n)] and h(n – k) = [h1(n – k ) + h2(n – k )]
LHS = x(n) [h1(n) + h2(n)] = x(n) h(n)
∞ ∞
Convolution of any sequence with unit sample sequence results in the same signal
This is a supporting material for the SCE students. Any use for commercial purpose has to be permitted by the author ©Ravi Shankara.M.N. Page 23
Ravi [Link]
ECE Dept, SCE Bangalore. ravishankarmn@[Link]
Find the Convolution between the sequences x(n) = [1, 2, 3] h(n) = [2, 3, 5].
Solution
(1) Using Impulse functions
x(n) = x(n) = [1, 2, 3] = (n+1) + 2(n) + 3(n–1) and h(n) = [2, 3, 5] = 2(n+1) + 3(n) + 5(n–1)
y(n) = x(n) h(n) = [(n+1) + 2(n) + 3(n–1)] [2(n+1) + 3(n) + 5(n–1)]
y(n) = 2 (n+2) + 4 (n+1) + 6 (n) + 3 (n+1) + 6 (n) + 9 (n–1) + 5 (n) + 10 (n–1) + 15(n–2)
y(n) = [ 2, 7, 17, 19, 15]
(2) Using Impulse Response
x(n) = x(n) = [1, 2, 3] = (n+1) + 2(n) + 3(n–1)
h(n) = [2, 3, 5] = 2(n+1) + 3(n) + 5(n–1) ; h(-1) =2, h(0) = 3 and h(1) =5
y(n) = x(n) h(n) = [(n+1) + 2(n) + 3(n–1)] h(n) = h(n+1) +2 h(n) + 3 h(n–1)
y( –2 ) = h(–1) +2 h(–2) + 3 h( –3) = 2 + 0 + 0 = 2 y( –1 ) = h(0) +2 h(–1) + 3 h( –2) = 3 + 4 + 0 = 7
y( 0 ) = h(1) +2 h(0) + 3 h( –1) = 5 + 2(3) + 3(2) = 17 y( 1 ) = h(2) +2 h(1) + 3 h(0) = 0 + 2(5) + 3(3) = 19
y(2) = h(3) +2 h(2) + 3 h(1) = 0+3(2)+3(3) =9 y(n) = [2, 7, 17, 19, 15]
This is a supporting material for the SCE students. Any use for commercial purpose has to be permitted by the author ©Ravi Shankara.M.N. Page 24
Ravi [Link]
ECE Dept, SCE Bangalore. ravishankarmn@[Link]
Given m =3; n = 3. Number of output samples N = m + n –1 = 3+3–1= 5 and negative index = 1+1=2
K –3 –3 –1 0 1 2 3 Convolution output
h(k) 2 3 5
x(k) 1 2 3
n=0; h(–k) 5 3 2 y(0) = 5(1) + 3(2) + 2(3) = 17
n= –1; h(–1–k) 5 3 2 y(–1) = 5(0) + 3(1) + 2(2) + 0(3) = 7
n= –2; h(–2–k) 5 3 2 y(–2) = 5(0) + 3(0) + 2(1) + 0(2) + 0(3) = 2
n= 1; h(1–k) 5 3 2 y(1) = 0(1) + 5(2) + 3(3) + 2(0) = 19
n= 2; h(2–k) 5 3 2 y(2) = 0(1) + 0(2) + 5(3) + 3(0) + 2(0) = 15
y(n) = [2, 7, 17, 19, 15]
∞ ∞ k n−k n n k
1 1 1 β
y n =x n h n = x k h n−k = u k u n−k = − −(A)
α β β α
k=−∞ k=−∞ k=0
n+1
n β
1 n
β k
1 n 1− α n+1
− β n+1
α
y n = 1 1 = = u(n) − − − − − (α ≠ β)
β α β β α−β
k=0 1− α
n n n
1 k
1
y n = 1 = n + 1 u(n)
β β
k=0
𝟏 𝐧 𝟏 𝐧
(ii) x(n) = 𝟐
𝐮(𝐧) and h(n) = 𝟒
𝐮(𝐧)
∞ ∞ k n−k
1 1
i y n =x n h n = x k h n−k = u k u n−k
2 4
k=−∞ k=−∞
This is a supporting material for the SCE students. Any use for commercial purpose has to be permitted by the author ©Ravi Shankara.M.N. Page 26
Ravi [Link]
ECE Dept, SCE Bangalore. ravishankarmn@[Link]
n n k n n 2n
1 4 1 k
1 1 − 2n+1
y n = 1 1 = 2 2 =
4 2 2 2 1−2
k=0 k=0
2n n n
1 1 1
y n = 2n+1 − 1 = 2 −2n
2n+1 − 1 = 2−n+1 − 2 −2n
=2 −
2 2 4
𝒊𝒗 𝐱 𝐧 = 𝐮 𝐧 ; 𝐡 𝐧 = 𝐮 𝐧 + 𝟑
For ( n < 3), no convolution and hence y(n) = 0 and for n 3, convolution starts at k = 0 and ends at k = (n – 3)
∞ ∞ n−3
(v) 𝐱 𝐧 = 𝐮 𝐧 + 𝟏 ; 𝐡 𝐧 = 𝐮 𝐧 − 𝟐
For ( n < 1), no convolution and hence y(n) = 0 and
for n 1, convolution limits are k = – 1 k (n – 2)
∞ ∞ n−2
This is a supporting material for the SCE students. Any use for commercial purpose has to be permitted by the author ©Ravi Shankara.M.N. Page 27
Ravi [Link]
ECE Dept, SCE Bangalore. ravishankarmn@[Link]
(vi) 𝐱 𝐧 = 𝐧 + 𝟐 ; 𝟎 𝐧 𝟑 𝐚𝐧𝐝 𝐡 𝐧 = 𝜶𝒏 𝐮 𝐧
x(n) = [2, 3, 4, 5 ] = 2(n) + 3(n–1) + 4(n–2) + 5(n–3)
y(n) = x(n) * h(n) = [2(n) + 3(n–1) + 4(n–2) + 5(n–3)] * h(n) = [2h(n) + 3h(n–1) + 4h(n–2) + 5h(n–3)]
y(n) = 2𝛼 𝑛 u n + 3𝛼 𝑛−1 u n − 1 + 4𝛼 𝑛−2 u n − 2 + 5𝛼 𝑛−3 u n − 3
3 4 5
𝑦 𝑛 = 𝛼 𝑛 [2u n + u n−1 + 2 u n−2 + 3 u n−3
𝑎 𝑎 𝑎
𝒏
(vii) 𝒙 𝒏 = ; 𝟎 ≤𝒏≤𝟔
𝟑
𝒂𝒏𝒅 𝒉 𝒏 = 𝟏 ; −𝟐 ≤ 𝒏 ≤ 𝟐
𝑥 𝑛 = [0, (1/3), (2/3), 1, (4/3), (5/3), 2]
and h(n) = [ 1, 1, 1, 1, 1 ]
m = 7, n =5 N = m+n – 1 = 11
Negative index = 0 – 2 = – 2
y(n) = [0, (1/3), 1, (10/3), 5, (20/3), 6, 5, (11/3), 2 ]
𝟏; 𝟎 ≤𝐧≤𝟒 𝛂𝐧 ; 𝟎 ≤ 𝐧 ≤ 𝟔
3) Convolve 𝐱 𝐧 = 𝐚𝐧𝐝 𝐡 𝐧 =
𝟎; 𝐎𝐭𝐡𝐞𝐫𝐰𝐢𝐬𝐞 𝟎; 𝐎𝐭𝐡𝐞𝐫𝐰𝐢𝐬𝐞
For n < 0 ; there is no overlap, hence convolution output y(n) = 0;
For 0 n 4; convolution starts at k = 0 and ends at k = n
∞ n n k
n−k n
1
y n = x k h n−k = 1 α =α
α
k=−∞ k=0 k=0
αn+1 − 1 α αn+1 αn+1 − 1 αn+1 − 1
y n = αn = =
α − 1 αn+1 αn+1 α − 1 α−1
For 4 n 6; convolution starts at k = 0 and ends at k = 4. The sequence h(n – k) is moved completely to
right. The last 4 impulses of x(k) coincides with h(n – k).
∞ 4 4 k
n−k n
1 α4+1 − 1 α5 − 1
y n = x k h n−k = 1 α =α = =
α α−1 α−1
k=−∞ k=0 k=0
5
α −1 αn+1 − 1
y n = = − − − − − −for the range 4 n 6
α−1 α−1
This is a supporting material for the SCE students. Any use for commercial purpose has to be permitted by the author ©Ravi Shankara.M.N. Page 28
Ravi [Link]
ECE Dept, SCE Bangalore. ravishankarmn@[Link]
For 6 n 10; convolution starts at k = (n – 6) and ends at k = 4. The sequence h(n – k) is moved further to
right. The impulses of x(k) coincides with h(n – k) decreases.
∞ 4
y n = x k h n−k = 1 αn−k
k=−∞ k=(n−6)
put r = (k – n+6) so that (n – k) = (6 – r) . When k = (n – 6) r = 0 and when k = 4 r = (10 – n )
4 10−n 1 10−n+1 1 11−n
− 1 −1 1 − α 11−n α7
y n = 1 α n−k
= α6−r
=α 6 α = α =
1 1 1−α α11−n
k=(n−6) r=0 − 1 − 1
α α
1 − α 11−n n−4 αn−4 − αn−4+11−n αn−4 − α7
y n = α = = − − − − − −𝑓𝑜𝑟 6 n 10
1−α 1−α 1−α
for n > 10, there is no overlap hence y(n) = 0
4) Convolve x(n) = [ u(n+10) -2u(n) +u(n – 4)] and h(n) = u(n –2)
For n < –8 ; there is no overlap, hence convolution output y(n) = 0;
For n > –8 ; convolution has a definite value.
For the range (–8 < n < 2), convolution starts from k = –10 and ends at ( n – 2)
∞ n−2
y n = x k h n−k = 1 1 = n − 2 − −10 + 1 = n + 9
k=−∞ k=−10
For the range (2 < n < 5), convolution starts from k = –10 and ends at ( n – 2)
n−2 −1 n−2
y n = x k h n−k = 1 1+ −1 1
=−10 k=−10 k=0
y n = [ −1 − (−10 ) + 1] − ( n − 2 + 1) = 11 − n
For ( n 6), convolution starts from k = –10 and ends at k = 3
3 −1 3
y n = x k h n−k = 1 1+ −1 1 = −1 − −10 + 1 − 3 − 0 + 1 = 6
k=−10 k=−10 k=0
n + 9; −8 ≤ n ≤ 2
y n = 11 − n; 2 ≤ n ≤ 6
6; n≥6
𝟏
5) Convolve 𝐱 𝐧 = 𝐮 𝐧) − 𝐮(𝐧 − 𝟏𝟎 ; 𝐡 𝐧 = 𝟒 𝐮 𝐧 − 𝐮 𝐧 − 𝟒
This is a supporting material for the SCE students. Any use for commercial purpose has to be permitted by the author ©Ravi Shankara.M.N. Page 29
Ravi [Link]
ECE Dept, SCE Bangalore. ravishankarmn@[Link]
x(n) has 10 samples from x(0) to x(9) and h(n) has 4 samples from h(0) to h(3)
for n < 0 ; No convolution. y(n) = 0 and for n > 0, convolution has definite value
for 0 n 3, convolution starts at k = 0 and k = n
∞ n
1 1
y n = x k h n−k = 1. = (n + 1)
4 4
k=−∞ k=0
for n 3, convolution starts at k = (n – 3) and k = n in the range 3 n 9
∞ n
1 1
y n = x k h n−k = 1. = n − n − 3 + 1) = 1
4 4
k=−∞ k=(n−3)
for n > 9, convolution starts at k = (n – 3) ends at k = 9 in the range 9 n 12
∞ 9
1 1 13 − n
y n = x k h n−k = 1. = 9− n−3 + 1) =
4 4 4
k=−∞ k=(n−3)
II Method x(n) = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1] and h(n) = [(1/4), (1/4), (1/4), (1/4)] N = m+n – 1 = 10+4 – 1=13
5) Show that if input x(n) periodic with period N, then the output of the LTI system y(n) is also periodic.
Let n = p + N where N is the period so that x(n + N) = x(n)
∞ ∞
y n =x n ∗h n = x k h n−k = h k x n−k
k=−∞ k=−∞
∞ ∞
This is a supporting material for the SCE students. Any use for commercial purpose has to be permitted by the author ©Ravi Shankara.M.N. Page 30
Causality ensures that the system's output depends only on current and past inputs, not future ones, crucial for real-time processing. Time invariance implies the system's behavior and characteristics don't change over time, offering consistency and predictability in dynamic environments. Together, these properties aid in designing systems that are stable and predictable under varying conditions .
Deterministic signals exhibit no uncertainty and can be accurately predicted by mathematical equations, like x(t) = 10 sin200t. Random signals, characterized by uncertainty before actual occurrence, take different values at each defined instant, such as noise or seismic signals. Random signal analysis typically employs probability theory and stochastic processes, contrasting with deterministic signals' predictability .
For periodic signals like x(n) = ej 2πn, the average power is determined by averaging the squared magnitude over one period, P = (1/N) Σ |x(n)|², using N as the period length. Analyzing with this method reveals the power is finite, indicating a power signal. Periodic signals often simplify energy and power calculations due to their repetitive nature, facilitating long-term analysis .
A linear, time-invariant, and causal system responds linearly to inputs, ensuring superposition and scaling properties. Time invariance ensures consistent system behavior over time, and causality ensures responses depend on current and past inputs. These attributes together yield a system that is predictable, robust, and adaptable to various practical applications by ensuring reliable performance under diverse conditions .
A discrete-time signal is an energy signal if it satisfies the condition of finite total energy, expressed as E = Σ |x(n)|², where 0 < E < ∞, indicating zero average power. A signal is a power signal if the average power is finite, calculated as P = lim N→∞ (1/(2N+1)) Σ |x(n)|², with 0 < P < ∞. Non-periodic signals typically qualify as energy signals, while periodic signals can be power signals .
CT signals are defined for all values of time and are examples of analog signals such as heartbeats or acoustic pressure. DT signals are not defined for all time and are generated by sampling analog signals at discrete times. CT signals are used in measuring physical phenomena, and DT signals are applied in digital processing after conversion from analog signals .
A multi-channel signal is the vector sum of signals from multiple sources or sensors, such as ECG signals, and is represented as x(t) = x1(t) + x2(t) + x3(t). A multi-dimensional signal involves multiple independent variables; for example, a black-and-white picture is a function P(x,y,t) with horizontal, vertical, and time dimensions. Multi-channel signals combine signals from different sources, while multi-dimensional signals consider multiple dimensions of a single signal .
For two even signals x1(n) and x2(n), we have x1(-n) = x1(n) and x2(-n) = x2(n). Their product is x(n) = x1(n) * x2(n), and x(-n) = x1(-n) * x2(-n) = x1(n) * x2(n) = x(n), proving the product is even. Similarly, for two odd signals, x(-n) = [−x1(n)]*[−x2(n)] = x(n), demonstrating it is an even signal .
Digital signal processing offers better control over accuracy requirements than analog systems. Digital signals can also be stored on magnetic media without deterioration, making them transportable and suitable for offline processing. Additionally, digital processing allows for the implementation of sophisticated algorithms that are difficult to achieve with analog systems. It is generally cheaper due to more affordable digital hardware and the flexibility for modifications .
A system is BIBO (Bounded Input Bounded Output) stable if, for every bounded input, the output remains bounded. This concept ensures that a system consistently responds to finite, real-world inputs without producing unbounded outputs, a critical criterion for assessing the reliability and predictability of a system's performance .