Systems Theory and Optimal Control