Pātuhitia tēnei: The calculus of variations and functional analysis