site:math.stackexchange.com residue theorem second order pole - Search