Primer on the Calculus of Variations and Optimal Control The by Mike Mesterton Gibbons