When I do this contour integral, facing a extreme predicament, I have some difference about the residue part.
Here is my step:
To make it simple, I want to know the extra form of $\log^2 (-1+i)-\log^2 (-1-i)$.
Then it is apparently a form of differences of squares, so I factorize it and get $$[\log (-1+i)+\log (-1-i) ][\log (-1+i)-\log (-1-i) ] = \log ((-1+i) (-1-i)) \log (\frac{-1+i}{-1-i}) = \log 2 \log -i = -\frac{\pi}{2} log 2$$.
But the correct answer gives:
$$\log^2 (-1+i) = \left(\frac{1}{4}\log^2 2 - \frac{9}{16} \pi^2 + \frac{3}{4}\log 2 \times i\pi\right)\tag{1}$$ and $$\log^2 (-1-i) =\left(\frac{1}{4}\log^2 2 - \frac{25}{16} \pi^2 + \frac{5}{4}\log 2 \times i\pi\right)\tag{2}$$ From $(1)-(2)$, $\log^2 (-1+i) -\log^2 (-1-i) = \left(\pi^2 - \frac{1}{2}i\pi \log 2\right)$
I use wolframalpha and its result is mine but obviously, mine is not correct because with that I continued my calculation finally got a different answer.
Can someone help me? I really struggle with this different. Any help, I will thank.
Here $log^2(x) \text{ equals } log(x) \times \ log(x)$