SP Slides 1
SP Slides 1
x[n] = x(nT )
p[n] = a 3 [n + 3] + a1 [n 1] + a2 [n 2] + a7 [n 7]
(
0, n 6= 0
where, [n] =
1, n=0
Increasing Frequency of Discrete-Time Sinusoids
cos (0 · n)
note: same as cos (2⇡n)
cos ⇡8 n
15⇡
note: same as cos 8 n
cos ⇡4 n
7⇡
note: same as cos 4 n
cos (⇡n)
Classification of Discrete-Time Systems
Continous-Time Speech Signal and Sequence of Samples
PN
xa (t) = i=1 Ai (t) sin [2⇡Fi (t)t + ✓i (t)]
y[n] = ax[n]
y[n] = nx[n] + bx3 [n]
If y1 [n] and y2 [n] are the responses of a system when x1 [n] and x2 [n] are the
respective inputs, then the system is linear if and only if the additivity property
holds:
T {x1 [n] + x2 [n]} = T {x1 [n]} + T {x2 [n]} = y1 [n] + y2 [n]
and the scaling property holds:
x[n] ! y[n]
implies that
x[n k] ! y[n k]
Time-Invariant versus Time-Variant Systems
y[n] = nx[n]
y[n] = x[ n]
Causal versus Noncausal Systems
A system is causal if, for every choice of n0 , the output sequence value at the time
index n = n0 depends only on the input sequence value for n n0 .
The input, x[n], is bounded if there exists a fixed positive finite value Bx such that
Stability requires that, for every bounded input, there exists a fixed positive finite
value By such that
|y[n]| By < 1, for all n
Stable versus Unstable Systems
(
0, n 6= 0
[n] =
1, n=0
Signals represented as a sum of scaled, delayed impulses
p[n] = a 3 [n + 3] + a1 [n 1] + a2 [n 2] + a7 [n 7]
Any sequence can be represented as a sum of scaled, delayed impulses:
1
X
x[n] = x[k] [n k]
k= 1
Impulse Response for LTI Systems
y[n] = T {x[n]}
( 1 )
X
= T x[k] [n k]
k= 1
When we let hk [n] be the response of the system to the input [n k].
Response of LTI system to arbitrary inputs: the convolution sum
h(n) ⌘ T [ [n]]
Using time invariance, the response to [n k] is now h[n k]:
1
X
y[n] = x[k]h[n k], for all n
k= 1
The response y[n] of an LTI system as a function of the input signal x[n] and the
impulse response h[n] is called the convolution sum:
h[ k] = 1, 1,2, 1
"
h[ 1 k] = 1, 1, 2,1 where n0 = 1
"
x[k] =1, 2, 3, 1
"
x[k] =1, 2, 3, 1
"
h[0 k] = 1, 1,2, 1
"
1
X
y[0] = x[k]h[0 k] = 4
k= 1
Convolution Sum Example (Continued)
x[k] =1, 2, 3, 1
"
h[1 k] = 1,1, 2, 1
"
1
X
y[1] = x[k]h[1 k] = 8
k= 1
Convolution Sum Example (Continued)
x[k] =1, 2, 3, 1
"
h[2 k] = 1, 1, 2, 1
"
1
X
y[2] = x[k]h[2 k] = 8
k= 1
Convolution Sum Example (Continued)
x[k] =1, 2, 3, 1
"
h[3 k] =0, 1, 1, 2, 1
"
1
X
y[3] = x[k]h[3 k] = 3
k= 1
Convolution Sum Example (Continued)
x[k] =1, 2, 3, 1
"
h[4 k] =0, 0, 1, 1, 2, 1
"
1
X
y[4] = x[k]h[4 k] = 2
k= 1
Convolution Sum Example (Continued)
x[k] =1, 2, 3, 1
"
h[5 k] =0, 0, 0, 1, 1, 2, 1
"
1
X
y[5] = x[k]h[5 k] = 1
k= 1
Convolution Sum Example (Continued)
x[k] =1, 2, 3, 1
"
h[3 k] =0, 0, 0, 0, 1, 1, 2, 1
"
1
X
y[6] = x[k]h[6 k] = 0
k= 1
Convolution Sum Example (Continued)
y[ 1] = 1
y[0] = 4
y[1] = 8
y[2] = 8
y[3] = 3
y[4] = 2
y[5] = 1
⇢
y[n] = ...0, 0, 1, 4, 8, 8, 3, 2, 1, 0, 0, ...
"
The Convolution Sum: A Commutative Operation
1
X
y[n] = h[k]x[n k]
k= 1
X1
= ak u[k]u[n k]
k= 1
Xn
k
= a
k=0
n+1
X 1 an+1
= ak 1
= for n > 0
1 a
k=1
Properties of Linear-Time Invariant Systems
Convolution Distributes Over Addition
LTI systems are BIBO stable if and only if output sequence y[n] is bounded for
every input x[n].
h[n] = 0, n < 0
Modified Convolution Formula for Causal Systems
Since h[n] = 0 for n < 0, we can modify the limits on the summation of the
convolution formula:
1
X
y[n] = h[k]x[n k]
k=0
Xn
= x[k]h[n k]
k= 1
Finite Impulse Response (FIR) & Infinite Impulse Response (IIR)
Systems
Important class of LTI systems are those in which the input, x[n], and output,
y[n], satisfy a linear constant-coefficient di↵erence equation:
N
X M
X
ak y[n k] = bk x[n k]
k=0 k=0
n
X
y[n] = x[k]
k= 1
Let’s show that the input and output satisfy a di↵erence equation...
n
X1
y[n] = x[n] + x[k]
k= 1
Also,
n
X1
y[n 1] = x[k]
k= 1
N
X M
X
ak y[n k] = bk x[n k]
k=0 k=0
This is convolution! We can find the impulse response of this system by setting the
input to an impulse, x[n] = [n]:
M ✓
X ◆
bk
h[n] = [n k]
a0
k=0
k= 1
X1
= h[k]ej!n e j!k
k= 1
j!0 A ( j!0 n ✓)
y2 [n] = H e e
2
Example: Response to Sinusoidal Input In LTI Systems (Continued)
Therefore, the output of an LTI system, with a real h[n], to a sinusoidal input is:
ej!n , 1<n<1
is indistinguishable from
n o
ej(!+2⇡n) , 1<n<1
X (! + 2⇡k) = X (!)
The inverse Fourier transform is
Z ⇡
1
x[n] = X(!)ej!n d!
2⇡ ⇡
Fourier Transform is a Complex-Valued Function
In rectangular form:
X(!) = XR (!) + jXI (!)
In polar form:
X(!) = |X!)|\X(!)
(note that the phase is not unique since any integer multiple of 2⇡ can be added to
the angle at any frequency and have the same result)
Impulse Response and Frequency Response
The impulse response of a system can be obtained by using the inverse Fourier
transform: Z ⇡
1
h[n] = H(!)ej!n d!
2⇡ ⇡
Symmetry Properties of the DTFT: Even and Odd Sequences
Conjugate-symmetric sequence: xe [n] = x⇤e [ n] (called ”even” if a real
sequence)
Conjugate-antisymmetric sequence: xo [n] = x⇤0 [ n] (called ”odd” if a real
sequence)
Any sequence can be expressed as a sum of conjugate-symmetric and
conjugate-antisymmetric sequence:
where,
1
xe [n] = (x[n] + x⇤ [ n]) = x⇤e [ n]
2
1
xo [n] = (x[n] x⇤ [ n]) = x⇤o [ n]
2
Symmetry Properties of the DTFT: Even and Odd Functions
where,
1
Xe (!) = [X(!) + X ⇤ ( !)] = Xe⇤ ( !)
2
1
Xo (!) = [X(!) X ⇤ ( !)] = Xo⇤ ( !)
2
Table for Symmetry Properties of the DTFT
Time Shifting and Frequency Shifting Theorem of the DTFT
If,
x[n] ! X(!)
then,
j!nd
x[n nd ] !e X(!) Time-Shifting Theorem
and
ej!0 n x[n] ! X(! !0 ) Frequency-Shifting Theorem
Convolution Theorem of the DTFT
If,
x[n] ! X(!)
and
h[n] ! H(!)
and
1
X
y[n] = x[k]h[n k] = x[n] ⇤ h[n] Convolution Sum in the Time Domain
1
then
Y (!) = X(!)H(!) Multiplication in the Frequency Domain
Fourier Transform Theorems and Properties
Common DTFT Pairs
Example: DTFT of a Signal
Determine the Fourier transform of the sequence
x[n] = an u[n 5]
Let’s rewrite this sequence as x[n] = a5 an 5 u[n 5]. Using a table of Fourier
transform pairs, we can find the Fourier transform of a new sequence:
a5
x1 [n] = a5 an u[n] ! X1 (!) = j!
1 ae
We can obtain the original sequence by delaying this new sequence, x1 [n], by five
samples so using the time-shifting property:
j5! a5 e j5!
X(!) = e X1 (!) =
1 ae j!
Applications of the
Discrete-Time Fourier Transform (DTFT)
Discrete-Time Fourier Transform (DTFT) Pair
n= 1
n= 1
ej✓ +e j✓
From the inverse of Euler’s formula, we know that cos ✓ = 2 . Therefore,
X(ej! ) = ej! + 1 + e jw
= 1 + 2 cos(!).
(
0, X(ej! ) > 0
|X(ej! )| = |1 + 2 cos(!)| and \X(ej! ) =
⇡, X(ej! ) < 0
Example: Frequency Domain Representation
Determine the DTFT of the following sequence:
1 n
x[n] = 2 u[n + 3]
Using the DTFT definition to evaluate:
X1
j!
X(e ) = x[n]e j!n
n= 3
1
X
1 n
= 2 e j!n
n= 3
1
X 1
X
1 j! n 1 j! m 3
= 2e let n = m 3 =) 2e
n= 3 m=0
1
X ✓ ◆m
1 j! 3 1 j! 8ej3!
= 2e e = 1 j!
2 1 2e
m=0
Example: Performing Convolution
Determine the convolution (y[n] = x1 [n] ⇤ x2 [n]) of the sequences:
⇢
x1 [n] = x2 [n] = 1, 1, 1
"
1
X
X(ej! ) = x[n]e j!n
= ej! + 1 + e jw
= 1 + 2 cos(!)
n= 1
Convolution in the frequency domain is multiplication:
X(ej! ) = X1 (ej! )X2 (ej! ) = (1 + 2 cos(!))2
= 3 + 4 cos(!) + 2 cos(2!)
= 3 + 2(ej! + e j!
) + (ej2! + e j2!
)
Taking the inverse Fourier transform yields the convolution sequence:
⇢
y[n] = 1, 2, 3, 2, 1
"
Example: Finding a Di↵erence Equation To Implement a System
Determine a di↵erence equation to implement a system with the frequency response
1 0.5e j! + e 3j!
H(ej! ) =
1 + 0.5e j! + 0.75e 2j!
Since the frequency response is:
Then, take the inverse DTFT of each term to determine the di↵erence equation: