[step:Differentiate the Gaussian convolution for positive time]
Define the heat kernel
\begin{align*}
G:(0,\infty)\times\mathbb R&\to(0,\infty)\\
(t,z)&\mapsto \frac{1}{\sqrt{2\pi t}}\exp\left(-\frac{z^2}{2t}\right).
\end{align*}
Then $p(t,x,y)=G(t,y-x)$, and
\begin{align*}
u(t,x)=\int_{\mathbb R}f(y)G(t,y-x)\,d\mathcal L^1(y).
\end{align*}
Let $K=[a,b]\times[-R,R]\subset(0,\infty)\times\mathbb R$ be compact, with $0<a<b$ and $R>0$. For every pair of integers $r,k\ge0$, differentiating the Gaussian formula shows that
\begin{align*}
\partial_t^r\partial_x^kG(t,y-x)
=P_{r,k}\left(t^{-1},y-x\right)G(t,y-x)
\end{align*}
for a polynomial $P_{r,k}$ depending only on $r$ and $k$. Since $t\in[a,b]$ and $x\in[-R,R]$, there exist constants $C_{r,k,K}>0$, $N_{r,k}\in\mathbb N$, and $c_a>0$ such that
\begin{align*}
\left|\partial_t^r\partial_x^kG(t,y-x)\right|
\le C_{r,k,K}(1+|y|)^{N_{r,k}}\exp(-c_a y^2)
\end{align*}
for all $(t,x)\in K$ and all $y\in\mathbb R$. The function on the right belongs to $L^1(\mathbb R,\mathcal B(\mathbb R),\mathcal L^1)$, and $|f(y)|\le \|f\|_\infty$.
The [dominated convergence theorem](/theorems/4) therefore justifies differentiating under the integral sign any finite number of times on $K$. Since $K$ was arbitrary, $u\in C^\infty((0,\infty)\times\mathbb R)$, and
\begin{align*}
\partial_t u(t,x)&=\int_{\mathbb R}f(y)\partial_tG(t,y-x)\,d\mathcal L^1(y),\\
\partial_{xx}u(t,x)&=\int_{\mathbb R}f(y)\partial_{xx}G(t,y-x)\,d\mathcal L^1(y).
\end{align*}
[/step]