Pātuhitia tēnei: Hamilton's principle and physical systems