Find an explicit formula for a function that is exactly equivalent to the power series $$\sum_{n=1}^\infty\frac{(-1)^n}{2n+1}x^{2n}$$
Can somebody give me an idea on where to start with this?
Edit: Thanks to everybody's comments, I recognize that this power series is similar to the one for arctan:
$$\tan^{-1}x=\sum_{n=0}^\infty\frac{(-1)^n}{2n+1}x^{2n+1}$$
Please let me know if what I did was correct:
I decided to try and get the $x^{2n}$ in the first power series to $x^{2n+1}$ by multiplying the power series by $\frac{x}{x}$ to get:
$$\sum_{n=1}^\infty\frac{(-1)^n}{2n+1}\frac{x^{2n+1}}{x}$$
I then factored out $\frac{1}{x}$ to get:
$$\frac{1}{x}\sum_{n=1}^\infty\frac{(-1)^n}{2n+1}{x^{2n+1}}$$
Considering that $\sum_{n=1}^\infty a_n=\bigg(\sum_{n=0}^\infty a_n\bigg)-a_0$ this would mean that:
$$\frac{1}{x}\sum_{n=1}^\infty\frac{(-1)^n}{2n+1}{x^{2n+1}}=\frac{1}{x}\bigg(\sum_{n=0}^\infty\frac{(-1)^n}{2n+1}x^{2n+1}-x\bigg)$$
Which makes the power series equivalent to:
$$\frac{1}{x}(\tan^{-1}x-x)$$
Your work is correct. As an alternative approach that avoids recognizing the Maclaurin series for $\arctan$, it is easy to note that $\frac1{2n+1}=\int_0^1t^{2n}~\mathrm dt$, hence with geometric series and the derivative of $\arctan$,
\begin{align}\sum_{n=1}^\infty\frac{(-1)^n}{2n+1}x^{2n}&=\int_0^1\sum_{n=1}^\infty(-1)^nx^{2n}t^{2n}~\mathrm dt\\&=\int_0^1\sum_{n=1}^\infty(-x^2t^2)^n~\mathrm dt\\&=\int_0^1\frac{-x^2t^2}{1+x^2t^2}~\mathrm dt\\&=\int_0^1\frac1{1+x^2t^2}-1~\mathrm dt\\&=\frac1x\arctan(x)-1\end{align}