Text this: Calculus of Variations and Optimal Control Theory