TITLE: $\int ^{\infty}_0 \frac{\ln x}{x^2 + 2x+ 4}dx$
QUESTION [12 upvotes]: We have to find the integration of 
$$\int ^{\infty}_0 \frac{\ln x}{x^2 + 2x+ 4}dx$$
In this I tried to do substitution of $x=e^t$
After that got stuck .

REPLY [4 votes]: Let $$I = \int^{\infty}_{0}\frac{\ln x}{x^2+2x+4}dx = \int^{\infty}_{0}\frac{\ln x}{(x+1)^2+(\sqrt{3})^2}dx$$
put $\displaystyle x=\frac{1^2+(\sqrt{3})^2}{y} = \frac{4}{y}$ and $\displaystyle dx = -\frac{4}{y^2}dy$
$$I = \int^{0}_{\infty}\frac{\ln (4)-\ln (y)}{16+8y+4y^2}\cdot -\frac{4}{y^2}\cdot y^2 dy = \int^{\infty}_{0}\frac{\ln 4-\ln y}{y^2+2y+4}dy$$
$$I = \ln 4\int^{\infty}_{0}\frac{1}{(y+1)^2+(\sqrt{3})^2}dy-I$$
So $$I = \ln 2 \cdot \frac{1}{\sqrt{3}}\cdot \tan^{-1}\left(\frac{y+1}{\sqrt{3}}\right)\bigg|^{\infty}_{0} = \frac{\ln 2}{\sqrt{3}}\cdot \bigg(\frac{\pi}{2}-\frac{\pi}{6}\bigg) = \frac{\pi \cdot \ln 2}{3\sqrt{3}}$$