Let $\left(A,\ +,\ \times \right)$ be a ring such that $1_A$ is the identity in $\left(A,\ \times \right)$.
Let $a$ and $b$ be two elements in $A$ such that: $$\begin{cases} ab+ba=1_A \\ a^2b+ba^2=a \end{cases}$$
I need to prove that ab=ba. Since the elements of a ring are per def. not invertible I did not know how I can approach it. Any hints how to get started
I'm also interested knowing under which assumptions are the elements of $A$ $\times-$invertible
From $ab+ba=1_A$, we get $a^2b+aba=a$ and subtracting the second equation gives $(ab-ba)a=0$. Now, consider $a$ and $(ab-ba)$. Then, this pair satisfies your first equation as well. So $$(ab-ba)a+a(ab-ba)=1.$$ Since $(ab-ba)a=0$, we have $a(ab-ba)=1$. Now, multiply $(ab-ba)a=0$ by $(ab-ba)$ from the right. So, $$0=(ab-ba)a(ab-ba)=(ab-ba)1=ab-ba.$$ Hence, $ab=ba$.