Hey guys, I was hoping you'd be able to help me with a question. I got the right answer but my method of doing it was a little different to the solution to the answer in my textbook. The question was this:

http://img841.imageshack.us/img841/7077/integral2.png

What I did was use notice that the above integral was the same as:

http://img855.imageshack.us/img855/4271/integral3.png

I then went onto the complex plane and made a semicircle closed contour with infinite radius as shown below:

http://img848.imageshack.us/img848/5929/contour.png

I found the singularities of the function, with two of them being inside the contour (e^(3pi/4)i and e^(pi/4)i) and then applied Cauchy's Residue Theorem:

http://img215.imageshack.us/img215/6...duetheorem.png

Worked out the values of the residues of the two poles inside the contour and came to a final answer of:

http://img855.imageshack.us/img855/6788/answer.png

What my maths lecturer did was way more in depth and used a lot of weird things that did not make too much sense to me and are too long to present here. Is there anything wrong with the way I solved that integral? Surely if you have a closed contour with a pole in it you can straight away use Cauchy's Residue Theorem to find the value of the residue at the pole and multiply it by 2(pi)i?