beta\end{equation} and apply integration by parts to the last term, then we obtain the expression Just as with horizontal momentum, if pressure vanishes at the surface, then total energy is conserved.