Given that $f:[0, \infty] \to \mathbb{R}$ is decreasing with $\displaystyle\lim_{x \rightarrow \infty} f(x)=0$, prove that
$$I=\int_{0}^{1}\frac{\cos(\frac{1}{x})f(\frac{1}{x})}{x^2}dx$$ converges.
I've thought about using Dirichlet test but it works only if $f$ is continuously differentiable. It can be an improper integral or not, depends how $f$ is defined, so some of my other ideas didn't work either. Any ideas?