For every $k\in\mathbb{N}$, with $k\geq 1$, let $f_k=f_k(x,t)$ be the real-valued function defined over the set $(x,t) \in [-\pi,\pi]\times[0,+\infty)$ by
$$f_k(x,t)=(-1)^{k+1}\frac{2}{k}e^{-k^{2} t}\sin(kx).$$
We then consider the corresponding function series
$$\sum_{k=1}^{+\infty}f_k(x,t)=\sum_{k=1}^{+\infty}(-1)^{k+1}\frac{2}{k}e^{-k^{2} t}\sin(kx). \tag{1}$$
It is simple to show that $(1)$ converges pointwise on the whole $[-\pi,\pi]\times[0,+\infty)$, and uniformly on every $[-\pi,\pi]\times[t_0,+\infty)$, with $t_0>0$. Let $u=u(x,t)$ be its sum, i.e
$$u(x,t)=\sum_{k=1}^{+\infty}f_k(x,t)=\sum_{k=1}^{+\infty}(-1)^{k+1}\frac{2}{k}e^{-k^{2} t}\sin(kx).$$
The sum $u$ it is a superposition of sinusoids of increasing frequency $\frac{k}{2\pi}$ and of strongly damped amplitude because of the negative exponential, at least when $t > 0$. For this reason, it is simple to show that $u$ is smooth on the set $[-\pi,\pi]\times(0,+\infty)$, ie $u\in C^{\infty}([-\pi,\pi]\times(0,+\infty))$. Notice also that:
- $u=u(x,t)$ is the solution of the one-dimensional Heat Equation problem with periodic boundary conditions
$$\begin{cases} u_t-u_{xx} = 0 \qquad &x \in (-\pi,\pi),t>0 \\ u(x,0) = x \qquad &x \in (-\pi,\pi) \\ u(-\pi,t) = u(\pi,t) \qquad &t \geq 0 \end{cases}. \tag{2}$$
For every $x_0\in (-\pi,\pi)$ one has $$\lim_{(x,t)\to(x_0,0)}u(x,t)=x_0,$$ and then $u$ is also continuous at every point of the open segment $(-\pi,\pi)\times\{0\}$.
The limits $$\lim_{(x,t)\to(\pm \pi,0)}u(x,t)\qquad \nexists.$$
I'm not able to prove that $u$ is bounded on the whole $[-\pi,\pi]\times [0,+\infty)$.
By uniform convergence (as suggested me in comments), we just need to prove that partial sums of $(1)$ are uniformly bounded on $[-\pi,\pi]\times [0,+\infty)$, but I really don't know how to obtain this uniform bound.
Any hint would be really appreciated.
We use that $\left|\sum_{k=1}^{n}\frac{(-1)^ksin(kx)}{k}\right|\leq C$ which is a classic result; see for example this MSE post
(edited per comments $\sum_{k=1}^{n}\frac{(-1)^{k+1} sin(kx)}{k}= \sum_{k=1}^{n}\frac{sin(kx)}{k}- \sum_{k=1}^{[n/2]}\frac{sin(k(2x))}{k}$, so the bound for the signed sum follows from the bound from the unsigned sum applied for $x, 2x$)
and summation by parts, namely if $\sum_{k=1}^n a_k =A_n$ then
$\sum_{k=1}^n a_kb_k=A_1(b_1-b_2)+A_2(b_2-b_3)+...A_{n-1}(b_{n-1}-b_n)+A_nb_n$ so if
$|A_n| \le C, b_1 \ge b_2 \ge..b_n \ge 0$ we get:
$|\sum_{k=1}^n a_kb_k| \le C(b_1-b_2)+...Cb_n=Cb_1$
In our case since $a_k =(-1)^{k+1}\frac{2}{k}sin(kx), b_k =e^{-k^2t}$ obviously satisfy the hypothesis above for $x \in R, t \ge 0$ we get:
$\left|\sum_{k=1}^{n}(-1)^{k+1}\frac{2}{k}e^{-k^2t}sin(kx)\right|\leq 2Ce^{-t^2} \le 2C$ uniformly in $(x,t) \in [-\pi,\pi] \times [0, \infty)$