Power series representation of $(1+x^2)\arctan x$

calculuspower series

so i've been looking for a cleaner way of solving this question, finding a Power series representation of the following:
$$
\left(1+x^2\right)\arctan\left(x\right)
$$

knowing the power series of arctan i got:
$$
\sum_{n=0}^{\infty \:}\frac{\left(-1\right)^n\cdot x^{2n+1}}{2n+1}\:+\:\sum_{n=0}^{\infty}\frac{\left(-1\right)^n\cdot \:x^{2n+3}}{2n+1}
$$

which after opening up the sum expressions amounts to :
$$
x+\:\:\sum_{n=1}^{\infty}\frac{\left(-1\right)^n\cdot \:2\cdot x^{2n+1}}{\left(2n\right)^2-1}
$$

I am sure there is a better way of doing this, maybe differentiation or integration? I've tried but i can't figure it out.
Any help would be greatly appreciated :]

Best Answer

Yes, there is indeed a solution by differentiation + integration:

Differentiate your expression:

$$2x \arctan(x) +1$$

replace $\arctan(x)$ by its expansion, then integrate it term by term... taking into account the integration constant in such a way that there is an agreement in $x=0$ of the initial expression and your expansion.

Related Question