Demand is defined as the willingness and ability of consumers to purchase varying quantities of a good at different price points within a given time period. The law of demand states that as the price of a good increases, the quantity demanded decreases, and vice versa. The law of demand is driven by two factors: the income effect, where consumers purchase less of a good when its price rises due to limited resources, and the substitution effect, where consumers substitute a good for similar alternatives when the initial good's price increases.