I tried to solve it by integration by parts, but all messed up.

No. The reason this integral is zero is not because the function is odd. If that were the case, then the Cauchy distribution would have a mean equal to zero ....
Of related interest: http://www.mathhelpforum.com/math-he...ancel-out.html