Binary operations
Addition, multiplication, union, and composition are all examples of a common pattern: take two elements of a set and produce a third element of the same set. That pattern is called a binary operation. Studying it abstractly reveals the common structure behind apparently unrelated processes , and previews the algebraic notion of a group, which dominates higher mathematics.
Definition
A binary operation on a set is a function
We typically write instead of . The key requirement is that is closed under : combining two elements of must give another element of .
A binary operation on is
- commutative if for all ;
- associative if for all ;
- has an identity element if for all ;
- is an inverse of if .
Identity and inverse: uniqueness
If has an identity, it is unique. Proof: if and are both identities, then , using each one's identity property in turn.
If is associative and has identity , and has an inverse, that inverse is unique. Proof: if and are both inverses of , then .
Common examples
| Set | Operation | Commutative? | Associative? | Identity | Inverses? |
|---|---|---|---|---|---|
| yes | yes | yes () | |||
| yes | yes | no (only ) | |||
| no | no | (right identity ) | not a group | ||
| yes | yes | yes () | |||
| yes | yes | no (except for empty itself) | |||
| yes | yes | no | |||
| Bijections of | no in general | yes | yes |
The last row reveals that composition is a binary operation on the set of bijections of , and that set forms a group , the symmetric group on .
Cayley tables
For a finite set we can record a binary operation as a table, called the Cayley table. For example, on :
Here is the identity, , . Reading off properties from a Cayley table is a frequent exercise.
Worked examples
Example 1. Define on by . Check commutativity, associativity, identity.
Commutative: . Yes.
Associative: . Compute . Equal. Yes.
Identity: solve : . For this to hold for all , we need . Check: . Yes.
Inverse of : solve : , defined for . So every has inverse ; has no inverse.
Example 2. On define . Show is commutative and associative. Does an identity exist?
Commutative: . Yes.
Associative: . Yes (both equal ).
Identity: need for all , so must be a multiple of every . No such natural number exists. (If we allowed , then works, and is the identity in .)
Example 3. Let on be . Identity? Inverse of ?
. Inverse: . So every element has inverse.
Example 4. Define on the set by . Is commutative, associative, and does it have an identity?
Commutative: yes. Associative: . Yes. Identity: need , so for every . The only candidate is . Check: . Yes.
Inverses: forces both , so only . Hence only has an inverse (itself), and the structure is a monoid, not a group.
Example 5. Define on by . Show this is a binary operation with identity and inverses .
Straightforward.
Example 6. On the set of all matrices with real entries, matrix multiplication is a binary operation. Is it commutative? Identity? Always invertible?
Not commutative in general. Identity: the matrix . Not every matrix is invertible , only those with nonzero determinant.
Try it yourself
- On , define . Find identity and inverse of .
- On , define . Commutative? Associative? Identity?
- On the set of all subsets of , is symmetric difference associative? Commutative? Identity?
- Construct a Cayley table for on with . Identity?
- On , define by . Identity? Inverse of ?
- Show that for on defined by (left projection), is associative but has no two-sided identity.
- On the set with usual complex multiplication, write the Cayley table. Identity? Inverses?
- On , define . Show is commutative and associative, identity is , and .
- Define on by . Is it commutative? Associative? (Check carefully.)
- Show that subtraction is not associative on .
- On , is defined by commutative? Associative?
- Suppose has identity . Show .
- Show: if is associative and every element has a left inverse, then every left inverse is also a right inverse, provided an identity exists.
- Construct a binary operation on that has no identity element.
Pitfalls / Tricks
- Always check closure first. If can land outside , is not a binary operation on .
- "Identity" is a two-sided requirement: for all .
- Inverses are defined only when an identity exists. Asking for an inverse of in a monoid that has no identity is meaningless.
- A binary operation can have a left identity but no right identity, or vice versa. The "left projection" has every element as a right identity but no left identity.
- A Cayley table is symmetric across the main diagonal exactly when is commutative.
This concludes Chapter 1. The themes , well-defined operations, identities, inverses , return in matrices, determinants, and (under the name group) throughout your future mathematics.