Profit maximization and elasticity