is x^y the same as y^x?
Not in general....
For instance, let x = 3 and y = 4
Then
x^y = 3^4 = 81
But
y^x = 4^3 = 64