In my textbook, the Maclaurin series expansion of $\arctan{x}$ is found by integrating a geometric series, that is, by noting that
$\frac{d}{dx}(\arctan(x)) = \frac{1}{x^2+1}$
then rewriting the latter as a geometric series over which one can then integrate. What bothers me is that the geometric series is only convergent when $|x| < 1$, but $\arctan(x)$ is defined for all $x$. This question of convergence is dismissed by the author, but I'm curious as to what's really going on here. Is the series expansion still valid outside the radius of convergence, and if so, why?