Let $u∈C^2(\mathbb{R}×[0,∞))$ be a solution of the following one-dimensional wave equation:
$$ \begin{align*} &u_{tt}−u_{xx} = 0,& x∈\mathbb{R},\, t >0 \\ &u(0,x) = f(x) ,& x∈\mathbb{R} \\ &u_t(0,x) = g(x) ,& x∈\mathbb{R} \end{align*} $$
$f$ , $g$ are derivable functions with support in $[-M,M]$.
Define $k(t):=\frac{1}{2}\int_{-\infty}^{\infty}u^2_t(x,t)\,\mathrm{d}x$ and $p(t) :=\frac{1}{2}\int_{-\infty}^{\infty} u^2_x(x,t)\,\mathrm{d}x$.
Prove:
For every $t>=0$, $K(t)+P(t)=\text{constant}$.
For every $t>M$, $K(t)=P(t)$.
I began solving part 1 by taking $K(t)+P(t)=e(t)$ and calculating $e'(t)$ to show that it equals $0$, using the wave equations and Dalimber formula but I got nothing, I did not manage to show this. I will be grateful if someone can give me tips or any direction.
Another method to solve part 2: Write the solution $u(x,t)$ by using the D'elamber formula, then derivate it and find $u_x , u_t$, now for every $t>M$ : we consider two cases, 1.$x>t+M , 2.x<t+M$, and noticing that some functions equal 0 considering that $f, g$ are supported in $[-M,M]$.