Text this: Mathematical analysis and optimization for economists