Energy method for damped wave equation vs heat eq.
Solution 1:
For the proposed wave equations, an energy can be derived by multiplication of each term through $u_t$ and integration over $x$ in $\Bbb R$. In fact, integration rules give on the one hand $$ \int u_t u_{tt} \,d x = \frac{d}{dt} \int \tfrac12 u_{t}^2 \,dx , $$ and on the other hand $$ \int u_t u_{xx} \,d x = -\frac{d}{dt} \int \tfrac12 u_{x}^2 \,d x . $$ Applying this process to the damping term $u_t$ yields a signed quantity: $$ \int u_t^2 \,d x \geq 0 . $$ So if we consider the damped wave equation $u_{tt} - c^2 u_{xx} = -r u_t$ with $r\geq 0$, we find $$ \frac{d}{dt} \int \tfrac12 [u_t^2 + c^2 u_x^2] \, d x = -r \int u_t^2 \,d x \leq 0 . $$ The left-hand side represents the time derivative of an energy, while the negative quantity in the right-hand side represents dissipation. The damping term with coefficient $r$ influences dissipation, but it does not modify the expression of energy. Note that energy is a non-negative decaying function of time for all $r\geq 0$.
Essentially, the derivation of the energy for the wave equation is very similar to the case of the heat equation, but there is no rule in general. In analytical mechanics, we call Hamiltonian PDEs the partial differential equations that can be derived from an "energy" (more precisely, from a Hamiltonian density). The derivation of dissipation inequalities from physical ground principles is the subject of thermodynamics.