[Math] commutative operation for which the inverse of the operation is also commutative

abstract-algebra

For instance addition is commutative, but the inverse, subtraction, is not.

$$
5+2 = 2+5\\
5-2 \neq 2-5
$$

Same for multiplication/division:

$$
5\times4 = 4\times5\\
5/4 \neq 4/5
$$

So is there a group operation $\circ$ with the inverse $\circ^{-1}$ such that

$$
a\circ b = b\circ a\\
a\circ^{-1}b = b\circ^{-1}a
$$

Best Answer

On natural numbers, the bitwise XOR operation is commutative, and is its own inverse operation (the neutral element is$~0$).

Related Question