I'm trying to brush up with Fourier series with Apostol's Mathematical Analysis. I was looking through the Fourier chapter and its Fourier integral theorem. I'm slightly confused on how to approach it with improper integrals and how to determine if the integral is either odd or even. Especially with problems such as
$\int_{0}^{\infty} \frac{x \sin ax}{1+x^{2}}\mathrm dx = \frac{a}{\left | a \right |} \frac{\pi }{2}e^{-\left | a \right |}$
$\int_{0}^{\infty} \frac{\cos ax}{b^{2}+x^{2}}\mathrm dx= \frac{\pi }{2b} e^{-{\left | a \right |b}}$
Any help is much appreciated!