integration from 0->oo cosx-1/x^2dx=-pi/2
show that ^. the x^2 at the bottom throws me off because your points equal to zero?? Im not sure how to start?
So it's:
Usually when you have sines and cosines like that, consider using then in your case, take the real part. So how about trying:
With being the upper half-washer with an indentation around the pole at the origin. Note, the pole is simple, so we can immediately calculate the integral around the indentation as it's radius goes to zero. It's where is the residue at the origin. Add the other two legs from minus infinity to plus infinity and note that the integrand is even so take one half of that.