Given the initial value problem :
$$\matrix{u_{tt}-u_{xx} &=& f(x,t)&\;\;\forall x\in \mathbb R\,,\;t\in [0,T]\\u(x,0) &=& g(x)&\\u_t(x,0) &=& h(x)&}$$
where the initial data and $u(\;,t)$ are supported for every $\;t\in [0,T]$.
We also define the energy as: $$E(t)=\frac{1}{2} \int_{\mathbb R} (u_t)^2\;+\;(u_x)^2\;\;dx$$
Prove that: $$\max_{\;τ\;\in [0,T]} \sqrt{E(t)} \lt \sqrt{E(0)}\;+\;\sqrt 2 \int_{0}^t {\Vert f(\;.τ) \Vert}_{L^2} \;dτ\;$$
My attempt:
$\frac{dE(t)}{dt}\;=\;\frac{1}{2} \int_{\mathbb R} 2u_xu_{xt}\;+\;2u_tu_{tt}\; dx\;=\;\int_{\mathbb R} u_tu_{tt}\;-\;u_tu_{xx} \;\;dx\;+[u_xu_t]_{-\infty}^{+\infty}\;=\;\int_{\mathbb R} u_tf\;dx\;\le \frac{1}{2} \int_{\mathbb R} (u_t)^2\;+f^2 \;dx\;\le \frac{1}{2} \int_{\mathbb R} (u_t)^2\;+\;(u_x)^2\;dx\;+\;\frac{1}{2} \int_{\mathbb R} f^2 \;dx\;=\;E(t)+\frac{1}{2} \int_{\mathbb R} f^2 \;dx\;$
At this point I assume I should use some kind of Gronwall's inequality in order to prove the above, but I have no idea how. I would appreciate if someone could help me through this!
Hints or other solutions than this are welcome. Thanks in advance