Problems Based on Difference Equations, Problem based on Forced Response, Problems based on Complete Response
DIFFERENCE EQUATIONS
Consider
the difference equation,
eeeeeeeeeee
Here
x(n-k) are the inputs and y(n-k) are the outputs.
The
difference equation can be solved to obtain an expression for y(n). This
expression for y(n) is made up of two components.
5.1.1 Natural Response (Zero Input Response)
The
natural response is the output of the system with zero input. This response is
obtained only with initial conditions. It is denoted by y(n)(n).
5.1.2 Forced Response (Zero State Response)
The
forced response is the output of the system for given input and zero initial
conditions. Thus forced response is obtained only with given input, it is
denoted by y(f)(n).
The
complete response of the system is given as the sum of natural response and
forced response.
Natural Response y(n)(n):
The
natural response is obtained for zero input. Hence equation (1) becomes,
eeeeeeeeeeeeeee
The
above equation can also be written as,
eeeeeeeeeeee
The
above difference equation is also called homogeneous difference equation. The
solution of the above equation has the following forms:
eeeeeeeeeeeeeee
Here
ri are real and distinct.
Here
ri are the N roots of the discrete time system's characteristics
equation. This characteristic equation is given as,
eeeeeeeeeee
If
ri is complex conjugate ie ri e j Ω. Then,
eeeeeeeeeeeee
If
ri is repeated ie rip+1. Then,
eeeeeeeeeeeeeeee
Forced
Response y(f)(n):
The
forced response consists of sum of the two components:
(i)
The term similar to natural response, y(n)(n)
(ii)
Particular solution, y(p)(n).
The
particular solution is solution of difference equation for given input. The
particular solution has same form as that of input.
For
example, if x(n) = an, then particular solution is of the form y(p)(n)
= C αn. Here 'C' is some constant. The table below lists the form of
particular solutions for commonly applied inputs.
ttttttttttttttttt
Complete Response y(n)
The
complete response of the system is equal to sum of natural response and forced
response. Thus input as well as initial conditions are taken care of in
complete response.
Example:
Problems Based on Difference Equations
Problem Using Natural
Response:
Problem 1:
Determine
the natural response (zero input response) for the following system:
eeeeeeeeeeeee
Solution:
With
zero inputs, the given equation becomes,
eeeeeeeeeeeee
Step 1: Roots
of characteristics equation
Here
N = 2, hence the characteristic equation of equation (4) becomes.
eeeeeeeeeeeee
From
equation (1), Comparatively we can get
eeeeeeeeeeee
hence above equation becomes.
eeeeeeeeeee
Roots
of the above equation are,
Step 2:
Form of natural response
The
natural response is given by equation (3),
eeeeeeeeeeeee
For
N = 2 above equation becomes,
eeeeeeeeeee
Putting
value of r1 = 1/2 and r2 = -1/4 in above equation,
eeeeeeeeeeee
Step 3:
Values of constants in y(n)(n).
With
n = 0, above equation becomes,
eeeeeeeeeeeeeee
With
n = 1 equation (2) becomes,
eeeeeeeeeeeee
Now
let us put n = 0 in equation (1),
eeeeeeeee
We
know that y(-1) = 0 and y(-2) = 1, hence above equation becomes,
eeeeeeeeeeeeeee
This
should be equal to y(n)(0) of equation (3). Putting y(n)(0)
= 1/8 in equation (3) we get,
C1
+ C2 = 1/8
Now
let us put n = 1 in equation (1),
eeeeeeeeeeee
We
know that y(−1) = 0 and y(0) = 1/8. Hence the above equation becomes,
eeeeeeeeeeeeeeee
This
should be equal to y(n)(1) of equation (4) putting y(n)(1)
= 1/32 in equation (4)
eeeeeeeeeeeee
Solving
above equation and equation (3) for C1 and C2, we get,
eeeeeeeeeeeee
Putting
these values of C1 and C2 in equation (2),
eeeeeeeeeeeeee
This
is the natural response of the system.
Problem based on Forced Response y(f)(n):
Problem 2:
Determine
the forced response for the following system,
eeeeeeeeeeeeee
Assume
zero initial conditions.
Solution:
Step 1:
Roots of characteristic equations
Let
us first find out characteristic equation. For this we have to make input zero
in the given equation. Then we get,
eeeeeeeeeeeee
Here
N = 2, hence the characteristic equation of equation (4) becomes.
eeeeeeeeeeee
From
equation (1) a0 = 1, a1 = -1/4 and a2 = -1/8,
hence above equation becomes,
eeeeeeeeeeee
Roots
of the above equation are,
eeeeeeeeee
Step 2:
Form of natural response.
Natural
response is given by equation (3) as,
eeeeeeeeeeee
For
N = 2, above equation becomes,
eeeeeeeeeeee
Putting
values of r1 = 1/2 and r2 = -1/4 in above equation,
eeeeeeeeeeee
Step 3:
Form of a particular solution.
Here
x(n) = (1/8)n u(n). Hence from the table of the particular solution
has the form of
eeeeeeeeeeeee
Step 4:
Values of constants in y(p)(n)
Putting
y(p)(n) = y(n) in given system equation and input we get,
eeeeeeeeeeeeeee
For
n ≥ 2, all the terms in above equation will be present. Hence we will obtain value
of 'k' for n ≥ 2. Then we can drop all unit step functions in above equation
ie.
eeeeeeeeeeeeeee
Hence
particular solution of equation (3) becomes,
eeeeeeeeeeee
The
forced response of the system is equal to sum of natural response and
particular solution.
eeeeeeeeeeeeeee
Putting
values in above equation from equation (2) and equation (4),
eeeeeeeeeeeeeeee
Step 5:
Values of constants in y(f)(n) with initial conditions.
The
given system equation can be written as,
eeeeeeeeeeeeeee
With
n = 0 above equation becomes,
eeeeeeeeeeeee
In
above equation y(-1), y(-2) are zero. And x(-1) = 0 since eeeeeeeeeee
Hence
the above equation becomes.
eeeeeeeeeeeeeeee
With
n = 1 in equation (6)
eeeeeeeeeee
Here
y(-1) = 0 and y(0) = 1. And x(1) = (1/8)1, x(0) = (1/8)0.
The above equation becomes.
eeeeeeeeeeeee
Putting
n = 0 in equation (5),
eeeeeeeeeeeeeeee
This
value of y(f)(0) must be equal to y(0) = 1 of equation (7). Hence
above equation becomes,
C1
+ C2 -1 = 1 ⇒
C1 + C2 = 2 ..........(9)
Similarly
putting n = 1 in equation (5),
eeeeeeeeeeeee
This
value of y(f)(1) must be equal to
y(1)
= 11/8 of equation (8), ie.
eeeeeeeeeeeeeeeee
Solving
equation (9) and above equation for C1 and C2 we get,
C1
= 8/3 and C2 =-2/3
eeeeeeeeeeeee
This
is the forced response of the system for zero initial conditions.
Problems based on
Complete Response y(n):
Problem 3:
Determine
the step response of the difference equation,
eeeeeeeeeeeeee
Solution:
Step 1:
Roots of characteristic equation
The
given system equation is,
eeeeeeeeeeee
Since
we have to obtain step response, the input is,
x(n)
= u(n) ..............(2)
To
obtain characteristic equation make inputs equal to zero in equation (1), then
we get,
eeeeeeeeeeeeeee
Here
N = 2, hence characteristic equation of equation (4) becomes,
eeeeeeeeeeee
From
equation (3), a0 = 1, a1 = 0 and a2 = -1/9,
hence above equation becomes,
eeeeeeeeeeeeeee
Step 2:
Form of a natural response
Natural
response is given by equation (3) as,
eeeeeeeeee
Putting
r1 and r2 in above equation
eeeeeeeeeeeee
Step 3:
Form of a particular solution
Here
x(n) = u(n). Hence from the table the particular solution has the form of
y(p)(n)
= k u(n)
Step 4:
Value of k in y(p)(n)
Putting
y(p)(n) in system equation of equation (1) and inputs,
eeeeeeeeeeeeee
For
n ≥ 2 all the terms in above equation will be present. Hence we will obtain value
of k for n ≥ 2 ie,
eeeeeeeeeee
Hence
particular solution of equation (5) becomes,
eeeeeeeeeeeee
Forced
response of the system is equal to sum of natural response and particular
solution i.e,
eeeeeeeeeeeee
Putting
values in above equation from equation (4) and equation (6),
eeeeeeeeeeeeee
Step 5:
Values of C1 and C2 with initial conditions
With
n = 0 in system equation of equation (1),
eeeeeeeeeeee
Since
x(n) = u(n), x(-1) = 0 and x(-2) = 0
y(0)
= 0 ..............(8)
With
n = 1 in system equation of equation (1)
eeeeeeeeeeeeee
Here
x(0) = 1 and y(-1) = 1, hence we get,
eeeeeeeeeeee
Putting
n = 0 in equation (7),
eeeeeeeeeeeeeee
This
value of y(f)(0) must be equal to y(0) = 0 of equation (8). Hence
above equation becomes,
eeeeeeeeeeee
Similarly
putting n = 1 in equation (7),
eeeeeeeeeeeee
This
value of y(f)(1) must be equal to y(1) = 10/9 of equation (9). Then
above equation becomes.
eeeeeeeeeeeeeeee
On
solving above equation and equation (10) for C1 and C2 we
get
C1
= -7/12, C2 = -13/24
Putting
these values in equation (7),
eeeeeeeeeeeee
This
is the complete response of the system. It includes natural response as well as
forced response.
Here
we consider initial conditions as well as input. Hence step response of the
system is
eeeeeeeeeeeee
Problem 4:
Determine
the response y(n), n ≥ 0 of the system (by finding the homogeneous and
particular solutions) described by the second order difference equation y(n) –
3 y(n-1) – 4 y(n-2) = x(n) + 2 x(n-1) when the input sequencer is x(n) = 4n
u(n).
Solution:
(i)
Roots of Characteristic Equation
Characteristic
equation can be written as,
eeeeeeeeeee
Here
a0 = 1, a1 = -3 and a2 = −4. Putting values,
eeeeeeeeeee
(ii)
Form of a Natural Response
eeeeeeeeeeeeeee
(iii)
Form of a Particular Solution
Here
x(n) = 4n u(n). Hence particular solution will have following form.
y(p)(n)
= k (4)n u(n).
Above
particular solution is already included in natural response given by equation
(1), so we must select the particular solution, which is linearly independent
of terms in natural response. Hence let us select the particular solution for
multiple root. ie,
y(p)(n)
= k (4)n u(n) .............(2)
(iv)
Value of k in y(p)(n)
Putting
this value of y(p)(n) for y(n) and x(n) = 4n u(n) in a
given difference equation,
eeeeeeeeeee
For
n ≥ 2 above equation will be,
eeeeeeeeee
Dividing
by 4n.
eeeeeeeeeeee
Let
n = 2 for simplicity.
eeeeeeeeeeeeeeee
Hence
equation (2) becomes,
eeeeeeeeeee
The
response of the system is equal to sum of natural response and particular
solution ie
eeeeeeeeeeeee
v)
Value of C1 and C2 with initial conditions
The
given difference equation is,
eeeeeeeeeeeeee
With
n = 0 in above equation
eeeeeeeeeeeeee
Then
above equation will be
y(0)
- 3 × 0 - 4 × 0 = 1 ⇒
y(0) = 1
Similarly
putting n = 1 in equation (5)
y(1)
- 3 y(0) - 4(-1) = 41 + 2 x 40
Here
y(0) = 1 and y(-1) = 0,
y(1)
− 3 = 4 + 2 ⇒
y(1) = 9.
Now
let us evaluate equation (5) for n = 0 and n = 1
eeeeeeeeeeeeee
eeeeeeeeeeee
Solving
above equations,
eeeeeeeeee
Putting
these values of C1 and C2 in equation (5),
eeeeeeeeeeee
This
is the required response.
Signals and Systems: Unit V: Linear Time Invariant-Discrete Systems,, : Tag: : Natural Response (Zero Input Response), Complete Response y(n), - Difference Equations
Signals and Systems
EC3354 - 3rd Semester - ECE Dept - 2021 Regulation | 3rd Semester ECE Dept 2021 Regulation