Proof (energy conservation of wave equation)

We compute the derivative $$ \begin{align*} E'(t) ={}& \frac{1}{2}\int_{\Omega} \dd{t}\left(\phi_t^2 + c^2 |\nabla \phi|^2\right) \d V \\ ={}& \int_{\Omega} \phi_t \phi_{tt} + c^2\nabla\phi\cdot\nabla\phi_t \d V \\ ={}& c^2\int_{\Omega} \phi_t \Delta\phi + \nabla\phi\cdot\nabla\phi_t \d V &&\text{wave equation} \\ ={}& c^2\int_{\Omega} \nabla\cdot(\phi_t \nabla\phi) \d V \\ ={}& c^2\int_{\partial \Omega} \phi_t \nabla\phi\cdot \d \v S &&\text{divergence theorem}. \end{align*} $$

Since the boundary condition is $\phi = 0$ on $\partial \Omega\times(0,\infty)$, we have $\phi_t = 0$ on $\partial \Omega \times(0,\infty)$. Therefore $$ \begin{align*} E'(t) = 0. \end{align*} $$