Foundations of mathematical economics