I'm trying to find the Laurent series expansion for $$ \frac{2}{z^2-4z+8} $$ using polynomial long division.
However, I noticed that if I divide leading with the $8$ term, then I will only get positive power terms, namely $$ \frac{1}{4}+\frac{1}{8}z+\frac{1}{32}z^2 + ... $$ Whereas if I divide leading with the $z^2$ term, then I will get only negative power terms, as in $$ \frac{2}{z^2} + \frac{8}{z^3}+\frac{16}{z^4} + ... $$
What is going on?
(I'm doing this to find the residues, i.e. the coefficient of the $\frac{1}{z}$ term.)
Well you wan't to find a function $$ f(z):= \sum_{n=-\infty}^\infty a_n z^n $$ defined around $0$ such that $f(z)(z^2-4z+8)=2$. If $$ f(z)=\frac{2}{z^2} + \frac{8}{z^3}+\frac{16}{z^4} + \cdots $$ then $f$ is not defined at $0$. However, if $$ f(z)= \frac{1}{4}+\frac{1}{8}z+\frac{1}{32}z^2 + \cdots $$ then $f$ is defined at $0$ and doing some algebra you can check that $f(z)(z^2-4z+8)=2$. Thus, your first approach is the correct one. Of course this means that the coefficient for $\frac{1}{z}$ is $a_{-1}=0$.