Title: Calculus of Variations and Control Theory