This scene adds three consumers into one demand. Stack their curves together and the market curve appears.
Some properties survive the adding-up. If everyone spends their whole budget, so does the market. Double every price and income together, and demand stays put. Move each person's curve and check for yourself.
For example, three 🧑 classmates buy 🍎 apples. The first buys 2, the second 3, the third 5. Together the class buys 10 apples. If prices and 💰 allowances all double, the count stays the same.
Individual demands are x1i=ai⋅60/1=18,30,42 and x2i=(1−ai)⋅60=42,30,18.
Adding up, X1=90 and X2=90. Total spending is p⋅X=1⋅90+1⋅90=180.
Total wealth is W=60+60+60=180, so p⋅X=W holds exactly. When every consumer spends her whole budget (individual Walras' law), the summed aggregate demand spends the whole aggregate wealth too — summation is linear, so the property survives.
p⋅X(p)=i∑p⋅xi(p,wi)=i∑wi=W
Now consumer 1 develops a strong taste for good 1, so a=(0.9,0.2,0.2) (wealths unchanged at wi=60).
Show by computation that the aggregate demand curve shifts up at p1=1, yet the Walras check still holds exactly.
X1=54+12+12=78,X2=6+48+48=102
p⋅X=78+102=180=W
a=(0.9,0.2,0.2), wi=60, p1=1 — Walras' law after a taste shift.Show proof
New individual demands: x1=54,12,12, so X1=78 — moved from 90 in the previous example. The aggregate curve is sensitive to the distribution of tastes.
Meanwhile x2=6,48,48, so X2=102, and total spending is 78+102=180=W. What consumer 1 added to good 1 spending (+36) she subtracted from good 2 spending (−36); total spending stays pinned to total wealth.
The lesson: the "shape" of aggregate demand moves with the distribution of tastes, but the "constraint" p⋅X=W never breaks, whatever the distribution.