girgit.org

Sets

Union: putting sets together

The big ideaThe union of two sets pours both into one bag: everything that is in either set, with shared elements counted once.

In simple words

You and your friend each have a list of songs you like. Make one big list of every song that is on your list or on hers. If a song is on both lists, write it only once. That big list is the union.

Operations on sets

With numbers, an operation like addition takes two numbers and gives a new number: 5 and 13 give 18. Sets have operations too: each one takes two sets and gives a new set. There are three main ones (union, intersection and difference) plus the complement, which works on a single set. From here on, every set is taken to be a subset of some universal set \( U \).

Union

The union of sets \( A \) and \( B \) is the set of all elements that are in \( A \), or in \( B \), or in both. It is written \( A \cup B \) and read "\( A \) union \( B \)".

\[ A \cup B = \{\, x : x \in A \text{ or } x \in B \,\} \]

In maths, "or" always includes "both". In a Venn diagram, \( A \cup B \) is the whole area covered by the two circles, overlap included, shaded.

Worked example 1

Let \( A = \{1, 3, 5, 7\} \) and \( B = \{5, 7, 9, 11\} \). Find \( A \cup B \).

  1. Write down everything in \( A \): 1, 3, 5, 7.
  2. Add what is in \( B \) and not yet written: 9, 11. (5 and 7 are already there.)
  3. \( A \cup B = \{1, 3, 5, 7, 9, 11\} \).

Check with counting: \( n(A) = 4 \) and \( n(B) = 4 \), but \( n(A \cup B) = 6 \), not 8, because the two shared elements are written only once.

Worked example 2: a real meaning

In Class 11 B, \( K = \{\text{Priya, Imran, Joseph}\} \) play kabaddi and \( C = \{\text{Imran, Meera, Arjun}\} \) play chess. Then

\[ K \cup C = \{\text{Priya, Imran, Joseph, Meera, Arjun}\} \]

This is the set of students who play kabaddi or chess or both. Imran plays both and is listed once.

Worked example 3: union with a subset

Let \( A = \{2, 3, 5, 7\} \) and \( B = \{3, 7\} \). Then \( A \cup B = \{2, 3, 5, 7\} = A \).

Here \( B \subset A \), so \( B \) adds nothing new. In general: if \( B \subset A \), then \( A \cup B = A \).

Why is \( n(A \cup B) \) 6 and not 8 in Worked example 1? Drag the numbers and see the double count appear.

Laws of union

These hold for any sets \( A, B, C \) inside a universal set \( U \):

LawStatementIn words
Commutative law\( A \cup B = B \cup A \)Order does not matter.
Associative law\( (A \cup B) \cup C = A \cup (B \cup C) \)Grouping does not matter.
Law of identity element\( A \cup \phi = A \)Adding nothing changes nothing. \( \phi \) is the identity of \( \cup \), like 0 for addition.
Idempotent law\( A \cup A = A \)Joining a set with itself gives the same set.
Law of U\( U \cup A = U \)Everything joined with a part of it is still everything.

Because of the associative law, we can drop the brackets and simply write \( A \cup B \cup C \): the set of everything that is in at least one of the three.

Don't mix these up

  • Union is not addition: \( n(A \cup B) \) is not always \( n(A) + n(B) \). Shared elements are counted once.
  • "Or" in \( A \cup B \) includes elements in both sets.

Try it. Let \( A = \{x : x \in \mathbf{N},\ x \le 4\} \), \( B = \{3, 4, 5, 6\} \), \( C = \{6, 7\} \). Find (a) \( A \cup B \) (b) \( A \cup B \cup C \) (c) \( A \cup \phi \).

Answer
\( A = \{1, 2, 3, 4\} \). (a) \( \{1, 2, 3, 4, 5, 6\} \). (b) \( \{1, 2, 3, 4, 5, 6, 7\} \). (c) \( \{1, 2, 3, 4\} = A \).

Words to know

Union \( A \cup B \)
Everything in \( A \) or \( B \) or both.
Commutative law
\( A \cup B = B \cup A \): order does not matter.
Associative law
\( (A \cup B) \cup C = A \cup (B \cup C) \): grouping does not matter.
Identity element
\( \phi \) for union: \( A \cup \phi = A \).
Idempotent law
\( A \cup A = A \).

\( A \) has 5 elements and \( B \) has 4. \( A \cup B \) has 7. What does that tell you?

  1. \( A \) and \( B \) share no elements
  2. \( A \) and \( B \) share exactly 2 elements
  3. \( B \subset A \)

If \( A \subset B \), then \( A \cup B \) equals

  1. \( A \)
  2. \( B \)
  3. \( \phi \)