I want to show
$\frac{x}{e^{x}-1} = -\sum_{k=0}^{\infty} x e^{kx} = \frac{\ln(e^x)}{e^x-1} = -\frac{\ln[1-(1-e^x)]}{1-e^x} = \sum_{n=1}^{\infty} \frac{(1-e^x)^{n-1}}{n} $
The first step seems trivial, what i am confused is the process of \begin{align} -\sum_{k=0}^{\infty}xe^{kx} = \frac{\ln(e^x)}{e^x-1} \end{align} and the last step \begin{align} -\frac{\ln[1-(1-e^x)]}{1-e^x} = \sum_{n=1}^{\infty} \frac{(1-e^x)^{n-1}}{n} \end{align}
Can you give me some idea for these steps?
we recall that
\begin{align*} \ln(1-x)=-\sum_{n=1}^\infty\frac{x^n}{n}\qquad\qquad\qquad |x|<1 \end{align*}
Note, it is not necessary to consider a geometric series expansion. In fact the representation in this case is different from the series representation in (1) since the radius of convergence is different. \begin{align*} \frac{x}{e^x-1}=\sum_{n=0}^\infty xe^{kx}\qquad\qquad |e^x|<1\quad\text{resp.}\quad x<0 \end{align*}