Title: Calculus of Variations and Optimal Control Theory