In this paper we study the diophantine equation mn = nm with m ? n, proving that the only integer solutions of this equation are (2, 4) and (4, 2). Then we determine the shape of all the rational solutions of the equation xy = yx with x ?y, and prove that these solutions are unique. We also present the intervals where are the positive rational solutions of the equation xy = yx