[guided]We first isolate the quantity whose evolution we want to control. The relevant [Hilbert space](/page/Hilbert%20Space) is $L^2(U)$ with inner product
\begin{align*}
(f,g)_{L^2(U)}:=\int_U f(x)g(x)\,d\mathcal{L}^n(x).
\end{align*}
Define
\begin{align*}
E:[0,T]&\to\mathbb{R}
\end{align*}
\begin{align*}
r&\mapsto \|u(r,\cdot)\|_{L^2(U)}^2.
\end{align*}
Because $u\in C^1([0,T];L^2(U))$, the difference quotient
\begin{align*}
\frac{u(r+h,\cdot)-u(r,\cdot)}{h}
\end{align*}
converges to $\partial_tu(r,\cdot)$ in $L^2(U)$ as $h\to0$, for each $r\in[0,T]$ where the quotient is taken inside the interval. Using the polarization of the norm,
\begin{align*}
\frac{E(r+h)-E(r)}{h}=\left(\frac{u(r+h,\cdot)-u(r,\cdot)}{h},u(r+h,\cdot)\right)_{L^2(U)}+\left(u(r,\cdot),\frac{u(r+h,\cdot)-u(r,\cdot)}{h}\right)_{L^2(U)}.
\end{align*}
The continuity of $u:[0,T]\to L^2(U)$ gives $u(r+h,\cdot)\to u(r,\cdot)$ in $L^2(U)$, and the $C^1$ assumption gives convergence of the difference quotient to $\partial_tu(r,\cdot)$ in $L^2(U)$. Passing to the limit in the two inner products yields
\begin{align*}
E'(r)=2(\partial_tu(r,\cdot),u(r,\cdot))_{L^2(U)}.
\end{align*}
This is the Hilbert-space chain rule specialized to the squared $L^2$ norm.[/guided]