I am having trouble understainding why
$$\sum_{k=1}^{\infty}\frac{x^k}{k}=-\ln(x+1)$$.
I understand how I got
$$\sum_{k=1}^\infty(-1)^{k-1}\frac{(x-1)^k}{k}=\ln(x)$$
but when I substitute $x$ with $x+1$ and multiply $-1$, I get
$$-\ln(x+1)=-x+x^2/2-x^3/3+... $$
which is off by the alternating negative sign. . .
Can someone help me out?
The reason is that the statement in your question is incorrect.
The correct statement is $$\sum_{k = 1}^\infty \frac{x^k}k = -\ln(1 - x).$$