I am confused about the steps in Test 2 problem set Friday sitting question 4.

When dealing with the Fourier transform of the even continuation, in the second step, why x of the first part of the integral can be integrated out, but the second not. In other words, can someone explain to me how the second step's equation form based on the first step?

Thank you guys so much! I have attached the problem's picture below.