This is very well studied. https://en.wikipedia.org/wiki/Tendency_of_the_rate_of_profit_to_fall