Let $R$ be a commutative Ring with identity and $x\in R$ with $x=x^{2}$. Show that $\langle x \rangle$ is a Ring.
For me there are two possibilities coming to my mind, namely that x could be 1 or 0, however I think that this question demands an unambigous answer.
EDIT: The post was edited so that $R$ is a commutative ring.
Note (as I failed to in the comments) that $\langle x \rangle$ being a ring need not make it a subring of $R$. Now as an ideal, $\langle x \rangle$ inherits every ring axiom from $R$ except for having identity. Now I claim that $x$ takes on the role of multiplicative identity in $\langle x \rangle$
Take $a \in \langle x \rangle$. Since $\langle x \rangle$ is an ideal, we can take $b \in R$ such that $a = bx$. Now since $x$ is idempotent and R is commutative we have: $$xa = ax = (bx)x = bx^2 = bx = a$$
Thus $x$ satisfies the definition of a multiplicative identity and $\langle x \rangle$ is a ring with operations inherited from $R$, additive identity $0 \in R$, and multiplicative identity $x$.