I thought it might be instructive to present an approach that uses pre-calculus tools only. To that end, we proceed.
Note that $n=\sum_{m=1}^{n} (1)$.
Therefore, we have
$$\begin{align}
\sum_{n=1}^\infty (-1)^{n-1} nx^{2n}&=-\sum_{n=1}^\infty\sum_{m=1}^n(1) (-x^2)^n\\\\
&=-\sum_{m=1}^\infty\sum_{n=m}^\infty (-x^2)^n \,\,\,\,\dots\,\,\text{interchange summation order}\\\\
&=-\sum_{m=1}^\infty\frac{(-x^2)^m}{1+x^2}\,\,\,\,\,\,\,\,\,\,\dots\,\,\,\text{Sum inner geometric series}\\\\
&=\frac{x^2}{(1+x^2)^2}\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\dots\,\,\text{Sum geometric series}
\end{align}$$
And we are done!