The backwards heat equation is not well posed
Solution 1:
Writing down the formula $$u(x,t)= \sum_{i=1}^{n}b_n e^{k\frac{n \pi }{L}t}\sin (\frac{n \pi x }{L}) \tag{1}$$ [NB: I dropped extraneous "x" in the exponent] is a good idea, but you should connect it to the goal: proving that the $u(x,t)$ does not depend continuously on the initial data $f$. The goal is a bit vague because to make sense of "continuous" we need some topology on the set of functions that are used as initial values. It may happen that the problem is well-posed in one topology but not in another. Topology is usually defined by a norm in this context.
One possibility is the uniform norm $\|f\| = \sup_{[0,L]} |f|$. To show the problem is ill-posed with respect to this norm, we need a sequence $f_n$ such that $\|f_n\|\to 0$ but the corresponding solutions do not converge to zero (again, in what sense? I'll go with uniform norm again).
Looking at (1), we see than higher frequencies (greater $n$) get magnified more, by virtue of $\exp(k n\pi t/L)$. So... why not take $$f_n(x) =\exp( - k n\pi /L) \sin (n\pi x/L)$$ this converges to zero in many different senses but $$u_n(x,1) = \sin (n\pi x/L) $$ does not become small in the uniform norm. To make it even worse, $$u_n(x,2) = \exp( k n\pi /L) \sin (n\pi x/L) $$ becomes rather large.
Solution 2:
Indeed, the topology is crucial. If $u$ is an element of $L^{2}( \mathbb{R},dx)$ we can show that $-\partial _{x}^{2}$ extends to a non-negative self-adjoint operator $p^{2}$ and we can write
\begin{equation*} u(t)=\exp [kp^{2}t]u(0). \end{equation*} In this case $u(t)$ is well defined for all $t$.
Solution 3:
It seems the problem is recently solved. Please see the following papers where (easy to check) necessary and sufficient conditions for the solvability of the Cauchy problem of the backward heat equation are found. Similar condition also works in case of bounded domains with Dirichlet boundary condition.
- arXiv:1905.05845
A note on time analyticity for ancient solutions of the heat equation
- arXiv:1907.01687
Time analyticity for the heat equation and Navier-Stokes equations