STEP-BY-STEP ANSWER:
Step 1: Recognize that Mahdu’s indifference curves have a slope of -1 because he views Coke and Pepsi as perfect substitutes, meaning he is indifferent between them.
Step 2: With the price of Pepsi held constant at p*, analyze different scenarios by varying the price of Coke (p). If p > p*, the budget line is steeper, and Mahdu maximizes utility by purchasing only Pepsi (resulting in a corner solution with zero units of Coke).
Step 3: When the price of Coke falls below the price of Pepsi (p < p*), the budget line becomes flatter, and Mahdu maximizes his utility by spending his entire budget on Coke, yielding q = Y/p units of Coke.
Step 4: In the special case where p = p*, the slope of the budget line matches the indifference curves, and Mahdu is indifferent among all combinations of Coke and Pepsi that exhaust his budget, with the total quantity purchasable being Y/p*.
Final Answer: Mahdu’s demand curve for Coke is derived by showing that when Coke is more expensive than Pepsi he buys none; when it is cheaper he buys only Coke (with quantity determined by Y/p), and when prices are equal he is indifferent over a range of combinations, reflecting the unique consumer choice under perfect substitutes.