I'm self studying "Olver - Asymptotics and Special Functions": I'm new to asymptotics and so there are some things I am not getting. First, the author states the following theorem:
Theorem 3.1. Let $\sum_{s=0}^\infty a_s z^s$ converge when $|z|<r$. Then for fixed $n$ it is $\sum_{s=n}^\infty a_s z^s=O(z^n)$ in any disk $|z|\le\rho$ such that $\rho <r$.
And proceeds to study the asymptotic behavior of the roots of trascendental equations: for instance, he considers the equation $x \tan x=1$ for large $x>0$. Inverting, it is $x=n\pi+\arctan(1/x)$ for $n\in\mathbb{Z}$ for the principal value of arctan. Since arctan is bounded, it is $x \sim n\pi$ as $n \to \infty$.
Since for $x>1$ the Taylor's series of $\arctan(1/x)$ converges, he then writes: $$x=n\pi+\frac{1}{x}-\frac{1}{3x^3}+\frac{1}{5x^5}-\frac{1}{7x^7}+\dots$$ Finally, he claims that hence $x=n\pi+O(x^{-1})=n\pi+O(n^{-1})$ and that next two substitutions produce $$x=n\pi+\frac{1}{n\pi}+O\left(\frac{1}{n^3}\right) \tag{1}$$ $$x=n\pi+\frac{1}{n\pi}-\frac{4}{3(n\pi)^3}+O\left(\frac{1}{n^5}\right) \tag{2}$$
First question: why is it $n\pi+O(x^{-1})=n\pi+O(n^{-1})$? I know that $f(x)=O(g(x))$ as $x \to x_0$ means that $|f(x)|\le K|g(x)|$ for some constant $K$ in a neighborhood of $x_0$, maybe this comes from the Archimedean property and I can always find a natural $n$ such that $n<x$ and so $\frac{1}{x}<\frac{1}{n}$, so I can say (for $x>0$) that $f(x)=O(x^{-1})\implies f(x)\le \frac{K}{x}<\frac{K}{n}\implies f(x) \le \frac{K}{n} \implies f(x)=O(n^{-1})$? Or this is wrong and he is using another kind of reasoning?
Second question: I am not getting the calculations to obtain equations $(1)$ and $(2)$. What I tried so far is the following. From theorem 3.1 with $n=1$, I know that $$x=n\pi+\frac{1}{x}+O\left(\frac{1}{x^3}\right)$$ Substituting $x=n\pi+O(n^{-1})$ and using the properties $O(cf)=O(f)$ for $c>0$, $fO(g)=O(fg)$ and $O(f)O(g)=O(fg)$, it is $$x=n\pi+\frac{1}{n\pi+O\left(\frac{1}{n\pi}\right)}+O\left(\frac{1}{\left(n\pi+O\left(\frac{1}{n\pi}\right)\right)^3}\right)=n\pi+\frac{1}{n\pi+O\left(\frac{1}{n\pi}\right)}+O\left(\frac{1}{n^3\pi^3+O(n)+O\left(\frac{1}{n}\right)+O\left(\frac{1}{n^3}\right)}\right)$$ But I don't know how to manipulate the big-Os in the denominators. I have similar problems for $(2)$, putting $n=2$ in theorem 3.1 and have no clue how to manipulate the big-Os.