Solution (source code)

= Solution

The <logarithmic series> gives the first two nonzero terms:
$$
\boxed{\ln(1+x)=x-\frac{x^2}{2}+O(x^3).}
$$