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×A→A.\ast : A \times A \to A.

We typically write a∗ba \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 a∗b=b∗aa \ast b = b \ast a for all a,b∈Aa, b \in A;
  • associative if (a∗b)∗c=a∗(b∗c)(a \ast b) \ast c = a \ast (b \ast c) for all a,b,c∈Aa, b, c \in A;
  • has an identity element e∈Ae \in A if a∗e=e∗a=aa \ast e = e \ast a = a for all a∈Aa \in A;
  • bb is an inverse of aa if a∗b=b∗a=ea \ast b = b \ast a = e.

Identity and inverse: uniqueness

If ∗\ast has an identity, it is unique. Proof: if ee and e′e' are both identities, then e=e∗e′=e′e = 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 b′b' are both inverses of aa, then b=b∗e=b∗(a∗b′)=(b∗a)∗b′=e∗b′=b′b = 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, a−1=ba^{-1} = b, b−1=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 a∗b=a+b−aba \ast b = a + b - ab. Check commutativity, associativity, identity.

Commutative: b+a−ba=a+b−abb + a - ba = a + b - ab. Yes.

Associative: (a∗b)∗c=(a+b−ab)∗c=(a+b−ab)+c−(a+b−ab)c=a+b+c−ab−ac−bc+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∗(b∗c)=a∗(b+c−bc)=a+b+c−bc−a(b+c−bc)=a+b+c−ab−ac−bc+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 a∗e=aa \ast e = a: a+e−ae=a⇒e(1−a)=0a + e - ae = a \Rightarrow e(1 - a) = 0. For this to hold for all aa, we need e=0e = 0. Check: 0∗b=b0 \ast b = b. Yes.

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

Example 2. On N\mathbb{N} define a∗b=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 Z≥0\mathbb{Z}_{\ge 0}.)

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

a∗e=a+e+1=a⇒e=−1a \ast e = a + e + 1 = a \Rightarrow e = -1. Inverse: a∗b=−1⇒b=−2−aa \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 a∗b=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 e≥ae \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,b≥5a, b \ge 5, so only 5∗5=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 a∗b=a+b−5a \ast b = a + b - 5. Find identity and inverse of aa.
  2. On Q\mathbb{Q}, define a∗b=(a+b)/2a \ast b = (a + b)/2. Commutative? Associative? Identity?
  3. On the set of all subsets of XX, is symmetric difference A△BA \triangle B associative? Commutative? Identity?
  4. Construct a Cayley table for ∗\ast on {a,b}\{a, b\} with a∗a=a,a∗b=b,b∗a=b,b∗b=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 a∗b=(a+b) mod 5a \ast b = (a + b) \bmod 5. Identity? Inverse of 33?
  6. Show that for ∗\ast on Z\mathbb{Z} defined by a∗b=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 a∗b=a+b+aba \ast b = a + b + ab. Show ∗\ast is commutative and associative, identity is 00, and a−1=−a/(a+1)a^{-1} = -a/(a + 1).
  9. Define ∗\ast on Z+\mathbb{Z}_+ by a∗b=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 a∗b=a+2ba \ast b = a + 2b commutative? Associative?
  12. Suppose ∗\ast has identity ee. Show e∗e=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 a∗ba \ast b can land outside AA, ∗\ast is not a binary operation on AA.
  • "Identity" is a two-sided requirement: e∗a=a∗e=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" a∗b=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.

Test Your Knowledge

Quick MCQ check on this chapter

Start Quiz →

AI Summary

Summarize this page in your favorite LLM