Professional Documents
Culture Documents
Cen340 - Chapter 2
Cen340 - Chapter 2
Cen340 - Chapter 2
INPUT: 𝑥 𝑛 = 𝑎𝑘 𝑥𝑘 [𝑛] = 𝑎1 𝑥1 𝑛 + 𝑎2 𝑥2 𝑛 + 𝑎3 𝑥3 𝑛 + ⋯
𝑘
OUTPUT: 𝑦 𝑛 = 𝑎𝑘 𝑦𝑘 [𝑛] = 𝑎1 𝑦1 𝑛 + 𝑎2 𝑦2 𝑛 + 𝑎3 𝑦3 𝑛 + ⋯
𝑘 CEN340: Signals and Systems - Dr. Ghulam Muhammad 1
2. Discrete-Time LTI Systems: the
Convolution Sum
Any discrete-time signal x[n] can be represented as a function of shifted unit
impulses [n-k], where the weights in this linear combination are x[k].
x[n] x[k ] [n k ]
k
Original Signal
+ +
+ + + ….
y[n] = x[n]h[n]
Convolution
y [n ] x [k ]h [n k ]
k
Input
Find output.
Output
Length = 3 Length = 3
Solution:
Convolution length = 3 +3 – 1 = 5
CEN340: Signals and Systems - Dr. Ghulam Muhammad 6
Example: Convolution – (3)
Length = 3 Length = 2
Solution:
Convolution length = 3 + 2 – 1 = 4
h [n ] u [n ]
k , 0 k n
x [k ]h [n k ]
0, otherwise
Thus, for n 0,
n
1 n 1
y [n ] k
, for n 0
k 0 1
Defining:
1/ , 0 t
(t )
0, otherwise
1, 0 t
(t )
0, otherwise
(t)
Pulse or ‘staircase’ approximation of x(t) at t = 0:
1/
x (0), 0 t
xˆ (0) x (0) (t )
0, otherwise
0 t
CEN340: Signals and Systems - Dr. Ghulam Muhammad 10
Continuous-Time Signals in Terms
of Impulses – contd.
Going one step further, shifted can be written as: (t - )
1/ , t 2 1/
(t )
0, otherwise
0 2 t
Pulse or ‘staircase’ approximation of x(t) at t = :
x (), t 2
xˆ () x () (t )
0, otherwise
1/ , k t (k 1)
(t k )
0, otherwise
x (k ), k t (k 1)
xˆ (k ) x (k ) (t k )
0, otherwise
... ...d x (t ) x ( ) (t )d
k
CEN340: Signals and Systems - Dr. Ghulam Muhammad 13
The Convolution Integral
y (t ) x ( )h (t )d x (t ) * h (t )
Let, the input x(t) to an LTI system with unit impulse response h(t) be given as
x(t) = e-at u(t) for a > 0 and h(t) = u(t).
1 t 1
t
= e a
d e a
. |0 1 e at
0
a a
Thus, for all t, we can write
y (t )
1
a
1 e at u (t )
y (t ) x ( )h (t )d x (t ) * h (t )
x()
t<2
CEN340: Signals and Systems - Dr. Ghulam Muhammad 18
Example: The Convolution Integral – contd.
x()
x()
1, n 0,1
Consider a discrete-time system with unit impulse response: h [n ]
0, otherwise
If the system is LTI, we get (by convolution): y [n ] x [n ] x [n 1]
There is only one such LTI system for the given h[n].
However, there are many nonlinear systems with the same response, h[n].
y [n ] x [n ] x [n 1]
2
y [n ] max x [n ], x [n 1]
CEN340: Signals and Systems - Dr. Ghulam Muhammad 20
Commutative Property
x (t ) * h (t ) h (t ) * x (t )
x [n ]* h [n ] h [n ]* x [n ]
Proof: (discrete domain)
x [n ]* h [n ] x [k ]h [n k ]
k
Put r = n – k k = n - r
x [n ]* h [n ] x [n r ]h [r ] h [r ]x [n r ] h [n ]* x [n ]
r r
k
1
y 1[n ] x 1[n ]* h [n ] x 1[k ]h [n k ] u [k ]u [n k ]
k k 2
1 (1/ 2) n 1
u [n ] 2 1 (1/ 2) u [ n ]
n 1
1 (1/ 2)
y 2 [n ] x 2 [n ]* h [n ]
k
2 k u [ k ]u [n k ] 2 n 1
y [n ] y 1[n ] y 2 [n ] 2 1 (1/ 2) n 1 u [n ] 2 n 1
CEN340: Signals and Systems - Dr. Ghulam Muhammad 23
Associative Property
x (t ) * h1 (t ) * h2 (t ) x (t ) * h1 (t ) * h2 (t )
x [n ]* h1[n ]* h2 [n ] x [n ]* h1[n ] * h 2 [n ]
x[n] y[n]
(B) h[n] = h1[n]*h2[n]
y [n ] Kx [n ] Similarly for
continuous LTI
If K = 1, then the system is called identity system. systems.
h (t ) * h1 (t ) (t )
y (t ) x (t t 0 )
To recover the input (i.e. to invert the system), we simply need to shift the output back.
By putting, x[n] = [n], we find the impulse response of the inverse system:
hr[n] = [n] – [n-1]
To check that h[n] and hr[n] are impulse responses of the systems
that are inverse of each other, we do the following calculation:
h [n ]* h1[n ] u [n ]* [n ] [n 1]
u [n ]* [n ] u [n ]* [ n 1] u [ n ] u [ n 1] [ n ]
Therefore, the two systems are inverses of each other.
CEN340: Signals and Systems - Dr. Ghulam Muhammad 27
Causality of LTI Systems
y [n ] x [k ]h [n k ]
k
y (t ) h ( )x (t )d Both the accumulator ( h[n] = u[n])
0 and its inverse (h[n] = [n] - [n-1])
are causal.
| x [n ] | B , for all n
Suppose that we apply this to the LTI system with impulse response h[n].
| y [n ] || h [k ]x [n k ] |
k
| h [k ] || x [n k ] |
k
|x[n – k]| < B, for all n and k B | h [k ] |
k
for all n
Similar case in
continuous-time
Therefore, if | h[k ] | ,
k
then | y [ n ] | LTI system.
| h [n ] | | [n n ] |1
n n
0
| h [n ] | | u [n ] | | u [n ] |
n n n 0
s [n ] u [n ]* h [n ] h [n ]*u [n ]
n
Discrete-
time domain
s [n ] h [k ]
k
Running Sum
h [n ] s [n ] s [n 1] First Difference
Continuous-
s (t ) h ( )d
Running Integral
time domain
ds (t ) First Derivative
h (t ) s (t )
ds
Particular solution
y (t ) y p (t ) y h (t )
Determine Homogeneous solution
y p (t ) Y e 3t y h (t ) Ae st
Ase st 2Ae st 0 A (s 2)e st 0 s 2
From differential equation:
K y h (t ) Ae 2t
3Y e 3t 2Y e 3t Ke 3t 3Y 2Y K Y
5 K 3t
Complete
K y (t ) e Ae 2t
y p (t ) e 3t , for t 0 solution: 5
5
CEN340: Signals and Systems - Dr. Ghulam Muhammad 32
Solution – contd.
h (t ) e at u (t )
y (t ) x (t ) * h (t ) x ( )h (t )d
t
h(t - )
1 t>0
34 t
CEN340: Signals and Systems - Dr. Ghulam Muhammad
Workout (1) – contd.
For t < 0, the overlap between x() and h(t - ) is between the range = - and = t.
e 2a t
t t
e at
e e
a a (t ) 2a
y (t ) e d e at
d e at
2a 2a
For t > 0, the overlap between x() and h(t - ) is between the range = - and = 0.
e 2a 0 e at
0 t
e e
a a (t ) 2a
y (t ) e d e at
d e at
2a 2a
y(t)
By combining,
1/2a
1 a|t |
y (t ) e
2a
t
CEN340: Signals and Systems - Dr. Ghulam Muhammad 35
Acknowledgement
Special thanks to