Mathematical analysis of investment systems