<s>[INST] How to solve this integral: $\int_0^\infty{\frac{ln x}{x^2+2x+4}}\cdot dx$ I have been trying to solve this integral:- $$\int_0^\infty{\frac{\ln x}{x^2+2x+4}}\cdot dx$$ But I have been unsuccessful so far. I have tried integration by parts ( taking $1/(x^2+2x+4)$ as the second function does not work because it ends of as tan-inverse function which is more compicated to integrate.)
taking $\ln x$ as the second function was interesting, I ended up in this dead end:-
$$\begin{align} I&=\int_0^\infty{\frac{\ln x}{x^2+2x+4}}\cdot dx \\ &= \left[ {\frac{x\ln x -x}{x^2+2x+4}}\right]_0^\infty + \int_0^\infty \frac{2(x+1)(x\ln x-x)}{(x^2+2x+4)^2}\cdot dx \\&= 2\int_0^\infty \frac{(x^2+2x+4-(x+4))(\ln x-1)}{(x^2+2x+4)^2}\cdot dx \\ &= 2\int_0^\infty\frac{\ln x}{x^2+2x+4}\cdot dx - 2\int_0^\infty\frac{1}{x^2+2x+4}\cdot dx -2\int_0^\infty \frac{(x+4)(\ln x-1)}{(x^2+2x+4)^2}\cdot dx \\&= 2I - \left[\frac{1}{\sqrt{3}} \tan^{-1}{\frac{x+1}{\sqrt{3}}} \right]_0^\infty - 2\int_0^\infty \frac{(x+4)(\ln x-1)}{(x^2+2x+4)^2}\cdot dx \end{align}$$
the function in the second step limits to $0$ so I didn't mention it in the third step. Now I have quartic polynomial at the bottom and don't know how to proceed. I have also tried trigonometric substitution ($ x=\tan\theta$)
If possible please try to end this process, I am a high school student so please keep that in mind if you show another method :)
 [/INST] Hint
For $$\int_0^\infty\dfrac{\ln x}{x^2+bx+b^2}dx$$
set $x=by$
then we can easily solve $$\int_0^\infty\dfrac{dy}{y^2+y+1}$$ using trigonometric substitution
Set $\dfrac1y=u$ in $$J=\int_0^\infty\dfrac{\ln y}{y^2+y+1}dy$$ to find $$J=-J$$
</s>