What are all real solutions of equation $x^x = y^y$? What about integer solutions and rational solutions?
For the case when $x=y$ it is clear, what about the case when $x\ne y$?
What are all real solutions of equation $x^x = y^y$? What about integer solutions and rational solutions?
For the case when $x=y$ it is clear, what about the case when $x\ne y$?
The only integer solutions are $x=y$ and also $0^0=1^1$, provided that $0^0$ is defined. This is because $x^x$ is strictly increasing on $(1/e,\infty)$:
On the interval $[0,1]$, there are infinitely many real solutions of $x^x=y^y$ where $x \neq y$. This is because when $x=1/e$, $y=e^{-1/e}$. Then, when $x=1$, $y=1$. Since $x^x$ is continuous on $[1/e,1]$, by the intermediate value theorem, $x^x$ must take on every real value between $e^{-1/e}$ and $1$. Similarly, on the interval $[0,1/e]$, $x^x$ is also continuous, and so must take on every real value between $e^{-1/e}$ and $1$. This means that for every $a \in (e^{-1/e},1]$, there are two possible solutions for $x^x = a$. So there are infinitely many real solutions to $x^x=y^y$, $x \neq y$.
As NoNames has pointed out, there are also infinitely many rational solutions, since the solutions can be parameterised as $$ x=\left(\frac{t}{t+1}\right)^t,\quad y=\left(\frac{t}{t+1}\right)^{t+1} \, , $$ for $t>0$. If $t$ is an integer, then this gives us a valid rational solution.
$x^x=y^y$ is obviously equivalent to $(1/y)^{1/x}=(1/x)^{1/y}$, and that's a very popular problem at MSE (e.g. $x^y = y^x$ for integers $x$ and $y$ containing also the general parametric solution).
"OP" asked the query:
$x^y=y^x$
Above has numerical integer solution:
$(x,y)=(2,4)$