Solve $\ln(x^2)=x$

algebra-precalculusexponential functionlogarithms

I am struggling to solve the equation $\ln(x^2)=x.$ I can't figure out how to isolate the variable. Exponentiating both sides leaves me with $x=e^{\frac{x}{2}}.$ I would really appreciate any guidance, or first steps.

Also, isn't one of the properties of logs that $\ln(x^2)=2\ln(x)?$ How can these two things be equal if the term on the left hand side can input negative numbers, but the term on the right cannot?

Best Answer

This solution is not "elementary" as we say. You cannot get it using the operations from high-school algebra.

We can get the solution using the Lambert W function LINK

Definition: $u e^u = t$ iff $u = W(t)$. So reason like this $$ \ln(x^2)=x \\ x^2 = e^x \\ x=\pm e^{x/2} \\ xe^{-x/2} =\pm 1 \\ \frac{-x}{2}e^{-x/2} = \mp\frac{1}{2} \\ \frac{-x}{2} = W(\mp 1/2) \\ x = -2W(\mp 1/2) $$ It turns out that $W(-1/2)$ is not real, but $W(1/2)$ is.
Then we get $x =-2W(1/2) \approx -0.703467$.

Related Question