[Math] Example of unital non-commutative ring with $(ab)^2=(ba)^2$ for all $a,b$

abstract-algebranoncommutative-algebraring-theory

I'm trying to exhibit a unital, non-commutative ring $R$ such that $(ab)^2=(ba)^2$ for all $a,b\in R$.

This is an exercise out of Herstein's Topics in Algebra. In the previous exercise, I showed that if $R$ was unital, had the same property regarding squares, but also had the property that $2a=0$ implied $a=0$ for any $a\in R$, then $R$ was commutative.

Therefore I've tried several things with the quaternions, the $2\times 2$ matrices, the $3\times 3$ matrices, and even block matrices, all over $\mathbb{Z}/2\mathbb{Z}$ and $\mathbb{Z}/4\mathbb{Z}$. I can't seem to come up with anything, though, and I'd appreciate a hint.

Best Answer

I like your idea of trying matrices over $\mathbb{Z}/2\mathbb{Z}$. However, you don't want to take all matrices, as you have two many idempotents, $x$ such that $x^2 = x$.

For instance $a = E_{11} = \left[\begin{smallmatrix}1&0\\0&0\end{smallmatrix}\right]$ and $b=E_{11}+E_{12} = \left[\begin{smallmatrix}1&1\\0&0\end{smallmatrix}\right]$. In general $E_{ij} \cdot E_{jk} = E_{ik}$ and if $j\neq k$ then $E_{ij} \cdot E_{k\ell} = 0$. Hence $ab=b$ but $ba=a$; of course $a^2 = a$ and $b^2=b$.

So the hint is to take a subring of the matrix ring that is not commutative but that avoids having too many idempotents. Idempotents are like partial 1s and partial 0s. What we want is for our elements to either be “1” or “0” not both. In more standard language, to avoid idempotents we make sure every element is either a unit ($x$ such that $x^{-1}$ exists) or nilpotent ($x$ such that $x^n=0$).

The very first idea along these lines doesn't quite work, but is a good idea: we take a basis with one element a unit (the identity matrix $E_{11}+E_{22}$) and the other element nilpotent ($x=E_{12}$). It is not too hard to show that this vector space is closed under multiplication, so we do get a ring. And in this ring $(ab)^2 = (ba)^2$ for all $a,b$. However, this ring consists of only $0,1,x,1+x$ and it is not hard to check it is commutative; it is $\mathbb{Z}[x]/(2,x^2)$.

You can fix the commutativity problem without too much trouble though:

Just use larger matrices. Let $R$ be the vector space with basis $1=E_{11}+E_{22}+E_{33}$, $x=E_{12}$, $y=E_{23}$, and $z=E_{13}$ over the field $\mathbb{Z}/2\mathbb{Z}$. Since $xy=z$, but $$xx=yy=zz=yx=xz=zx=yz=zy=0$$ multiplication is very easy. For $$A=\begin{bmatrix} a & b & d \\ 0 & a & c \\ 0 & 0 & a \end{bmatrix}, \qquad B = \begin{bmatrix} e & f & h \\ 0 & e & g \\ 0 & 0 & e \end{bmatrix}$$ we get $$(AB)^2 - (BA)^2 = \begin{bmatrix} 0 & 0 & 2ae(bh-df) \\ 0 & 0 & 0 \\ 0 & 0 & 0 \end{bmatrix}$$ which is $0$ as long as $2=0$.

Related Question