WHAT goes wrong with naive addition: an element in k of the sets is added k times when we want it added 1 time. We need a correction that nets to 1 for every k≥1.
WHY start here: every general case is built from this.
Partition the union A∪B into three disjoint pieces:
only A (not B): size a
only B (not A): size b
both A and B: size c=∣A∩B∣
Then by disjoint addition:
∣A∪B∣=a+b+c.
But ∣A∣=a+c and ∣B∣=b+c. So:
∣A∣+∣B∣=(a+c)+(b+c)=a+b+2c.Why this step? The overlap c appears in both∣A∣ and ∣B∣, hence twice.
Subtract one copy of c=∣A∩B∣:
∣A∣+∣B∣−∣A∩B∣=a+b+c=∣A∪B∣.✓
Start by adding singles, then we over-subtract the pairwise overlaps and must add the triple back.
∣A∣+∣B∣+∣C∣counts a triple-element 3 times.
Subtract the three pairwise intersections:
−(∣A∩B∣+∣A∩C∣+∣B∩C∣).Why this step? Each pairwise term removes the double-counting of elements in exactly two sets — good. But an element in all three sets sat in all three pairwise intersections, so it just got subtracted 3 times after being added 3 times → net 0. That's wrong; we want it counted once.
So add back the triple intersection once:
+∣A∩B∩C∣.
HOW the alternating signs are forced — first-principles proof.
Take any element x lying in exactlym of the sets (m≥1). We must show the right-hand side counts it exactly once.
x appears in (1m) single terms, (2m) pair terms, …, (km) of the k-fold intersections.
Its net contribution is:
S=∑k=1m(−1)k+1(km).
Use the binomial theorem with x=−1:
∑k=0m(−1)k(km)=(1−1)m=0.Why this step? This single identity contains all our terms, including the k=0 term (0m)=1. Split off k=0:
0=(0m)+∑k=1m(−1)k(km)=1−∑k=1m(−1)k+1(km)=1−S.Why the sign flip? For k≥1, (−1)k=−(−1)k+1, so ∑k=1m(−1)k(km)=−S. Hence 0=1−S, giving
S=1.Every element is counted exactly once — QED.
Suppose you ask your class "who plays football, and who plays cricket?" and add the two hand-counts. Some kids raised their hand twice because they play both! So you'd over-count them. To fix it, you count the both-players once and subtract them, so everyone is counted just one time. With three sports it's trickier: when you subtract the overlapping pairs you accidentally erase the "play-all-three" kids completely, so you have to add them back. That add–subtract–add dance is inclusion–exclusion.
Dekho, Inclusion–Exclusion ka core idea bahut simple hai: jab aap do groups ko "ya" (union) se count karte ho, to overlap wale log do baar count ho jaate hain. Jaise class mein football aur cricket khelne wale — jo dono khelte hain unka haath dono baar utha, isliye unhe ek baar subtract karna padta hai. Bas yahi soch hai: pehle saare add karo, phir jo extra count hua use minus karo, taaki har element exactly ek hi baar gine.
Teen sets ke case mein thoda twist hai. Jab aap saare pairwise overlaps subtract karte ho, to "teeno mein hone wale" elements galti se zero ho jaate hain (3 baar add, 3 baar subtract). Isliye triple intersection ko wapas plus karna padta hai. Yahi reason hai ki signs alternate hote hain — plus, minus, plus, minus. General rule: odd-size intersections ko +, even-size ko − sign milta hai.
Yeh kyun important hai? Probability mein P(A∪B)=P(A)+P(B)−P(A∩B) direct isi se aata hai. Aur combinatorics mein derangements (jaise "koi bhi letter sahi envelope mein na jaaye") jaise tough problems isi principle se solve hote hain. Exam mein zyadatar mistake yahi hoti hai ki students triple intersection wapas add karna bhool jaate hain — to bas yaad rakho: subtract pairs, phir add triple. Practice karo do-teen Venn diagram problems, concept pakka clear ho jayega.