Let $u$ be a regular and bounded solution of $u_{tt}-u_{xx}=0$ in $\mathbb{R} \times \mathbb{R}$ with $u(0,x) = g(x)$, $u_t(0,x)=0$ in $\mathbb{R}$. Define
$$ w(t,x) = \frac{1}{\sqrt{4 \pi t}} \int_{\mathbb{R}} u(s,x)e^{-\frac{s^2}{4t}}ds $$
Show that $w$ solves the heat equation $w_t - w_{xx} = 0$ in $(0,\infty) \times \mathbb{R}$ with $w(0,x) = g(x)$ in $\mathbb{R}$.
So far I have tried this: The solution to the wave equation $u_{tt} - u_{xx}=0$ must be of the form found in d'Alembert's formula. So i plugged this formula into $w$ and then calculated $w_t$ and $w_{xx}$. But I don't see any obvious simplifications that lead to the result.