If I want to find the power series representation of the following function:
$$ \ln \frac{1+x}{1-x} $$
I understand that it can be written as
$$ \ln (1+x) - \ln(1-x) $$
And I understand that if I now write in the power series representations for $ln(1+x)$ and $ln(1-x)$:
$$\sum_{n=1}^\infty \frac{(-1)^{n-1}x^{n}}{n} - \sum_{n=1}^\infty \frac{(-1)^{n-1}(-x)^{n}}{n} $$
My textbook solution does an odd thing where it writes it out as
$$\sum_{n=1}^\infty \frac{x^{n}}{n} - \sum_{n=1}^\infty \frac{(-1)^{n-1}(-x)^{n}}{n} $$
$$2\sum_{n=1}^\infty \frac{x^{2n-1}}{2n-1} $$
I have no idea how it got from the line where I have the power series representation for $ln(1+x)$ and $ln(1-x)$ to the last two lines. If anyone could help me link my part to the textbook solution I would really appreciate it! Thank you!