Solution (source code)

= Solution
{c}

For $x>1$, $1/x\in(0,1)$ and $\cos^2(1/x)\geq\cos^2(1)>0$. Its integral over the infinite interval is bounded below by the integral of a positive constant. Therefore \b[$g$ is not integrable on $(1,\infty)$]. In fact it tends to one at infinity.