In reading standard texts there seems to be two standard solution to the heat equation:
$$\frac{\partial T}{\partial t}=D\frac{\partial^2T}{\partial x^2}$$
The first is obtained when assuming a real separation constant (if solving by separation of variables) this gives you a wave of the form:
$$e^{-t}\sin(x)$$
The second is obtained when you allow for a complex separation constant and this gives you a solution of the form:
$$e^{-x}\sin(t-x)$$
I'm becoming very confused as to which solution to use in which scenario, I have answered two separate questions which seem to be the same but each one is looking for a different solution.
Could anybody help me work out which one is appropriate and when?
There are not two solutions, but two class of solutions. Which class to use depends on the boundary and initial conditions.