I have solved the heat equation and have gotten to the stage of getting a general solution $$u(x,t)=x+\sum^\infty_{n=1} c_n \sin(\pi n x)e^{-\pi^2 n^2 t}$$
And I have the initial condition $$u(x,0)=x+\sin(\pi x)$$
How do I incorporate the initial condition to get the particular solution of $$u(x,t)=x+\sin(\pi x)e^{-\pi^2 t}$$