[step:Define the energy density and derive the local conservation law]Define the energy density as the map $e: [0,T] \times \mathbb{R}^n \to [0,\infty)$ given by
\begin{align*}
e(t,x) := \frac{1}{2}\left(|\partial_t u(t,x)|^2 + |\nabla u(t,x)|^2\right).
\end{align*}
Since $u \in C^2([0,T] \times \mathbb{R}^n)$, the functions $\partial_t u$ and $\nabla u$ are $C^1$, and $e$ is $C^1$ on $(0,T) \times \mathbb{R}^n$. For every $(t,x) \in (0,T) \times \mathbb{R}^n$,
\begin{align*}
\partial_t e(t,x) = \partial_t u(t,x)\partial_t^2u(t,x) + \nabla u(t,x)\cdot \nabla \partial_t u(t,x).
\end{align*}
Using the wave equation $\partial_t^2u=\Delta u$, we get
\begin{align*}
\partial_t e(t,x) = \partial_t u(t,x)\Delta u(t,x) + \nabla u(t,x)\cdot \nabla \partial_t u(t,x).
\end{align*}
Define the energy flux vector field as the map $F: (0,T) \times \mathbb{R}^n \to \mathbb{R}^n$ given by
\begin{align*}
F(t,x) := \partial_t u(t,x)\nabla u(t,x).
\end{align*}
Then $F$ is $C^1$, and the product rule gives
\begin{align*}
\nabla_x \cdot F(t,x) = \nabla \partial_t u(t,x)\cdot \nabla u(t,x) + \partial_t u(t,x)\Delta u(t,x).
\end{align*}
Therefore
\begin{align*}
\partial_t e(t,x) = \nabla_x \cdot F(t,x)
\end{align*}
for every $(t,x) \in (0,T) \times \mathbb{R}^n$.[/step]