Applications of Pontryagin's Maximum Principle to Economics