I'm new to proofs and although I find this proof fascinating, I'm hoping someone could help me understand how the seasoned mathematician arrived at this result... I'm assuming it involves some abstraction of the Lambert W function.
This is a solution from the Book of Proof by Professor Richard Hammack.
Prove the equation $x^2 = 2^x$ has three real solutions
Proof:
By inspection, the numbers $x=2$ and $x=4$ are two solutions of this equation. But there is a third solution. Let $m$ be the real number for which $m2^m = \frac{1}{2}$. Then the negative number $x=-2m$ is a solution, as follows.
$x^2=(-2m)^2 = 4m^2 = 4(\frac{m2^m}{2^m})^2 = 4(\frac{\frac {1}{2}}{2^m})^2 = 2^2\cdot[ 2^{-(m+1)}]^2 = 2^x$.
Therefore we have three solutions $2$, $4$ and $m$. $\Box$
Again, I understand the calculations within the proof. But what mental process might unfold to make this realization?