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.
You can first integrate by parts for $X > \pi$
Then you can apply your inequality $$ \left|\frac{\sin\left(X\right)}{X}\right| \leq \frac{1}{X} \underset{X \rightarrow +\infty}{\rightarrow}0 $$ and then $$ \left|\frac{\sin\left(x\right)}{x^2}\right| \leq \frac{1}{x^2} $$ which is integrable on $\left[\pi, +\infty\right[$. Letting $X \rightarrow +\infty$ gives you the convergence of the first integral because the three terms you find that one is constant, one tends to a constant and the last tends to $0$.