Can someone please explain to me how the last step in this simplification works.
$$2^x = x^2$$ $$\implies \ln(2^x) = \ln(x^2) \quad \forall x \ne 0 $$ $$\implies x \ln(2) = 2 \ln(x) $$ $$\implies \ln(x) = {2x \over \ln(2)} \quad \textbf {(A)}$$
From what I can tell the final result should be
$$\ln(x) = {x\ln(2) \over 2}$$
To solve $x$, you need to use the product log function:
$$2^x=x^2\Longleftrightarrow x=-\frac{2\text{W}_n\left(\pm\frac{\ln(2)}{2}\right)}{\ln(2)}$$
Where $n\in\mathbb{Z}$.
And for the real solutions, we get three solutions:
When $x\in\mathbb{R}$:
$$2^x=x^2\Longleftrightarrow\ln(2^x)=\ln(x^2)\Longleftrightarrow x\ln(2)=2\ln(x)\Longleftrightarrow\frac{\ln(2)}{2}=\frac{\ln(x)}{x}$$