DSP Presentation - 3
DSP Presentation - 3
A linear and time-invariant systems are characterized by the unit sample response h(n).
To determine the output y(n) of the system for any given input sequence x(n) by means
of the convolution summation, i.e.
y (n)
k
h( k ) x ( n k ) (1)
1 n
y (n) x(k )
n 1 k 0
n 0, 1, ....... (2)
The computation of y(n) requires the storage of all the input samples x(k) for 0 ≤ k ≤ n.
Since n is increasing, the memory requirements grow linearly with time.
The output y(n) can be computed more efficiently by utilizing the previous output value
y(n - 1).
By a simple algebraic rearrangement of Eq.(2), we obtain
n 1
( n 1) y ( n) x ( k ) x ( n)
k 0
( n 1) y ( n) ny ( n 1) x (n )
n 1
y ( n) y ( n 1) x( n) (3)
n 1 n 1
(a) nonrecursive
(b) recursive system
Figure 2: Basic form for a causal and realizable.
October 28, 2022 5
Linear Time-Invariant Systems Characterized by Constant-Coefficient
Difference Equations
A family of linear time-invariant systems described by an input-output relation called
a difference equation with constant coefficients.
The constant-coefficient linear difference equation systems are a subclass of the
recursive and non-recursive systems.
Let us consider that we have a recursive system with an input-output equation
y(n) a y(n 1) x(n) (8)
where a is a constant.
Figure 3 shows a block diagram realization of the system.
The response y(n) of the system as given by the right-hand side of (9) consists of two
parts.
The first part, which contains the term y(- 1), is a result of the initial condition y(-1) of
the system.
The second part is the response of the system to the input signal x(n).
If the system is initially relaxed at time n = 0, then its memory should be zero.
Hence,
y(-1) = 0.
Thus, a recursive system is relaxed if it starts with zero initial conditions.
This is called the zero state of the system.
Its corresponding output is called the zero-state response or forced response, and it is
denoted by yzs(n).
The zero-state response or forced response of the system is given by
n
yzs (n) a k x(n k ) n0 (10)
k 0
Equation (10) is a convolution summation involving the input signal convolved with the
impulse response
h( n) a nu ( n) (11)
The system described by the first-order difference equation in Eq. (8) is causal.
As a result, the lower limit on the convolution summation in Eq. (10) is k = 0.
October 28, 2022 8
Constant-Coefficient Difference Equations
Furthermore, the condition y(-1) = 0 implies that the input signal can be assumed
causal and hence the upper limit on the convolution summation in Eq. (10) is n, since
x(n - 1) = 0 for k > n.
The relaxed recursive system described by the first-order difference equation in (8) is a
linear time-invariant IIR system with impulse response given by Eq. (11).
Suppose that, the system described by (8) is initially non-relaxed [i.e., y(- 1) ≠ 0] and
the input x(n) = 0 for all n.
Then, the output of the system with zero input is called the zero-input response or
natural response and is denoted by yzi(n).
From Eq. (8), with x(n) = 0 for - ∞ < n < ∞, we obtain
The recursive system with nonzero initial condition is nonrelated in the sense that it
can produce an output without being excited.
The zero-input response is due to the memory of the system.
a k y (n k ) bk x (n k ), a0 1
k 0 k 0 (15)
The integer N is called the order of the difference equation or the order of the system.
The negative sign on the right-hand side of (14) is introduced as a matter of
convenience to allow us to express the difference equation in (15) without any
negative signs.
A system is linear if it satisfies the following three requirements:
1. The total response is equal to the sum of the zero-input and zero-state responses
[i.e. y(n) = yzi(n) + yzs(n)].
2. The principle of superposition applies to the zero-state response (zero-state linear).
3. The principle of superposition applies to the zero-input response (zero-input linear).
October 28, 2022 10
Solution of Linear Constant-Coefficient Difference Equation
a
k 0
k y (n k ) 0
(17)
October 28, 2022 11
The homogeneous solution of a difference equation
We assume that the solution is in the form of an exponential, that is
yh ( n ) n (18)
where the subscript h on y(n) is used to solve the homogeneous difference equation.
If we substitute this assumed solution in (17), we obtain the polynomial equation
N
a
k 0
k
nk
0
a
k 0
k y p (n k ) bk x(n k )
k 0
a0 1 (22)
To solve (22), we assume for yp(n), a form that depends on the form of the input x(n).
The resultant sum y(n) contains the constant parameters {Ci} embodied in the
homogeneous solution component yh(n).
These constants can be determined to satisfy the initial conditions.
October 28, 2022 13
The Impulse Response of a Linear Time-Invariant Recursive System
When the input is an impulse [i.e., x(n) = δ(n)], Eq. (26) reduces to
y zs (n) h(n) (27)
Let us consider the problem of determining the impulse response h(n) given a linear
constant-coefficient difference equation description of the system.
We have established the fact that the total response of the system to any excitation
function consists of the sum of two solutions of the difference equation: the solution to
the homogeneous equation plus the particular solution to the excitation function.
In the case where the excitation is an impulse, the particular solution is zero, since
x(n) = 0 for n > 0, that is
y p ( n) 0
Consequently, the response of the system to an impulse consists only of the solution
to the homogeneous equation, with the [Ck] parameters evaluated to satisfy the initial
conditions dictated by the impulse.
When the system is described by an Nth-order linear difference equation, the solution
of the homogeneous equation is
N
yh (n) Ck kn (28)
k 1
h( n) Ck Ck k
n
n
k (30)
n 0 n 0 k 1 k 1 n 0
n
k
n 0
and hence
h ( n)
n 0
On the other hand, if one or more of the |λk| ≥ 1, h(n) is no longer absolutely
summable, and consequently, the system is unstable.