Let $u(x,t)$ be the solution of the equation $$ \frac{\partial{^2u}}{\partial{x^2}}=\frac{\partial{u}}{\partial{t}}$$ which tends to zero as $t\rightarrow\infty$ and has the value $\cos(x)$ when $t=0$.
Then which of the following is true?
$1.\;u=\sum^\infty_{n=1}a_n\sin(nx+b_n)e^{-nt}$, where $a_n,b_n$ are arbitrary constants.
$2.\;u=\sum^\infty_{n=1}a_n\sin(nx+b_n)e^{-n^2t}$, where $a_n,b_n$ are arbitrary constants.
$3.\;u=\sum^\infty_{n=1}a_n\cos(nx+b_n)e^{-nt}$, where $a_n$ are not all zeros and $b_n=0$
$4.\;u=\sum^\infty_{n=1}a_n\cos(nx+b_n)e^{-n^2t}$, where $a_1\neq0,\;a_n=0 \text{ for } n>1,b_n=0 \text{ for } n\geq1$.