I have to prove $\lim_{x\to0}(1+x)^{1/x}=e$. Now I would like to perform the following operations:
$$\lim_{x\to0}(1+x)^{1/x}=e$$$$\lim_{x\to0}\ln(1+x)^{1/x}=1$$$$\lim_{x\to0}\frac{\ln(1+x)}x=1$$ And then using L'Hôpital's rule $$\lim_{x\to0}\frac{1}{1+x}=1$$
But the first step doesn't seem kosher, as I'm taking the logarithm "over" the limit, is there some way to justify that?