The Maximum Principle of Pontryagin in control and in optimal control