If we have the heat equation $u_t-ku_{xx}=0$, where $(x,t)\in\Re\times(0,\infty)$, $k>0$, and $u(x,0)=f(x)$, then the general solution is
\begin{align} u(x,t)=\int_{-\infty}^{\infty}\Phi(x-y,t)f(y)dy\,, \end{align}
where
\begin{align} \Phi(x,t)=\frac{1}{\sqrt{4\pi kt}}e^{-x^2/4kt}\,. \end{align}
If we have the same conditions, what would be the general solution to the heat equation for $k<0$?
I tried the change of variables, $x=ip$, where $p$ is pure imaginary, such that the heat equation became $u_t+ku_{pp}=0$. I am not sure how to solve this, though. I do know that I cannot assume that the spatial and temporal components of the equation are separable. I was thinking that the solution might be
\begin{align} u(p,t)=\int_{-i\infty}^{i\infty}\Phi(ip-iy,t)f(iy)dy\,, \end{align}
This satisfies $u_t+ku_{pp}=0$, but I am not sure if I am missing something crucial.