Evaluate this $\lim\limits_{n \to \infty}\int\limits_{1/n}^{n}\left(\cos x-\cos(x/2)\right)\frac{\ln x}{x}dx$
By letting $t=x/2$, we have that $$\int_{1/n}^{n}\cos(x/2)\frac{\ln (x)}{x}dx=\int_{1/(2n)}^{n/2}\cos(t)\frac{\ln(t) +\ln(2)}{t}dt$$ Hence $$\begin{align}\int_{1/n}^{n}\left(\cos x-\cos(x/2)\right)\frac{\ln(x)}{x}\,dx&= \int_{n/2}^{n}\frac{\cos(x)}{x}\ln(x)dx-\int_{1/(2n)}^{1/n}\frac{\cos(x)}{x}\ln(x)\,dx \\ &\qquad-\ln(2)\int_{1/(2n)}^{n/2}\frac{\cos(x)}{x}\,dx.\end{align}$$ Now show that $$\begin{align} &\lim_{n\to \infty}\int_{n/2}^{n}\frac{\cos(x)}{x}\ln(x)\,dx=0,\\ &\lim_{n\to \infty}\int_{1/(2n)}^{1/n}\frac{\cos(x)-1}{x}\ln(x)\,dx=0. \end{align}$$ Morever $$\lim_{n\to \infty}\left(\int_{1/(2n)}^{n/2}\frac{\cos(x)}{x}\,dx-\ln(n)\right) =\lim_{n\to \infty} (-\text{Ci}(\frac{1}{2n})-\ln(n))=\ln(2)-\gamma.$$ where $\text{Ci}(x)$ is the cosine integral (recall that $\text{Ci}(x)=\ln(x)+\gamma+o(1)$, as $x\to 0$).
Therefore $$\int_{1/(2n)}^{n/2}\frac{\cos(x)}{x}dx=\ln(n)+\ln(2)-\gamma+o(1),$$ and $$\int_{1/(2n)}^{1/n}\frac{\cos(x)}{x}\ln(x)\,dx =-\ln(2)\ln(n)-\frac{\ln^2(2)}{2}+o(1).$$ Thus we may conclude that $$\lim_{n \to \infty}\int_{1/n}^{n}\left(\cos x-\cos(x/2)\right)\frac{\ln (x)}{x} \, dx=\boxed{\gamma \ln (2)-\frac{\ln^2(2)}{2}}.$$