Let ∗ be a binary operation on the set Q of rational number as follows:
(i)a∗b=(a−b)2
Find which of the binary operation are commutative and which are associative?
On Q, the operation ∗ is defined by a∗b=(a−b)2
For a,b∈Q,we have
a∗b=(a−b)2andb∗a=(b−a)2=[−(a−b)]2=(a−b)2
Therefore, a∗b=b∗a
Thus, the operation ∗ is commutative.
It can be observed that
(1∗2)∗3=(1−2)2∗3=(−1)2∗3=1∗3=(1−3)2=(−2)2=41∗(2∗3)=1∗(2−3)2=1∗(−1)2=1∗1=(1−1)2=0
∴(1∗2)∗3≠1∗(2∗3) where 1,2,3∈Q
Thus, the operation ∗ is not associative.