The Integrability of Consumer Demand Functions