Function-Valued Adaptive Dynamics and the Calculus of Variations