Let $a$ and $b$ are integers.
If $a \ne b$, then $ab \ne 1$.
Proving the contrapositive: If $ab = 1$ then $a = b$. If $ab = 1$, then there are two possibilities. $a = b = 1$ or $a = b = -1$. No other choice of $a$ and $b$ can make $ab = 1$. In both these cases, $a = b$.
Is the proof correct? Can I have a direct proof?