Demand curves and consumer theory