I have
$$\lim_{x\to + \infty} e^x(1-\frac{1}{x})^{x^2}$$
and I tried to solve it with the substitution $x=-y$ in order to obtain
$$\lim_{y\to - \infty} e^{-y}(1+\frac{1}{y})^{y^2}$$
and apply the fundamental limit
$$\lim_{x \to \infty}(1+\frac{1}{x})^x=e$$
This way I got the following result
$$\lim_{y \to - \infty}e^{-y}e^2=+\infty$$
but I found out it is wrong. The real solution should be $e^{-1/2}$. What am I doing wrong and how can I get to the real solution?
$$\lim_{y\to\infty}\left(\frac{\left(1+\frac{1}{y}\right)^y}{e}\right)^y$$
which makes it clear why you can't substitute the limit $e$ of the numerator.
– Coolwater May 31 '19 at 09:15