A market economy determines resource allocation through supply and demand. Private ownership and the "invisible hand" guide production based on consumer spending. Most modern economies combine market and command elements. Competitive markets have many participants and price-taking firms, while non-competitive markets have few dominant firms that influence prices. The law of demand states that as price rises, quantity demanded falls due to less purchasing power and substitution effects. Individual demand reflects a person's preferences, while market demand aggregates all individuals' curves. Factors like income, population, tastes, substitutes, and expectations impact demand shifts.