I think of the following proof:
Let $a, b\in R$. Then $(ab)^2=ab$ or, $(ab)(ab)=a^2b^2$ or, $a(ba)b=a(ab)b$ or, $ba=ab$ (by left and right cancellation laws). Hence $R$ is commutative.
Is this proof correct? Justify.
I think of the following proof:
Let $a, b\in R$. Then $(ab)^2=ab$ or, $(ab)(ab)=a^2b^2$ or, $a(ba)b=a(ab)b$ or, $ba=ab$ (by left and right cancellation laws). Hence $R$ is commutative.
Is this proof correct? Justify.
Incorrect. You don't have cancellations laws in a general ring.
For example, $\overline{2}.\overline{3} = 0$ in $\mathbb{Z}/6\mathbb{Z}$, yet you can't cancel.
It's also not generally the case that rings are cancellative: indeed, if such a ring is cancellative, then cancelling $a$ (on either side) in $a^2 = a$ gives $a = 1$, so your ring is trivial.
– user3482749 Dec 10 '19 at 09:58