I want to prove that $(2,4)$ is the only natural solution to $x^y=y^x$. I tried to prove by defining $d=\gcd(x,y), x=d*s, y=d*r$ for some $s$, $r$. Using some algebra, I got that s must be equal to 1. I don't know how to continue from here.
My steps: ${ds}^{dr}={dr}^{ds} ->$ $d^rs^r=d^sr^s ->$ $d^{r-s}s^r=r^s ->$ there for $s|r^s$, and because $\gcd(s,r^s)=1$ must be $s=1$.