Pātuhitia tēnei: Variational methods for engineers with Matlab /