I want to find the functional form of the Green function G(x,t) for a parabolic differential equation:
$$ \frac{\partial{}G(x,t)}{\partial{}t}=a\frac{\partial{}^2G(x,t)}{\partial{}x^2}+\delta(t)\delta(x)$$
Then, I'd like to write the general solution of the heat equation:
$$\frac{\partial{}T(x,t)}{\partial{}t}=a\frac{\partial{}^2T(x,t)}{\partial{}x^2}+f(x,t) $$
where f is a known source function.
I think I need to use a transform like that of Laplace or Fourier. How can I handle the Dirac delta function in this equation?
You can separate the dimensions. You start by trying to find a function $G(x,t)$ such that
I'm not saying yet that this function will be the Green's function you are looking for, but say you find such a function. An example function would be something like $$ G(x,t) = \frac{1}{4\pi\alpha} \frac{1}{\sqrt{t}} e^{-\frac{x^2}{4\alpha t}} $$ where the powers of 2 and $\pi$ are chosen carefully such that for all non-zero $t = t_0$, $$\int_{-\infty}^\infty G(x,t_0) dx = 1 $$ thus ensuring (at least plausibly) that when $t = 0$ the integral remains $1$. And when $t=0$, since outside of $x=0$ the function is zero, yet it's integral is $1$, that means it is a $\delta$-function in one dimension.
his would work if all your heat sources were instantaneous at $t=0$. But notice that the heat equation is time invariant, in the sense that you can make a substitution of $t' = t+\tau$ and the form remains the same.
So in terms of that $G(x,t)$ your general solution will be: $$ h(x,y) = \int_{\tau = -\infty }^\infty \int_{x'=-\infty}^\infty f(x,\tau) G(x-x',t-\tau) dx' \, d\tau $$
There will be issues of solution stability as the problem is ill-posed if you try to find initial conditions that lead to arbitrary future heat distributions, of course.