Math Lab
Home/Class XII/Ch 1/Binary operations

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 AA is a function

:A×AA.\ast : A \times A \to A.

We typically write aba \ast b instead of (a,b)\ast(a, b). The key requirement is that AA is closed under \ast: combining two elements of AA must give another element of AA.

A binary operation \ast on AA is

  • commutative if ab=baa \ast b = b \ast a for all a,bAa, b \in A;
  • associative if (ab)c=a(bc)(a \ast b) \ast c = a \ast (b \ast c) for all a,b,cAa, b, c \in A;
  • has an identity element eAe \in A if ae=ea=aa \ast e = e \ast a = a for all aAa \in A;
  • bb is an inverse of aa if ab=ba=ea \ast b = b \ast a = e.

Identity and inverse: uniqueness

If \ast has an identity, it is unique. Proof: if ee and ee' are both identities, then e=ee=ee = e \ast e' = e', using each one's identity property in turn.

If \ast is associative and has identity ee, and aa has an inverse, that inverse is unique. Proof: if bb and bb' are both inverses of aa, then b=be=b(ab)=(ba)b=eb=bb = b \ast e = b \ast (a \ast b') = (b \ast a) \ast b' = e \ast b' = b'.

Common examples

SetOperationCommutative?Associative?IdentityInverses?
Z\mathbb{Z}++yesyes00yes (a-a)
Z\mathbb{Z}×\timesyesyes11no (only ±1\pm 1)
Z\mathbb{Z}-nono(right identity 00)not a group
Q{0}\mathbb{Q} \setminus \{0\}×\timesyesyes11yes (1/a1/a)
P(X)\mathcal{P}(X)\cupyesyes\varnothingno (except for empty itself)
P(X)\mathcal{P}(X)\capyesyesXXno
Bijections of AA\circno in generalyesIAI_Ayes

The last row reveals that composition is a binary operation on the set of bijections of AA, and that set forms a group , the symmetric group on AA.

Cayley tables

For a finite set we can record a binary operation as a table, called the Cayley table. For example, \ast on {e,a,b}\{e, a, b\}:

\asteeaabb
eeeeaabb
aaaabbee
bbbbeeaa

Here ee is the identity, a1=ba^{-1} = b, b1=ab^{-1} = a. Reading off properties from a Cayley table is a frequent exercise.

Worked examples

Example 1. Define \ast on Q\mathbb{Q} by ab=a+baba \ast b = a + b - ab. Check commutativity, associativity, identity.

Commutative: b+aba=a+babb + a - ba = a + b - ab. Yes.

Associative: (ab)c=(a+bab)c=(a+bab)+c(a+bab)c=a+b+cabacbc+abc(a \ast b) \ast c = (a + b - ab) \ast c = (a + b - ab) + c - (a + b - ab)c = a + b + c - ab - ac - bc + abc. Compute a(bc)=a(b+cbc)=a+b+cbca(b+cbc)=a+b+cabacbc+abca \ast (b \ast c) = a \ast (b + c - bc) = a + b + c - bc - a(b + c - bc) = a + b + c - ab - ac - bc + abc. Equal. Yes.

Identity: solve ae=aa \ast e = a: a+eae=ae(1a)=0a + e - ae = a \Rightarrow e(1 - a) = 0. For this to hold for all aa, we need e=0e = 0. Check: 0b=b0 \ast b = b. Yes.

Inverse of aa: solve ab=0a \ast b = 0: a+bab=0b(1a)=ab=a/(a1)a + b - ab = 0 \Rightarrow b(1 - a) = -a \Rightarrow b = a/(a - 1), defined for a1a \neq 1. So every a1a \neq 1 has inverse a/(a1)a/(a - 1); a=1a = 1 has no inverse.

Example 2. On N\mathbb{N} define ab=gcd(a,b)a \ast b = \gcd(a, b). Show \ast is commutative and associative. Does an identity exist?

Commutative: gcd(a,b)=gcd(b,a)\gcd(a, b) = \gcd(b, a). Yes.

Associative: gcd(gcd(a,b),c)=gcd(a,gcd(b,c))\gcd(\gcd(a, b), c) = \gcd(a, \gcd(b, c)). Yes (both equal gcd(a,b,c)\gcd(a, b, c)).

Identity: need gcd(a,e)=a\gcd(a, e) = a for all aa, so ee must be a multiple of every aa. No such natural number exists. (If we allowed e=0e = 0, then gcd(a,0)=a\gcd(a, 0) = a works, and 00 is the identity in Z0\mathbb{Z}_{\ge 0}.)

