The derivation of the equations of motion of an ideal fluid by Hamilton's principle | Synapse