Find the limit of $\frac{1}{e} \frac{e- e^ \frac{\ln (1+x)}{x}}{x}$ as $x$ approaches right of zero.
The answer is $\frac{1}{2}$ but I keep getting 1. Here's what I have:
Since $\lim_{x\to0^+} \frac{\ln (1+x)}{x}$ is of indeterminate form (0/0), we can apply L Hôpitals.
So now I have $\lim_{x\to0^+}\frac{1}{e} \frac{e- e^ \frac{1}{1+x}}{x}$, which is also of indeterminate form (0/0).
So by L Hôpitals, $\lim_{x\to0^+}\frac{1}{e} \frac{{- e^ \frac{1}{1+x} \frac{-1}{(1+x)^2}}}{x}$ which is equal to 1.
But as I said, the answer is $\frac12$. Can you tell me where did I go wrong? Thanks!
You can't apply l'Hopital rule in this way (note also that the derivative of $\frac{\ln (1+x)}{x}$ seems to be wrong)
$$\color{red}{\lim_{x\to0^+}\frac{1}{e} \frac{e- e^ \frac{\ln (1+x)}{x}}{x}= \lim_{x\to0^+}\frac{1}{e} \frac{e- e^ \frac{1}{1+x}}{x}}$$
you should derive all the terms as follow
$$\color{green}{\lim_{x\to0^+}\frac{1}{e} \frac{e- e^ \frac{\ln (1+x)}{x}}{x}= \lim_{x\to0^+} \frac{- e^ \frac{\ln (1+x)}{x} (\frac{\ln (1+x)}{x})' }{e}}$$
but it seems that we don't get a better expression.
As an alternative note that
$$\frac{1}{e} \frac{e- e^ \frac{\ln (1+x)}{x}}{x}= \frac{1- e^{\frac{\ln (1+x)}{x}-1}}{\frac{\ln (1+x)}{x}-1}\frac{\frac{\ln (1+x)}{x}-1}{x}= \frac{e^{\frac{\ln (1+x)}{x}-1}-1}{\frac{\ln (1+x)}{x}-1}\frac{x- \ln (1+x) }{x^2}\to1\cdot\frac12=\frac12$$
indeed
$$\ln (1+x)=x-\frac{x^2}{2}+o(x^2)\implies \frac{x-\ln (1+x) }{x^2}=\frac{x-x+\frac{x^2}{2}+o(x^2) }{x^2}=\frac12+o(1)\to\frac12$$