Example 3. Let \ast on Z\mathbb{Z} be ab=a+b+1a \ast b = a + b + 1. Identity? Inverse of aa?

ae=a+e+1=ae=1a \ast e = a + e + 1 = a \Rightarrow e = -1. Inverse: ab=1b=2aa \ast b = -1 \Rightarrow b = -2 - a. So every element has inverse.

Example 4. Define \ast on the set A={1,2,3,4,5}A = \{1, 2, 3, 4, 5\} by ab=min{a,b}a \ast b = \min\{a, b\}. Is \ast commutative, associative, and does it have an identity?

Commutative: yes. Associative: min(min(a,b),c)=min(a,b,c)=min(a,min(b,c))\min(\min(a, b), c) = \min(a, b, c) = \min(a, \min(b, c)). Yes. Identity: need min(a,e)=a\min(a, e) = a, so eae \ge a for every aa. The only candidate is e=5e = 5. Check: min(a,5)=a\min(a, 5) = a. Yes.

Inverses: min(a,b)=5\min(a, b) = 5 forces both a,b5a, b \ge 5, so only 55=55 \ast 5 = 5. Hence only 55 has an inverse (itself), and the structure is a monoid, not a group.

Example 5. Define \ast on R2\mathbb{R}^2 by (a,b)(c,d)=(a+c,b+d)(a, b) \ast (c, d) = (a + c, b + d). Show this is a binary operation with identity (0,0)(0, 0) and inverses (a,b)1=(a,b)(a, b)^{-1} = (-a, -b).

Straightforward.

Example 6. On the set of all 2×22 \times 2 matrices with real entries, matrix multiplication is a binary operation. Is it commutative? Identity? Always invertible?

Not commutative in general. Identity: the matrix I2I_2. Not every matrix is invertible , only those with nonzero determinant.

Try it yourself

  1. On Z\mathbb{Z}, define ab=a+b5a \ast b = a + b - 5. Find identity and inverse of aa.
  2. On Q\mathbb{Q}, define ab=(a+b)/2a \ast b = (a + b)/2. Commutative? Associative? Identity?
  3. On the set of all subsets of XX, is symmetric difference ABA \triangle B associative? Commutative? Identity?
  4. Construct a Cayley table for \ast on {a,b}\{a, b\} with aa=a,ab=b,ba=b,bb=aa \ast a = a, a \ast b = b, b \ast a = b, b \ast b = a. Identity?
  5. On Z5={0,1,2,3,4}\mathbb{Z}_5 = \{0, 1, 2, 3, 4\}, define \ast by ab=(a+b)mod5a \ast b = (a + b) \bmod 5. Identity? Inverse of 33?
  6. Show that for \ast on Z\mathbb{Z} defined by ab=aa \ast b = a (left projection), \ast is associative but has no two-sided identity.
  7. On the set {1,1,i,i}\{1, -1, i, -i\} with usual complex multiplication, write the Cayley table. Identity? Inverses?
  8. On R{1}\mathbb{R} \setminus \{-1\}, define ab=a+b+aba \ast b = a + b + ab. Show \ast is commutative and associative, identity is 00, and a1=a/(a+1)a^{-1} = -a/(a + 1).
  9. Define \ast on Z+\mathbb{Z}_+ by ab=aba \ast b = a^b. Is it commutative? Associative? (Check carefully.)
  10. Show that subtraction is not associative on Z\mathbb{Z}.
  11. On N\mathbb{N}, is \ast defined by ab=a+2ba \ast b = a + 2b commutative? Associative?
  12. Suppose \ast has identity ee. Show ee=ee \ast e = e.
  13. Show: if \ast is associative and every element has a left inverse, then every left inverse is also a right inverse, provided an identity exists.
  14. Construct a binary operation on {1,2,3}\{1, 2, 3\} that has no identity element.

Pitfalls / Tricks

  • Always check closure first. If aba \ast b can land outside AA, \ast is not a binary operation on AA.
  • "Identity" is a two-sided requirement: ea=ae=ae \ast a = a \ast e = a for all aa.
  • Inverses are defined only when an identity exists. Asking for an inverse of aa 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" ab=aa \ast b = a has every element as a right identity but no left identity.
  • A Cayley table is symmetric across the main diagonal exactly when \ast 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.

Practice quiz

Quick check on this topic.

Quiz
Quick check : Binary operations
6 questions · pick the best answer
Q1

Q2

Q3

Q4

Q5

Q6