I am thinking about whether all algebraic identities involves only addition and multiplication operations that holds for real numbers also hold for any elements that are commutative in multiplication of any rings or not.
For example, it is well-known that we have $(a+b)^2=a^2+2ab+b^2$ for all $a,b\in\mathbb{R}$. And it is because the terms $ab$ and $ba$ are combined together due to the commutativity for real numbers.
Now, for the n$\times$n identity matrix $I$ and an arbitrary matrix $A\in GL_n(\mathbb{R})$, we have also the multiplication between them are commutative. Therefore the identity $(A+I)^2=A^2+2AI+I^2$ also holds.
I am curious about whether all algebraic identities can have such a generalisation or not. I have not way to give a proof, but I can’t also figure out any counter-example.