derivation of Demand curve from revealed preference