Could someone explain me how the author applied the limit and then took the power. According to limit Laws, it is valid when the exponent is any positive integer but here it is a function of $x$ and $x$ is approaching towards infinity, so why did the author apply it here.
1.10.6. Find $$ \lim _{x \rightarrow \infty}\left(1+\frac{1}{x^{2}}\right)^{x} $$ Solution $\lim _{x \rightarrow \infty}\left(1+\frac{1}{x^{2}}\right)^{x}=\lim _{x \rightarrow \infty}\left[\left(1+\frac{1}{x^{2}}\right)^{x^{2}}\right]^{1 / x}=e^{0}=1$
Book - I.A. Maron Problems in Calculus of One Variable.
Before evaluating a limit and algebra done is valid regardless of the value that it will take, and it is true that: $$f(x)^{x}=\left(f(x)^{x^2}\right)^{1/x}$$ What is happening after that is they are using the fact that: $$\lim_{x\to\infty}\left(1+\frac 1{x^2}\right)^{x^2}=e$$ then: $$e^{1/x}\to 1$$