• Foundation
  • About 17 min
  • 5 practice questions

Venn diagrams: union, intersection and difference of sets

Draw sets as Venn diagrams, find the union, intersection and difference of two sets, use their laws, and recognise disjoint sets.

If something looks wrong, please tell us.

By the end of this lesson you can

  • Represent a universal set and its subsets in a Venn diagram.
  • Find A ∪ B, A ∩ B, A − B and B − A from roster form.
  • State and use the commutative, associative, identity and idempotent laws.
  • Verify the distributive law A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C) on an example.
  • Recognise disjoint sets.

Numbers can be added, subtracted and multiplied to make new numbers. In the same way, two sets can be combined to make new sets. These operations are used every time you combine conditions, for example the solutions of two inequalities, or the outcomes of two events in probability.

Venn diagrams

A Venn diagram, named after the English logician John Venn, draws the universal set U as a rectangle and its subsets as closed curves, usually circles, inside it. Elements are written in the region where they belong. If B ⊂ A, the circle for B is drawn wholly inside the circle for A. If two sets share elements, their circles overlap, and the shared elements are written in the overlap.

Union

The union of A and B, written A ∪ B, is the set of all elements that are in A or in B or in both, with common elements written only once: A ∪ B = {x : x ∈ A or x ∈ B}. In a Venn diagram it is the whole region covered by the two circles.

Intersection

The intersection of A and B, written A ∩ B, is the set of elements that belong to both A and B: A ∩ B = {x : x ∈ A and x ∈ B}. In a Venn diagram it is the overlap of the circles. If A ∩ B = φ, the sets are called disjoint, and their circles are drawn apart. The even integers and the odd integers are disjoint.

Difference

The difference A − B (read A minus B) is the set of elements of A that are not in B: A − B = {x : x ∈ A and x ∉ B}. Order matters, so A − B and B − A are usually different. The three sets A − B, A ∩ B and B − A never share an element; together they make up A ∪ B.

Three operations on two sets

  • Union A ∪ B
    • In A or B or both
    • Both circles shaded
    • Common elements listed once
    • Largest of the three
  • Intersection A ∩ B
    • In both A and B
    • Only the overlap shaded
    • Empty when A, B are disjoint
    • A ∩ B ⊂ A and A ∩ B ⊂ B
  • Difference A − B
    • In A but not in B
    • A with the overlap removed
    • A − B ≠ B − A in general
    • Disjoint from B

Worked example 1: all three operations

Let A = {1, 2, 3, 4, 5, 6} and B = {4, 5, 6, 7, 8}. Working: A ∪ B collects everything once: {1, 2, 3, 4, 5, 6, 7, 8}. A ∩ B keeps only the shared elements: {4, 5, 6}. A − B removes 4, 5, 6 from A: {1, 2, 3}. B − A removes 4, 5, 6 from B: {7, 8}. Check: A − B, A ∩ B and B − A together give 3 + 3 + 2 = 8 elements, which is n(A ∪ B).

Worked example 2: a school example

In a Class 11 section, the chess club is C = {Ananya, Kabir, Meera, Rohan} and the quiz club is Q = {Meera, Farhan, Rohan, Tara}. Then C ∪ Q = {Ananya, Kabir, Meera, Rohan, Farhan, Tara} is the set of students in at least one of the two clubs, C ∩ Q = {Meera, Rohan} is the set of students in both, and C − Q = {Ananya, Kabir} is the set of students in the chess club only. (The names are made up.)

Laws of union and intersection

Laws of the operations
LawUnionIntersection
CommutativeA ∪ B = B ∪ AA ∩ B = B ∩ A
Associative(A ∪ B) ∪ C = A ∪ (B ∪ C)(A ∩ B) ∩ C = A ∩ (B ∩ C)
Identity / empty setA ∪ φ = Aφ ∩ A = φ
IdempotentA ∪ A = AA ∩ A = A
Law of UU ∪ A = UU ∩ A = A

The distributive law says that intersection distributes over union: A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C). Two more results follow straight from the definitions and save time: if B ⊂ A, then A ∪ B = A and A ∩ B = B.

Worked example 3: verifying the distributive law

Let A = {1, 2, 3, 4}, B = {3, 4, 5} and C = {1, 5, 6}. Left side: B ∪ C = {1, 3, 4, 5, 6}, so A ∩ (B ∪ C) = {1, 3, 4}. Right side: A ∩ B = {3, 4} and A ∩ C = {1}, so (A ∩ B) ∪ (A ∩ C) = {1, 3, 4}. Both sides equal {1, 3, 4}, as the law predicts. A single example does not prove a law; the general result follows from the definitions and can be seen by shading Venn diagrams.

Worked example 4: infinite sets

In N, let A be the multiples of 2 and B the multiples of 3. A number is in both exactly when it is divisible by 2 and by 3, that is by 6. So A ∩ B = {6, 12, 18, ...}, the multiples of 6. And A − B = {2, 4, 8, 10, 14, ...}, the even numbers that are not multiples of 3.

A ∪ B: in A or B. A ∩ B: in A and B. A − B: in A, not in B. If A ∩ B = φ, A and B are disjoint.

— The three operations

Key takeaways: union collects, intersection keeps what is shared, difference removes. Union and intersection are commutative and associative, difference is not commutative. Intersection distributes over union. If B ⊂ A, then A ∪ B = A and A ∩ B = B.

Check your understanding

  1. 1. If A = {2, 3, 5, 7} and B = {1, 3, 5, 7, 9}, what is A ∩ B?

    1. {3, 5, 7}
    2. {1, 2, 3, 5, 7, 9}
    3. {2}
    4. {1, 9}
    Show answer

    Answer: A. A ∩ B keeps the elements in both sets. 3, 5 and 7 are in both; 2 is only in A, and 1 and 9 are only in B. So A ∩ B = {3, 5, 7}.

  2. 2. With the same sets, A = {2, 3, 5, 7} and B = {1, 3, 5, 7, 9}, what is B − A?

    1. {2}
    2. {3, 5, 7}
    3. {1, 9}
    4. φ
    Show answer

    Answer: C. B − A keeps the elements of B that are not in A. Removing 3, 5 and 7 from B leaves {1, 9}. The set {2} is A − B, the other order.

  3. 3. If A ⊂ B, what is A ∪ B?

    1. A
    2. B
    3. φ
    4. A ∩ B
    Show answer

    Answer: B. Every element of A is already in B, so joining A to B adds nothing new: A ∪ B = B. (A ∩ B would equal A in this case.)

  4. 4. Which pair of sets is disjoint?

    1. {1, 2, 3} and {3, 4}
    2. {a, e} and {e, f}
    3. The multiples of 3 and the multiples of 5 in N
    4. The even integers and the odd integers
    Show answer

    Answer: D. No integer is both even and odd, so their intersection is φ. The other pairs share 3, e, and 15 respectively.

  5. 5. Let A = {1, 2, 3, 4, 5}, B = {4, 5, 6} and C = {5, 6, 7}. What is A ∩ (B ∪ C)?

    1. {5}
    2. {4, 5}
    3. {4, 5, 6, 7}
    4. {1, 2, 3}
    Show answer

    Answer: B. B ∪ C = {4, 5, 6, 7}. Its common elements with A are 4 and 5, so A ∩ (B ∪ C) = {4, 5}. Check with the distributive law: A ∩ B = {4, 5} and A ∩ C = {5}, whose union is {4, 5}.

Privacy · Terms · Refunds · Delivery