Please see the attached file.
Here are the two mistakes I found:
1. In applying the residue theorem, the original solver forgot that we integrate in the lower half of the complex plane (where the poles are). This means that the direction of ...
The solution shows how to apply complex analysis to the integral. Also how to use convergence arguments to reach the correct answer.