Let $(A, + ,\cdot)$ be a ring that is not a field, such that $x^2=x$ for all non-invertible $ x \in A$. Prove $x^2=x, \forall x \in A$
The goal is to prove the only invertible element is $1$.
If $x$ is non-invertible and not null, then $-x$ is also non-invertible, therefore $(-x)^2=-x$ and $2x=0$. Also $(1+x)^2=1 + 2x + x^2=1 +x$ therefore $1+x$ is also non-invertible (otherwise, from $(1 +x)^2=1 + x$ it follows $1 + x =1$ therefore $x=0$).
I couldn't get further than that. Any help is appreciated.