Let $R$ be a commutative ring with unity and $M$ be a minimal ideal of $R$ such that $M = Re$ where $e$ is an idempotent element in $R$. Then $R = Re \oplus R(1-e) $
I am not able to see, in order to write $R = Re \oplus R(1-e) $ , where is the fact that $e$ is an idempotent element is used.
Thanks in advance!
To have $R=I\oplus J$, we need to know that $I+J = R$ and $I\cap J = (0)$.
$eR + (e-1)R=R$ is true for any $e\in R$, since $e-(e-1)=1$.
$eR\cap (e-1)R=(0)$ is where we use idempotence. If $x=ae=b(e-1)$, then $ex = ae^2=ae=x$, but $ex=b(e-1)e=b(e^2-e)=b(e-e)=0$, and therefore $x=0$.