\begin{align*} \left[\ln\left(1+x\right)\right]' &= \frac{1}{1+x}\\ &= \frac{1}{1-(-x)}\\ &= \sum_{n=0}^\infty(-x)^n\\ &= \sum_{n=0}^\infty(-1)^nx^n \end{align*}
and then integral this summation to get the series for $ln(1+x)$:
\begin{align} \int \frac{1}{1+x} &= \int \sum_{n=0}^\infty(-1)^nx^n\\ &= \sum_{n=0}^\infty\int(-1)^nx^n\\ &= \sum_{n=0}^\infty(-1)^n\frac{x^{n+1}}{n+1} \end{align}
Is the above answer correct? The note from my teacher shows this(I might have wrote it wrong, because n can't be zero):
\begin{align} -\sum_{n=0}^\infty(-1)^n\frac{x^{n}}{n} \end{align}
Your reasoning is right, so long as $|x|<1$ (so that the series are uniformly convergent).
Your conclusion, to wit:
$\log(1+x) = x -\frac{x^2}{2}+\frac{x^3}{3}-\cdots;\,\forall\,|x|<1$
is sound and is known as the Mercator-Newton series (Nicolas Mercator (Kauffmann), not the same Mercator who gave us the Mercator (Gerardus) map projection, BTW, but Newton was THE venerable Isaac).
The series, as a series for square matrices uniformly convergent for $\left\|X-\mathrm{id}\right\|<1$, is pivotal in modern treatments of Lie theory that begin with matrix Lie groups and was central to John von Neumann's first big step to the solution of Hilbert's fifth problem: the restriction to the closed matrix group case.
The series actually converges also for $x=1$ by the alternating series test. This value ($\log(1+1)$) of course represents the series's slowest convergence. Try it in Mathematica, for example: you'll get the following, in accordance with the error estimate $|error| < 1/(n+1)$ you also get from the alternating series test:
(be sure to put the //N inside the Sum[] operator for speedy computations).