I am supposed to prove that the integral in the question is convergent, but I seem to be stuck on finding an upper bound. It's obvious that the integrand is not positive for all $x \in [\pi, \infty[$ so the next step is to examine the absolute value of the integrand. However, this is where the problem arises. I calculate as follows:
$$\int_{\pi}^{\infty}\ \left|{\frac{\cos(x)}{x}}\right| = \int_{\pi}^{\infty}{\frac{\left| \cos(x) \right|}{x}} \space \text{on the interval}$$ Since $ 0 \leq |\cos(x) |\leq 1$ we can write the following inequality:
$$\int_{\pi}^{\infty}{\frac{|\cos(x) |}{x}} \leq \int_{\pi}^{\infty}{\frac{1}{x}}$$ However, the integral $\int_{\pi}^{\infty}{\frac{1}{x}}$ diverges and thus this way is wrong or we need to obtain an upper bound which converges, but how exactly do we do that? My question is essentially if I am on the right track or if I need to resort to some different method.