Set Operations and Venn Diagrams: Definition, Method and Examples

MathPublished

Set Operations and Venn Diagrams

Set operations describe how different groups of items relate to one another. When modeled visually, set operations allow learners to quickly identify shared items, combined items, or excluded items.


By linking algebraic operations to Venn diagrams, complex relationships become straightforward to analyze and solve.

What are set operations?

Set operations are mathematical rules used to combine, compare, or separate different sets.

A set is a collection of distinct elements. The universal set, often denoted by UU or ξ\xi, contains all elements being considered in a particular problem. Set operations identify specific regions within this universal set.


The primary set operations define what is in both sets, what is in either set, what is excluded from a set, and what belongs to only one set.

Use union, intersection and complement notation

The three most common set operations are union, intersection, and complement.


Union (A∪BA \cup B)

The union of two sets includes all elements that are in set AA, in set BB, or in both. It is associated with an inclusive "or".

A Venn diagram showing two overlapping circles, A and B. The entire area inside both circles is shaded to represent the union.


The union represents combining everything. Because it includes shared elements, the probability of a union can be found using the addition rule of probability.


Intersection (A∩BA \cap B)

The intersection includes only the elements that belong to both set AA and set BB. It is associated with the word "and".

A Venn diagram showing two overlapping circles, A and B. Only the central overlapping region between the two circles is shaded.


If two sets have no shared elements, their intersection is empty. In probability contexts, such events are called mutually exclusive events.


