Dynamic Optimization and Mathematical Economics