Union Formula

The union of sets A and B is the set of all elements that belong to A, to B, or to both, written A ∪ B.

The Formula

A∪B={x:x∈A or x∈B}

Ask yourself: Does an item belong as long as it is in at least one of the sets?

Quick example

A={1,2,3}, B={3,4,5}. Then A∪B={1,2,3,4,5} — the 3 appears once.

Notation

A∪B

What this formula means

The union of sets A and B is the set of all elements that belong to A, to B, or to both, written A∪B.

Forming a union is like merging two playlists into one library with duplicates removed: every song from either playlist is in, and a song on both appears once. The picture predicts the count too: two 10-song playlists that share 3 songs merge into 17 songs, not 20.

Formal view

A∪B={x:x∈A∨x∈B}

Worked examples

Example 1

easy
Let A={1,3,5} and B={2,3,4}. Find A∪B.
Show solution

Answer

A∪B={1,2,3,4,5}

First step

1.
Recall the definition: A∪B={x:x∈A or x∈B}. The word 'or' is inclusive — an element belongs to the union if it appears in at least one of the sets.

Full solution

  1. 2.
    List all elements from A={1,3,5} and B={2,3,4}, including each at most once: 1 (from A), 2 (from B), 3 (in both), 4 (from B), 5 (from A).
  2. 3.
    Therefore A∪B={1,2,3,4,5}. Notice ∣A∪B∣=5=∣A∣+∣B∣−∣A∩B∣=3+3−1, confirming the inclusion-exclusion principle.
The union operator collects all elements from both sets. Duplicate elements are listed only once because sets contain distinct elements.

Example 2

medium
Let A={x∈R:x>2} and B={x∈R:x<5}. Express A∪B in interval notation.

Example 3

medium
If A and B are disjoint with ∣A∣=5 and ∣B∣=7, find ∣A∪B∣.

Common mistakes

  • Writing a shared element twice in the union — the union, being a set, lists each element once.
  • Confusing ∪ (or, combine) with ∩ (and, overlap) — union grows or stays the same, intersection shrinks or stays the same.
  • Sizing a union as ∣A∣+∣B∣ when the sets overlap — subtract ∣A∩B∣ to avoid double-counting.

Why this formula matters

Union answers every 'either' question: how many people can come to at least one of two practices, which die rolls win if an even number or a 5 wins. It is the set version of the logical OR, and the overlap rule ∣A∣+∣B∣−∣A∩B∣ is the first counting formula that guards against double-counting. Without it, combined totals come out too large.

Frequently asked questions

What is the Union formula?

The union of sets A and B is the set of all elements that belong to A, to B, or to both, written A∪B.

How do you use the Union formula?

Use a union when one condition is enough to qualify: 'or', 'either', 'at least one of', 'combined list', everyone who signed up for any session. To count it, add the two sizes and subtract the overlap. If an item must meet both conditions, use intersection instead. If the problem keeps order and repeats, like joining two lists of daily scores end to end, you are joining lists, not taking a union.

What do the symbols mean in the Union formula?

A∪B

Why is the Union formula important in Math?

Union answers every 'either' question: how many people can come to at least one of two practices, which die rolls win if an even number or a 5 wins. It is the set version of the logical OR, and the overlap rule ∣A∣+∣B∣−∣A∩B∣ is the first counting formula that guards against double-counting. Without it, combined totals come out too large.

What do students get wrong about Union?

The procedure for union is the easy part; the trap is writing a shared element twice in the union. Asking "Does an item belong as long as it is in at least one of the sets?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

What should I learn before the Union formula?

Before studying the Union formula, you should understand: set.