Prove that if $I$ is a right ideal of $R$ and $I$ is a direct summand of $R$ then $I=eR$ for some idempotent $e \in R$ Also, $R$ is a unital ring.
So $I$ is a direct summand, this means there is another ideal $J$ of $R$ such that $R = I \oplus J$ and $J+I = R$ and $J \cap I = \emptyset$... I'm a little bit lost here, would appreciate some help!
Let $$1=e+(1-e)$$ where $e \in I$ and $1-e \in J$.
Note that $$e(1-e)=(1-e)e= e-e^2$$ belongs to both $I$ and $J$, because they are right ideals. Thus, $$e-e^2=0$$ which shows that $e$ is idempotent.
Now, clearly $eR \subseteq I$. To show the converse, for all $x \in I$ $$x-ex = (1-e)x \in I \cap J$$ Thus $x-ex=0$, i.e. $x=ex \in eR$.