Hamilton’s principle and Ertel’s theorem | Synapse