<s>[INST] Solving a $1^\infty$ indeterminate form. I'm preparing for my calculus exam and I can't solve this limit:
$$\lim_{x\rightarrow\infty}\left(\frac{1+\tan(1/x)}{1-\tan(1/x)}\right)^x$$
The limit tends to $1^\infty$, which is indeterminate.
I've tried several things and I couldn't solve it.
Any idea? Thanks in advance.
 [/INST] Asymptotics ...
$$\begin{align}
\operatorname{tan} \biggl(\frac{1}{x}\biggr) &= \frac{1}{x} + \frac{1}{3 x^{3}} + \frac{2}{15 x^{5}} + O \Bigl(x^{(-6)}\Bigr)\\
1 + \operatorname{tan} \biggl(\frac{1}{x}\biggr) &= 1 + \frac{1}{x} + \frac{1}{3 x^{3}} + \frac{2}{15 x^{5}} + O \Bigl(x^{(-6)}\Bigr)\\
1 - \operatorname{tan} \biggl(\frac{1}{x}\biggr) &= 1 - \frac{1}{x} - \frac{1}{3 x^{3}} - \frac{2}{15 x^{5}} + O \Bigl(x^{(-6)}\Bigr)\\\frac{1 + \operatorname{tan} \Bigl(\frac{1}{x}\Bigr)}{1 - \operatorname{tan} \Bigl(\frac{1}{x}\Bigr)} &= 1 + \frac{2}{x} + \frac{2}{x^{2}} + \frac{8}{3 x^{3}} + \frac{10}{3 x^{4}} + \frac{64}{15 x^{5}} + O \Bigl(x^{(-6)}\Bigr)\\\left(\frac{1 + \operatorname{tan} \Bigl(\frac{1}{x}\Bigr)}{1 - \operatorname{tan} \Bigl(\frac{1}{x}\Bigr)}\right)^{x} &= \operatorname{e} ^{2} + \frac{4 \operatorname{e} ^{2}}{3 x^{2}} + \frac{20 \operatorname{e} ^{2}}{9 x^{4}} + O \Bigl(x^{(-5)}\Bigr)
\end{align}$$
</s>