Calculus of Variations and Optimal Control Theory | Synapse