For a discrete time LTI system, I understand that from a difference equation description of the system in the form $$ \sum\limits_{k=0}^N{a_k y[n-k]}=\sum\limits_{k=0}^M{b_k x[n-k]} $$ I can determine the transfer function of the system in the form $$ H(z)=\frac{b_Mz^M+b_{M-1}z^{M-1}+\ldots+b_1z+b_0}{a_Nz^N+a_{N-1}z^{N-1}+\ldots+a_1z+a_0} $$ Given a rationanal transfer function, I can easily go back to the difference equation. However, since the transfer function can also be expressed as $\frac{Y(z)}{X(z)}$, $$ H(z)=\frac{b_Mz^m+b_{M-1}z^{M-1}+...+b_1z+b_0}{a_Nz^N+a_{N-1}z^{N-1}+...+a_1z+a_0}=\frac{Y(z)}{X(z)} $$
- Doesn't this imply that the polynomial in the numerator corresponds to the output and the denominator corresponds to the input?
But we know that the numerator polynomial derived from the input side and the denominator derived from the output side of the difference equation.
- I'm obviously missing something in my understanding, but I don't see how to resolve this conundrum. What am I missing?