How is
$$\lim_{n \to \infty}2\left(1-\frac {1}{n+1}\right)^n$$ equal to the following limit
$$\lim_{n \to \infty}2e^{n\ln\left(1-\frac {1}{n+1}\right)}$$
I feel like I'm missing something. I don't get how is it possible to apply an exponential of a logarithm to the expression. Any hints?
By definition we have $e^x$ and $\ln x$ are inverse functions of each other, this means that $$e^{\ln x}=x$$ and $$\ln e^x=x.$$
This is because you are 'undoing' something which you have 'done'.
So, using this, we have $$\Big(1-\frac{1}{n+1}\Big)^n=e^{\ln(1-\frac{1}{n+1})^n}=e^{n\ln(1-\frac{1}{n+1})},$$
where that last bit we also used the property of $\ln a^n=n\ln a$.