How do I prove $1+x+x^2+\cdots+x^{n-1}=\frac{1-x^n}{1-x}$ using the induction method? I am having difficulties in solving the expression $1+x+x^2+\cdots+x^{n-1} =\frac{1-x^n}{1-x}$, $n\in \mathbb{N}$, using the induction method. How is the inductive step taken in this case?

Assume that $1+x + \dots + x^{n-1} = \frac{1-x^n}{1-x}$.
Then
$$1+x+ \dots + x^{n} = (1+ x + \dots + x^{n-1}) + x^n = \frac{1-x^n}{1-x} + x^n$$
$$= \frac{1-x^n}{1-x} + \frac{x^n(1-x)}{1-x} = \frac{1-x^n + x^n - x^{n+1}}{1-x}= \frac{1-x^{n+1}}{1-x}$$
