Suppose that $R$ is a ring. Prove that if $a\in R$, $a^2 = a$, then R is a commutative ring.
So, I know that this means that the ring multiplication is commutative. So... is this saying that for ANY $a\in R$, $a^2 = a$? Which means that every element of R is its own multiplicative inverse... But inverses, if they exist, are unique, so then the only element of R is unity. And if all you have is unity, then of course multiplication is commutative?
I'm probably way off here.
EDIT:
So, following the advice in the comments, I produced something that looks like this:
Since R is a ring, if $a,b\in R$, then $ab\in R$. Thus
$(ab)^2 = ab$
$\to (ab)(ab)=ab $
$\to (ab)(ab)a=aba $
$\to a(ba)(ba)=a(ba)$
$\to a(ba)^2=a(ba)$
So, AM I allowed to just say "by cancellation" $(ba)^2=ba$ therefore R is a commutative ring?