Let
\(T=\{\Tx,\Ty,\Tz\}\text{,}\) and let the binary operation
\(\star:T\times T\to T\) be given by the table in
Example 13.1.4. To prove that
\(\star\) is commutative, we exhaust all possibilities. We check that for all
\(a\in T\) and
\(b\in T\text{,}\)
\begin{equation*}
a\star b\text{ is equal to } b \star a
\end{equation*}
by separately computing \(a\star b\) in the left column and \(b\star a\) in the right column and noticing that the two computations in each row match.
When one of the general elements is the identity element, there is a shortcut. We can handle several cases at the same time by setting one of the two general elements equal to the identity element and using a variable for the other. Recall that the identity element is
\(\Ty\) for
\(T\) with
\(\star\text{.}\) Then, for all
\(a\in T\) we have:
\begin{gather*}
a\star \Ty=a\\
\Ty\star a=a
\end{gather*}
Now, note that if the two general elements are the same, there is nothing to check. For all
\(a \in T\text{,}\) we trivially have that
\(a\star a = a\star a\text{.}\) So, the only remaining case to check is covered here:
\begin{gather*}
\Tx\star \Tz=\Ty\\
\Tz\star \Tx=\Ty
\end{gather*}
We have shown that
\(a\star b=b\star a\) for all
\(a\in T\) and
\(b\in T\text{.}\) So, the binary operation
\(\star:T\times T \to T\) is commutative.