ContourPlot[x^y - y^x == 0, {x, 0, 5}, {y, 0, 5}]