Professional Documents
Culture Documents
Signals and Systems
Chapter 2
Prof.Dr. Muhittin Gökmen
Dept. Of Computer Eng.
Course Outline (Tentative)
• Fundamental Concepts of Signals and Systems
– Signals
– Systems
• Linear Time‐Invariant (LTI) Systems
y
– Convolution integral and sum
– Properties of LTI Systems …
• Fourier Series
– Response to complex exponentials
– Harmonically related complex exponentials …
• Fourier Integral
– Fourier Transform & Properties …
– Modulation (An application example)
• Discrete‐Time Frequency Domain Methods
q y
– DT Fourier Series
– DT Fourier Transform
– Sampling Theorem
• Laplace Transform
• Z Transform
1
Chapter II
Linear Time‐Invariant (LTI) Systems
Linear Time‐Invariant Systems
• Important class of systems as many physical phenomena can be
modeled as such
• Representation of DT Signals in Terms of Pulses
• DT unit impulse can be used to construct any DT signal
• Think of a DT signal as a sequence of individual impulses
• Consider x[n]
-4 -1 2 3 ...
... -3 -2 0 1 4 n
2
Linear Time‐Invariant Systems
x[n] is actually a sequence of time‐shifted and scaled impulses
x[1]δ[n-1]
0 1 2
0 1
x[2]δ[n-2]
Linear Time‐Invariant Systems
• It is possible to re‐generate an arbitrary signal by sampling it
with shifted unit impulse:
• This is called as sifting property:
x[n] x[k ] [n k ]
k
shifted impulse
weights
Sifting property of DT impulse
3
DT Unit Impulse Response
• x[n] is superposition of scaled & shifted impulses
• The output of a linear
The output of a linear system to x[n] =
system to x[n] =
– superposition of the scaled responses of the system to each of these shifted
impulses
• Let hk[n] be the response of a linear system to δ[n‐k].
• From superposition property of linear systems, the response y[n] is the sum of
p
individual responses, i.e.,
x[n] x[k ] [n k ]
k
y[n] x[k ]h [n]
k
k
DT Unit Impulse Response
• In general, if the system is also time‐invariant, then hk[n],
response to δ[n‐k], is a time‐shifted version of h0[n], which is
the response of the system to δ[n];
the response of the system to δ[n];
hk [n] h0 [n k ]
• So, for k=0, i.e., input is δ[n], then the response of the system
is
h[n] h0 [n] Unit Impulse Response
4
Convolution Sum Representation of LTI
Systems
Recall that for an LTI system (due to superposition property):
x[n]
k
x[k ] [n k ] y[n] x[k ]h [n]
k
k
Hence, for an LTI system, the output y[n] for the input x[n] is
Convolution Sum
y[n] x[k ]h[n k ]
k Superposition Sum
Convolution Sum
Example
2 h[n]
1
x[n]
0.5 n
0 1 0 1 2
y[n] x[k ]h[n k ] x[0]h[n 0] x[1]h[n 1] 0.5h[n] 2h[n 1]
k
2.5 2.5
0.5 0.5 h[n] 2 h[n-1] 2 y[n]
0.5
+
0 1 2 1 2 3 0 1 2 3
5
Convolution Sum
Example
• Example: Consider LTI system with h[n]
2 h[n]
x[n] 1
0.5
n
0 1 0 1 2
y[n]= x[k] h[n-k]
k
Convolution Sum
Example
2 • Flip h[k]
x[k] • By shifting h[k] for all possible values of n,
0.5
k pass it through x[n].
0 1
1
for n 0, y[n] x[k ]h[n k ] 0
k h[n-k] , n<0 k
n-2 n-1 n 0
for n 0, y[0] x[k ]h[0 k ] 0.5
k
k
h[0-k] for n 1, y[1] x[ k ]h[1 k ] 0.5 2 2.5
-2 -1 0
for n 2, y[2] x[k ]h[2 k ] 0.5 2 2.5
k
k
k for n 3, y[3] x[k ]h[3 k ] 2
-1 0 1
h[1-k] k
6
Convolution Sum
Example
n
Ex: Consider x[n]= u[n] for 0< <1 and h[n]=u[n]. Find y[n].
Convolution Sum
Example
for n≥0
for n≥0
7
Convolution Sum
Example
k , 0 k n
x[k]h[n-k] =
0 , o/w
n
1 n 1
y[n] k = for n 0
k 0 1
1 n 1
y[n] u[n]
1
Convolution Sum
Example
Ex: Consider an LTI system with input x[n]=2n u[‐n] and h[n]=u[n]. Find y[n].
1
1
2
1 x[k]=2k u[-k]
1
4 h[n-k]
1 8 ---
16
--- k k
-4 -3 -2 -1 0 0 n
8
Convolution Sum
Example
l
n n
1
y[n] = x[k]h[n-k] = 2k =
k k l n 2
l n l
1 1
2 2n 1
n
l 0 2 l 0 2
2
1
1
y[n]
2 , n0 1
2
y[n] n 1 1
4
---
2 , n0 ---
1
16
8
-5 -4 -3 -2 -1 0 1 2
Representation of CT Signals in terms of Impulses
xˆ (t )
Consider a pulse or “staircase” approximation, , to a CT signal x(t)
x(t)
0
δ∆(t)
1
, 0t
Define (t )
1
0, o/w t
0 ∆
9
Representation of CT Signals in Terms of
Impulses
(t ) xˆ (t )
Since has unit amplitude, we can represent in terms of shifted and scaled rectangular pulses…
xˆ (t ) x(k)
k
(t k)
As ∆ 0, xˆ (t ) approaches to x(t)
x(t ) lim
0
x(k) (t k)
k
x(t ) x( ) (t )d (sifting property)
Representation of CT Signals in Terms of
Impulses
Other derivations for this ??
x(t) x( ) (t )d
10
CT Unit Impulse Response & Convolution Integral
hˆk (t )
Let us define as the response of a linear system to (t k)
yˆ (t ) x(k)hˆ
k
k (t )
Hence, y (t ) x( )h (t )d
CT Unit Impulse Response & Convolution Integral
h(t ) h0 (t ) i
impulse
l response!!
Convolution
y (t )
x( )h(t )d integral
y (t ) x(t ) h(t )
An LTI system is completely characterized by its impulse response
(i.e., h[n] in DT, h(t) in CT)
11
Convolution Integral
Example
x(t ) e at u (t )
Let , a>0 be the input to an LTI system with
h(t) = u(t). Find y(t)!
1 x( ) 1
h( )
0 0
y (t ) x( )h(t )d
Convolution Integral
Example
0 t 0
0 t
e a , 0 t
t>0 x( )h(t )
0 , o/w
12
Convolution Integral
Example
t
1 1
y (t ) e a d e a (1 e at )
t
for t>0
0
0
a a
1
y (t ) (1 e at )u (t )
a
1
y (t )
a
Properties of Convolution and LTI Systems
1) Commutative Property:
Convolution is a commutative operation in both DT and CT.
x[n] h[n] h[n] x[n] h[k ] x[n k ] Easily shown
by substituting
variables
x(t ) h(t ) h(t ) x(t ) h( )x(t )d
Practical use ??
(take h[k], time-reverse and shift x[k] whenever it’s easier)
13
Properties of Convolution and LTI Systems
2) Distributive Property:
Convolution distributes over addition.
h1
x y x y
+ h1+h2
h2
Properties of Convolution and LTI Systems
Practical ??
14
Properties of Convolution and LTI Systems
3) Associative Property:
x[n] (h1[n] h2 [n]) ( x[n] h1[n]) h2 [n]
x(t ) (h1 (t ) h2 (t )) ( x(t ) h1 (t )) h2 (t )
Properties of Convolution and LTI Systems
Results:
• Impulse response of cascade LTI systems is the convolution of their individual
impulse responses
• Overall system response is independent of the order of the systems in cascade !
4) LTI Systems with & w/o Memory:
h[n] 0 for n 0
If then the LTI system is memoryless !
(t ) 0 for
h(t f t0
15
Properties of Convolution and LTI Systems
Identity System
x(t) x(t)
δ(t)
Properties of Convolution and LTI Systems
Example (Ex.2.11)
h1 (t ) (t t0 ) h(t ) h1 (t ) (t t0 ) (t t0 ) (t )
16
Properties of Convolution and LTI Systems
Example (Ex.2.12)
Consider an LTI system with h[n]=u[n]
y[n] x[k ]u[n k ]
k
; as u[n-k] = 0 for n-k<0
n
y[n] x[k ]
k
accumulator
Properties of Convolution and LTI Systems
6) Causality for LTI Systems:
y[n] x[k ]h[n k ]
k
; the output y[n] must not depend on x[k] for k>n
Practical intuition ??
(impulse response must be zero before the impulse occurs:
initial rest)
For causal LTI systems, convolution sum becomes:
n
y[n] x[k ]h[n k ] h[k ]x[n k ]
k k 0
17
Properties of Convolution and LTI Systems
• In CT: h(t)=0 for t<0 causal; convolution integral becomes:
t
y (t ) x( )h(t )d h( ) x(t )d
0
Properties of Convolution and LTI Systems
7) Stability for LTI Systems:
Consider x[n] B, n
y[n] h[k ]x[n k ]
k
h[k ] x[n k ]
k
<B
B h[k ] n
k
h[k ]
k
then the system is stable!
18
Properties of Convolution and LTI Systems
• In CT: if the impulse response is absolutely integrable
h( ) d
h( ) d ( t ) d 1
0 stable!
Accumulator: h[n]=u[n]
u[n] u[n]
k k 0
unstable!
Unit Step Response
Another signal used quite often to describe the behaviour of LTI systems
corresponds to the output when x[n]=u[n] or x(t)=u(t)
In continuous-time:
s (t ) u (t ) h(t )
h( )u (t )d
19
Unit Step Response
t
s (t ) h( )d : the step response of a CT LTI system is the
running integral of its impulse response
The impulse response is the first derivative of the unit step response
ds (t )
h(t ) s ' (t )
dt
Causal LTI Systems Described by Differential and
Difference Equations
• CT systems for which the input and output are related
through a linear constant‐coefficient differential
equation,
– e.g., RC circuit
20
Linear Constant‐Coefficient Differential
Equations
Consider dy (t )
2 y (t ) x(t )
dt
Linear Constant‐Coefficient Differential
Equations
K K
Substitute yp(t) and try Y
3t
yp(t) = 5 e , t>0
5
K
3t 2t
y(t)= e Ae , t>0
5
21
Linear Constant‐Coefficient Differential
Equations
K 3t
y(t) e Ae 2t , t 0
5
We need initial conditions.
For causal LTI systems, we assume initial rest, y(0)=0
K
A
substitute:
5
y(t)
K 3t
5
e e 2t u(t)
Linear Constant‐Coefficient Differential
Equations
k 0 dt k
0 a k
initial (auxiliary)
( y) conditions are necessary. y
for causal LTI systems, initial rest:
dy( 0 ) d N 1 y( 0 )
y( 0 ) 0
dt dt N 1
22
Linear Constant‐Coefficient Differential
Equations
k 0 dt
k
0
dh( 0 ) d N 2 h( 0 ) d N 1h( 0 )
h( 0 ) 0, 1 for t 0 and h(t ) 0 for t 0
dt dt N 2 dt N 1
Linear Constant‐Coefficient Differential
Equations
Example: Consider the LTI system described by
y ''(t ) 7 y '(t ) 12 y (t ) et u (t )
Let us find the impulse response first. h(t) satisfies
h ''(t ) 7 h '(t ) 12h(t ) 0 with h(0) 0, h '(0) 1
23
Linear Constant‐Coefficient Difference Equations
N M
In DT: ak y[n k] bk x[n k]
k 0 k 0
1 M N
Rearrange it, then: y[n] k b x[n k] ak y[n - k]
a0 k 0 k 1
• R
Recursive operation as the output at time n is a
i ti th t t t ti i
function of previous values of input and output.
• We need initial conditions: y[‐1], ..., y[‐N]
Linear Constant‐Coefficient Difference Equations
As a special case, N=0, then
M
b
y[n] k x[n k] (non-recursive (LTI system),
k 0 a0
No need for initial conditions)
24
Linear Constant‐Coefficient Difference Equations
1
Example: Consider the difference equation y[n] y[n 1] x[n]
2
1
y[n] x[n] y[n 1] recursive; initial conditions are needed
2
Assume x[n] Kδ[n] and initial rest, i.e., x[n]=0, y[n]=0 for n≤-1:
1
y[0] x[0] y[1] K
2 For N≥1:
1 1
y[1] x[1] y[0] K Infinite
2 2
2
1 1 Impulse
y[2] x[2] y[1] K
2 2
Response
n
1
n
1 1 (IIR)
y[n] x[n] y[n - 1] K for K=1, h[n] u[n]
2 2 2
Block Diagram Representations
• Used to help in understanding and implementation of systems
• DT Case:
– First‐order difference equation
q
x2[n]
x1[n] x1[n]+ x2[n] x[n] a ax[n] x[n] x[n-1]
+ D
x[n] b y[n]
y[n]=-ay[n-1]+bx[n]: +
D
y[n-1]
-a
25
Block Diagram Representations
dy(t)
d () 1 dy(t)
d () b
ay(t) bx(t) y(t) x(t)
dt a dt a
-1/a
Block Diagram Representations
t
x(t) x(t) b y(t)
∫ x( ) d
-
+ ∫
-a
OP-AMP !
26