When trying to calculate the deriviative of $ln(x)$, consider
$$ \lim\limits_{h \rightarrow 0} ln((1+\frac{h}{x})^{\frac{1}{h}})$$
Can I immediately deduce $$ ln(e^{\frac{1}{x}})= \frac{1}{x}$$
Or do I have to make the extra step of switching the lim and ln
$$\lim\limits_{h \rightarrow 0} ln((1+\frac{h}{x})^{\frac{1}{h}}) = ln\lim\limits_{h \rightarrow 0} ((1+\frac{h}{x})^{\frac{1}{h}})$$
This question is inspired by this comment https://math.stackexchange.com/a/1221383/360371 where the user said the switch of ln and lim is allowed, because ln(x) is continuous for $x>0$.
Can somebody elaborate, why it depends on the continuity?
I know it involves the fact, that the continuity guarantees that the limit is the same whatever side you approach it from, but I can't quite make the connection here.