Solution (source code)

= Solution

The <derivative> of the <inverse tangent> is $(1+x^2)^{-1}$. Expand it as a <geometric series> and integrate term by term near zero, using $\arctan0=0$:
$$
\arctan x=\int_0^x(1-t^2+t^4+O(t^6))dt
=\boxed{x-\frac{x^3}{3}+\frac{x^5}{5}+O(x^7).}
$$