Let $(A, +, \cdot)$ be a ring with the following properties
a) $1 + 1=0$;
b) $x^2=0$ for any noninvertible $x$;
c) $\forall x \in A$ that are invertible, $\exists x' \in Z(A)$ such that $x^2=(x')^2$.
Prove that $A$ is commutative.
$1+1=0 \Rightarrow a+a=0 \Rightarrow a=-a\forall a \in A$
Let $a$ and $b$ be two elements in $A$ such that at least one of them is not invertible. Then $ab$ is not invertible, so $(ab)^2=a^2b^2$.
Now let $x$ and $y$ be two invertible elements in $A$. $xy$ is invertible so there exists $a \in Z(A), (xy)^2=a \Rightarrow x(yx)y=a^2 \Rightarrow yx=x^{-1}a^2y^{-1}$. Because $a^2$ is in $Z(A)$ it commutes with every element in $A$, therefore $yx =x^{-1}y^{-1}a^2\Rightarrow (yx)^2=a^2=(xy)^2$.
I feel like $f:A \to A, f(x)=x^2$ should be a homomorphism, but I cannot seem to prove it. I know I should use the fact that $1+1=0$, but I could not find a meaningful way to use it.