Question 356696
Not sure how you would use the calculus of residues to do that. 
You could use standard integration techniques with integration by parts and trignometric substitution.
Additionally, neither of these methods are for algebra problems.