1)I must calculate . I'm not sure if I should see it as the real part of .

Anyway the problem is obviously when .

I get an infinite residue: .

2)I'd like to get an example of a real integral where when I use complex analysis methods and I choose a contour of integration, I fall over a singularity on the real axis.

Thanks in advance.