I got a little stuck with this proof. It is given that $AB=BA$.
Proof: $(AB)^2 = A^2 \cdot B^2$
I have been thinking of several ways to solve it. I got to this point:
$(AB)^2 = AB\cdot AB = BA\cdot AB = B\cdot A^2\cdot B$
But I don't know how to proceed. I think I am missing some general rule.
Can somebody help me?