I'm trying to prove the following result, however I'm very much struggling to understand some of the finer details of the proof. Would someone be able to explain it to me? It's definitely a standard result, but my textbooks are very vague about the derivation.
Lemma: If \begin{align} \label{eq:homo_PDE} \frac{\partial u}{\partial t} = \frac{1}{\kappa}\frac{\partial^2 u}{\partial x^2} ,\quad x\in(-\infty,\infty) \end{align} and \begin{align} u=f(x),&\quad\text{when}\ t=0\\ u\rightarrow 0,\quad &\text{as}\ \ |x|\rightarrow\infty,\quad\forall t\geq0 \end{align} then it has the following solution \begin{align} \label{eq:heat_kernal} u = \frac{1}{2\sqrt{\pi\kappa t}} \int_{-\infty}^{\infty} f(x') e^{-(x-x')^2/4\kappa t}\ \text{d}x' \end{align}