$$ \int \left(\sqrt{2\log x}+ \frac{1}{\sqrt{2\log x}} \right) dx $$
I am stuck on this problem from This years integration bee. I have tried substitution but it is not giving the correct answer which is $x\sqrt{2\log x}$
I supposed $\sqrt{2\log x}$ as $t$ and differentiated it wrt $x$, and substituted it in the above integral. But the solution has an extra $(\frac {2\log x+1}{3})$, i dont know how and why?
Integration by parts give an instant solution like a test question.
We can also make the substitution $x=e^t$:
$$ \int\left(\sqrt{2 \log x}+\frac{1}{\sqrt{2 \log x}}\right) d x =\int\left(\color{red}{\sqrt2\sqrt t }\color{green}{ e^t}+\color{red}{\frac1{\sqrt2\sqrt t}}\color{green}{e^t}\right)dt \stackrel{u=\sqrt{2t}, v=e^t}{=}\int(uv'+u'v)dt=\int(uv)'dt=uv+C=e^t\sqrt{2t}+C =x \sqrt{2 \log x}+C $$