1. The problem statement, all variables and given/known data I need to find the residue of e^(az)/(1+e^z)^2 at I Pi. For some reason this is such much harder than I thought it was going to be. Mathematica is not even helping :(. 2. Relevant equations Cauchy's kth Integral formula. 3. The attempt at a solution I made an attempt at doing a u substitution of u=e^z, but I ended up with a residue of 0, which was not what I was expecting. All this lead me to believe that you probably can't use u-substitution strategies with line integrals and expect them to work.