|
On 11/27/2010 2:18 AM, vikas kumar wrote:
> how do we solve this difference equation :
> y(n) + 1/2y(n-1) + 3/4y(n-2) = x(n)
>
> where x(n)=(1/4)^n for all n>0
> & y(-1)=4 , y(-2)=6
2 ways:
appy Z transform, solve for X(z), then find inverse Z transform
look up tables if needed.
or
write y(n)=r^n, to get the auxillary equation,
solve for homogeneous part first
r^n + (1/2) r^(n-1) + (3/4) r^(n-2) = 0
or
r^n (1+(1/2)r^-1+(3/4)r^-2) = 0
or for non-trivial solution, need
1+(1/2)r^-1+(3/4)r^-2 = 0
or
r^2+(1/2)r+(3/4) = 0
find the roots r1,r2, then you'll get characteristic equation
yh(n) = c1*r1^n + c2*r2^n
Now Find yp(n) particular (similar way as you would do in continuous time)
add the solutions, y(n) = yh(n) + yp(n)
now,use given initial conditions at n=-1 and n=-2 to solve for
c1 and c2.
--Nasser
|