Union and intersection

Two friends compare their movie-watchlists. One list has five titles, the other has four, and two titles appear on both. If you wanted "every movie either of them wants to watch," you would merge the lists and count each shared title only once. If you wanted "movies they can watch together," you would keep only the titles that appear on both lists. These two everyday habits — merging without repeats, and keeping only what is shared — are exactly the set operations union (∪\cup) and intersection (∩\cap). This article builds on the roster form, set-builder form and cardinality n(A)n(A) you already know from Classes 6 to 7, and shows how to compute, describe and draw both operations using Venn diagrams — the core new skill of the Sets chapter in ICSE Class 8.

The core insight

Union A∪BA \cup B collects everything in AA or BB (each element written once), while intersection A∩BA \cap B keeps only what is in AA and BB at the same time.

The core idea

Union of two sets. The union of AA and BB, written A∪BA \cup B, is the set of all elements belonging to AA, to BB, or to both:

A∪B={x:x∈A or x∈B}A \cup B = \{x : x \in A \text{ or } x \in B\}

where: xx is any element under consideration, ∈\in means "is a member of," and "or" is taken in its inclusive sense — an element counts even if it belongs to both sets. No element is ever written twice, because a set lists each of its members only once.

Intersection of two sets. The intersection of AA and BB, written A∩BA \cap B, is the set of elements that belong to both AA and BB simultaneously:

A∩B={x:x∈A and x∈B}A \cap B = \{x : x \in A \text{ and } x \in B\}

where: the symbols mean the same as above, but "and" now demands membership in both sets at once. If no element satisfies this, A∩B=∅A \cap B = \varnothing, the empty set — this happens whenever AA and BB share nothing, a situation with its own name: disjoint sets.

Reading a Venn diagram. AA and BB are drawn as two overlapping circles inside a rectangle that represents the universal set U\mathcal{U}. Every point inside a circle stands for an element of that set. The union A∪BA \cup B is the entire region covered by either circle, overlap included. The intersection A∩BA \cap B is only the lens-shaped overlap — the part shared by both circles.

Figure
Two overlapping circles A and B inside a rectangle, with the overlap region highlighted to show the intersection and the whole shaded pair of circles showing the union
Union covers both circles, intersection is only the overlap U A B A union B — everything shaded U A B A intersection B — only the overlap

Basic properties (worth remembering, not proving): A∪B=B∪AA \cup B = B \cup A and A∩B=B∩AA \cap B = B \cap A — order does not matter. A∪A=AA \cup A = A and A∩A=AA \cap A = A — combining a set with itself changes nothing. A∪∅=AA \cup \varnothing = A but A∩∅=∅A \cap \varnothing = \varnothing — the empty set adds nothing to a union and wipes out an intersection. If A⊆BA \subseteq B (every element of AA is also in BB), then A∪B=BA \cup B = B and A∩B=AA \cap B = A.

Why it works

Union and intersection are not arbitrary rules — they follow directly from what "or" and "and" mean in everyday logic, applied to set membership. Ask "does xx belong to A∪BA \cup B?" The honest answer is yes precisely when xx passes at least one of two tests: is it in AA? Is it in BB? That is the everyday meaning of "or," and it is why the union can only be the same size as or larger than either original set — you are never throwing an element away, only adding elements from the other set that were missing. Ask instead "does xx belong to A∩BA \cap B?" Now xx must pass both tests together — it must clear the bar for AA and the bar for BB. Demanding two conditions at once is always at least as strict as demanding one, so the intersection can only be the same size as or smaller than either original set. This is exactly why, in Worked example 1 below, A∩BA \cap B ends up with far fewer elements than A∪BA \cup B. The Venn diagram is simply a picture of this logic: a point lies inside circle AA exactly when it satisfies "is in AA," and inside the overlap exactly when it satisfies both conditions. Shading follows the logic automatically — you never need to memorise which region is which if you remember what "or" and "and" mean. This also explains the subset property from above. If every element of AA is already inside BB (that is, A⊆BA \subseteq B), then the "or" test in the union adds nothing new beyond BB itself, so A∪B=BA \cup B = B; and the "and" test in the intersection is satisfied by every element of AA automatically (since it is also in BB), so A∩B=AA \cap B = A.

Worked example

Let A={2,4,6,8,10}A = \{2, 4, 6, 8, 10\} and B={3,6,9,12}B = \{3, 6, 9, 12\}. Find A∪BA \cup B, A∩BA \cap B, and state whether the sets are disjoint.

