Analysis of Linear Time Invariant Systems
Analysis of Linear Time Invariant Systems
Analysis of Linear Time Invariant Systems
(
(
(
(
=
2
1
0
2
1
0
Example 1:
Example 2:
Hx
x
x
x
x
y
y
y
y
y
y
y =
(
(
(
(
(
(
(
(
(
(
(
(
=
(
(
(
(
(
(
(
(
=
3
2
1
0
5
4
3
2
1
0
4 0 0 0
3 4 0 0
2 3 4 0
0 2 3 4
0 0 2 3
0 0 0 2
DSP Lectured by Assoc. Prof. Dr. Thuong Le-Tien 14
{ } { } , 2 , 2 , 2 , 2 , 2 , , , , ,
4 3 2 1 0 4 3 2 1 0
x x x x x x x x x x
H
3. Linearity and Time-Invariance LTI
Consider a relaxed system in which there is
one independent variable t
A linear system is a system which has the
property that if
input x
1
(n) produces an output y
1
(n) and
input x
2
(n) produces an output y
2
(n), then
input c
1
x
1
(n) + c
2
x
2
(n) produces an
output c
1
y
1
(n) + c
2
y
2
(n) for any x
1
(n),
x
2
(n) and arbitrary constants c
1
and c
2
DSP Lectured by Assoc. Prof. Dr. Thuong Le-Tien 15
* Linearity
(1)
(2)
DSP Lectured by Assoc. Prof. Dr. Thuong Le-Tien 16
( ) ( ) ( ) n x a n ax n x
2 1
+ =
( ) ( ) ( ) n y a n y a n y
2 2 1 1
+ =
Testing linearity
Time-invariant system
A relaxed system is time-invariant if a time shift
in the input signal causes a
time shift in the output signal
In the case of discrete-time digital systems, we
often use the term
shift-invariant instead of time-invariant
Characteristics and parameters of a time-invariant
system do not change with time
DSP Lectured by Assoc. Prof. Dr. Thuong Le-Tien 17
* Time invariance
D is delay operator
DSP Lectured by Assoc. Prof. Dr. Thuong Le-Tien 18
Testing Time-Invariance with delay by D samples
Linear time-invariant (LTI) system
DSP Lectured by Assoc. Prof. Dr. Thuong Le-Tien 19
Continuous-time system is LTI if its input-output relationship
can be described by the ordinary linear constant coefficient
differential equation
Discrete-time system is LTI if its input-output relationship
can be described by the linear constant coefficients
difference equation
4. Impulse response
Dirac Delta function
( ) ( ) n h n
H
o
{ } { } , , , , , 0 , 0 , 0 , 1
3 2 1 0
h h h h
H
DSP Lectured by Assoc. Prof. Dr. Thuong Le-Tien 20
( )
=
=
=
0 n if 0
0 n if 1
n o
DSP Lectured by Assoc. Prof. Dr. Thuong Le-Tien 21
Delayed impulse response of an LTI system
(LTI form)
DSP Lectured by Assoc. Prof. Dr. Thuong Le-Tien 22
( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) + + + + = 3 3 2 2 | 1 1 0 n h x n h x n h x n h x n y
( ) ( ) ( )
=
m
m n h m x n y
Convolution
Response to linear combination of inputs
5. FIR and IIR Filters
An FIR filter has impulse response h(n) that
extends only over a finite time interval 0 n M
DSP Lectured by Assoc. Prof. Dr. Thuong Le-Tien 23
{ } , 0 , 0 , 0 , , , , ,
2 1 0 M
h h h h
M is filter order. Length of impulse response
h = {h
0
, h
1
, h
2
, , h
M
} is : L
H
= M + 1
{h
0
, h
1
, h
2
, , h
M
} named filter coefficients, or
filter weights, or filter taps.
Example: third order FIR filter h = [h
0
,h
1
, h
2
, h
3
] has
I/O equation:
y(n) = h
0
x(n) + h
1
x(n-1) + h
2
x(n-2) + h
3
x(n-3)
Example: Find impulse response of the following FIR
filter:
(a) y(n) = 2x(n) + 3x(n-1) + 5x(n-2) + 2x(n-3)
(b) y(n) = x(n) - 4x(n-4)
Solution:
(a) h = [2, 3, 5, 2]
(b) h = [1, 0, 0, 0, -4]
if input is x(n) = o(n), then output y(n) = h(n):
(a) h(n) = 2o(n) + 3o(n 1) + 5o(n 2) + 2o(n 3)
(b) h(n) = o(n) o(n 4)
DSP Lectured by Assoc. Prof. Dr. Thuong Le-Tien 24
FIR FILTERING EQUATION
An IIR filter has an impulse response h(n) of infinite
duration, defined over the infinite interval.
IIR equation
Example: Find the convolution form and impulse response of
the following IIR filter: y(n) = 0,25y(n 2) + x(n)
Solve: impulse response h(n) = 0,25h(n 2) + o(n)
h(2) = h(1) = 0; h(0) = 0,25h(2) + o(0) = 1
h(1) = 0,25h(1) + o(1) = 0; h(2) = 0,25h(0) + o(2) = 0,25 = 0,5
2
h(3) = 0,25h(1) + o(3) = 0; h(4) = 0,25h(2) + o(4) = 0,25
2
= 0,5
4
n 0
( )
( )
=
=
=
odd n
even n
n h
n
, 0
, 5 . 0
DSP Lectured by Assoc. Prof. Dr. Thuong Le-Tien
25
h ={1, 0, 0.5
2
, 0, 0.5
4
, 0,. . .}; y(n) = x(n) + 0.52x(n 2) + 0.252x(n 4)
( ) ( ) ( )
=
=
0 m
m n x m h n y
DSP Lectured by Assoc. Prof. Dr. Thuong Le-Tien 26
Example: Find the difference equation of the following
IIR filter: h ={2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, . . .}
with the cycle lasts for 4 samples
Solve: h(n 4) ={0, 0, 0, 0, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, . . .}
h(n) h(n 4) = {2, 3, 4, 5, 0, 0, 0, 0,. . .}
h(n) h(n 4) = 2d(n) + 3d(n 1) + 4d(n 2) + 5d(n 3)
h(n) = h(n 4) + 2d(n) + 3d(n 1) + 4d(n 2) + 5d(n 3)
Or y
n
= y
n 4
+ 2x
n
+ 3x
n-1
+ 4x
n-2
+ 5x
n-3
DSP Lectured by Assoc. Prof. Dr. Thuong Le-Tien 26
IIR Filter has the impulse response h(n)
DSP Lectured by Assoc. Prof. Dr. Thuong Le-Tien 27
( ) ( ) ( )
= =
+ =
L
i
i
M
i
i
i n b i n h a n h
0 1
o
L n n n M n M n n n
b b b h a h a h a h
+ + + + + + + =
1 1 0 2 2 1 1
o o
( ) ( ) ( )
=
+ =
L
i
i
M
i
i
i n x b i n y a n y
0 1
L n L n n M n M n n n
x b x b x b y a y a y a y
+ + + + + + + =
1 1 0 2 2 1 1
6. Causality and stability
DSP Lectured by Assoc. Prof. Dr. Thuong Le-Tien 28
Delay D to produce the causal,
h
D
(n) = h(n D)
I/O equation for causal filter h
D
(n)
DSP Lectured by Assoc. Prof. Dr. Thuong Le-Tien 29
( ) ( ) ( )
=
=
D m
m n x m h n y
( ) ( ) ( )
=
0 m
D D
m n x m h n y
Example: Consider the typical 5-tap smoothing filter having
filter coefficient h(n) = 1/5 for -2 n 2. The corresponding
I/O convolutional equation
It is called a smoother or average because at each n it
replaces the current sample x(n) by its average with the two
samples ahead and two samples behind it. Its anti-causal
part has duration D=2 and can be made causal wit the time
delay of two units
( ) ( ) ( ) ( ) ( ) ( ) ( ) | | 4 3 2 1
5
1
2
2
+ + + + = = n x n x n x n x n x n y n y
DSP Lectured by Assoc. Prof. Dr. Thuong Le-Tien 30
( ) ( ) ( ) ( )
= =
= =
2
2
2
2
5
1
m m
m n x m n x m h n y
( ) ( ) ( ) ( ) ( ) | | 2 1 1 2
5
1
+ + + + + + = n x n x n x n x n x
Stability:
A stable LTI system is one whose impulse
response h(n) goes to zero sufficiently fast as n
to be infinitive, so that the output y(n) never
diverges and |y(n)| B if input is limited
|x(n)| A.
A necessary and sufficient condition for an LTI
system to be stable is
DSP Lectured by Assoc. Prof. Dr. Thuong Le-Tien 31
( ) <
= n
n h
DSP Lectured by Assoc. Prof. Dr. Thuong Le-Tien 32
LINEAR CONSTANT COEFFICIENT DIFFERENCE EQUATION
Example: y[n] y[ n-1] = x[n]
A recursive difference equation
Example: a recursive form of a moving average system