For a real semilinear wave equation , its energy density and energy flux areMultiply the equation by and use the product rule to obtain the local balance . On a fixed regular domain this givesThus total wave energy is conserved when the boundary term vanishes: for example homogeneous Dirichlet boundary conditions, homogeneous Neumann boundary conditions, paired periodic boundary conditions, or suitable decay on all of space. A driven boundary can instead inject energy.[ref]
Partial Differential Equations by John K. Hunter. chapter7, section7.1.1, equation7.3 and ensuing homogeneous-Dirichlet conservation argument, printed p212
New to topics? Read the docs here!