Determine whether or not each of the definition of \(\ast\) given below gives a binary operation. In the event that \(\ast\) is not a binary operation, give justification for this.
(i) On \(\mathbf{Z}^{+}\), define \(\ast\) by \(a \ast b = a - b\)
(ii) On \(\mathbf{Z}^{+}\), define \(\ast\) by \(a \ast b = ab\)
(iii) On \(\mathbf{R}\), define \(\ast\) by \(a \ast b = ab^{2}\)
(iv) On \(\mathbf{Z}^{+}\), define \(\ast\) by \(a \ast b = |a - b|\)
(v) On \(\mathbf{Z}^{+}\), define \(\ast\) by \(a \ast b = a\)
Show solutionHide solution
A binary operation on a set \(S\) is a rule \(\ast\) that assigns to every ordered pair \((a,b)\) with \(a,b\in S\) exactly one element \(a\ast b\in S\). So for each part we must check two things: (1) the operation is defined for every pair, and (2) the result always lies in the given set.
(i) On \(\mathbf{Z}^{+}\), \(a\ast b=a-b\).
This is not a binary operation. Take \(a=1,\ b=2\), both in \(\mathbf{Z}^{+}\). Then \(a\ast b=1-2=-1\notin\mathbf{Z}^{+}\). Since the result need not belong to \(\mathbf{Z}^{+}\), the definition does not give a binary operation on \(\mathbf{Z}^{+}\).
(ii) On \(\mathbf{Z}^{+}\), \(a\ast b=ab\).
This is a binary operation. For any \(a,b\in\mathbf{Z}^{+}\), the product \(ab\) is a positive integer, so \(ab\in\mathbf{Z}^{+}\). Every ordered pair has a unique image in \(\mathbf{Z}^{+}\).
(iii) On \(\mathbf{R}\), \(a\ast b=ab^{2}\).
This is a binary operation. For any real \(a,b\), the number \(b^{2}\) is real and so is the product \(ab^{2}\); hence \(ab^{2}\in\mathbf{R}\). Each ordered pair of reals gives exactly one real value.
(iv) On \(\mathbf{Z}^{+}\), \(a\ast b=|a-b|\).
This is a binary operation. For any \(a,b\in\mathbf{Z}^{+}\), the integer \(a-b\) is an integer, and its absolute value \(|a-b|\) is a non-negative integer. Since \(\mathbf{Z}^{+}\) consists of positive integers, we must note that \(|a-b|\ge 0\). Indeed \(|a-b|\) is always a non-negative integer, and it is a positive integer unless \(a=b\). In the case \(a=b\) we get \(|a-b|=0\), which is not in \(\mathbf{Z}^{+}\). Hence the operation is not closed in \(\mathbf{Z}^{+}\): for example \(2\ast 2=|2-2|=0\notin\mathbf{Z}^{+}\). Therefore it is not a binary operation on \(\mathbf{Z}^{+}\).
(v) On \(\mathbf{Z}^{+}\), \(a\ast b=a\).
This is a binary operation. For any \(a,b\in\mathbf{Z}^{+}\), the assigned value is \(a\), which is already a positive integer, so \(a\in\mathbf{Z}^{+}\). Every ordered pair has exactly one image, namely its first entry.
Conclusion. The definitions in (ii), (iii) and (v) give binary operations. The definitions in (i) and (iv) do not: in (i) the difference of two positive integers can be negative (e.g. \(1-2=-1\)), and in (iv) the value \(|a-b|\) can be \(0\) when \(a=b\) (e.g. \(2\ast 2=0\)), which is not in \(\mathbf{Z}^{+}\).