If $A$ and $B$ are nonempty sets, prove that $A \times B = B \times A$ if and only if $A = B$.
Proving the first direction of this is easy. That is, if $A = B$ then it is obvious that $A^2 = A^2$. I am wondering how to prove the other direction now. Maybe proving it by contradiction will be easier than directly.