I can't seem to find this problem on Math.SE, so sorry if it actually exists.
I want to evaluate $I(a) = \int_0^{\infty} \frac{\log(ax)\sin x}{x} dx$. Then I separated it into two integrals $I(a) = \int_0^{\infty} \frac{\log(a)\sin x}{x} + \int_0^{\infty} \frac{\log(x)\sin x}{x}$. The first term is constant and evaluates to $\frac{\pi}{2}\log a$, and the second term is where I am struggling with, it's equal to $I(1)$.
I also tried using differentiation under the integral sign, but it gives the same result, as I get $I'(a) = \frac{\pi}{2a}$, and I can't find the constant.
I also tried putting the variable inside $\sin(x)$, so $J(a) = \int_0^{\infty} \frac{\log x \sin(ax)}{x}$, but $I'(a) = \int_0^{\infty} \log x \cos(ax) dx$ is divergent.
WolframAlpha gives something about $\pi\gamma$, so I am wondering where that comes from.
Thanks!