<s>[INST] Limit using Taylor expansion : which term do we expand? I want to check the limit $\displaystyle{\lim_{n\rightarrow +\infty}\text{exp}\left (\frac{n}{2}\ln\left (\frac{n^2-2n+1}{n^2+1}\right )\right )}$ using the Taylor expansion.
I have done the following:
$$\lim_{n\rightarrow +\infty}\text{exp}\left (\frac{n}{2}\ln\left (\frac{n^2-2n+1}{n^2+1}\right )\right )=\lim_{n\rightarrow +\infty}\text{exp}\left (\ln\left (\frac{n^2-2n+1}{n^2+1}\right )^{\frac{n}{2}}\right )=\lim_{n\rightarrow +\infty}\left (\frac{n^2-2n+1}{n^2+1}\right )^{\frac{n}{2}}=\lim_{n\rightarrow +\infty}\left (\frac{(n-1)^2}{n^2+1}\right )^{\frac{n}{2}}=\lim_{n\rightarrow +\infty}\frac{(n-1)^n}{\left (n^2+1\right )^{\frac{n}{2}}}$$
For which term do we have to write the Taylor expansion?
 [/INST] Expand the logarithm
$$
\ln\left(\frac{n^2-2n+1}{n^2+1}\right)=\ln\left (1-\frac{2n}{n^2+1}\right)=-\frac{2n}{n^2+1}+\ldots
$$
</s>