Want to prove that $$\arctan(x) = \frac{\pi}{2} - \frac{1}{x} + O\left(\frac{1}{x^3}\right) \ \text{as}~~~ x \to +\infty$$
Wolfram says that it's true but I'm trying to find some formal prove of this equality.
Here's what i found about that:
We know that $\arctan(x) = \frac{\pi}{2} - \int_x^{+\infty}\frac{dt}{1 + t^2}$ (we can easily prove this by solving such integral). But what this one can give us for asymptotic assessment?
Seems like we have to prove that this integral equals to $-\frac{1}{x} + O\left(\frac{1}{x^3}\right)$, but how?