I have the correct solution from teacher's solution guide, but I was slightly confused by some algebra about the partial fractions expansion evidently
difference equation is as follows
$ y[n] =1/4 * (x[n] +x[n-1]+x[n-2]+x[n-3]) $$ y[n] = \frac{1}{4} \cdot \left( x[n] +x[n-1]+x[n-2]+x[n-3] \right) $
where x[n]$x[n]$ will be unit step-step sequence u[n]$u[n]$
PROBLEM STATEMENT FindPROBLEM STATEMENT:
Find what will the output sequence y[n] when input x[n] = u[n] = unit step
We can use tactic to get X(z) and multiply X(z)*H(z) so we get Y(z) Then inverse Z-transform to get y[k]
we know from earlier calculation that the transfer function for this system willbe as follows
$ H(z) = \frac{z^3 + z^2 + z +1}{4z^3} = \frac{1}{4} * \frac{z^3 + z^2 + z +1}{z^3} $
because unit step input sequence
$ X(z) = \frac{z}{z-1} $
We can find out $Y(z) = X(z) * H(z)$
I had some difficulty with the partial fraction expansion because of the $\frac{1}{4}$ multiplier, how does that constant multiplier term become accounted into the partial fraction expansion?
We were tipped by our teacher to find out $Y(z)/z $ , so that we can find good matches in our z-transforms-table. So, I try to make Y(z)/z into the partial fraction expansion...
$ Y(z)/z = 1/4 * \frac{z^3 + z^2 + z +1}{z^3*(z-1)} $
So, do we just "ignore" the constant multiplier $\frac{1}{4}$ on the r.h.s of the partial fraction as follows???
$ Y(z)/z = 1/4 * \frac{z^3 + z^2 + z +1}{z^3*(z-1)} = \frac{A}{z} + \frac{B}{z^2} + \frac{C}{z^3} + \frac{D}{z-1} $
So, after the "equating coefficients technique" I obtain followins system of equations
4A + 4D = 1
-4A + 4B = 1
-4B +4C = 1
1 = -4C
from these I obtianed coefficients as follows
A= -3/2
B= -1/2
C= -1/4
D= 1
With these results we should multiply both sides by z, so we get Y(z) in partial fractions format
$ Y(z) = A + B/z + \frac{C}{z^2} + \frac{D*z}{z-1} $
From here, we should be able to find inverse-Z-transforms from the table as follows
$ Z^{-1}(Y(z)) = -3/4 * Z^{-1}(1) - 1/2 * Z^{-1}(1*z^{-1}) - 1/4 * Z^{-1}( 1 * z^{ -2 } ) + Z^{-1}( \frac{ z }{ z-1 } )) $
$ y[k] = -3/4 * \delta[k] - 1/2 * \delta[k-1] - 1/4 * \delta[k-2] +u[k] $
where $\delta[k]$, is the unit impulse, aka the deltafunction
I put that into my Texas instruments calculator and the function seemed to hold true for some initial values
expected values are that for negatives indexes output will be zero
then for k=0: output = 1/4
k=1: output = 2/4
k=2: output = 3/4
k>=3: output = 4/4