I am trying to compute
$$ \int_0^\infty \frac{\ln x}{x^2 +4}\,dx,$$
which I find here, without complex analysis. I am consistently getting the wrong answer and am hoping someone can spot the error.
First, denote the integral by $I$, and take $x = \frac{1}{t}$. Hence, the integral becomes
$$I = \int_\infty^0 \frac{\ln(1/t)}{1/t^2 + 4} \left(-\frac{1}{t^2} dt \right) = \int_0^\infty \frac{\ln(1)}{1+4t^2} dt - \int_0^\infty \frac{\ln(t)}{1+4t^2} dt$$
Note that the leftmost integral on the right-hand side is zero. Now, letting $u = 2t$, we get
$$I = -\frac{1}{2} \int_0^\infty \frac{\ln(2u)}{1+u^2}\,du = - \frac{1}{2} \int_0^\infty \frac{\ln(2)}{1+u^2}\,du - \frac{1}{2} \int_0^\infty \frac{\ln(u)}{1+u^2}\,du = - \frac{1}{2} \int_0^\infty \frac{\ln(2)}{1+u^2} - \frac{I}{2}$$
and therefore $I = - \frac{\ln(2)}{3} \int_0^\infty \frac{1}{1+u^2}du = - \frac{\pi \ln(2)}{6}$. This, however, is not the right answer. So, where did I go wrong?