Here is the question I wanna solve:
Let $x$ be a nilpotent element of the commutative ring $R$ (an element $x$ in $R$ is called nilpotent if $x^m = 0$ for some $m \in \mathbb Z^{+}$).
Prove that $1 + x$ is a unit in $R.$
I found the following solution on the internet:
But I do not know how should I have guessed that this is the inverse of 1+x? Could someone clarify to me the intuition behind this please? How can I find this inverse before showing that it is actually an inverse as the solution is doing.