I am trying to prove the following result:
If $R$ is a commutative ring with identity, $I$ is an ideal of $R$ such that $I^2=\{0\}$ and $a+I$ is an idempotent element in $R/I$ then there are some idempotent element of $R$ in the coset $a+I$.
What I tried to do?
Well, suppose that $a+I$ is idempotent in $R/I$, then $(a+I)(a+I)=a+I$, so, $a^2+I=a+I$ and then $a^2-a \in I$. We know also that $1-a+I$ is idempotent since $(1-a+I)(1-a+I)=1-2a+a^2+I = 1-2a+a+I=1-a+I$. And then, from this we know that $a(1-a)+I$ is idempotent.
We need to show that there exist some $m \in I$ such that $(a+m)^2=a+m$, but $(a+m)^2=a^2+2am+m^2=a^2+2am$ since $m^2=0$, so $m$ needs to satysfy $a^2+(2m-1)a-m=0.$
I dont know if this reasoning is right, neither if this is a way to go over it. Can someone give me a hint to finish it?