Telefona gönder: The calculus of variations and optimal control: an introduction