The mathematical theory of economics