From Equations to Wealth: The Math Behind Capitalism