Without the use of L'hospitals rule, solve the following: $$\lim_{x\rightarrow\infty}\left(\frac{x+2}{x+1}\right)^{x/2}$$
I'm trying to apply the limit that says $$\lim_{x\rightarrow\pm\infty} \left(1+\frac{1}{x}\right)^x = e$$
However, I'm confused as the exponent is now $x/2$ and $x$ is approaching positive infinity in the limit, and not $\pm\infty$. Also there's the rational.
Thank you in advance
$$\lim_{x\to\infty} (1+\frac1{x+1})^{\frac{x}2} =\lim_{x\to\infty} \left[(1+\frac1{x+1})^{\frac1{x+1}}\right]^{\frac{x}{2(x+1)}} = e^{\lim\limits_{x\to \infty} \frac{x}{2(x+1)}}$$
The last line is true because $\lim\limits_{x\to a} f(x)=f(\lim\limits_{x\to a} x)$ is true when $f$ is continuous.