Prove or Disprove $2\sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{n} \sin(nx) $ converge uniformly to $x$ on $(-\pi,\pi)$ I want to prove $2\sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{n} \sin(nx) $ converges pointwise and uniformly to $x$ on $[-\pi,\pi]$.  I know $\sum_{k=1}^{\infty}\frac{(-1)^n}{n}$ converge by alternating series test. And $\sum a_n \sin(nx)$ converge by Dirichlet test if $a_n$ is decreasing sequence. But in this case this does not work. Maybe it just we can just consider the interval without $-\pi$,$\pi$. I get lost. Please help. Thanks a lot
After trying, I think maybe there is no uniform convergence?


NOTE:  The original question that the OP asked was
"Prove $2\sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{n} \sin(nx) $ converge pointwise and uniformly to $x$ on $[0,2\pi]$ using elementary analysis"**


Let $a_n(x)=(-1)^{n-1}\sin(nx)$ and $b_n(x)=\frac1n$.  Obviously, $b_n(x)\to 0$ monotonically and uniformly as $n\to\infty$.
Moreover, for any $0<\delta_1<\pi$ and $0<\delta_2<\pi$, and $x\in [-\pi+\delta_1,\pi-\delta_2]$,
$$\begin{align}
\left|\sum_{n=1}^N a_n(x)\right|&=\left|\sum_{n=1}^N (-1)^{n-1}\sin(nx)\right|\\\\
&\le\left|\sec(x/2)\right|\\\\
&\le \max(\csc(\delta_1),\csc(\delta_2))
\end{align}$$
Therefore, Dirichlet's Test guarantees that the series $\sum_{n=1}^\infty \frac{(-1)^{n-1}\sin(nx)}{n}$ converges uniformly on $[-\pi+\delta_1,\pi-\delta_2]$.

EDITED: After the OP changed the question
We now give a proof that the series $2\sum_{n=1}^\infty \frac{(-1)^{n-1}\sin(nx)}{n}$ fails to converge uniformly for $x\in (-\pi,\pi)$.
We first note that the series converges to $-x$ for $x\in (-\pi,\pi)$.  That is to say that the Fourier series for $x$ on $(-\pi,\pi)$ is given by
$$x=2\sum_{n=1}^\infty \frac{(-1)^{n-1}\sin(nx)}{n}$$
Now let $f_N(x)$ be the $N$th partial sum of the Fourier series for $x$.  Then, denoting $t=x+\pi$ we can write
$$\begin{align}
f_N(x)&=2\sum_{n=1}^N\frac{(-1)^{n-1}\sin(nx)}{n}\\\\
&=-2\sum_{n=1}^N \frac{\sin(nt)}{n}\\\\
&=-2\int_0^t \sum_{n=1}^N \cos(nu)\,du\\\\
&=t-\int_0^t \frac{\sin((N+1/2)u)}{\sin(u/2)}\,du\\\\
&=t-\int_0^{(N+1/2)t}\frac{\sin(x)}{x}\frac{x/(2N+1)}{\sin(x/(2N+1))}\,dx
\end{align}$$
It suffices to show that $\int_0^t \frac{\sin((N+1/2)u)}{\sin(u/2)}\,du$ fails to converge uniformly to $\frac\pi2$ for $t\in (0,2\pi)$.  Now take $t=1/(N+1/2)$
Then, we see that
$$\sin(1)\le\int_0^1 \frac{\sin(x)}{x}\frac{x/(2N+1)}{\sin(x/(2N+1))}\,dx\le \csc(1)$$
Hence we conclude that the convergence of $f_N(x)$ fails to converge uniformly on $(-\pi,\pi)$.  And we are done!
