What is the unit sample response of the system described by the difference equation y=0.5y(n-1)+2x?
A. 0.5(2)$^{n}$u
B. 2(0.5)$^{n}$u
C. 0.5(2)$^{n}$u(-n)
D. 2(0.5)$^{n}$u(-n)
Answer: b
Explanation: By applying the z-transform on both sides of the difference equation given in the question we obtain,
\(\frac{Y(z)}{X(z)}=\frac{2}{1-0.5z^{-1}}\)=H(z)
By applying the inverse z-transform we get h=2(0.5)$^{n}$u.