Heat diffusion equation with external time dependent force

100 Views Asked by At

I'm having an issue solving the following problem with the Fourier transform: $$\left\{\begin{matrix}\partial_{t} u = D\partial^{2}_{xx}u + f(t)\\ u(x,0) = e^{-x^2}\\ -\infty<x<+\infty\end{matrix}\right.$$ where $$f(t) = \left\{\begin{matrix} 1&0<t<\tau\\ 0&t>\tau\\ \end{matrix}\right.$$ ($\tau$ is not specified). My biggest concern is the following: when I apply the Fourier transform defined as: $$u(k,t)=\frac{1}{\sqrt{2\pi}}\int_{\mathbb{R}}e^{-ikx}u(x,t)dx$$to both side how does the external force transform? It's not a function of $x$. Can I consider it as a constant as far as the integral is concerned? If someone could answer me with the correct way to solve this problem would be really appreciated!