I was given the equation $\sqrt{\ln{(x)}}=\ln (\sqrt{x})$.

I found two ways to go about this, and both seem to me reasonable. Clearly I'm wrong, since they yield different results. First way,

$\sqrt{\ln{(x)}}=\ln (\sqrt{x})$

$=\sqrt{\ln{(x)}}=\frac{1}{2}\ln (x)$

$=\ln(x)=\frac{1}{2}\ln^2 (x)$

Let $u=\ln(x)$ and solve the quadratic expression; the results for $x$ are $x\_1=1$, $x\_2=e^4$. According to Symbolab this is the right answer.

But what if, instead of taking the square root out of the argument on the RHS and only after squaring both sides, we do it the other way around? This is, first square both members of the equation, and then apply logarithmic property. Like this:

$\sqrt{\ln{(x)}}=\ln (\sqrt{x})$

$=\ln(x)=\ln^2 (\sqrt{x})$

=$\ln(x)=\frac{1}{2}\ln^2(x)$

Again, let $u=\ln(x)$. As you can see, the coefficient of $u^2$ is now $\frac{1}{2}$, when on the other equation it ended up being $\frac{1}{4}$, thus yielding different result. But I can't see why this second way of solving the equation is wrong. Can somebody clear this up for me? Thanks.