Use the residue theorem to evaluate the following integrals (you should show that the integral around the closing semicircle is zero). Pay close attention to the flow of argument. In the exam, you will be asked to adapt the method to a slightly different setting:
[infinity]
∫ dx/(x²+1)²
0