Step 1 — Find A∪BA \cup B. List every element that is in AA, in BB, or in both, writing each element once. Going through AA first (2, 4, 6, 8, 10) then adding any new elements from BB (3, 9, 12 — since 6 is already listed):

A∪B={2,3,4,6,8,9,10,12}A \cup B = \{2, 3, 4, 6, 8, 9, 10, 12\}

This has n(A∪B)=8n(A \cup B) = 8 elements. Notice 6 appears in both original sets but is written only once here.

Step 2 — Find A∩BA \cap B. Check each element of AA against BB in turn: 2∉B2 \notin B, 4∉B4 \notin B, 6∈B6 \in B, 8∉B8 \notin B, 10∉B10 \notin B. Only 6 clears both tests.

A∩B={6}A \cap B = \{6\}

This has n(A∩B)=1n(A \cap B) = 1 element.

Step 3 — Interpret and check disjointness. Since A∩B≠∅A \cap B \neq \varnothing, the sets are not disjoint — they share exactly one element, 6. On a Venn diagram, 6 sits alone in the overlapping lens of two circles labelled AA and BB; the remaining four elements of AA (2, 4, 8, 10) sit in the non-overlapping part of circle AA, and the remaining three elements of BB (3, 9, 12) sit in the non-overlapping part of circle BB.

Competitive stretch

Now add a third set, C={6,10,14}C = \{6, 10, 14\}, and find (A∪B)∩C(A \cup B) \cap C.

Step 1. Reuse the union from above, A∪B={2,3,4,6,8,9,10,12}A \cup B = \{2, 3, 4, 6, 8, 9, 10, 12\}.

Step 2. Intersect this with C={6,10,14}C = \{6, 10, 14\}: check each element of CC against A∪BA \cup B. Is 6∈A∪B6 \in A \cup B? Yes. Is 10∈A∪B10 \in A \cup B? Yes. Is 14∈A∪B14 \in A \cup B? No.

(A∪B)∩C={6,10}(A \cup B) \cap C = \{6, 10\}

Working with three sets is done the same way — one operation at a time, from the innermost brackets outward, checking membership carefully at each step.

Common traps

  • Writing repeated elements twice in a union. If an element belongs to both sets, it still appears only once in A∪BA \cup B — a set never lists a member more than once.
  • Confusing "or" and "and." Union uses "or" and gives the larger combined set; intersection uses "and" and gives the smaller, shared set. Mixing these up is the single most common error in this topic.
  • Forgetting that an intersection can be empty. If two sets share nothing, A∩B=∅A \cap B = \varnothing — not "nothing," not left blank — it is still a valid set, and this case is called disjoint sets.
  • Shading the wrong Venn region. For A∩BA \cap B shade only the overlap; for A∪BA \cup B shade the whole of both circles, including the overlap, but only once.

Ask the tutor: Want to try union and intersection on three overlapping sets of your own, or check a Venn diagram you have drawn — ask the AI tutor for extra practice sets on this topic.

Why does the order not matter for union and intersection?

Both operations only ask a yes-or-no membership question about each element — "is xx in AA or BB" for union, "is xx in AA and BB" for intersection. Swapping the names of the two sets does not change whether an element passes that test, so A∪B=B∪AA \cup B = B \cup A and A∩B=B∩AA \cap B = B \cap A always hold. You can check this directly on any example: recomputing Worked example 1 as B∪AB \cup A or B∩AB \cap A gives the identical sets.

Do I have to find the union before the intersection, or does it matter which I compute first?

It does not matter for a single pair of sets — A∪BA \cup B and A∩BA \cap B are found independently, by two separate passes through the elements. It only starts to matter when an expression mixes both operations with three or more sets, like the competitive stretch above, (A∪B)∩C(A \cup B) \cap C. There, brackets tell you which operation to do first: compute the union inside the brackets, then intersect the result with CC, exactly as ordinary arithmetic brackets control order.

Is the counting formula n(A union B) = n(A) + n(B) minus n(A intersection B) needed for Class 8?

No. That formula is useful once you reach Class 9 or 10, where it helps count elements without listing every one. At Class 8 you are expected to find A∪BA \cup B and A∩BA \cap B by listing elements directly and reading Venn diagrams, not by using this counting shortcut — so leave it out of your Class 8 answers unless your teacher has specifically introduced it.

Before this

Where this leads