Union Math Example 1

Follow the full solution, then compare it with the other examples linked below.

Example 1

easy
Let A={1,3,5}A = \{1, 3, 5\} and B={2,3,4}B = \{2, 3, 4\}. Find AβˆͺBA \cup B.

Solution

  1. 1
    Recall the definition: AβˆͺB={x:x∈AΒ orΒ x∈B}A \cup B = \{x : x \in A \text{ or } x \in B\}. The word 'or' is inclusive β€” an element belongs to the union if it appears in at least one of the sets.
  2. 2
    List all elements from A={1,3,5}A = \{1,3,5\} and B={2,3,4}B = \{2,3,4\}, including each at most once: 1 (from AA), 2 (from BB), 3 (in both), 4 (from BB), 5 (from AA).
  3. 3
    Therefore AβˆͺB={1,2,3,4,5}A \cup B = \{1,2,3,4,5\}. Notice ∣AβˆͺB∣=5=∣A∣+∣Bβˆ£βˆ’βˆ£A∩B∣=3+3βˆ’1|A \cup B| = 5 = |A| + |B| - |A \cap B| = 3 + 3 - 1, confirming the inclusion-exclusion principle.

Answer

AβˆͺB={1,2,3,4,5}A \cup B = \{1, 2, 3, 4, 5\}
The union operator collects all elements from both sets. Duplicate elements are listed only once because sets contain distinct elements.

About Union

The union of sets AA and BB is the set of all elements that belong to AA, to BB, or to both, written AβˆͺBA \cup B.

Learn more about Union β†’

More Union Examples