I just learned about Lambert W Function and I am trying to solve the above equation (and I have seen this article but I want to solve it myself). However, I seem not to be able to reach the correct answer. Can someone please point out the error ?
$$x^2 = 2^x$$
Taking $\log_e$ (denoted by $\ln$) on both sides
$$\ln(x^2) = \ln(2^x)$$ $$\implies 2\;\ln(x) = x(\ln 2)$$ $$\implies \ln(x) = x \;(\ln 2)/2$$ $$\implies 1/(x\ln(x)) = (\ln 2)/2$$ Let $y = 1/x$, then we get $$y\;\ln (1/y) = (\ln 2)/2$$ $$\implies y\;\ln y^{-1} = (\ln 2)/2$$ $$\implies -y\;\ln y = (\ln 2)/2$$ $$\implies y\;\ln y = -(\ln 2)/2$$ Replacing $y$ by $e^{\ln y}$, we get $$\implies e ^ {\ln y}\;\ln y = -(\ln 2) / 2$$ $$\implies \ln\;y = W(-(\ln 2)/2)$$ Replacing back $y = 1/x = x^{-1}$, we get $$\implies \ln x^{-1} = W(-(\ln 2) / 2)$$ $$\implies \ln x = - W(-(\ln 2) / 2)$$ $$\implies x = e^{- W(-(\ln 2) / 2)}$$ And this isn't the right answer :(