Suppose $u$ solves the wave equation in $\mathbb{R}$ and has compactly supported initial data $f(x) = u(x,0)$ and $g(x)=u_t(x,0)$. Show that the "kinetic energy" $\int_{\mathbb{R}}u_t^2$ eventually equals the "potential energy" $\int_{\mathbb{R}}u_x^2$.
My attempt so far: When I expand $\int_{\mathbb{R}}u_t^2 - u_x^2$ using d'Alembert's formula, I get $$\int_{\mathbb{R}}f'(x+t)f'(x-t)-g(x+t)g(x-t)\\ + f'(x+t)g(x+t) - f'(x-t)g(x-t)dx.$$
The first two terms will eventually be zero, because at least one of the two factors of each will be zero (since the initial data has compact support). I need to find a way to make the second two terms zero. I'm trying to do it by integration by parts, noting that the last two terms can be written as $$\left.f'g\right]_{x-t}^{x+t}$$ or $$\int_{x-t}^{x+t} f''g+g'f',$$
but this isn't getting me anywhere.
Don't do integration by parts. See that the third and fourth term are equal by using substitution. Once you see it, you will see it is very easy.