Solution (source code)

= Solution

Put $h=x-1$. The <Taylor series> of the <natural logarithm> gives the first four nonzero terms:
$$
\boxed{\ln x=h-\frac{h^2}{2}+\frac{h^3}{3}-\frac{h^4}{4}+O(h^5).}
$$
The corresponding infinite series converges for $|h|<1$.