\begin{align*} S \amp = 1 + x + x^2 + x^3 + \cdots\\ \underline{-\qquad xS} \amp \underline{\,\, = ~~~~~~ x + x^2 + x^3 + x^4 + \cdots}\\ (1-x)S \amp = 1 \end{align*}
in-context