Complement (A′orAcA' or A^c)

The complement of a set includes all elements in the universal set that are not inside set AA. It represents the word "not".

A Venn diagram with a single circle A inside a rectangular universal set. The entire area outside the circle is shaded to represent the complement.


Understanding the complement operation is essential when working with complementary events in probability scenarios.

Read set difference

Set difference, denoted by A∖BA \setminus B or A−BA - B, refers to the elements that are in set AA but are not in set BB.


It completely removes any overlap between the two sets, leaving only the items that belong exclusively to AA.

A Venn diagram showing two overlapping circles, A and B. Only the section of circle A that does not overlap with circle B is shaded.


Notice that A∖BA \setminus B targets the exact same region as A∩B′A \cap B', representing the intersection of set AA and everything outside of set BB.

Shade a Venn diagram accurately

Shading regions for combined set operations requires breaking the expression into smaller pieces. Always follow the order of operations, typically evaluating brackets first.


To shade the region (A∪B)′(A \cup B)':

  1. Identify the region for the union A∪BA \cup B, which is the entire area inside both circles.
  2. Recognize the complement symbol ′', which means shading everything outside the identified region.
  3. Shade the entire rectangle while keeping the two circles completely unshaded.

When dealing with more complex statements like A∩B′A \cap B', shade the individual components lightly, and then darken the final region where those shaded parts overlap.

Translate words into symbols

Translating plain language into correct set notation is crucial for problem-solving. This table outlines the most common phrases.


Plain Language

Set Notation

Meaning

In AA or BB

A∪BA \cup B

The union of AA and BB.

In both AA and BB

A∩BA \cap B

The intersection of AA and BB.

Not in AA

A′A'

The complement of AA.

In AA but not BB

A∖BA \setminus B

The set difference.

Neither AA nor BB

(A∪B)′(A \cup B)'

Everything outside both sets.


The word "or" is always inclusive in set theory unless specified otherwise.

Worked examples


Example 1: Finding union and intersection


Question: Set M={2,4,6,8}M = \{2, 4, 6, 8\} and Set N={6,8,10}N = \{6, 8, 10\}. List the elements of M∪NM \cup N and M∩NM \cap N.


Method:

  1. Combine all unique elements from both sets to find the union.
  2. Identify the elements that appear in both sets to find the intersection.

Answer: M∪N={2,4,6,8,10}M \cup N = \{2, 4, 6, 8, 10\} and M∩N={6,8}M \cap N = \{6, 8\}.


Check: The union contains 55 distinct items, and none are repeated. The intersection contains exactly the 22 items shared by both sets.


Example 2: Applying the complement


Question: A universal set U={1,2,3,4,5,6}U = \{1, 2, 3, 4, 5, 6\}. Set A={1,3,5}A = \{1, 3, 5\}. What is the complement, A′A'?


Method:

  1. Compare Set AA to the universal set UU.
  2. Select every element in UU that is missing from AA.

Answer: A′={2,4,6}A' = \{2, 4, 6\}.


Check: Combining AA and A′A' exactly recreates the universal set without overlaps.


Example 3: Analyzing overlapping counts


Question: Out of 4040 students, 2525 play soccer (SS), 1818 play basketball (BB), and 77 play both. How many students play neither sport?


Method:

  1. Use the formula ∣S∪B∣=∣S∣+∣B∣−∣S∩B∣|S \cup B| = |S| + |B| - |S \cap B| to find the total number of students playing at least one sport.
  2. Substitute the known values: 25+18−7=3625 + 18 - 7 = 36.
  3. Subtract this union from the universal set of 4040 students to find the complement (S∪B)′(S \cup B)'.

Answer: 40−36=440 - 36 = 4. There are 44 students who play neither sport.


Check: Verify by summing the distinct regions. Soccer only is 25−7=1825 - 7 = 18. Basketball only is 18−7=1118 - 7 = 11. Both is 77. Neither is 44. The total is 18+11+7+4=4018 + 11 + 7 + 4 = 40.

Common mistakes

When counting elements in a union, a common mistake is simply adding the totals of both sets. This results in double-counting the intersection. Always subtract the shared elements to find the correct total for the union.


Another frequent error occurs when evaluating a complement without considering the universal set. A complement is strictly defined relative to its universal set; you cannot determine what is outside a set without knowing the full boundaries of the problem.

Frequently asked questions

What does it mean when the intersection of two sets is empty?

When two sets share no elements, their intersection is empty, represented by ∅\emptyset. Visually, the circles in the Venn diagram do not overlap, or their overlapping region contains no values.


How are set operations used in probability?

Set operations align directly with probability events. The union represents the probability of either event occurring, the intersection represents both occurring simultaneously, and the complement represents an event not occurring. These operations provide a visual foundation for calculating Venn diagram probability.

Practice questions

Question

A Venn diagram with a universal set containing two overlapping circles, A and B. The numbers inside are 5 in A-only, 3 in the intersection, 7 in B-only, and 2 outside both circles.

Based on the visual, how many elements are in A∪BA \cup B?

  • 33

  • 1212

  • 1515

  • 1717

Answer:

1515

Question

If Set C={10,20,30,40}C = \{10, 20, 30, 40\} and Set D={30,40,50,60}D = \{30, 40, 50, 60\}, what is C∖DC \setminus D?

  • {30,40}\{30, 40\}

  • {10,20}\{10, 20\}

  • {50,60}\{50, 60\}

  • {10,20,50,60}\{10, 20, 50, 60\}

Answer:

{10,20}\{10, 20\}

Question

Which set notation accurately describes elements that are in the universal set but not in Set XX?

  • X∩YX \cap Y

  • X′X'

  • X∪YX \cup Y

  • X∖YX \setminus Y

Answer:

X′X'

Question

A Venn diagram with two overlapping circles, A and B. The entire region outside both circles is shaded, while the circles themselves remain unshaded.

Which set operation corresponds to the shaded region shown in the visual?

  • A′∪B′A' \cup B'

  • A∩BA \cap B

  • (A∪B)′(A \cup B)'

  • A∖BA \setminus B

Answer:

(A∪B)′(A \cup B)'

Question

A survey of 5050 people finds that 3030 like apples, 2525 like bananas, and 1010 like both. How many people like apples but not bananas?

  • 2020

  • 1515

  • 4545

  • 3030

Answer:

2020