Pātuhitia tēnei: The variational principles of mechanics