Solving $x^y = y^x$ analytically in terms of the Lambert $W$ function
This "solution" for $x^y=y^x$ should simplify to $y=x$, but for some reason no pointed that out in the OP.
According to the stack exchange, the answer is $y= \frac{-xW(-\frac{ln(x)}{x})}{ln(x)}$. However, the term $\frac{-ln(x)}{x}$ itself can be rewritten as
$$\frac{-ln(x)}{x}=-ln(x)e^{-ln(x)}$$
Therefore, the productlog of that expression should simplify as follows,
$y= \frac{-xW(-\frac{ln(x)}{x})}{ln(x)}, \ \ \ \ \ $ $y= \frac{-xW(-ln(x)e^{-ln(x)})}{ln(x)}, \ \ \ \ \ $ $y=\frac{-x(-ln(x))}{ln(x)}=x$
Did this simplification just slip past everyone or is there something wrong about my algebra?

