Consider the PDE problem for the wave eq. $$\begin{align} u_{tt}-u_{xx}+2u & = 0, & 0<x<1, t \in \mathbb{R} \\ u_x(0,t) = 0,u_x(1,t) & = 0, & t>0 \\ u(x,0) = 0, u_t(x,0) & =\cos(2 \pi x), & 0<x<1 \end{align}$$ Define the energy solution $u(x,t)$ by $$ E(t) = \frac{1}{2} \int_0^1 ((u_t(x,t))^2+(u_x(x,t))^2+2(u(x,t))^2)dx$$ Show that the energy is conserved, i.e. that $E(t)$ is independent of $t$.
I know I need to determine $E'(t)$. However I need some basic knowledge of how to compute $\frac{d}{dt} E(t)$.
Is this correct ? \begin{align} \frac{d}{dt}E(t) & = \int_0^1 u_tu_{tt} + u_x u_{xt}+2uu_t dx \\ & = \int_0^1 u_t u_{tt} +2uu_t-u_tu_{xx} dx \\ & = \int_0^1 u_t(u_{tt}+2u-u_{xx})dx \\ & = \int_0^1 u_t \cdot 0 dx \\ & = 0 \end{align} where I have used that (integrating by parts) we have \begin{align} \int_0^1 u_xu_{xt} dx & = \left[ u_x(1,t)u_t(1,t)-u_x(0,t)u_t(0,t) \right] - \int_0^1 u_t u_{xx} dx \\ & = \left[ 0 \cdot u_t(1,t)-0 \cdot u_t(0,t) \right] - \int_0^1 u_t u_{xx} dx \end{align}