My professor has asked us to show that, for ,

using the Residue theorem (in this case:

My solution is

I get the answer no problem, but I'm not sure about is why this is for only. If I let , I get (by the same/similar arguments and mathematics as above)

And I'm not sure why this wouldn't be allowed? Any suggestions of where to look?