<s>[INST] Evaluate $\lim_{x\rightarrow -\infty}{e^{\frac {1}{2-x}}\cdot\frac{x^2+2x-1}{x-2}}-x$ I want to find the following limit:
$$\lim_{x\rightarrow -\infty}{e^{\frac {1}{2-x}}\cdot\frac{x^2+2x-1}{x-2}}-x$$
This is what I do. I change the variable $t=-x$ and I have the following limit:
$$\lim_{t\rightarrow +\infty}{e^{\frac {1}{2+t}}\cdot{\frac{t^2-2t-1}{-t-2}}+t}=\lim_{t\rightarrow+\infty}{h(x)}$$
We have $e^{\frac{1}{2+t}}\rightarrow1$ for $t\rightarrow+\infty$
Therefore I think (this is the passage I'm less sure about)
$$h(x)\sim \frac{t^2-2t-1}{-t-2}+t=\frac{t^2-2t-1+t(-t-2)}{-t-2}=\frac{t^2-2t-1-t^2-2t}{-t-2}=\frac{-4t-1}{-t-2}\sim{\frac {-4t}{-t}}\rightarrow4$$
The solution should actually be $3$. Any hints on what I'm doing wrong?
 [/INST] Let set $\frac {1}{2-x}=y \to 0$
$$\lim_{x\rightarrow -\infty}{e^{\frac {1}{2-x}}\cdot\frac{x^2+2x-1}{x-2}}-x=\lim_{y\rightarrow 0}{e^{y}\cdot\frac{\frac1{y^2}-\frac 6 y+7}{-\frac1y}}-2+\frac1y$$$$=\lim_{y\rightarrow 0}e^{y}\cdot\left(-\frac1{y}+6-7y\right)-2+\frac1y$$
then use $e^y=1+y+o(y)$ to obtain
$$(1+y+o(y))\cdot\left(-\frac1{y}+6-7y\right)-2+\frac1y$$
$$-\frac1{y}+6-7y-1+6y-7y^2+o(1)-2+\frac1y=3+o(1) \to 3$$
</s>