Ring product decomposition by an idempotent
= Ring product decomposition by an idempotent
A commutative ring $R$ has a nontrivial idempotent $e$ exactly when it decomposes as a product of two nontrivial rings. The isomorphism determined by $e$ is
$$
R\longrightarrow eR\times(1-e)R,
\qquad r\longmapsto(er,(1-e)r),
$$
with inverse $(x,y)\mapsto x+y$.