It's because the first integral contains an odd function and is therefore zero as if f(x) is odd.

The second integral contains an even function so if f(x) is even.

also it should be noted that contains no asymptotes over the domain of integration so the above holds.