When I was computing the residue at infinity, I encountered a slight issue. The second method of computation is correct, resulting in -3/2. Why does directly using the first formula to calculate the residue at infinity not yield the correct function value?