2. Binary Operations¶
Definition 2.1 : Binary operation
A binary operation \(*\) on a set \(S\) is a function mapping \(S \times S\) into \(S\). For each \((a, b) \in S \times S\), we denote the element \(*((a, b))\) of \(S\) by \(a * b\).
Intuitively, a binary operation \(*\) on \(S\) assigns to each ordered pair \((a, b)\) of elements of \(S\) an element \(a * b\) of \(S\).
Definition 2.2 : Closed subset and induced operation
Let \(*\) be a binary operation on \(S\), and let \(H\) be a subset of \(S\). The subset \(H\) is closed under \(*\) if for all \(a, b \in H\) we also have \(a * b \in H\). In this case, the binary operation on \(H\) given by restricting \(*\) to \(H\) is the induced operation of \(*\) on \(H\).
Definition 2.3 : Commutative binary operation
A binary operation \(*\) on a set \(S\) is commutative if and only if \(a * b = b * a\) for all \(a, b \in S\).
Definition 2.4 : Associative binary operation
A binary operation \(*\) on a set \(S\) is associative if \((a * b) * c = a * (b * c)\) for all \(a, b, c \in S\).
If \(*\) is associative, then longer expressions such as \(a * b * c * d\) are not ambiguous. Parentheses may be inserted in any fashion for purposes of computation, and the final results of any two such computations will be the same.
Theorem 2.5 : Associativity of composition
Let \(S\) be a set and let \(f, g\), and \(h\) be functions mapping \(S\) into \(S\). Then \(f \circ(g \circ h)=(f \circ g) \circ h\).
Proof
To show these two functions are equal, we must show that they give the same assignment to each \(x \in S\). Computing, we find that
and
so the same element \(f(g(h(x)))\) of \(S\) is indeed obtained.
Concept 2.6 : Table of a binary operation
For a finite set, a binary operation on the set can be defined by means of a table in which the elements of the set are listed across the top as heads of columns and at the left side as heads of rows. We always require that the elements of the set be listed as heads across the top in the same order as heads down the left side.
Remember that in an attempt to define a binary operation \(*\) on a set \(S\) we must be sure that
- exactly one element is assigned to each possible ordered pair of elements of \(S\),
- for each ordered pair of elements of \(S\), the element assigned to it is again in \(S\).
Regarding Condition 1, a student will often make an attempt that assigns an element of \(S\) to "most" ordered pairs, but for a few pairs, determines no element. In this event, \(*\) is not everywhere defined on \(S\). It may also happen that for some pairs, the attempt could assign any of several elements of \(S\), that is, there is ambiguity. In any case of ambiguity, \(*\) is not well defined.
If Condition 2 is violated, then \(S\) is not closed under \(*\).