Professional Documents
Culture Documents
1
Difference Equations
a k y[n k ] b m x[n m ]
0 0
);
2
Total Solution Calculation
N M
a k y[n k ] b m x[n m ]
k 0 m0
a k yh [n k ] 0
k 0
3
Homogeneous Solution
N
Given the homogeneous equation:
a k yh [n k ] 0
k 0
Assume that the homogeneous solution is of the form
y h [ n ] 𝑛
then
0
N
yh [n ] a k n k n N a0 N a 1 N 1 a N
k 0
4
Particular Solution
The particular solution is required to satisfy the difference equation for a specific
input signal x[n], n ≥ 0.
N M
a k y[n k ] b m x[n m ]
k 0 m0
To find the particular solution we assume for the solution yp[n] a form that depends
on the form of the specific input signal x[n].
5
General Form of Particular Solution
6
Example (1/3)
Determine the homogeneous solution for
Substitute
y h [n] 𝑛
𝑛 n1 6n2 0
n2 2 6 0
n2 3 2 0
Homogeneous solution is then
y h [n] A1 1n A2 n2 A1 3 n A2 2n
7
Example (2/3)
6 8
which is satisfied by = -2
8
Example (3/3)
then 1 1
y[1] A1 A2 2 1 A1 1.8
3 2
A2 4.8
1 1
y[3] A1 A2 2 1
9 4
10
Zero-input, Zero-state Response
An alternate approach for determining the total solution y[n] of a difference equation
is by computing its zero-input response yzi[n], and zero-state response yzs[n]. Then
the total solution is given by y[n] = yzi[n] + yzs[n].
The zero-input response is obtained by setting the input x[n] = 0 and satisfying the
initial conditions. The zero-state response is obtained by applying the specified input
with all initial conditions set to zero.
11
Example (1/2)
y[n] y[n 1] 6y[n 2] 0 y[1] 1
y[2] 1
1 A 2 A1 3 A 22
y h[n] A1 n n n n
2
Zero-input
response: 27
A1 5.4
y zi [0] A1 A2 y[1] 6 y[2] 1 6 7 5
yzi[1] A1 (3) A2 (2) y[0] 6 y[1] 7 6 13 8
A2 1.6
5
Zero-input response:
yzi[n] 5.4(3) n 1.6(2) n
Zero-state response:
yzs[n] 3.6(3) n 6.4(2) n 2
Total solution is
13
Example
Determine the impulse response for
y[n] y[n 1] 6y[n 2] x[n]
h[n]
3
3 n 2 2 n n 0
5 5
14
System Analysis
15