Profit Maximization and Firm Equilibrium