For $n$ in the natural numbers let
$$a_n = \int_{1}^{n} \frac{\cos(x)}{x^2} dx$$
Prove, for $m ≥ n ≥ 1$ that $|a_m - a_n| ≤ \frac{1}{n}$ and deduce $a_n$ converges.
I am totally stuck on how to even go about approaching this. All help would be very gratefully received!
$|a_m-a_n| = \left|\displaystyle \int_{n}^m \dfrac{\cos x}{x^2}dx\right| \leq \displaystyle \int_{n}^m \dfrac{|\cos x|}{x^2}dx \leq \displaystyle \int_{n}^m \dfrac{1}{x^2}dx = \dfrac{1}{n} - \dfrac{1}{m} < \dfrac{1}{n}$. Thus $\{a_n\}$ is a Cauchy sequence, hence converges.