I was trying to calculate the limit of the following function:
$$ \lim_{x\to0} \frac{1}{\sin x} \cdot \ln \left(\frac{e^x -1}{x}\right) $$
My first thought was using L'Hopital's rule since $\Large \frac{e^x -1}{x}$ goes to 1 so the whole $\ln$ goes to 0.
But then I get another complicated expression, and finally I end up using L'Hopital's rule at least 5 times before getting an actual result.
Is there a wiser way for dealing this limit? (I mean, without using this rule?)
Thanks.
Notice, $$\lim_{x\to 0}\frac{1}{\sin x}\cdot \ln\left(\frac{e^x-1}{x}\right)$$ $$=\lim_{x\to 0}\frac{\ln(e^x-1)-\ln(x)}{\sin x}$$ Applying L' Hospital's rule three times for $\frac 00$ form, $$=\lim_{x\to 0}\frac{\frac{e^x}{e^x-1}-\frac {1}{x}}{\cos x}$$ $$=\lim_{x\to 0}\frac{xe^x-e^x+1}{x(e^x-1)}\cdot \lim_{x\to 0}\frac{1}{\cos x}$$ $$=\lim_{x\to 0}\frac{xe^x-e^x+1}{xe^x-x}$$ $$=\lim_{x\to 0}\frac{xe^x+e^x-e^x}{xe^x+e^x-1}$$ $$=\lim_{x\to 0}\frac{xe^x}{xe^x+e^x-1}$$ $$=\lim_{x\to 0}\frac{xe^x+e^x}{xe^x+e^x+e^x}$$ $$=\lim_{x\to 0}\frac{xe^x+e^x}{xe^x+2e^x}=\frac{0+1}{0+2\cdot 1}=\color{red}{\frac 12}$$