Till Lec 4 Notes
Till Lec 4 Notes
Vikram M. Gadre
• In real life situations, mostly, both independent and 2.2 Choosing the value of independent
dependent variable are continuous. variable for discretization
• Start with a single sine wave, if that is conquered,
• Here, we aim to deal with them by and equivalent Fourier Series will help to do the rest.
signal where independent variable is DISCRETE and
dependent is CONTINUOUS. x(t) = A0 cos(ω0 + φ0 )
• Sampling at t=nT,
• Equivalent implies we do not lose any information in
the process of discretization. x(nT ) = x[n] = A0 cos(ω0 nT + φ0 )
= A0 cos(ω0 nT + φ0 + 2πnk)
• So, when a variable is discrete, we have a notion of
= A0 cos(2πnk − ω0 nT − φ0 )
nearest sample.
n, k ∈ Z
• Def- Signal: Relation between an independent and
• Here, although ambiguity is introduced, but no infor-
a dependent variable.
mation is lost.
• Def- Signal Processing: Modification and separa- x[n] = A0 cos(ω0 nT + φ0 )
tion of signals. Example, in an audio, it is a 2π
mixture of male and female voices, enhance a sin- = A0 cos(( k + ω0 )nT + φ0 )
T
gle component(Modification), get a single compo- 2π
nent(Separation). = A0 cos(( k − ω0 )nT − φ0 )
T
• The above equations show that x[n] could’ve come
from multiple possible frequencies.
2 Discretization of continuous inde-
• A numerical example, let,
pendent variables
T = 1ms → 1/T = 1KHz
• Sine wave is a common function to break a signal into ω0 = 2π(0.1)KHz
components as it is sort of the smoothest wave that
can be found in nature. It is persistent and its fre- Here, the original sinusoid has a frequency of 0.1KHz
quency remains same for a large no. of operations. and rate of sampling is 1KHz. So, the samples
obtained could’ve come from (A0 , φ0 , 0.1KHz) or
• For example, adding 2 triangular or square waves with (A0 , −φ0 , 0.9KHz) or (A0 , φ0 , 1.1KHz)...
same frequency, the result is not a wave with the same • A little visual example,
frequency.
A1 cos(ω0 t + φ1 ) + A2 cos(ω0 t + φ2 )
= (A1 cos φ1 + A2 sin φ2 ) cos ω0 t− • Adding all the possible sinusoids that could give the
(A1 sin φ1 + A2 sin φ2 ) sin ω0 t same samples, we see that it is constructive at points
= A3 cos(ω0 t + φ) of sampling and destructive at others. (TRY TO
PROVE THIS)
A3 =??, φ =??
• Let original signal be x(t), the sampled signal be xs (t).
• We use Fourier Transform to regard a continuous sig- • On frequency axis, sampling creates ”copies” of
nal x(t) as (possibly infinite) sum or linear combina- the original signal at a collection of frequen-
tion of sine waves of frequency varying, in principle, cies. Consider 3 sine waves sampled at 1KHz
from zero to infinity. (A1 , φ1 , 0.1KHz)(A2 , φ2 , 0.13KHz), (A3 , φ3 , 0.15KHz)
then, the following copies will be generated, the orig-
• Shannon’s sampling theorem: Only band-limited sig- inal ones, (A3 , −φ3 , 0.85KHz)(A2 , −φ2 , 0.87KHz),
nals can be discretized without any loss of informa- (A1 , −φ1 , 0.9KHz), (A1 , φ1 , 1.1KHz)(A2 , φ2 , 1.13KHz),
tion. (Pretty evident from the sampling theorem) (A3 , φ3 , 1.15KHz) and so on.
• In the spectral domain, reconstructing x(t) 3 Linear and Shift Invariant (LSI)
from xs (t): retain the original signal, and re-
move the all the copies and mirror images that
Systems
appear after sampling. • Linearity: Principle of superposition
• We can do this if neither the copies nor the i.e., if x1 [n] → y1 [n] and x2 [n] → y2 [n], then
mirror images ”pollute” or ”overlap” the orig- αx1 [n] + βx2 [n] → αy1 [n] + βy2 [n]
inal signal spectrum. ∀x1 , y1 , x2 , y2 , α, β ∈ C
– Linear
– Shift Invariant
– Stable
Appendix: Proofs, Calculations and Challenges
1. Proof that a LSI system is completely characterized
by its response to a unit impulse sequence:
∞
P
x[n]= x[k]δ[n − k]
k=−∞
Now assume that the unit impulse (δ[n]) response of
the LSI system is given by h[n].
Using the shift invariance property,
S
δ[n − k] −
→ h[n − k]
Using the homogeneity property,
S
x[k]δ[n − k] −
→ x[k]h[n − k]
Note here that h[n-k] is a sequence and x[k] is some
constant.
Using the additivity property,
∞ ∞
P S P
x[k]δ[n − k] −
→ x[k]h[n − k] = y[n]
k=−∞ k=−∞
Notice, the proof is constructive.