Q:

Approximation of $\arctan(x)$ with $\pi/2 + a/x + b/x^3$

I have to find numbers $a, b \in \mathbf{R}$ that function
  $f(x) = \pi/2 + a/x + b/x^3$ is a very good approximation to the function $g(x) = \arctan(x)$ for big $x$ in terms of that the error goes towards $0$ faster than $1/x^4$, where $x$ goes towards $\infty$.

So I calculate the derivative of functions $f$ and $g$ and equate them. When I all calculate then I got 
$(a +1) x^4 + (a + b) x^2 + b = 0$
Is this the right path for this exercise or not?

A:

Hint: Use the fact that for $x > 0$, we have $\arctan x = \frac{\pi}{2} - \arctan(\frac{1}{x})$.  Then, apply the Taylor series
$$\arctan t = \sum_{n=0}^\infty \frac{(-1)^{2n+1}}{2n+1} t^{2n+1}.$$

