How do you expand this function at n= $\infty$? $$ \begin{align*} f(x) = \exp \left( - \left( \frac{x}{n + \frac{1}{3} + \frac{0.1}{n+1}} \right)^2 \left( n+ \frac{1}{6} \right) \right) \end{align*} $$ From Wolfram alpha I got $$ \begin{align*} f(x)= 1 - \frac{x^2}{n} + \frac{x^4+x^2}{2n^2} + \mathcal{O} (n^{-3}) \end{align*} $$ $\\$ When I expand the exponent using Wolfram alpha I got:
$$ \begin{align*} - \frac{x^2}{n} + \frac{x^2}{2n^2} + \mathcal{O} (n^{-3}) \end{align*} $$
Then by taking the exponential on this term and using Taylor expansion $ \left(\exp(x) = 1+ x + \frac{x^2}{2} +\mathcal{O}(n^{-3}) \right)$ I get : $$ \begin{align*} f(x) &= 1- \frac{x^2}{n} + \frac{x^2}{2n^2} + \frac{1}{2} \left( \frac{x^4}{n^2} + \frac{x^4}{4n^4} - \frac{x^4}{n^3} \right) + \mathcal{O} (n^{-3}) \\ &= 1- \frac{x^2}{n} + \frac{x^4+x^2}{2n^2} + \mathcal{O} (n^{-3}) \end{align*} $$ Where I in the second equality have collected the same order terms under the big-O.