Utility maximization and demand