Calculate: $$\lim_{x \rightarrow 0} \frac{(1+2x)^{\frac{1}{x}} - (1+x)^{\frac{2}{x}}}{x}$$
I've tried to calculate the limit of each term of the subtraction: $$\lim_{x \rightarrow 0} \frac{(1+2x)^{\frac{1}{x}}}{x}$$ $$\lim_{x \rightarrow 0} \frac{(1+x)^{\frac{2}{x}}}{x} $$
Each of these two limits gave me $\lim_{x \rightarrow 0} e^{2 - \ln x}$, so the initial limit must be $0$. However, the correct result is $-e^2$ and I can't get it.
Please explain me what I did wrong and how to get the correct result.
Thank you!
Using the Generalized Binomial Theorem, we get $$ \begin{align} (1+x)^{2/x} &=\left(1+2x+x^2\right)^{1/x}\\ &=\sum_{k=0}^\infty\binom{1/x}{k}(1+2x)^{1/x-k}x^{2k}\\ &=(1+2x)^{1/x}+(1+2x)^{1/x-1}x+O\!\left(x^2\right) \end{align} $$ Therefore, $$ \begin{align} \lim_{x\to0}\frac{(1+2x)^{1/x}-(1+x)^{2/x}}x &=\lim_{x\to0}\left[-(1+2x)^{1/x-1}+O(x)\right]\\[6pt] &=-e^2 \end{align} $$