Optimal Control Problems Arising in Mathematical Economics