Finding roots of a nonlinear equation I plotted the functions $y=2x$ and $y=\ln(1+x)$ and they have two intersecting points. So the equation $2x=\ln(1+x)$ is supposed to have two roots. One of them is obviously $x=0$. How can I get the other one?

If $x = -t/2-1$, the equation says $\ln(-t/2) = -t - 2$. Exponentiating,
$-t/2 = \exp(-t-2)$, i.e. $t \exp(t) = -2 \exp(-2)$.  Thus $t$ is one of the branches of
$W(-2 \exp(-2))$, where $W$ is the Lambert W function.  Since $-1/e < -2 \exp(-2) < 0$, there are two real branches, the principal branch and the $-1$ branch.  In this case the $-1$ branch is $-2$, leading to $x=0$,  the principal branch is approximately $-0.4063757400$, leading to $x = -t/2-1 \approx -0.7968121301$.
